:root {
  --paper-bg: #f3f0e8;
  --paper: #fffdf7;
  --paper-clean: #fffffb;
  --paper-soft: #f8f3e6;
  --paper-warm: #fff8e2;
  --ruled-line: rgba(84, 157, 181, 0.24);
  --margin-line: rgba(192, 87, 87, 0.34);
  --pencil: #5d625f;
  --pencil-soft: rgba(93, 98, 95, 0.22);
  --felt-tip: #2f6f73;
  --felt-tip-dark: #214e52;
  --felt-tip-soft: #dceeed;
  --sticky-note: #fff2b8;
  --sticky-note-soft: #fff7cd;
  --highlight: rgba(255, 219, 112, 0.58);
  --background: var(--paper-bg);
  --surface: var(--paper-clean);
  --surface-soft: #eef5ef;
  --surface-warm: var(--paper-warm);
  --ink: #24322f;
  --muted: #5e6b66;
  --accent: var(--felt-tip);
  --accent-dark: var(--felt-tip-dark);
  --accent-soft: var(--felt-tip-soft);
  --border: #d8ded7;
  --focus: #9f4f1a;
  --shadow: 0 18px 42px rgba(45, 50, 47, 0.12);
  --shadow-soft: 0 10px 24px rgba(45, 50, 47, 0.08);
  --shadow-lift: 0 16px 30px rgba(45, 50, 47, 0.12);
  --radius: 8px;
  --radius-small: 6px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.75rem;
  --space-6: 2.25rem;
  --space-section: clamp(3.5rem, 7vw, 6rem);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 0 0, rgba(255, 219, 112, 0.16), transparent 24rem),
    radial-gradient(circle at 95% 8%, rgba(47, 111, 115, 0.1), transparent 30rem),
    var(--background);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--ink);
  color: var(--surface);
  padding: 0.65rem 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 225, 220, 0.85);
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 0.9rem 0;
}

.brand-link,
.header-actions,
.week-card__topline,
.footer-nav__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-link {
  min-width: 0;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.brand-link span:last-child {
  overflow-wrap: anywhere;
}

.brand-mark {
  display: inline-block;
  width: 1.05rem;
  height: 1.22rem;
  flex: 0 0 auto;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 0 68%, var(--margin-line) 68% 72%, transparent 72%),
    repeating-linear-gradient(
      to bottom,
      var(--paper-clean) 0 0.27rem,
      var(--ruled-line) 0.27rem 0.31rem
    );
  box-shadow: 2px 2px 0 var(--pencil-soft);
  transform: rotate(-4deg);
}

.header-note {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.header-link,
.text-link {
  color: var(--accent-dark);
  font-weight: 750;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.container.narrow {
  width: min(100% - 2rem, 880px);
}

.section {
  position: relative;
  padding: var(--space-section) 0;
}

section[id] {
  scroll-margin-top: 6rem;
}

.section--tight {
  padding-top: 2rem;
}

.section--compact {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--tint {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.86), rgba(248, 243, 230, 0.72));
  border-block: 1px solid rgba(217, 225, 220, 0.7);
}

.hero,
.home-hero {
  min-height: min(72vh, 720px);
  display: grid;
  align-items: center;
}

.lesson-section {
  scroll-margin-top: 6rem;
}

.notebook-hero {
  isolation: isolate;
  overflow: hidden;
  background: var(--paper-bg);
}

.notebook-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      transparent 0 4.7rem,
      var(--margin-line) 4.7rem 4.82rem,
      transparent 4.82rem
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 253, 247, 0.2) 0 2.05rem,
      var(--ruled-line) 2.05rem 2.12rem
    );
  opacity: 0.72;
}

.notebook-hero::after {
  content: "";
  position: absolute;
  right: min(5vw, 4rem);
  bottom: clamp(2rem, 7vw, 5rem);
  z-index: -1;
  width: clamp(11rem, 22vw, 18rem);
  aspect-ratio: 1.65 / 1;
  border: 2px solid var(--pencil-soft);
  border-radius: 48% 52% 46% 54%;
  transform: rotate(-7deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-copy {
  max-width: 720px;
}

.hero-copy.paper-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.hero-copy--annotated {
  position: relative;
}

.hero-copy--annotated::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 0.85rem;
  width: 2px;
  border-radius: 999px;
  background: var(--margin-line);
}

.hero-copy--annotated > * {
  position: relative;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

p {
  margin: 0;
}

.lead {
  max-width: 66ch;
  margin-top: 1.35rem;
  color: #3f4d49;
  font-size: clamp(1.12rem, 2vw, 1.32rem);
  line-height: 1.6;
}

.hero-copy > p:not(.eyebrow):not(.lead) {
  max-width: 68ch;
  margin-top: 1rem;
  color: var(--muted);
}

.core-message {
  position: relative;
  margin-top: 1.2rem !important;
  border-left: 0;
  border-radius: var(--radius-small);
  background: linear-gradient(180deg, var(--sticky-note-soft), var(--sticky-note));
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  box-shadow: 3px 4px 0 rgba(93, 98, 95, 0.12);
}

.teacher-annotation::after {
  content: "";
  position: absolute;
  inset: -0.45rem -0.5rem;
  pointer-events: none;
  border: 2px solid rgba(93, 98, 95, 0.28);
  border-radius: 48% 52% 45% 55%;
  transform: rotate(-1.4deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  margin-top: 1.65rem;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  padding: 0.78rem 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button--primary {
  background: var(--accent);
  color: var(--surface);
  box-shadow: 0 3px 0 var(--accent-dark), var(--shadow-soft);
}

.button--primary:hover {
  background: var(--accent-dark);
  color: var(--surface);
  transform: translateY(-1px);
}

.button--secondary {
  border-color: var(--accent);
  background: var(--paper-clean);
  color: var(--accent-dark);
  box-shadow: 0 2px 0 rgba(47, 111, 115, 0.18);
}

.button--secondary:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.paper-panel,
.paper-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 222, 215, 0.94);
  border-radius: var(--radius);
  background: var(--paper-clean);
  box-shadow: var(--shadow);
}

.paper-panel {
  margin: 0;
  overflow: visible;
}

.lined-paper-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      transparent 0 1.1rem,
      var(--margin-line) 1.1rem 1.18rem,
      transparent 1.18rem
    ),
    repeating-linear-gradient(
      to bottom,
      var(--paper) 0 1.95rem,
      var(--ruled-line) 1.95rem 2.02rem
    );
}

.lined-paper-panel > * {
  position: relative;
  z-index: 1;
}

.paper-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paper-visual--hero {
  aspect-ratio: 3 / 2;
  min-height: 22rem;
}

.section-heading {
  position: relative;
  max-width: 760px;
  margin-bottom: 2rem;
}

.margin-prompt {
  padding-left: 1.1rem;
}

.margin-prompt::before {
  content: "";
  position: absolute;
  top: 0.18rem;
  bottom: 0.12rem;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--margin-line);
}

.margin-prompt::after {
  content: "";
  position: absolute;
  left: -0.28rem;
  top: 0.18rem;
  width: 1.05rem;
  height: 0.55rem;
  border-top: 2px solid var(--pencil-soft);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.section-heading p:last-child {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading--compact {
  margin-bottom: 0;
}

.week-grid,
.story-grid {
  display: grid;
  gap: 1rem;
}

.week-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.evidence-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.story-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.week-card,
.story-card,
.guidance-card,
.action-card,
.reflection-card,
.feedback-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper-clean);
  box-shadow: var(--shadow-soft);
}

.week-card,
.story-card {
  min-height: 100%;
  padding: 1.25rem;
}

.week-card,
.story-card,
.option-card,
.action-card {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.week-card:hover,
.story-card:hover,
.option-card:hover,
.action-card:hover {
  border-color: rgba(47, 111, 115, 0.35);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.week-card--active {
  border-color: rgba(47, 111, 115, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(220, 238, 237, 0.72)),
    var(--paper-clean);
}

.week-card__meta,
.story-card__number,
.action-card__label {
  margin-bottom: 0.7rem;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-marker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(47, 111, 115, 0.26);
  border-radius: 999px;
  background: var(--paper-soft);
  padding: 0.24rem 0.58rem;
}

.week-card p:not(.week-card__meta) {
  margin-top: 0.8rem;
  color: var(--muted);
}

.week-card .text-link {
  display: inline-block;
  margin-top: 1.25rem;
}

.status-pill {
  border: 1px solid rgba(47, 111, 115, 0.25);
  border-radius: 5px 5px 3px 3px;
  background: var(--sticky-note-soft);
  color: var(--accent-dark);
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 2px 2px 0 rgba(93, 98, 95, 0.12);
  transform: rotate(0.6deg);
}

.story-card {
  position: relative;
  overflow: hidden;
}

.story-card.activity-card::after,
.action-card.activity-card::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  width: 2.2rem;
  height: 1.25rem;
  pointer-events: none;
  border-bottom: 2px solid rgba(93, 98, 95, 0.16);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.story-card p:last-child {
  margin-top: 0.8rem;
  color: var(--muted);
}

.story-card__image {
  width: calc(100% + 2.5rem);
  height: clamp(10.5rem, 18vw, 13.5rem);
  max-width: none;
  margin: -1.25rem -1.25rem 1.1rem;
  border-bottom: 1px solid var(--border);
  object-fit: cover;
  object-position: center 72%;
}

.story-card--quote {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 248, 226, 0.88)),
    var(--surface-warm);
}

.story-quote {
  color: var(--ink) !important;
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(transparent 58%, var(--highlight) 58%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.notice-options {
  display: grid;
  gap: 0.85rem;
}

.notice-option-item {
  display: grid;
  gap: 0.5rem;
}

.option-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper-clean);
  color: var(--ink);
  padding: 1rem;
  text-align: left;
  box-shadow: none;
}

.option-card:hover {
  border-color: rgba(47, 111, 115, 0.45);
}

.option-card[aria-pressed="true"] {
  border-color: var(--accent);
  background:
    linear-gradient(90deg, rgba(255, 242, 184, 0.78), rgba(220, 238, 237, 0.55)),
    var(--paper-clean);
  box-shadow: inset 4px 0 0 var(--accent), var(--shadow-soft);
}

.option-card[aria-pressed="true"]::after {
  content: "Selected";
  grid-column: 2;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.option-card__letter {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(47, 111, 115, 0.24);
  background: var(--paper-soft);
  color: var(--accent-dark);
  font-weight: 850;
}

.feedback-panel {
  margin-top: 1rem;
  padding: 1rem;
  color: var(--ink);
}

.feedback-panel--option {
  margin-top: 0;
  margin-left: clamp(0rem, 7vw, 2.8rem);
}

.reflection-note,
.feedback-panel {
  position: relative;
}

.feedback-panel,
.reflection-note {
  border-color: rgba(196, 164, 68, 0.38);
}

.feedback-panel:not(.reflection-card),
.reflection-note:not(.reflection-card) {
  background: linear-gradient(180deg, var(--sticky-note-soft), var(--sticky-note));
}

.feedback-panel::before,
.reflection-note::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  right: 0.85rem;
  width: 1.65rem;
  height: 0.8rem;
  pointer-events: none;
  border-bottom: 2px solid rgba(93, 98, 95, 0.24);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.feedback-panel p + p {
  margin-top: 0.75rem;
}

.feedback-panel--inline {
  width: 100%;
}

.guidance-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.guidance-card {
  padding: 1.25rem;
  box-shadow: none;
}

.safeguarding-callout {
  border-left: 4px solid var(--pencil);
  background: var(--paper-clean);
}

.guidance-card p + p {
  margin-top: 0.9rem;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.source-list a {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  border: 1px solid rgba(47, 111, 115, 0.25);
  border-radius: var(--radius-small);
  background: var(--paper-soft);
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.source-list a:hover {
  background: var(--accent-soft);
}

.action-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.action-card,
.reflection-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.activity-card {
  position: relative;
}

.action-card__image {
  width: calc(100% + clamp(2.5rem, 6vw, 4rem));
  height: clamp(12rem, 30vw, 20rem);
  max-width: none;
  margin:
    calc(clamp(1.25rem, 3vw, 2rem) * -1)
    calc(clamp(1.25rem, 3vw, 2rem) * -1)
    1.25rem;
  border-bottom: 1px solid var(--border);
  object-position: center 72%;
  object-fit: cover;
}

.action-card__prompt {
  display: inline;
  margin-bottom: 0.8rem;
  font-size: clamp(1.55rem, 4vw, 2.6rem);
  font-weight: 850;
  line-height: 1.15;
  background: linear-gradient(transparent 62%, var(--highlight) 62%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.action-card__prompt + p {
  margin-top: 0.8rem;
}

.starter-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.starter-list p {
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-small);
  background: var(--sticky-note-soft);
  padding: 0.7rem 0.9rem;
  font-weight: 750;
  box-shadow: 2px 2px 0 rgba(93, 98, 95, 0.1);
}

.reflection-card {
  display: grid;
  gap: 1rem;
  padding-left: clamp(2rem, 5vw, 3rem);
}

.reflection-card.lined-paper-panel {
  background:
    linear-gradient(
      90deg,
      transparent 0 1.1rem,
      var(--margin-line) 1.1rem 1.18rem,
      transparent 1.18rem
    ),
    repeating-linear-gradient(
      to bottom,
      var(--paper) 0 1.95rem,
      var(--ruled-line) 1.95rem 2.02rem
    );
}

.reflection-prompts {
  display: grid;
  gap: 0.65rem;
}

.reflection-prompts p {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink);
  font-weight: 720;
  line-height: 1.45;
}

.reflection-prompts p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.42rem;
  height: 0.42rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--paper-clean);
}

textarea {
  display: block;
  width: 100%;
  min-height: 10rem;
  resize: vertical;
  border: 1px solid rgba(93, 98, 95, 0.28);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 253, 247, 0.98) 0 1.9rem,
      rgba(84, 157, 181, 0.16) 1.9rem 1.96rem
    ),
    var(--paper-clean);
  color: var(--ink);
  padding: 1rem;
  line-height: 1.8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

textarea::placeholder {
  color: #7b8782;
}

textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(159, 79, 26, 0.16);
  outline: none;
}

.reflection-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.reflection-tools .button {
  margin-top: 0;
}

.reflection-tools-feedback {
  margin-top: 0;
}

.reflection-card .button {
  justify-self: start;
  margin-top: 0;
}

.response-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.response-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
}

.response-steps li:nth-child(even) {
  transform: rotate(0.35deg);
}

.response-steps h3 {
  margin-top: 0.15rem;
}

.response-steps p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.response-steps__number {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(47, 111, 115, 0.3);
  border-radius: 50%;
  background: var(--sticky-note-soft);
  color: var(--accent-dark);
  font-weight: 850;
}

.scenario-activity {
  display: grid;
  gap: 1rem;
}

.scenario-progress {
  margin-bottom: 0.15rem;
}

.scenario-card,
.checkpoint-card {
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.scenario-card__context,
.selected-context__label,
.plan-preview__label {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.scenario-card h3 {
  max-width: 25ch;
  margin-top: 0.65rem;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
}

.scenario-card__prompt {
  margin: 1rem 0;
  color: var(--muted);
  font-weight: 750;
}

.scenario-options,
.scenario-option-item {
  display: grid;
  gap: 0.65rem;
}

.scenario-controls {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.scenario-controls .button {
  margin-top: 0;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.phrase-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.phrase-chip {
  min-height: 2.9rem;
  border: 1px solid rgba(47, 111, 115, 0.34);
  border-radius: 999px;
  background: var(--paper-clean);
  color: var(--ink);
  padding: 0.65rem 0.9rem;
  font-weight: 730;
  text-align: left;
}

.phrase-chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.phrase-chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--sticky-note-soft);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.role-selector {
  display: grid;
  gap: 1.25rem;
}

.role-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.role-option {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-height: 8.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper-clean);
  color: var(--muted);
  padding: 1rem;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.role-option:hover {
  border-color: rgba(47, 111, 115, 0.55);
  transform: translateY(-1px);
}

.role-option[aria-pressed="true"] {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(220, 238, 237, 0.68)),
    var(--paper-clean);
  color: var(--ink);
  box-shadow: inset 4px 0 0 var(--accent), var(--shadow-soft);
}

.role-option[aria-pressed="true"]::after {
  content: "Selected";
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.role-option__title {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 820;
  line-height: 1.25;
}

.role-selection-status {
  color: var(--muted);
  font-weight: 700;
}

.role-habit-panel {
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow-soft);
}

.role-habit-panel > p:not(.eyebrow) {
  margin-top: 0.65rem;
  color: var(--muted);
}

.habit-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.habit-option {
  position: relative;
  min-height: 8.5rem;
  border: 1px solid rgba(47, 111, 115, 0.3);
  border-radius: var(--radius);
  background: var(--paper-soft);
  color: var(--ink);
  padding: 1rem;
  font-weight: 720;
  text-align: left;
}

.habit-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.habit-option[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--sticky-note-soft);
  box-shadow: inset 0 -4px 0 var(--accent);
}

.habit-option[aria-pressed="true"]::after {
  content: "Chosen habit";
  display: block;
  margin-top: 0.75rem;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 850;
}

.checkpoint-card h3 {
  margin-top: 1.35rem;
}

.checkpoint-card__scenario {
  border-left: 4px solid var(--accent);
  background: var(--paper-soft);
  padding: 1rem 1.1rem;
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  font-weight: 720;
}

.checkpoint-card .scenario-options {
  margin-top: 1rem;
}

.checkpoint-debrief {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--paper-clean);
  padding: 1rem;
}

.action-plan-card {
  gap: 1.25rem;
}

.selected-context {
  display: grid;
  gap: 0.35rem;
  border-bottom: 1px solid rgba(93, 98, 95, 0.22);
  padding-bottom: 1rem;
}

.selected-context [data-selected-role] {
  font-size: 1.18rem;
  font-weight: 800;
}

.text-button {
  width: fit-content;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  padding: 0.45rem 0;
  font-weight: 780;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.form-field {
  display: grid;
  gap: 0.5rem;
}

.form-field label {
  font-weight: 800;
}

.optional-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.text-input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(93, 98, 95, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.98);
  color: var(--ink);
  padding: 0.75rem 0.9rem;
}

.text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(159, 79, 26, 0.16);
  outline: none;
}

.form-help,
.privacy-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-error {
  border-left: 4px solid var(--focus);
  color: #713812;
  padding-left: 0.75rem;
  font-weight: 750;
}

.plan-preview {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(47, 111, 115, 0.28);
  border-radius: var(--radius);
  background: rgba(220, 238, 237, 0.58);
  padding: 1rem;
}

.plan-preview [data-plan-preview-text] {
  white-space: pre-line;
}

.completion-card h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.completion-card > p:not(.eyebrow) {
  color: var(--muted);
}

.footer-nav {
  border-top: 1px solid var(--border);
  background: rgba(255, 253, 247, 0.94);
  color: var(--muted);
}

.module-divider {
  position: relative;
}

.module-divider::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--ruled-line) 12%,
      var(--margin-line) 18%,
      var(--ruled-line) 24%,
      transparent
    );
}

.footer-nav__inner {
  justify-content: space-between;
  padding: 1.25rem 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .guidance-layout,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .week-grid,
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .response-steps,
  .role-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .habit-options {
    grid-template-columns: 1fr;
  }

  .habit-option {
    min-height: auto;
  }

  h1 {
    max-width: 11ch;
  }

  .notebook-hero::after {
    opacity: 0.35;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 0.98rem;
  }

  .site-header__inner,
  .header-actions,
  .footer-nav__inner {
    align-items: flex-start;
  }

  .site-header__inner,
  .footer-nav__inner {
    flex-direction: column;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .section {
    padding: 3rem 0;
  }

  .hero,
  .home-hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .notebook-hero::before {
    background:
      repeating-linear-gradient(
        to bottom,
        rgba(255, 253, 247, 0.2) 0 2.05rem,
        var(--ruled-line) 2.05rem 2.12rem
      );
    opacity: 0.5;
  }

  .notebook-hero::after,
  .story-card.activity-card::after,
  .action-card.activity-card::after,
  .feedback-panel::before,
  .reflection-note::before {
    display: none;
  }

  .hero-copy.paper-panel {
    padding: 1.1rem;
  }

  .hero-copy--annotated::before {
    display: none;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 14vw, 3.25rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 2.3rem);
  }

  .lead {
    font-size: 1.08rem;
  }

  .button {
    width: 100%;
  }

  .paper-visual--hero {
    min-height: 15rem;
  }

  .week-grid,
  .story-grid,
  .response-steps,
  .role-options {
    grid-template-columns: 1fr;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .source-list {
    display: grid;
  }

  .source-list a {
    border-radius: 6px;
  }

  .reflection-card {
    padding-left: 1.25rem;
  }

  .reflection-card .button {
    justify-self: stretch;
  }

  .scenario-controls,
  .reflection-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .scenario-controls .button,
  .reflection-tools .button {
    width: 100%;
  }

  .role-option {
    min-height: auto;
  }

  .feedback-panel--option {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
