/* Kenko's pages. Her world: a manga page. Paper, ink, and one gold sparkle that
   means "this needs you", the same status light she wears in the notch. */
@font-face { font-family: "DM Sans"; src: url(fonts/DMSans.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/IBMPlexMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url(fonts/ZenMaruGothic-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Dela Gothic One"; src: url(fonts/DelaGothicOne-Regular.woff2) format("woff2"); font-display: swap; }

:root {
  --notch: #000;
  --ink: #fff5e7;
  --knit: #000;
  --paper: #0c0b0d;
  --wall: #1b191d;
  --line: #2b282e;
  --gold: #e9b65d;
  --gold-deep: #e9b65d;
  --blush: #ef9b94;
  --sage: #a9bf96;
  --verm: #d96249;
  --muted: rgba(255,245,231,.62);
  --ui: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --voice: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", ui-rounded, sans-serif;
  --display: "Dela Gothic One", "Hiragino Sans", sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --spring: cubic-bezier(0.34, 1.3, 0.5, 1);
  --gutter: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 18px/1.42 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 12px 16px; background: var(--gold); color: var(--ink); border-radius: 8px; font-weight: 600; }
.skip:focus { top: 8px; }
.wrap { max-width: 1312px; margin: 0 auto; padding-inline: var(--gutter); }

/* Type */
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
h1.display { font-size: clamp(48px, 6.4vw, 96px); line-height: 0.94; }
h2.display { font-size: clamp(36px, 4.4vw, 60px); line-height: 0.96; max-width: 16ch; }
h3 { font: 600 20px/1.2 var(--ui); letter-spacing: -0.01em; }
.lede { font-size: 20px; line-height: 1.4; max-width: 34ch; }
.small { font-size: 15px; line-height: 1.4; }
.meta { font: 13px/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.muted { color: var(--muted); }
code, .code { font: 14px/1.4 var(--mono); background: rgba(255,245,231,.07); padding: 2px 6px; border-radius: 6px; }
.spark { width: 18px; height: 18px; flex: none; color: var(--gold); }
.spark path { fill: currentColor; }

/* Buttons: ink with a gold registration offset, like her Allow button */
.buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 52px; padding: 0 24px;
  border-radius: 12px; background: var(--ink); color: var(--paper); text-decoration: none; white-space: nowrap;
  font: 600 17px/1 var(--ui); box-shadow: 4px 4px 0 var(--gold); transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.buy:active { transform: translate(2px, 2px) scale(.98); box-shadow: 2px 2px 0 var(--gold); }
@media (hover: hover) and (pointer: fine) { .buy:hover { background: var(--knit); } }
.buy .tag { font: 400 15px var(--mono); color: var(--gold); }
.buy.sm { height: 32px; padding: 0 12px; gap: 8px; font-size: 14px; border-radius: 8px; box-shadow: 2px 2px 0 var(--gold); }
.buy.sm .tag { font-size: 13px; }
.textlink { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.textlink:hover { text-decoration-color: var(--gold-deep); }

/* The menu bar: pure black, so the island reads as part of the hardware */
.bar { position: relative; z-index: 5; height: 40px; background: var(--notch); color: var(--ink); }
.bar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 400 17px/1 var(--display); text-decoration: none; letter-spacing: 0.01em; }
.bar-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.bar-links a:not(.buy) { text-decoration: none; color: rgba(255,245,231,.78); }
.bar-links a:not(.buy):hover { color: var(--ink); }
.bar .buy.sm { box-shadow: 2px 2px 0 var(--gold); background: var(--paper); color: var(--ink); }
.bar .buy.sm .tag { color: var(--gold-deep); }

/* Hero: the island hangs from the bar, she lives in it */
.hero { padding-bottom: 64px; }
.scene { position: relative; width: min(600px, calc(100% - 32px)); margin: 0 auto; min-height: 372px; }
.island {
  position: relative; margin: 0 auto; width: 100%; height: 300px; background: var(--notch); color: var(--paper);
  border-radius: 0 0 32px 32px; transition: width .46s var(--spring), height .46s var(--spring), border-radius .46s var(--ease);
}
.island.rest { width: 300px; height: 36px; border-radius: 0 0 18px 18px; }
.wing { position: absolute; top: 0; right: 16px; height: 36px; display: flex; align-items: center; gap: 8px; font: 500 13px var(--ui); color: rgba(255,245,231,.82); white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--blush); color: var(--ink); font-size: 12px; }
.eyes { position: absolute; left: 16px; top: 5px; width: 72px; height: 26px; border-radius: 13px; overflow: hidden; opacity: 0; transition: opacity .2s; }
.island.rest .eyes { opacity: 1; transition-delay: .2s; }
.eyes .bust { position: absolute; width: 200px; height: 239px; left: -66px; top: -90px; }
.island-body { position: absolute; inset: 40px 12px 12px; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; transition: opacity .2s var(--ease); }
.island.rest .island-body { opacity: 0; pointer-events: none; }
.seat { position: relative; }
.seat .bust { position: absolute; left: -28px; bottom: -12px; width: 176px; height: 210px; -webkit-mask-image: linear-gradient(#000 80%, transparent 99%); mask-image: linear-gradient(#000 80%, transparent 99%); }
.bust { background: url(img/idle.webp) 0 0 / 800% 200% no-repeat; }
.sheet {
  position: relative; min-width: 0; border-radius: 16px; background: var(--paper); color: var(--ink);
  box-shadow: 3px 3px 0 var(--gold), inset 0 0 0 1.5px var(--ink); padding: 12px 16px; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
}
.sheet::after { content: ""; position: absolute; right: 0; bottom: 0; width: 120px; height: 72px; pointer-events: none; background-image: radial-gradient(rgba(255,245,231,.16) 1px, transparent 1.4px); background-size: 6px 6px; -webkit-mask-image: linear-gradient(135deg, transparent 30%, #000); mask-image: linear-gradient(135deg, transparent 30%, #000); }
.sheet-head { display: flex; align-items: center; gap: 8px; font: 600 14px/1.2 var(--ui); white-space: nowrap; min-width: 0; }
.sheet-head .proj { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sheet-head small { margin-left: auto; font: 500 12px var(--ui); color: var(--muted); }
.agent { font: 500 12px var(--ui); padding: 2px 8px; border-radius: 6px; background: var(--ink); color: var(--paper); flex: none; }
.cmd { background: var(--ink); color: var(--paper); border-radius: 10px; padding: 8px 12px; font: 13px/1.45 var(--mono); overflow-wrap: anywhere; }
.scope { font: 13px/1.4 var(--ui); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope code { font-size: 12px; color: var(--ink); padding: 1px 4px; border-radius: 4px; }
.q-label { font: 500 11px/1 var(--ui); letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.q-text { font: 600 15px/1.3 var(--ui); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { text-align: left; border: 0; border-radius: 10px; padding: 8px 12px; background: rgba(255,245,231,.06); box-shadow: inset 0 0 0 1px rgba(255,245,231,.14); color: var(--ink); font: 600 13px/1.3 var(--ui); cursor: pointer; transition: background .15s, transform .12s; }
.choice span { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.choice:hover { background: rgba(255,245,231,.11); }
.choice:active { transform: scale(.97); }
.actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; align-items: center; }
.btn { height: 32px; padding: 0 14px; border-radius: 10px; border: 0; cursor: pointer; font: 600 13px var(--ui); display: inline-flex; align-items: center; gap: 8px; background: rgba(255,245,231,.07); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,245,231,.12); transition: background .15s, transform .12s; }
.btn:hover { background: rgba(255,245,231,.12); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: var(--paper); box-shadow: 2px 2px 0 var(--gold); }
.btn.primary:hover { background: var(--knit); }
.btn kbd { font: 500 11px var(--mono); opacity: .74; }
.rule { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 10px; background: rgba(233,182,93,.22); font: 13px/1.3 var(--mono); }
.rule .btn { margin-left: auto; flex: none; }
.bubble {
  position: absolute; left: 6px; top: 316px; max-width: 300px; padding: 8px 16px; border-radius: 18px;
  background: var(--paper); color: var(--ink); font: 700 16px/1.35 var(--voice);
  box-shadow: 0 0 0 2px var(--ink), 3px 4px 0 2px var(--ink); transform-origin: 16px 0;
  transition: opacity .18s, transform .3s var(--spring), top .46s var(--spring);
}
.bubble.off { opacity: 0; transform: scale(.7); }
.bubble .tail { position: absolute; left: 16px; top: -12px; width: 18px; height: 18px; color: var(--gold); }
.bubble .tail path { fill: currentColor; stroke: var(--ink); stroke-width: 1.4; }
.scene-note { margin-top: 16px; text-align: center; }

.hero-copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; }
.hero-copy .eyebrow { font: 13px/1.4 var(--mono); color: var(--muted); margin-bottom: 16px; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* Sections */
section { padding-block: 80px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.section-head p { max-width: 42ch; }

/* Quiet vs loud */
.ledger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.ledger h3 { margin-bottom: 16px; }
.ledger li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.ledger .hush { padding: 32px 0; }
.ledger .hush li { color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #b8b0a6; flex: none; margin-inline: 4px; }
.dot.done { background: var(--sage); }
.loud { padding: 32px; border-radius: 20px; background: var(--paper); box-shadow: 4px 4px 0 var(--gold), inset 0 0 0 2px var(--ink); }
.loud li { font-weight: 600; }
.loud li span { font-weight: 400; color: var(--muted); }
.loud .say { margin-top: 24px; display: inline-block; padding: 8px 16px; border-radius: 18px; font: 700 16px/1.35 var(--voice); box-shadow: 0 0 0 2px var(--ink), 3px 4px 0 2px var(--ink); }

/* Screen tops: real island captures hanging from a strip of black bezel */
.screen { border-top: 8px solid var(--notch); border-radius: 12px 12px 0 0; background: var(--wall); overflow: hidden; }
.screen img { margin: 0 auto; }

/* Manga page of panels */
.panels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.pnl { border-radius: 20px; box-shadow: inset 0 0 0 2px var(--ink); padding: 32px; background: var(--paper); display: flex; flex-direction: column; gap: 16px; }
.pnl.big { grid-column: span 7; grid-row: span 2; padding: 0; overflow: hidden; }
.pnl.big .screen { border-radius: 18px 18px 0 0; margin: 2px 2px 0; }
.pnl.big .cap { padding: 24px 32px 32px; }
.pnl.side { grid-column: span 5; }
.pnl p { max-width: 40ch; }
.chip { align-self: flex-start; font: 14px/1.3 var(--mono); padding: 8px 12px; border-radius: 10px; background: rgba(233,182,93,.24); overflow-wrap: anywhere; }
.keys { display: flex; gap: 8px; }
.key { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font: 400 20px var(--mono); background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink), 0 4px 0 var(--ink); }
.key.y { background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 var(--gold); }

/* Roster */
.roster { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.roster .screen { border-radius: 16px 16px 0 0; }
.facts li { padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { display: block; font-weight: 600; margin-bottom: 4px; }

/* Desk */
.desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.desktop { position: relative; height: 480px; border-radius: 20px; background: var(--wall); box-shadow: inset 0 0 0 2px var(--ink); overflow: hidden; }
.desktop::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 28px; background: rgba(255,245,231,.08); }
.desktop .notch { position: absolute; top: 0; left: 50%; width: 120px; height: 28px; margin-left: -60px; background: var(--notch); border-radius: 0 0 10px 10px; }
.desktop .win { position: absolute; left: 32px; top: 64px; width: 56%; height: 300px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink), 4px 4px 0 var(--ink); padding: 40px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.desktop .win::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 28px; border-bottom: 2px solid var(--ink); }
.desktop .win i { display: block; height: 10px; border-radius: 5px; background: var(--line); }
.desktop .her { position: absolute; right: 12%; bottom: -64px; width: 150px; }
.desk .note { margin-top: 24px; }

/* Fine print */
.spec { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 13px/1.6 var(--mono); color: var(--muted); }
.spec dd { max-width: 60ch; }

/* Price */
.price-band { padding-block: 64px 0; }
.price { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; padding: 64px 64px 0; border-radius: 28px; background: var(--ink); color: var(--paper); overflow: hidden; }
.price .figure { font: 400 clamp(72px, 11vw, 168px)/0.9 var(--display); letter-spacing: -0.02em; color: var(--gold); }
.price h2 { margin-top: 16px; max-width: none; }
.price p { margin-top: 24px; max-width: 40ch; color: rgba(255,245,231,.78); }
.price .cta { margin: 32px 0 64px; }
.price .buy { background: var(--paper); color: var(--ink); }
.price .buy .tag { color: var(--gold-deep); }
.price .textlink { color: var(--paper); }
.price .meta { color: rgba(255,245,231,.6); }
.price .art { width: 260px; align-self: end; margin-bottom: -48px; }

/* Footer */
footer { padding: 64px 0 48px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer p { font-size: 15px; color: var(--muted); max-width: 52ch; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
footer nav a { text-decoration: none; color: var(--muted); }
footer nav a:hover { color: var(--ink); }

@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .hero-copy, .section-head, .roster, .desk { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .panels .pnl.big, .panels .pnl.side { grid-column: span 12; }
  section { padding-block: 64px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .lede { font-size: 18px; }
  .bar-links .hide-sm { display: none; }
  .hero { padding-bottom: 96px; }
  .scene { width: calc(100% - 24px); }
  .island { border-radius: 0 0 24px 24px; }
  .island.rest { width: 220px; }
  .island-body { inset: 40px 8px 8px; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; }
  .seat .bust { left: -12px; bottom: -8px; width: 104px; height: 124px; }
  .sheet { padding: 12px; }
  .wing .label { display: none; }
  .choice span { display: none; }
  .q-text { font-size: 14px; }
  .screen img { width: 150%; max-width: none; margin-left: -40%; }
  .screen.q img { margin-bottom: -14%; }
  .screen.r img { margin-bottom: -19%; }
  .ledger { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .loud { padding: 24px; }
  .pnl { padding: 24px; }
  .pnl.big .cap { padding: 16px 24px 24px; }
  .roster > div:last-child { order: -1; }
  .desktop { height: 400px; }
  .desktop .win { width: 64%; height: 240px; left: 16px; }
  .desktop .her { width: 120px; right: 4%; }
  .spec div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
  .price { grid-template-columns: minmax(0, 1fr); padding: 40px 24px 0; gap: 0; }
  .price .art { width: 180px; margin: 0 auto -32px; }
  .price .cta { margin-bottom: 40px; }
  section { padding-block: 48px; }
  .price-band { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
