/* ==========================================================================
   PassPixie v3 — tool above the fold, pixie cut free of its plate.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-700.woff2") format("woff2");
}

:root {
  --night:      #090d08;
  --bark:       #121a11;
  --moss:       #3f5730;
  --moss-lit:   #6d8a4a;

  --lantern:    #e8c15c;
  --lantern-hi: #f7e0a0;
  --lantern-dim:#b9913c;
  --glow:       rgba(232, 193, 92, 0.22);

  --berry:      #5b3b5f;
  --moth:       #c19aa2;

  --paper:      #f3e8cf;
  --paper-2:    #e6d7b8;
  --paper-edge: #cdb98f;
  --ink:        #221d15;
  --ink-soft:   #574c3b;
  --ink-faint:  #7b6e59;

  --cream:      #ece3d0;
  --cream-dim:  #b9b1a0;

  --radius:     17px;
  --radius-sm:  10px;
  --shadow-deep: 0 24px 56px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 14px 34px rgba(3, 6, 3, 0.45);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--cream);
  background: var(--night);
  overflow-x: hidden;
}

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

/* --------------------------------------------------------------- backdrop */

/* The forest travels slower than the page. The plate is a 9:16 portrait, so a
   200vh layer costs nothing in zoom — `cover` is width-bound at every sane
   viewport — and it buys a full extra viewport of travel. js/parallax.js drives
   the transform. The veil is a separate fixed layer so the vignette stays
   pinned to the viewport and does not stretch or slide with the photograph. */
.forest {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 200vh;
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/forest-hero.webp");
  background-size: cover;
  background-position: 50% 30%;
  opacity: 0.82;
  will-change: transform;
}
.forest-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 46% at 68% 20%, rgba(240, 206, 118, 0.24), transparent 62%),
    radial-gradient(135% 105% at 50% 34%, transparent 42%, rgba(9, 13, 8, 0.52) 74%, rgba(9, 13, 8, 0.93) 100%),
    linear-gradient(180deg, rgba(9, 13, 8, 0.22) 0%, rgba(9, 13, 8, 0.54) 42%, rgba(9, 13, 8, 0.9) 84%, var(--night) 100%);
}

.wrap {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 0;
}

/* ------------------------------------------------------------------- nav */

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 46px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cream);
  text-decoration: none;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(232, 193, 92, 0.45);
  box-shadow: 0 0 12px var(--glow);
  flex: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 20px rgba(232,193,92,.45); }
.brand-name {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-name i { font-style: normal; color: var(--lantern); }
.brand-tld { font-size: 0.74rem; color: var(--lantern-dim); letter-spacing: 0.04em; }

.navlink {
  position: relative;
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.9rem;
  padding-bottom: 3px;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.navlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--lantern);
  transform: scaleX(.34);
  transform-origin: left;
  transition: transform .32s var(--ease);
}
.navlink:hover { color: var(--lantern); }
.navlink:hover::after { transform: scaleX(1); }

/* ------------------------------------------------------------------ stage */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(230px, 26vw, 330px);
  grid-template-areas: "lead pixie" "panel pixie";
  grid-template-rows: auto 1fr;
  column-gap: 20px;
  align-items: end;
  padding-top: 12px;
}

.lead { grid-area: lead; padding-bottom: 14px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.7rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--lantern-dim);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lantern-dim));
}
h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0 0 7px;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.6);
}
h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--lantern);
  text-shadow: 0 0 30px var(--glow);
}
.lede {
  margin: 0;
  max-width: 46ch;
  color: #cdc5b2;
  font-size: 0.97rem;
  line-height: 1.45;
}

/* ------------------------------------------------------- the pixie cutout */

/* Top-anchored on purpose: the panel grows downward when "Fussier options"
   opens, and the pixie must not ride along with it. */
.pixie {
  grid-area: pixie;
  position: relative;
  align-self: start;
  display: flex;
  justify-content: center;
  width: 100%;
}
.pixie-figure {
  position: relative;
  /* Width drives the box so the aspect ratio always holds and the ground
     shadow stays under the feet; the vh term keeps it inside the fold. */
  width: min(100%, calc((100vh - 176px) * 0.621));
  aspect-ratio: 660 / 1063;
}
.pixie-figure::before {                /* lantern light pooling behind it */
  content: "";
  position: absolute;
  left: 50%; bottom: 2%;
  width: 100%; height: 62%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 74%);
  animation: breathe 7s ease-in-out infinite;
}
.pixie-figure::after {                 /* the shadow it stands in */
  content: "";
  position: absolute;
  left: 50%; bottom: 1%;
  width: 62%; height: 5%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.72), transparent 76%);
}
.pixie-art {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.5));
  animation: hover-float 8s ease-in-out infinite;
}

@keyframes hover-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* ------------------------------------------------------------ the panel */

.panel {
  grid-area: panel;
  position: relative;
  background: linear-gradient(175deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 15px 17px 16px;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(160, 136, 92, 0.1) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(160, 136, 92, 0.09) 0 1px, transparent 1px);
  background-size: 37px 41px, 53px 47px;
}
.panel > * { position: relative; }

.modes {
  display: inline-flex;
  padding: 3px; gap: 3px;
  border-radius: 999px;
  background: rgba(34, 29, 21, 0.09);
  border: 1px solid var(--paper-edge);
  margin-bottom: 11px;
}
.modes button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.89rem;
  color: var(--ink-soft);
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.modes button:hover { color: var(--ink); transform: translateY(-1px); }
.modes button[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }

/* presets */
.presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.preset {
  position: relative;
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border: 1.5px solid var(--paper-edge);
  background: rgba(255, 253, 246, 0.72);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  overflow: hidden;
  transition: border-color .22s var(--ease), background .22s var(--ease),
              transform .22s var(--ease), box-shadow .22s var(--ease);
}
.preset::after {                       /* light sweeps across on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(247, 224, 160, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.preset:hover {
  border-color: var(--lantern-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(34, 29, 21, 0.14);
}
.preset:hover::after { transform: translateX(120%); }
.preset b {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.preset small {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  line-height: 1.32;
  color: var(--ink-faint);
}
.preset[aria-pressed="true"] {
  border-color: var(--moss);
  background: linear-gradient(180deg, #fbf6e6, #f0e7cd);
  box-shadow: inset 0 0 0 1px var(--moss), 0 3px 10px rgba(63, 87, 48, 0.16);
}
.preset[aria-pressed="true"] small { color: var(--ink-soft); }

/* output */
.output-shell {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: #fffdf6;
  box-shadow: inset 0 2px 7px rgba(34, 29, 21, 0.08);
  padding: 11px 13px 9px;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.output-shell.pop { animation: pop .42s var(--ease); }
@keyframes pop {
  0%   { box-shadow: inset 0 2px 7px rgba(34,29,21,.08), 0 0 0 0 rgba(232,193,92,.65); }
  45%  { box-shadow: inset 0 2px 7px rgba(34,29,21,.08), 0 0 0 7px rgba(232,193,92,0); }
  100% { box-shadow: inset 0 2px 7px rgba(34,29,21,.08), 0 0 0 0 rgba(232,193,92,0); }
}
.output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.output-label {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.output {
  display: block;
  width: 100%;
  resize: none;
  border: 0; padding: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  line-height: 1.3;
  word-break: break-word;
  min-height: 2.25em;
}
.output:focus { outline: 0; }
.output-shell:focus-within { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(109, 138, 74, 0.28); }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 15px;
  margin: 9px 0 11px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.pips { display: inline-flex; gap: 4px; }
.pip {
  width: 23px; height: 6px;
  border-radius: 3px;
  background: rgba(34, 29, 21, 0.13);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.pips[data-level="1"] .pip:nth-child(-n+1),
.pips[data-level="2"] .pip:nth-child(-n+2) { background: var(--moth); }
.pips[data-level="3"] .pip:nth-child(-n+3) { background: var(--lantern-dim); }
.pips[data-level="4"] .pip:nth-child(-n+4),
.pips[data-level="5"] .pip:nth-child(-n+5) { background: var(--moss); }
.meta strong { color: var(--ink); }
.meta .note { color: var(--berry); font-weight: 700; flex-basis: 100%; }

/* actions */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
}
.btn {
  position: relative;
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 10px 21px;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; }
.btn-gold {
  background: linear-gradient(180deg, var(--lantern-hi), var(--lantern));
  color: #33270a;
  box-shadow: 0 4px 14px rgba(232, 193, 92, 0.32);
}
.btn-gold::after {                     /* a ring of lantern light on hover */
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid rgba(232, 193, 92, 0.55);
  opacity: 0;
  transform: scale(.88);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.btn-gold:hover {
  background: linear-gradient(180deg, #fdeec2, #f0cd6d);
  box-shadow: 0 10px 26px rgba(232, 193, 92, 0.46);
}
.btn-gold:hover::after { opacity: 1; transform: scale(1); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #3a3125; box-shadow: 0 9px 20px rgba(34, 29, 21, 0.34); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--paper-edge); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); box-shadow: 0 8px 18px rgba(34, 29, 21, 0.14); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* knobs */
.knobs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--paper-edge);
}
.knob { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; }
.knob > span {
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color .2s var(--ease);
}
.knob:hover > span { color: var(--ink-soft); }
select, input[type="text"], input[type="number"] {
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: #fffdf6;
  border: 1.5px solid var(--paper-edge);
  border-radius: 9px;
  padding: 7px 9px;
  width: 100%;
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
select:hover, input[type="text"]:hover, input[type="number"]:hover {
  border-color: var(--lantern-dim);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(34, 29, 21, 0.1);
}
select:focus, input:focus {
  outline: 0;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(109, 138, 74, 0.22);
  transform: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; grid-column: 1 / -1; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--paper-edge);
  background: rgba(255, 253, 246, 0.72);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s var(--ease), background .2s var(--ease),
              transform .2s var(--ease), box-shadow .2s var(--ease);
}
.chip:hover { border-color: var(--lantern-dim); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(34,29,21,.12); }
.chip input { width: 15px; height: 15px; accent-color: #3f5730; margin: 0; cursor: pointer; }
.chip:has(input:checked) { border-color: var(--moss); background: linear-gradient(180deg, #fbf6e6, #f0e7cd); }
.chip:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(109, 138, 74, 0.28); }

.len-row { display: flex; align-items: center; gap: 11px; grid-column: 1 / -1; }
.len-row .knob { flex: 1; min-width: 0; }
.len-row input[type="range"] { accent-color: #3f5730; width: 100%; cursor: pointer; }
.len-row input[type="number"] { width: 76px; flex: none; text-align: center; font-weight: 700; }

/* drawer */
.drawer { margin-top: 12px; border-top: 1px solid var(--paper-edge); padding-top: 11px; }
.drawer > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 3px 2px;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.drawer > summary::-webkit-details-marker { display: none; }
.drawer > summary::before {
  content: "›";
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink-faint);
  transition: transform .28s var(--ease);
}
.drawer[open] > summary::before { transform: rotate(90deg); }
.drawer > summary:hover { color: var(--ink); transform: translateX(2px); }
.drawer .knobs { border-top: 0; padding-top: 10px; }

.panel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  align-items: baseline;
  margin-top: 13px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.linkbtn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.81rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .2s var(--ease), text-underline-offset .2s var(--ease);
}
.linkbtn:hover { color: var(--ink); text-underline-offset: 5px; }

/* --------------------------------------------------------- below the fold */

.prose {
  position: relative;
  margin: 44px 0 0;
  max-width: 68ch;
}
/* The backdrop scrolls beneath the running text and the lit parts of the plate
   are bright enough to cost contrast. This wash is a soft ellipse, not a box:
   it reads as depth and keeps every line above 4.5:1. */
.prose::before,
.faq::before {
  content: "";
  position: absolute;
  inset: -34px -48px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(9, 13, 8, 0.9) 0%, rgba(9, 13, 8, 0.88) 76%, rgba(9, 13, 8, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0,
    #000 52px, #000 calc(100% - 52px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0,
    #000 52px, #000 calc(100% - 52px), transparent 100%);
}
.prose h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--lantern);
  margin: 1.9rem 0 0.45rem;
}
.prose p, .prose li { color: #cdc5b2; font-size: 0.95rem; line-height: 1.62; }
.prose a { color: var(--lantern); text-underline-offset: 3px; transition: text-underline-offset .2s var(--ease); }
.prose a:hover { text-underline-offset: 5px; }
.prose code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: rgba(0, 0, 0, 0.42);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  color: var(--lantern-hi);
}
.prose ul { padding-left: 1.15rem; }
.prose li { margin-bottom: 0.3rem; }

/* the pixie sits on the footer's mossy floor, closing out the page */
.sitter {
  position: relative;
  z-index: 2;
  width: min(200px, 36vw);
  margin: 44px auto -52px;
  pointer-events: none;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.6));
}
.sitter::before {                      /* the ground he settles into */
  content: "";
  position: absolute;
  left: 50%; bottom: 4%;
  width: 78%; height: 7%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent 78%);
}
.sitter img { display: block; width: 100%; height: auto; }

.site-foot {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 118px 0 32px;
  background-image: url("../img/forest-footer.webp");
  background-size: cover;
  background-position: 18% 58%;
  border-top: 1px solid rgba(232, 193, 92, 0.18);
}
.site-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 70% at 10% 42%, rgba(240, 206, 118, 0.18), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, rgba(9, 13, 8, 0.4) 46%, rgba(9, 13, 8, 0.88) 100%);
}
.site-foot-inner {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 24px;
  font-size: 0.82rem;
  color: #b7b0a0;
}
.site-foot-inner a { color: var(--lantern); text-underline-offset: 3px; transition: color .2s var(--ease); }
.site-foot-inner a:hover { color: var(--lantern); }

/* ------------------------------------------------------------- faq page */

.faq { position: relative; max-width: 74ch; padding: 22px 0 0; }
.faq h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: 10px; }
.faq > .lede { margin-bottom: 8px; font-size: 1.02rem; }
.faq-item { border-top: 1px solid rgba(232, 193, 92, 0.15); padding: 18px 0 2px; }
.faq-item h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.24rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--lantern);
  letter-spacing: -0.015em;
}
.faq-item p { color: #d3cbb8; line-height: 1.62; margin: 0 0 0.7rem; }
.faq a { color: var(--lantern); text-underline-offset: 3px; transition: text-underline-offset .2s var(--ease); }
.faq a:hover { text-underline-offset: 5px; }
.faq code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.87em;
  background: rgba(0, 0, 0, 0.42);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  color: var(--lantern-hi);
}
.faq-hero {
  float: right;
  width: 190px;
  margin: 0 0 12px 26px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55));
}
.faq-hero img { display: block; width: 100%; height: auto; }

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 0;
  color: var(--lantern);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: gap .25s var(--ease);
}
.backlink:hover { gap: 13px; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .stage { grid-template-columns: minmax(0, 1fr) clamp(190px, 24vw, 250px); column-gap: 14px; }
}

@media (max-width: 820px) {
  /* the tool comes first on a phone; the pixie follows it */
  .stage {
    grid-template-columns: 1fr;
    grid-template-areas: "lead" "panel" "pixie";
    row-gap: 0;
    justify-items: center;
    text-align: center;
  }
  .lead { padding-bottom: 12px; }
  .lede { margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .pixie {
    width: 100%;
    margin: 22px 0 0;
    display: flex;
    justify-content: center;
  }
  .pixie-figure { width: min(206px, 50vw); height: auto; }
  .panel { width: 100%; text-align: left; }
  .faq-hero { float: none; width: 160px; margin: 0 auto 16px; }
  .prose::before, .faq::before { inset: -24px -16px; }   /* stay inside the gutter */
  .sitter { width: min(170px, 44vw); margin: 30px auto -46px; }
  .faq { text-align: left; }
}

@media (max-width: 660px) {
  .presets { grid-template-columns: 1fr; }
  .knobs { grid-template-columns: 1fr 1fr; }
  .panel { padding: 14px 13px 16px; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 420px) {
  .knobs { grid-template-columns: 1fr; }
  .modes { display: flex; width: 100%; }
  .modes button { flex: 1; padding: 8px 6px; }
}

/* keep the tool reachable without scrolling on short laptop screens */
@media (min-width: 821px) and (max-height: 780px) {
  h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
  .lede { display: none; }
  .wrap { padding-top: 10px; }
  .stage { padding-top: 6px; }
  .panel { padding: 13px 15px 14px; }
}
@media (min-width: 821px) and (max-height: 690px) {
  .eyebrow { display: none; }
  h1 { font-size: 1.85rem; margin-bottom: 0; }
  .lead { padding-bottom: 8px; }
  .topnav { height: 38px; }
  .presets { margin-bottom: 9px; }
  .preset { padding: 7px 10px; }
  .preset small { display: none; }
  .meta { margin: 7px 0 8px; }
  .actions { margin-bottom: 9px; }
  .knobs { padding-top: 9px; gap: 8px; }
  .drawer { margin-top: 9px; padding-top: 8px; }
  .panel-foot { margin-top: 9px; }
  .output { min-height: 1.9em; }
}

@media (prefers-reduced-motion: reduce) {
  .pixie-art, .pixie-figure::before { animation: none !important; }
  .forest { transform: none !important; }
  .btn:hover, .preset:hover, .chip:hover, .modes button:hover,
  select:hover, input[type="text"]:hover, input[type="number"]:hover { transform: none; }
  .preset::after { display: none; }
  .output-shell.pop { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
