/* ============================================================
   Art teaching portfolio
   Palette from "Muted Olive Moss" swatch set + butter paper
   and powder blue from the striped-wall and flower references.
   ============================================================ */

@font-face {
  font-family: "Shantell Sans";
  src: url("/fonts/shantell-sans.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* swatches */
  --moss: #5d593c;        /* Muted Olive Moss */
  --rose: #d29e9e;        /* Dusty Rose Blush */
  --rosewood: #ab6a6a;    /* Faded Rosewood */
  --linden: #beb06c;      /* Linden Glow */
  --forest: #878557;      /* Deep Forest */
  /* supporting */
  --butter: #fbf0cf;      /* paper */
  --butter-deep: #f2e2b3; /* mat board */
  --sky: #c6d8ec;         /* powder blue */
  --ink: #33301c;         /* body text: deep moss, not black */
  --rosewood-ink: #8a4848;/* rosewood dark enough for small text */

  --hand: "Shantell Sans", "Comic Neue", "Segoe Print", cursive;
  --body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;

  --measure: 66ch;
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --focus: 3px solid var(--rosewood-ink);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .19 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--butter) var(--grain);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
main:focus { outline: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 {
  font-family: var(--hand);
  font-variation-settings: "INFM" 100;
  font-weight: 650;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: var(--rosewood-ink); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--moss); color: var(--butter);
  font-weight: 700; border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Anything still waiting for the student's own text */
.is-placeholder {
  background: repeating-linear-gradient(-45deg, #0000 0 8px, rgb(171 106 106 / 0.09) 8px 16px);
  outline: 2px dashed var(--rosewood);
  outline-offset: 2px;
  border-radius: 6px;
}
.prose.is-placeholder { padding: 0.75rem 1rem; }

/* ---------- prose ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 48px;
  padding: 0.55rem 1.4rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: var(--moss);
  font-family: var(--hand);
  font-variation-settings: "INFM" 100;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--moss); color: var(--butter); }
.btn--solid { background: var(--moss); border-color: var(--moss); color: var(--butter); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 44px; padding: 0.4rem 1.1rem; font-size: 1rem; }

/* ---------- masthead ---------- */
.masthead { background: var(--butter) var(--grain); position: relative; z-index: 5; }
.masthead__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.wordmark {
  font-family: var(--hand);
  font-variation-settings: "INFM" 100, "BNCE" 30;
  font-weight: 750;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.1;
  color: var(--rosewood-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.1rem;
  color: var(--ink);
  font-family: var(--hand);
  font-variation-settings: "INFM" 60;
  font-size: 1.0625rem;
  text-decoration: none;
}
.site-nav a:hover { color: var(--rosewood-ink); }
.site-nav a[aria-current="page"] {
  color: var(--rosewood-ink);
  font-weight: 650;
  /* hand-drawn underline */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6C22 2 40 9 60 5S88 3 98 6' fill='none' stroke='%23AB6A6A' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% 9px no-repeat;
}
.menu-toggle { display: none; }

/* dashed rosewood + sky edge under the header (tingle & tots) */
.awning {
  height: 10px;
  background:
    repeating-linear-gradient(90deg, var(--rosewood) 0 14px, var(--sky) 14px 28px);
}

/* ---------- page head bands ---------- */
.page-head { position: relative; overflow: hidden; }
.page-head__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.75rem, 7vw, 5rem) var(--gutter) clamp(1.5rem, 3vw, 2.25rem);
}
.page-head h1 {
  font-size: clamp(2.75rem, 1.5rem + 5vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.page-head__lede { margin-top: 0.75rem; max-width: 52ch; font-size: 1.1875rem; }

.page-head--sky, .wave--sky { background-color: var(--sky); color: var(--ink); fill: var(--sky); }
.page-head--rose, .wave--rose { background-color: var(--rose); color: var(--ink); fill: var(--rose); }
.page-head--moss, .wave--moss { background-color: var(--moss); color: var(--butter); fill: var(--moss); }
.page-head--linden, .wave--linden { background-color: var(--linden); color: var(--ink); fill: var(--linden); }
.page-head--sky, .page-head--rose, .page-head--moss, .page-head--linden { background-image: var(--grain); }
.wave { width: 100%; height: clamp(22px, 3vw, 44px); margin-top: -1px; background: transparent !important; }
.wave--wall { position: absolute; left: 0; bottom: -1px; fill: var(--butter); }

/* ---------- botanical sprig ---------- */
.sprig { pointer-events: none; }
.sprig__shapes { fill: var(--sky); }
.sprig__stem { fill: none; stroke: var(--sky); stroke-width: 7; stroke-linecap: round; }
.sprig__lines { fill: none; stroke: var(--sprig-line, var(--linden)); stroke-width: 3; stroke-linecap: round; }
.page-head--linden .sprig {
  position: absolute;
  right: clamp(1rem, 6vw, 7rem);
  bottom: -1.5rem;
  width: clamp(150px, 15vw, 210px);
  transform: rotate(-8deg);
}
.page-head--linden .page-head__inner { padding-right: clamp(var(--gutter), 26vw, 22rem); }

/* ============================================================
   HOME
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__wall {
  position: absolute;
  inset: -20px;
  background:
    repeating-linear-gradient(90deg, var(--forest) 0 58px, var(--sky) 58px 86px);
  filter: url(#wobble);
}
.hero__wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.9;
}
.hero__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

/* scalloped arch frame (commission-work reference) */
.arch {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  transform: rotate(-2deg);
  filter: drop-shadow(6px 8px 0 rgb(51 48 28 / 0.28));
}
.arch__scallop { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--rosewood); }
.arch__window {
  position: absolute;
  inset: 8.5% 8% 6.8%;
  overflow: hidden;
  border-radius: 50% 50% 4px 4px / 37% 37% 4px 4px;
  background: var(--butter-deep);
  display: block;
}
.arch__window picture, .arch__img { width: 100%; height: 100%; }
.arch__img { object-fit: cover; transition: transform 0.4s ease; }
a.arch__window:hover .arch__img { transform: scale(1.03); }
.arch__window--empty {
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 30% 30%, var(--rose) 0 18%, transparent 18.5%),
    radial-gradient(circle at 72% 62%, var(--linden) 0 22%, transparent 22.5%),
    radial-gradient(circle at 38% 78%, var(--sky) 0 14%, transparent 14.5%),
    var(--butter-deep);
}
.arch__window--empty p {
  padding: 0.5rem 1rem;
  background: var(--butter);
  border-radius: 999px;
  font-family: var(--hand);
  font-variation-settings: "INFM" 100;
  font-size: 1rem;
  line-height: 1.3;
}

/* butter-paper card (tingle & tots "get in touch" card) */
.intro-card {
  background: var(--butter) var(--grain);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 1px 0 rgb(51 48 28 / 0.08);
  max-width: 40rem;
}
.intro-card__name {
  font-size: clamp(2.6rem, 1.4rem + 4.5vw, 4.25rem);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.intro-card__tagline {
  margin-top: 0.6rem;
  font-family: var(--hand);
  font-variation-settings: "INFM" 100;
  font-size: 1.3125rem;
  color: var(--rosewood-ink);
  display: inline-block;
}
.intro-card .prose { margin-top: 1.5rem; }
.intro-card__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.contents {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}
.contents__heading { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.5rem); }
.contents__list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2rem 2.5rem;
}
.contents__list li { border-top: 2px solid var(--moss); padding-top: 1rem; }
.contents__list a {
  font-family: var(--hand);
  font-variation-settings: "INFM" 100;
  font-weight: 650;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}
.contents__list a:hover { color: var(--rosewood-ink); text-decoration: underline; }
.contents__list p { margin-top: 0.35rem; font-size: 1.0625rem; }

/* ============================================================
   LESSON PLANS
   ============================================================ */
.lessons {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}
.lesson { scroll-margin-top: 1rem; max-width: 1080px; }
.lesson + .lesson {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-top: clamp(3rem, 7vw, 4.5rem);
  /* hand-drawn squiggle divider */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M2 7C12 0 18 14 30 7S48 0 60 7 78 14 90 7 108 0 118 7' fill='none' stroke='%23BEB06C' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") top center / 120px 14px no-repeat;
}
.lesson__head { display: flex; gap: clamp(1rem, 3vw, 1.75rem); align-items: center; }
.badge { flex: none; width: clamp(64px, 9vw, 88px); height: auto; overflow: visible; }
.badge path { fill: var(--rosewood); }
.badge text {
  fill: var(--butter);
  font-family: var(--hand);
  font-variation-settings: "INFM" 100;
  font-weight: 750;
  font-size: 46px;
}
.lesson__title { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.375rem); }
.lesson__summary { margin-top: 0.4rem; max-width: 60ch; font-size: 1.125rem; }

.doc-tabs {
  display: inline-flex;
  gap: 0.25rem;
  margin-top: 1.75rem;
  padding: 0.3rem;
  border: 2px solid var(--moss);
  border-radius: 999px;
}
.js .doc-tabs[hidden] { display: inline-flex; }
.doc-tabs [role="tab"] {
  min-height: 44px;
  padding: 0.35rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--moss);
  font-family: var(--hand);
  font-variation-settings: "INFM" 100;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
}
.doc-tabs [role="tab"]:hover { background: var(--butter-deep); }
.doc-tabs [role="tab"][aria-selected="true"] { background: var(--moss); color: var(--butter); }

.doc { margin-top: 1.25rem; }
.doc:focus-visible { outline-offset: 6px; }
.js .doc__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html:not(.js) .doc__label { font-size: 1.375rem; margin: 2rem 0 0.75rem; }

.doc__viewer {
  position: relative;
  background: var(--butter-deep);
  border: 2px solid var(--moss);
  border-radius: 14px;
  overflow: hidden;
}
.doc__thumb { display: block; padding: clamp(0.75rem, 3vw, 1.5rem); }
.doc__thumb img {
  margin: 0 auto;
  max-height: 70vh;
  width: auto;
  box-shadow: 0 2px 0 rgb(51 48 28 / 0.15), 0 10px 24px -14px rgb(51 48 28 / 0.5);
  background: #fff;
}
.doc__frame { display: none; width: 100%; height: min(82vh, 980px); border: 0; background: #fff; }
.doc__viewer.is-landscape .doc__frame { height: min(70vh, 680px); }
/* Wide screens with a working built-in PDF viewer: show the real PDF. */
@media (min-width: 800px) {
  .has-embed .doc__frame { display: block; }
  .has-embed .doc__thumb { display: none; }
}
.doc__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
}
.doc__meta { font-size: 1rem; }
.doc__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.doc__missing {
  padding: 2.5rem 1.5rem;
  border: 2px dashed var(--rosewood);
  border-radius: 14px;
  text-align: center;
  background: repeating-linear-gradient(-45deg, #0000 0 8px, rgb(171 106 106 / 0.07) 8px 16px);
}

/* ============================================================
   ARTWORKS
   ============================================================ */
.gallery {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}
.gallery__group + .gallery__group { margin-top: clamp(3.5rem, 8vw, 5.5rem); }
.gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--moss);
}
.gallery__head h2 { display: flex; flex-direction: column; gap: 0.15rem; }
.gallery__kicker {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--rosewood-ink);
}
.gallery__title { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.375rem); }
.gallery__link { font-size: 1.0625rem; padding: 0.4rem 0; }
.gallery__grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
}
.art { display: flex; flex-direction: column; }
/* mat board: the whole artwork is always visible, never cropped */
.art__mat {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 9%;
  background: var(--butter-deep);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgb(51 48 28 / 0.08);
  color: inherit;
}
.art__mat picture { display: contents; }
.art__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  box-shadow: 0 1px 0 rgb(51 48 28 / 0.2), 4px 6px 0 rgb(51 48 28 / 0.12);
  transition: transform 0.25s ease;
}
a.art__mat:hover .art__img { transform: translateY(-3px) rotate(-0.6deg); }
.art__mat--empty {
  background:
    repeating-linear-gradient(90deg, var(--butter-deep) 0 22px, #ecdcaa 22px 34px);
  text-align: center;
}
.art__mat--empty p {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--butter);
  font-family: var(--hand);
  font-size: 1rem;
}
.art__caption { margin-top: 0.9rem; }
.art__title { font-size: 1.3125rem; font-weight: 650; }
.art__medium { margin-top: 0.2rem; font-size: 1rem; }
.art__lesson { margin-top: 0.15rem; font-size: 0.9375rem; color: var(--rosewood-ink); }

/* ---------- lightbox ---------- */
.lightbox {
  width: min(96vw, 1400px);
  max-width: none;
  height: min(96vh, 1100px);
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--butter) var(--grain);
  color: var(--ink);
  display: none;
}
.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: lb-in 0.18s ease-out;
}
.lightbox::backdrop { background: rgb(40 38 22 / 0.82); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.98); } }
.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem 0.5rem 1.25rem;
}
.lightbox__count { font-size: 1rem; }
.lightbox__figure {
  margin: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0 clamp(0.75rem, 3vw, 2rem);
}
.lightbox__img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.lightbox__caption { text-align: center; }
.lightbox__title { font-family: var(--hand); font-variation-settings: "INFM" 100; font-weight: 650; font-size: 1.375rem; line-height: 1.2; }
.lightbox__meta { font-size: 1rem; margin-top: 0.15rem; }
.lightbox__nav { display: flex; justify-content: center; gap: 0.75rem; padding: 0.75rem 1rem 1rem; }
.lightbox.is-single .lightbox__nav, .lightbox.is-single .lightbox__count { visibility: hidden; }

/* ============================================================
   RESOURCES: scalloped "cookie" cards (commission-work reference)
   ============================================================ */
.resources {
  list-style: none;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(4rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.cookie {
  --r: 15px;
  --c: var(--butter-deep);
  position: relative;
  padding: calc(var(--r) * 3) calc(var(--r) * 2.6) calc(var(--r) * 3.2);
  background:
    radial-gradient(circle, var(--c) calc(var(--r) - 0.5px), #0000 var(--r)) top left / calc(var(--r) * 2) calc(var(--r) * 2) round no-repeat,
    radial-gradient(circle, var(--c) calc(var(--r) - 0.5px), #0000 var(--r)) bottom left / calc(var(--r) * 2) calc(var(--r) * 2) round no-repeat,
    radial-gradient(circle, var(--c) calc(var(--r) - 0.5px), #0000 var(--r)) top left / calc(var(--r) * 2) calc(var(--r) * 2) no-repeat round,
    radial-gradient(circle, var(--c) calc(var(--r) - 0.5px), #0000 var(--r)) top right / calc(var(--r) * 2) calc(var(--r) * 2) no-repeat round,
    linear-gradient(var(--c) 0 0) center / calc(100% - var(--r) * 2) calc(100% - var(--r) * 2) no-repeat;
  color: var(--ink);
  text-align: center;
}
.cookie--1 { --c: var(--moss); color: var(--butter); }
.cookie--2 { --c: var(--rose); }
.cookie--3 { --c: var(--linden); }
.cookie--4 { --c: var(--sky); }
.cookie__name { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); }
.cookie__name a { color: inherit; text-decoration-thickness: 0.06em; }
.cookie__host { margin-top: 0.35rem; font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.cookie__text { margin: 1.1rem auto 0; max-width: 34ch; font-size: 1.0625rem; text-align: left; }
.cookie__text p + p { margin-top: 0.8em; }
.cookie__text.is-placeholder { padding: 0.6rem 0.8rem; outline-color: currentColor; }
.cookie__action { margin-top: 1.5rem; }
.cookie .btn { color: inherit; }
.cookie .btn:hover { background: currentColor; }
.cookie .btn:hover { color: var(--c); background: var(--ink); border-color: var(--ink); }
.cookie--1 .btn:hover { background: var(--butter); border-color: var(--butter); color: var(--moss); }
.cookie a:focus-visible { outline-color: currentColor; }

/* ============================================================
   REFLECTION
   ============================================================ */
.reflection {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}
.answer {
  max-width: 980px;
  display: grid;
  grid-template-columns: clamp(3rem, 8vw, 5.5rem) minmax(0, 1fr);
  column-gap: clamp(0.75rem, 3vw, 2rem);
}
.answer + .answer { margin-top: clamp(3.5rem, 8vw, 5rem); }
.answer__number {
  grid-row: 1 / span 3;
  font-family: var(--hand);
  font-variation-settings: "INFM" 100;
  font-weight: 750;
  font-size: clamp(3rem, 2rem + 4vw, 5.25rem);
  line-height: 0.9;
  color: var(--rosewood);
}
.answer__question { grid-column: 2; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.875rem); max-width: 34ch; }
.answer .prose { grid-column: 2; margin-top: 1.25rem; }
.answer__art { grid-column: 2; margin: 1.5rem 0 0; max-width: 300px; }
.answer__art figcaption { margin-top: 0.6rem; font-size: 1rem; }
@media (min-width: 900px) {
  .answer:has(.answer__art) { grid-template-columns: clamp(3rem, 8vw, 5.5rem) minmax(0, 1fr) 280px; }
  .answer:has(.answer__art) .answer__question { grid-column: 2 / span 2; }
  .answer__art { grid-column: 3; grid-row: 2; margin: 1.25rem 0 0; align-self: start; }
}

/* ---------- 404 ---------- */
.notfound { max-width: 1240px; margin: 0 auto; padding: 2.5rem var(--gutter) 5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  --sprig-line: var(--moss);
  position: relative;
  overflow: hidden;
  background: var(--moss) var(--grain);
  color: var(--butter);
}
.site-footer__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem var(--gutter) 3.25rem;
  display: grid;
  gap: 0.75rem;
  font-size: 1rem;
}
.site-footer__name {
  font-family: var(--hand);
  font-variation-settings: "INFM" 100;
  font-weight: 700;
  font-size: 1.5rem;
}
.site-footer a { color: var(--butter); }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0.75rem 0 0; padding: 0; }
.site-footer nav a { display: inline-block; padding: 0.35rem 0; }
.site-footer a:focus-visible { outline-color: var(--butter); }
.site-footer .sprig {
  position: absolute;
  right: clamp(-2rem, 4vw, 6rem);
  bottom: -3.5rem;
  width: clamp(150px, 18vw, 240px);
  opacity: 0.9;
  transform: rotate(10deg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; justify-items: center; }
  .arch { justify-self: center; max-width: min(360px, 82vw); }
  .intro-card { max-width: 100%; }
}

@media (max-width: 720px) {
  .masthead__inner { column-gap: 1rem; }
  .wordmark { flex: 1 1 0; min-width: 0; }
  .site-footer__inner { padding-bottom: 9rem; }
  .site-footer .sprig { width: 130px; right: 0.5rem; bottom: -2rem; }
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.4rem 1rem;
    border: 2px solid var(--moss);
    border-radius: 999px;
    background: transparent;
    color: var(--moss);
    font-family: var(--hand);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
  }
  .menu-toggle__bars, .menu-toggle__bars::before {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
  }
  .menu-toggle__bars { transform: translateY(-3px); }
  .menu-toggle__bars::before { content: ""; position: absolute; top: 6px; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.25rem 0 0.5rem; }
  .site-nav li + li { border-top: 1px solid rgb(93 89 60 / 0.2); }
  .site-nav a { display: block; padding: 0.7rem 0.1rem; font-size: 1.1875rem; }
  .site-nav a[aria-current="page"] { background-size: 9rem 9px; background-position: left bottom 0.35rem; }

  .doc-tabs { display: flex; width: 100%; }
  .js .doc-tabs[hidden] { display: flex; }
  .doc-tabs [role="tab"] { flex: 1; }
  .doc__footer { flex-direction: column; align-items: stretch; }
  .doc__actions .btn { flex: 1; }
  .lesson__head { align-items: flex-start; }

  .answer { grid-template-columns: 1fr; }
  .answer__number { grid-row: auto; font-size: 3rem; }
  .answer__question, .answer .prose, .answer__art { grid-column: 1; }

  .page-head--linden .page-head__inner { padding-right: var(--gutter); }
  .page-head--linden .sprig { opacity: 0.55; right: -4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .masthead, .awning, .site-footer, .doc-tabs, .doc__viewer, .wave, .hero__wall { display: none !important; }
  body { background: #fff; }
}
