/* Landing page in the app's "Green room" look: the cast waits on a deep bottle-green stage, brass marks
   the one thing to press, and everything below the stage stays white and quiet.
   Type: Instrument Serif for names and headings, Atkinson Hyperlegible for everything you read. */
:root {
  --field: #0e3d2e;
  --field-raised: #145040;
  --on-field: #f2f7f4;
  --on-field-soft: #a9c4b8;
  --green: #12513d;
  --brass: #e0a43a;
  --brass-deep: #c98d24;
  --ink: #16201c;
  --ink-soft: #4f5d57;
  --paper: #ffffff;
  --mist: #f1f4f1;
  --line: #dfe6e1;
  --direction: #4e6a5e;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Atkinson Hyperlegible', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, p, ol, ul, dl, dd, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--brass); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; z-index: 2; }
.skip:focus { top: 12px; }

/* Buttons: brass is the main action, ink and green are the others. */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; font: 700 17px/1 var(--sans); text-decoration: none; transition: background-color 0.15s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn.brass { background: var(--brass); color: var(--ink); }
.btn.brass:hover { background: var(--brass-deep); }
.btn.play { background: var(--ink); color: var(--paper); }
.btn.play svg { fill: currentColor; stroke: none; }
.btn.play:hover { background: #2a3832; }
.btn.ink { background: var(--green); color: var(--paper); }
.btn.ink:hover { background: #0d4231; }

/* The stage: header and hero on bottle green. */
.stage { background: var(--field); color: var(--on-field); }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1160px; margin: 0 auto; padding: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-field); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { border-radius: 10px; }
.bar nav { display: flex; align-items: center; gap: 22px; }
.bar nav a { color: var(--on-field); text-decoration: none; font-weight: 700; font-size: 15px; }
.bar nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bar nav a.pill { border: 1.5px solid var(--on-field-soft); border-radius: 999px; padding: 8px 16px; }
.bar nav a.pill:hover { text-decoration: none; border-color: var(--on-field); }

.hero { max-width: 1160px; margin: 0 auto; padding: 28px 24px 56px; }
.hero h1 { font: 700 19px/1.4 var(--sans); color: var(--on-field-soft); margin-bottom: 18px; }

.cast-stage { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 48px; align-items: center; }
/* The character's own colour sits behind them, like the app's two-tone profile. */
.portrait { position: relative; padding: 0 0 22px 22px; }
.portrait::before {
  content: ''; position: absolute; inset: 22px 22px 0 0; border-radius: 32px;
  background: var(--tone); transition: background-color 0.4s;
}
.portrait img {
  position: relative; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 28px;
  box-shadow: 0 24px 48px rgba(3, 20, 14, 0.45);
}
.who { font: 400 clamp(3rem, 7.2vw, 5.75rem)/0.95 var(--serif); letter-spacing: -0.015em; color: var(--paper); }
.tagline { margin-top: 14px; font-size: 19px; color: var(--on-field-soft); max-width: 34rem; }
.bubble {
  margin-top: 26px; max-width: 36rem; padding: 18px 22px; background: var(--paper); color: var(--ink);
  border-radius: 6px 24px 24px 24px; font-size: 19px; line-height: 1.55;
}
.bubble em { font: italic 1.14em/1.4 var(--serif); color: var(--direction); }
/* Words arrive one by one (landing.js); their space is reserved so nothing below jumps. */
.bubble .w { opacity: 0; transition: opacity 0.18s; }
.bubble .w.on { opacity: 1; }
.reply { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.quiet { color: var(--on-field); font-weight: 700; text-underline-offset: 4px; }
.note { margin-top: 12px; font-size: 15px; color: var(--on-field-soft); }

.picker { display: flex; gap: 14px; margin: 0 0 36px; overflow-x: auto; padding: 6px 4px 10px; scrollbar-width: thin; }
.picker button {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px;
  padding: 0; border: 0; background: none; color: var(--on-field-soft); font: 700 13px/1.25 var(--sans);
  text-align: center; cursor: pointer;
}
.picker img { width: 72px; height: 72px; border-radius: 22px; object-fit: cover; outline: 3px solid transparent; outline-offset: 3px; transition: outline-color 0.15s, transform 0.15s; }
.picker button:hover img { transform: translateY(-3px); }
.picker button[aria-pressed='true'] { color: var(--paper); }
.picker button[aria-pressed='true'] img { outline-color: var(--brass); }
.picker button:focus-visible { outline: none; }
.picker button:focus-visible img { outline-color: var(--paper); }

/* Android beta. */
.android {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start;
  max-width: 1160px; margin: 0 auto; padding: 88px 24px;
}
.android h2, .make h2, .cast h2 { font: 400 clamp(2.4rem, 4.6vw, 3.4rem)/1.02 var(--serif); letter-spacing: -0.01em; }
.lede { margin-top: 16px; font-size: 19px; color: var(--ink-soft); max-width: 36rem; }
.steps { list-style: none; padding: 0; margin-top: 34px; counter-reset: step; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 60px; min-height: 44px; color: var(--ink-soft); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--field); color: var(--brass); font: 400 24px/1 var(--serif);
}
.steps strong { display: block; color: var(--ink); font-size: 18px; }
.android-actions {
  display: grid; gap: 14px; justify-items: start; padding: 32px; border-radius: 28px; background: var(--mist);
  margin-top: 8px;
}
.fine { font-size: 15px; color: var(--ink-soft); }
.android-actions .fine:first-of-type { margin-top: 8px; }

/* Make your own: a character sheet, as you'd fill it in. */
.make { background: var(--mist); }
.make {
  display: grid; grid-template-columns: 1fr minmax(300px, 440px); gap: 64px; align-items: center;
  padding: 88px max(24px, calc((100% - 1112px) / 2));
}
.facts { display: grid; gap: 18px; margin: 30px 0 32px; }
.facts dt { font-weight: 700; font-size: 18px; }
.facts dd { color: var(--ink-soft); max-width: 34rem; }
.sheet {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 26px 28px 22px;
  box-shadow: 0 18px 40px rgba(14, 61, 46, 0.12); transform: rotate(-1.5deg);
}
.sheet > p, .sheet-head p { font-size: 16px; }
.sheet-head { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; margin-bottom: 6px; }
.sheet-head img { width: 112px; height: 112px; border-radius: 20px; object-fit: cover; }
.sheet-label { color: var(--ink-soft); font-size: 13px !important; font-weight: 700; margin-top: 12px; }
.sheet-head .sheet-label:first-child { margin-top: 0; }
.sheet-name { font: 400 1.75rem/1.1 var(--serif) !important; }
.sheet-greeting { background: var(--mist); border-radius: 4px 16px 16px 16px; padding: 10px 14px; margin-top: 4px; }
.chips { list-style: none; padding: 0; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--mist); border-radius: 999px; padding: 3px 12px; font-size: 14px; }
.sheet figcaption { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-soft); }

/* The whole cast: every face links to its own page. */
.cast { max-width: 1160px; margin: 0 auto; padding: 88px 24px 72px; }
.cast-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.cast-head a { font-weight: 700; text-underline-offset: 4px; }
.wall { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.wall a { display: block; border-radius: 18px; }
.wall-face { width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; object-fit: cover; transition: transform 0.15s; }
.wall a:hover .wall-face { transform: scale(1.06); }
.wall-face.blank { display: grid; place-items: center; color: #fff; font: 400 2rem var(--serif); }

.foot { border-top: 1px solid var(--line); padding: 28px 24px 44px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 12px; }
.foot a { color: var(--ink-soft); }

@media (max-width: 960px) {
  .cast-stage { grid-template-columns: 1fr; gap: 28px; }
  .portrait { max-width: 340px; }
  .android, .make { grid-template-columns: 1fr; gap: 40px; }
  .sheet { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar { padding: 12px 16px; }
  .bar nav { gap: 14px; }
  .bar nav a:not(.pill) { display: none; }
  .hero { padding: 16px 16px 40px; }
  .hero h1 { font-size: 17px; margin-bottom: 12px; }
  .portrait { max-width: 260px; padding: 0 0 16px 16px; }
  .portrait::before { inset: 16px 16px 0 0; border-radius: 26px; }
  .portrait img { border-radius: 22px; }
  .tagline, .bubble, .lede { font-size: 17px; }
  .picker { margin: 0 -16px 24px; padding: 6px 16px 10px; gap: 10px; }
  .picker button { width: 80px; }
  .picker img { width: 64px; height: 64px; border-radius: 20px; }
  .android, .cast { padding: 64px 16px; }
  .make { padding: 64px 16px; }
  .android-actions { padding: 24px 20px; }
  .btn { width: 100%; justify-content: center; }
  .sheet { padding: 22px 20px 18px; }
  .sheet-head { grid-template-columns: 88px 1fr; }
  .sheet-head img { width: 88px; height: 88px; }
  .wall { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
