:root {
  --ink: #323438;
  --ink-soft: #535960;
  --muted: #6c757d;
  --line: #cbd6dd;
  --bg: #f5f5fa;
  --surface: #ffffff;
  --green: #7bc39c;
  --green-dark: #5dab7e;
  --gold: #f5bd47;
  --coral: #ec675f;
  --slate: #7c98ab;
  --pale: #bbe1e5;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(50, 52, 56, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Trenda-Regular", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

h1, h2, h3, .epic, .num { font-family: "Trenda-Bold", Helvetica, Arial, sans-serif; }

/* Header band */
.site-header {
  background: var(--ink);
  color: #fff;
}
.site-header .inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.1rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-header img { height: 34px; width: auto; }
.site-header .tag {
  margin-left: auto;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pale);
}

.container { max-width: 860px; margin: 0 auto; padding: 2rem 1rem 4rem; }

h1 { font-size: 1.75rem; margin: 0 0 .25rem; }
.lead { color: var(--ink-soft); margin-top: 0; }

.intro {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
  border-left: 4px solid var(--green);
}
.intro h2 { font-size: 1.05rem; margin: 1rem 0 .3rem; }
.intro h2:first-child { margin-top: 0; }
.intro p { margin: .4rem 0; }

/* Primary action button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green);
  color: #16331f;
  font-family: "Trenda-Bold", Helvetica, Arial, sans-serif;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: .7rem 1.4rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--green-dark); }

/* Sticky progress */
.progress { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: .85rem 0 .6rem; }
.progress-bar { height: 10px; background: #e3e7ee; border-radius: 999px; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; width: 0; background: var(--green); transition: width .25s ease; }
.progress-text { font-size: .85rem; color: var(--ink-soft); margin-top: .4rem; display: flex; justify-content: space-between; align-items: center; }
.progress-text button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: .8rem;
  border-radius: 999px;
  padding: .25rem .8rem;
}
.progress-text button:hover { border-color: var(--slate); color: var(--ink); }

/* Section heading */
.epic { font-size: 1.15rem; margin: 2rem 0 .85rem; padding-bottom: .35rem; border-bottom: 2px solid var(--green); color: var(--ink); }

/* Cards (stories / tasks) */
.story {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  transition: opacity .2s ease;
}
.story.done { opacity: .55; }
.story.done h3 { text-decoration: line-through; }
.story header { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.story h3 { font-size: 1.05rem; margin: 0; flex: 1; }
.num {
  background: var(--slate); color: #fff;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; flex: none;
}
.story.done .num { background: var(--green-dark); }
.badge {
  background: #fbeccb; color: #8a6512;
  font-size: .72rem; padding: .15rem .6rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .03em;
}
.badge.bonus { background: #fbe0de; color: #9c3b35; }
.story p { margin: 0 0 .75rem; color: var(--ink-soft); }
.story p:last-of-type { margin-bottom: .75rem; }

.done-toggle { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-soft); cursor: pointer; user-select: none; }
.done-toggle input { width: 1.1rem; height: 1.1rem; cursor: pointer; accent-color: var(--green-dark); }

footer { margin-top: 2.5rem; color: var(--muted); font-size: .9rem; }
a { color: var(--green-dark); }
