/* Ủa, why? · landing page
   Palette from Sếu's style guide (openstudio styles/seu-minimal):
   paper, ink, one blue accent (his hoodie). Red only for teacher corrections,
   yellow only for Mẹ's kitchen window, pencil grey only for Người Ấy. */

:root {
  --paper: #F7F3EC;
  --paper-2: #FCFAF5;
  --paper-grey: #ECE9E3;
  --ink: #1E1E1E;
  --ink-soft: #46443F;
  --ink-faint: #8A867E;
  --blue: #2F5D8A;
  --blue-dark: #234A70;
  --blue-wash: #E7EEF5;
  --red: #C8553D;
  --red-wash: #F7E5DF;
  --yellow: #F2C14E;
  --pencil: #8C8C8C;
  --rule: #E3E3DD;
  --margin-line: #EAB9AE;

  --hand: "Patrick Hand", "Comic Sans MS", cursive;
  --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wobble: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobble-soft: 18px 6px 16px 8px / 8px 16px 6px 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background-color: var(--paper);
  /* ruled notebook paper */
  background-image: linear-gradient(to bottom, transparent 33px, var(--rule) 33px, var(--rule) 34px);
  background-size: 100% 34px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* red margin line of a Vietnamese vở */
body::before {
  content: "";
  position: fixed;
  top: 0; bottom: 0;
  left: max(10px, calc((100vw - var(--max)) / 2 - 28px));
  width: 2px;
  background: var(--margin-line);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -48px;
  background: var(--ink); color: var(--paper);
  padding: 8px 14px; border-radius: 8px; z-index: 50;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}

.logo {
  font-family: var(--hand);
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--blue); display: inline-block; transform: rotate(8deg); }

.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover { color: var(--blue); text-decoration: underline wavy var(--blue) 1px; text-underline-offset: 5px; }

.lang {
  flex-shrink: 0;
  font: 400 19px/1 var(--hand);
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.lang:hover { text-decoration: underline wavy var(--blue) 1px; text-underline-offset: 5px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font: 600 16px/1.2 var(--body);
  color: var(--ink);
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--wobble);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-small { padding: 8px 16px; font-size: 14px; }
.site-header .btn-small { flex-shrink: 0; }

.btn.is-soon {
  opacity: .5;
  pointer-events: none;
  border-style: dashed;
}
.btn.is-soon::after { content: "sắp có"; font: 400 15px var(--hand); margin-left: 2px; }
html[lang="en"] .btn.is-soon::after { content: "soon"; }

/* ---------- pages ---------- */

main { position: relative; z-index: 1; }

.page {
  position: relative;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) var(--gutter);
}
.page + .page { border-top: 2px dashed #D6D2CA; }

.page-no {
  position: absolute; top: 18px; right: var(--gutter);
  font-family: var(--hand);
  font-size: 20px;
  color: var(--ink-faint);
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--hand);
  font-size: 24px;
  color: var(--blue);
}

h1, h2, h3 { margin: 0; }

h2 {
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.intro {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 18px;
  color: var(--ink-soft);
}

.note, .margin-note {
  font-family: var(--hand);
  color: var(--blue);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 32px;
  padding-top: clamp(40px, 7vw, 88px);
}

.hero .note { margin: 0 0 4px; font-size: 22px; transform: rotate(-2deg); display: inline-block; }

.hero h1 {
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(76px, 13vw, 172px);
  line-height: .9;
  letter-spacing: -0.02em;
}
.hero h1 .q {
  color: var(--blue);
  display: inline-block;
  transform: rotate(10deg) translateY(-4px);
  margin-left: 4px;
}

.gloss {
  /* clears the descender of the "y" above */
  margin: calc(clamp(76px, 13vw, 172px) * .2) 0 0;
  font: 400 19px/1.2 var(--hand);
  color: var(--ink-faint);
}

.tagline {
  margin: 14px 0 0;
  font-family: var(--hand);
  font-size: clamp(26px, 3vw, 34px);
  color: var(--red);
  transform: rotate(-1deg);
  display: inline-block;
}

.lead {
  max-width: 46ch;
  margin: 22px 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-art {
  position: relative;
  margin: 0;
  justify-self: center;
}
.hero-art .hero-seu { position: relative; z-index: 1; height: clamp(340px, 56vh, 540px); width: auto; }
.hero-may {
  position: absolute;
  z-index: 0;
  width: 190px; height: auto;
  left: -120%; top: -6%;
  transform: rotate(-6deg);
  opacity: .95;
}

.scribble {
  position: absolute;
  font-family: var(--hand);
  color: var(--blue);
  line-height: 1;
  pointer-events: none;
}
.s1 { font-size: 64px; top: 4%; right: -34%; transform: rotate(14deg); }
.s2 { font-size: 38px; top: 20%; right: -12%; transform: rotate(-12deg); opacity: .7; }

.hero-art .margin-note {
  position: absolute;
  left: -72%;
  bottom: 30%;
  font-size: 20px;
  line-height: 1.2;
  transform: rotate(-4deg);
  text-align: right;
}
.hero-art .margin-note::after {
  content: "";
  position: absolute;
  right: -40px; top: 6px;
  width: 34px; height: 20px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  border-top-right-radius: 24px;
}

/* Người Ấy's pencil */
.pencil {
  position: absolute;
  left: var(--gutter);
  bottom: 18px;
  width: 34px; height: 34px;
  padding: 0;
  font: 400 24px/1 var(--hand);
  color: var(--pencil);
  background: none;
  border: 0;
  cursor: help;
  opacity: .7;
}
.pencil:hover, .pencil[aria-expanded="true"] { opacity: 1; }
.pencil[aria-expanded="true"]::after {
  content: attr(data-pencil);
  position: absolute;
  left: 36px; bottom: 4px;
  white-space: nowrap;
  font-size: 20px;
  color: var(--pencil);
}

/* ---------- subjects ---------- */

.subjects { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.subjects li {
  padding: 3px 12px;
  font-size: 14px; font-weight: 600;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 999px;
}
.subjects li:last-child { color: var(--ink-faint); border-color: transparent; font-weight: 500; }

/* ---------- game cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.card {
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: var(--wobble-soft);
  padding: 24px 24px 26px;
  transition: transform .2s ease;
}
.card img { height: 200px; width: auto; margin: 0 auto 18px; }
.card h3 { font-size: 20px; font-weight: 800; line-height: 1.3; }
.card p { margin: 8px 0 0; color: var(--ink-soft); font-size: 16px; }
.tilt-l { transform: rotate(-.8deg); }
.tilt-r { transform: rotate(.8deg); }
.card:hover { transform: rotate(0) translateY(-3px); }

/* ---------- sample battle ---------- */

.battle {
  margin-top: 56px;
  padding: clamp(22px, 4vw, 40px);
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--wobble-soft);
  box-shadow: 6px 6px 0 var(--blue-wash);
}
.battle-kicker { margin: 0; font-family: var(--hand); font-size: 22px; color: var(--red); }
.battle-head h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.battle-scene { margin: 4px 0 0; color: var(--ink-faint); font-style: italic; }

.battle-q {
  margin: 20px 0 0;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--blue);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55;
}

.confidence {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 24px 0 0; padding: 0; border: 0;
}
.confidence legend { float: left; margin-right: 6px; font-size: 15px; color: var(--ink-soft); }
.confidence label {
  position: relative;
  padding: 6px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  background: var(--paper);
}
.confidence input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.confidence label:has(input:checked) { background: var(--ink); color: var(--paper); }
.confidence label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
  counter-reset: opt;
}
.opt {
  position: relative;
  text-align: left;
  padding: 14px 16px 14px 52px;
  font: 500 16px/1.45 var(--body);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--wobble-soft);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.opt::before {
  counter-increment: opt;
  content: counter(opt, upper-alpha);
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  font: 400 20px/1 var(--hand);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.opt:hover:not(:disabled) { background: var(--blue-wash); transform: translateY(-1px); }
.opt:disabled { cursor: default; }
.opt.is-right { background: var(--blue-wash); border-color: var(--blue); border-width: 2px; }
.opt.is-right::before { background: var(--blue); color: #fff; border-color: var(--blue); }
.opt.is-wrong { background: var(--red-wash); border-color: var(--red); }
.opt.is-wrong span { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.opt.is-dim { opacity: .45; }

.feedback {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1.5px dashed #D6D2CA;
}
.feedback-who { margin: 0; font-size: 14px; color: var(--ink-faint); }
.feedback-text {
  margin: 4px 0 0;
  font-family: var(--hand);
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.3;
  color: var(--blue);
}
.feedback-why { margin: 12px 0 0; color: var(--ink-soft); max-width: 68ch; }
.feedback .btn { margin-top: 16px; }

/* ---------- Trò strip ---------- */

.tro { margin-top: 64px; }
.tro-title { font-family: var(--hand); font-weight: 400; font-size: clamp(28px, 3vw, 36px); color: var(--blue); }
.tro-lead { max-width: 62ch; margin: 6px 0 0; color: var(--ink-soft); }
.tro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 0; padding: 0; list-style: none;
}
.tro-grid li {
  display: grid; justify-items: center; text-align: center; gap: 4px;
  padding: 16px 10px 14px;
  background: var(--paper-2);
  border: 1.5px dashed #BDB8AE;
  border-radius: var(--wobble-soft);
}
.tro-grid img { width: 96px; height: auto; }
.tro-grid b { font-family: var(--hand); font-weight: 400; font-size: 20px; line-height: 1.15; }
.tro-grid span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }

/* ---------- world ---------- */

.spread {
  display: grid;
  grid-template-columns: 1fr minmax(200px, .7fr) 1fr;
  margin-top: 44px;
  border: 2px solid var(--ink);
  border-radius: 10px 10px 6px 6px;
  background: var(--paper-2);
  box-shadow: 0 10px 0 -4px #E4DFD6;
}
.leaf { padding: 26px; display: grid; gap: 22px; align-content: start; }
.spine {
  padding: 26px 20px;
  display: grid; gap: 22px; align-content: start;
  background: repeating-linear-gradient(90deg, transparent 0 46%, #E9E5DC 46% 54%, transparent 54% 100%), var(--paper);
  border-left: 1.5px dashed #CFCAC0;
  border-right: 1.5px dashed #CFCAC0;
}
.spine .zone { background: var(--paper-2); padding: 14px; border-radius: var(--wobble-soft); border: 1px solid #D6D2CA; }
.leaf-title {
  margin: 0;
  font-family: var(--hand);
  font-size: 24px;
  color: var(--ink);
}
.leaf-title span { color: var(--ink-faint); font-size: 18px; }

.zone h3 { font-family: var(--hand); font-weight: 400; font-size: 27px; line-height: 1.1; color: var(--blue); }
.zone p { margin: 6px 0 0; font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; }
.zone .subject {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 10px;
  font-size: 13px; font-weight: 600;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 999px;
}

.loose {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: start;
  gap: 24px;
  margin-top: 36px;
}
.loose .leaf-title { padding-top: 16px; }
.loose .zone {
  position: relative;
  padding: 22px 22px 20px;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
}
.loose .zone:nth-of-type(1) { transform: rotate(-1.2deg); }
.loose .zone:nth-of-type(2) { transform: rotate(1deg); }
.loose .zone::before {
  /* a strip of tape */
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  width: 84px; height: 24px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(214, 205, 180, .65);
  border: 1px solid rgba(160, 150, 120, .3);
}

.villain {
  display: flex; align-items: center; gap: 28px;
  margin-top: 56px;
  padding: 22px 28px;
  background: var(--paper-grey);
  border: 1.5px dashed #B9B4AA;
  border-radius: var(--wobble-soft);
}
.villain img { height: 170px; width: auto; }
.villain p { margin: 0; font-family: var(--hand); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.35; color: var(--ink-soft); }
.villain strong { color: var(--ink); font-weight: 400; text-decoration: underline wavy var(--ink-faint) 1.5px; text-underline-offset: 6px; }

/* ---------- cast ---------- */

.cast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
}
.cast-card {
  display: grid;
  grid-template-rows: 190px auto auto 1fr;
  padding: 18px 20px 22px;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: var(--wobble-soft);
  transition: transform .2s ease;
}
.cast-card:nth-child(3n+1) { transform: rotate(-.6deg); }
.cast-card:nth-child(3n+3) { transform: rotate(.6deg); }
.cast-card:hover { transform: rotate(0) translateY(-3px); }
.cast-card img { width: 100%; height: 190px; object-fit: contain; }
.cast-card h3 { margin-top: 10px; font-family: var(--hand); font-weight: 400; font-size: 30px; line-height: 1.1; }
.cast-card .role { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.cast-card .line { margin: 10px 0 0; font-size: 15.5px; color: var(--ink-soft); font-style: italic; }
.cast-draft { border-style: dashed; border-color: var(--pencil); }
.cast-draft .role { color: var(--pencil); }

.cast-card.cast-feature {
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 360px) 1fr;
  grid-template-rows: auto;
  align-items: center;
  gap: 28px;
  transform: none;
  border-width: 2px;
}
.cast-card.cast-feature:hover { transform: none; }
.cast-feature img { height: auto; max-height: 260px; }
.feature-body h3 { margin-top: 0; }
.rumours-title { margin: 18px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.rumours { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rumours details { border: 1.5px dashed #BDB8AE; border-radius: var(--wobble-soft); background: var(--paper); }
.rumours summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 14px 10px 40px;
  position: relative;
  font-size: 15.5px;
}
.rumours summary::-webkit-details-marker { display: none; }
.rumours summary::before {
  content: "?";
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  font: 400 22px/1 var(--hand);
  color: var(--blue);
}
.rumours details[open] summary::before { content: "✓"; font-family: var(--body); font-size: 16px; }
.rumours details[open] summary { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.rumours details p {
  margin: 0;
  padding: 0 14px 12px 40px;
  font-family: var(--hand);
  font-size: 20px;
  line-height: 1.3;
  color: var(--blue);
}
.feature-coda { margin: 18px 0 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Bếp Mẹ ---------- */

.bep-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.bep-art { position: relative; margin: 0; justify-self: center; }
.bep-art img { position: relative; height: clamp(260px, 36vw, 400px); width: auto; z-index: 1; }
.bep .eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.window {
  /* the one warm window: Mẹ's kitchen */
  display: inline-block;
  flex-shrink: 0;
  width: 44px; height: 50px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
    var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 0 0 0 6px rgba(242, 193, 78, .2), 0 0 34px 12px rgba(242, 193, 78, .45);
}
.bep-art .margin-note {
  position: absolute;
  left: -6%; bottom: -14px;
  font-size: 20px; line-height: 1.2;
  transform: rotate(-3deg);
  z-index: 2;
}

/* ---------- Sếu hỏi ---------- */

.ask-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 8px;
}
.ask-rules { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ask-rules li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.ask-rules li::before {
  content: "";
  position: absolute; left: 4px; top: .55em;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}

.wind { position: relative; margin: 28px 0 0; display: flex; align-items: flex-end; gap: 12px; }
.wind img { height: 170px; width: auto; }
.wind .margin-note { font-size: 20px; line-height: 1.2; transform: rotate(-3deg); margin: 0 0 28px; }

.board { display: grid; gap: 28px; justify-items: center; align-content: start; }

.pinned {
  position: relative;
  width: min(100%, 420px);
  padding: 34px 26px 26px;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  transform: rotate(-1.5deg);
  box-shadow: 5px 6px 0 #E4DFD6;
}
.pin {
  position: absolute;
  top: -10px; left: 50%;
  width: 22px; height: 22px;
  transform: translateX(-50%);
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.pinned-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.pinned-q { margin: 8px 0 0; font-family: var(--hand); font-size: clamp(26px, 3vw, 32px); line-height: 1.2; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.blank-page { position: relative; margin: 0; display: flex; align-items: center; gap: 18px; }
.blank-page img { height: 230px; width: auto; }
.blank-page .margin-note { font-size: 22px; line-height: 1.25; transform: rotate(-2deg); }

/* ---------- parents ---------- */

.parents-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.promises { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 60ch; }
.promises li { position: relative; padding-left: 36px; font-size: 17px; }
.promises li::before {
  content: "";
  position: absolute; left: 4px; top: .5em;
  width: 15px; height: 8px;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(-45deg);
}
.parents-art { margin: 0; justify-self: center; }
.parents-art img { height: clamp(220px, 28vw, 340px); width: auto; }

/* ---------- sign-up ---------- */

.signup { text-align: center; }
.signup .intro { margin-left: auto; margin-right: auto; }

.signup-form {
  display: grid; gap: 18px;
  max-width: 460px;
  margin: 32px auto 0;
  padding: 28px;
  text-align: left;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--wobble-soft);
}
.field { display: grid; gap: 6px; }
.field span { font-weight: 600; font-size: 15px; }
.field input, .field select {
  width: 100%;
  padding: 10px 2px;
  font: 400 17px var(--body);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
}
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--blue); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }
.form-status { margin: 0; min-height: 1.4em; font-family: var(--hand); font-size: 20px; color: var(--blue); }
.form-status.is-error { color: var(--red); }

.signup-follow { max-width: 560px; margin: 28px auto 0; color: var(--ink-soft); }
.signup-follow .platforms { justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 22px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 36px var(--gutter) 48px;
  border-top: 2px dashed #D6D2CA;
}
.site-footer img { height: 120px; width: auto; }
.footer-fiction { margin: 0; font-family: var(--hand); font-size: 21px; line-height: 1.3; max-width: 52ch; }
.footer-meta { margin: 8px 0 0; font-size: 14px; color: var(--ink-faint); }
.footer-meta a { color: var(--blue); }

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

@media (max-width: 960px) {
  .tro-grid { grid-template-columns: repeat(4, 1fr); }
  .cast { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
  .spread { grid-template-columns: 1fr 1fr; }
  .spine { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 1fr 1fr; border: 0; border-top: 1.5px dashed #CFCAC0; border-bottom: 1.5px dashed #CFCAC0; background: var(--paper); }
  .leaf-west { grid-column: 2; grid-row: 1; }
  .loose { grid-template-columns: 1fr 1fr; }
  .loose .leaf-title { grid-column: 1 / -1; padding: 0; }
}

@media (max-width: 760px) {
  body::before { display: none; }
  .nav { display: none; }
  .site-header .lang { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; justify-self: end; margin-right: 22%; }
  .hero-art .hero-seu { height: 260px; }
  .hero-may { width: 130px; left: -140%; top: 0; }
  .hero-art .margin-note { left: -110%; bottom: 40%; font-size: 18px; }
  .s1 { right: -60%; }
  .s2 { right: -28%; }
  .pencil { bottom: 10px; }
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .card img { height: 170px; }
  .options { grid-template-columns: 1fr; }
  .spread { grid-template-columns: 1fr; }
  .spine { grid-template-columns: 1fr; grid-row: auto; }
  .leaf-west { grid-column: auto; grid-row: auto; }
  .loose { grid-template-columns: 1fr; }
  .villain { flex-direction: column; align-items: flex-start; }
  .tro-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cast { grid-template-columns: 1fr; }
  .cast-card { grid-template-rows: 170px auto auto 1fr; }
  .cast-card img { height: 170px; }
  .cast-card.cast-feature { grid-template-columns: 1fr; }
  .cast-feature img { max-height: 200px; height: auto; margin: 0 auto; }
  .villain img { height: 110px; }
  .bep-grid, .ask-grid, .parents-grid { grid-template-columns: 1fr; }
  .bep-art img { height: 260px; }
  .parents-art { order: -1; }
  .parents-art img { height: 200px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer img { height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .card:hover, .opt:hover:not(:disabled) { transform: none; }
}
