@font-face {
  font-family: 'Intenta Film Serif';
  src: url('intenta-film-serif.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #22211e;
  --muted: #55534e;
  --line: #d9d7d0;
  --cobalt: #173eae;
  --blue: #1949b9;
  --amber: #ffb50a;
  --serif: 'Intenta Film Serif', 'Songti SC', STSong, 'Noto Serif CJK SC', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans CJK SC', sans-serif;
  --gutter: clamp(22px, 5.1vw, 82px);
  font: 16px/1.7 var(--sans);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
section[id], article[id], #assistant { scroll-margin-top: 22px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
::selection { color: var(--ink); background: #ffcf64; }

.wrap { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: 10px; left: 10px; transform: translateY(-160%); padding: 8px 15px; background: var(--paper); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand { width: fit-content; font-size: 13px; font-weight: 740; letter-spacing: .22em; }
.dot { display: inline-block; flex: 0 0 auto; width: .58em; height: .58em; border-radius: 50%; background: var(--amber); }
.wordmark { display: flex; align-items: center; gap: .4em; font-size: 15px; font-weight: 590; }
.wordmark .dot { margin-right: .25em; }
.opening {
  --opening-height: max(380px, 100vh);
  --opening-height: max(380px, 100svh);
  --opening-travel: clamp(440px, 100vh, 1150px);
  --opening-travel: clamp(440px, 100svh, 1150px);
  --opening-hold: .48;
  background: var(--cobalt);
  color: #fffdf7;
}
.opening-frame { position: relative; isolation: isolate; overflow: hidden; height: var(--opening-height); }
.opening-motion .opening { min-height: calc(var(--opening-height) + var(--opening-travel) * var(--opening-hold)); }
.opening-motion .opening-frame { position: sticky; top: 0; }
.opening :focus-visible, .banners :focus-visible { outline-color: var(--amber); }
.keyboard-stage, .keyboard-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.keyboard-stage { z-index: -1; }
.opening-motion .keyboard-stage { z-index: 1; }
.opening-header, .opening-footer { z-index: 2; }
.keyboard-poster {
  position: absolute;
  top: 72%;
  left: 50%;
  width: min(78%, 1240px, max(832px, 160svh));
  max-width: none;
  transform: translate(-50%, -50%);
}
.opening-header, .opening-footer { position: absolute; inset-inline: 0; display: flex; align-items: center; justify-content: space-between; }
.opening-header { top: max(12px, env(safe-area-inset-top)); }
.opening-footer { bottom: max(22px, env(safe-area-inset-bottom)); }
.opening-link { display: inline-flex; align-items: center; justify-content: center; gap: .46em; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 13px; font-weight: 550; }
.opening-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.opening-scroll { position: absolute; left: 50%; width: 44px; transform: translateX(-50%); font-size: 23px; font-weight: 400; }
.opening-scroll:hover { text-decoration: none; color: var(--amber); }
.opening-replay { margin-left: auto; }
.opening-replay span { font-size: 19px; font-weight: 400; }
.opening-reveal { position: absolute; inset: 0; display: grid; place-items: center; padding: 54px var(--gutter); }
.opening-copy { min-width: 0; transform: translateY(clamp(-115px, -13svh, -42px)); text-align: center; }
.opening-copy h1 { font: 500 clamp(58px, min(9.6vw, 15.5svh), 144px)/1.06 var(--serif); letter-spacing: -.045em; white-space: nowrap; }
.opening-copy h1 span { display: block; }
.opening-copy p { margin-top: clamp(12px, 2.4vh, 24px); font-size: clamp(15px, 1.85vw, 23px); font-weight: 430; letter-spacing: .1em; }
.opening-motion .opening-reveal { clip-path: polygon(var(--keyboard-edge, 0% 100%, 100% 100%), 100% 100%, 0% 100%); }
.opening-motion .opening-copy { transform: translateY(calc(clamp(-16px, -1.8svh, -8px) * var(--copy-lift, 1))); }

.display-title { font: 500 clamp(46px, 7.1vw, 108px)/1.12 var(--serif); letter-spacing: -.055em; }
.display-title span { display: block; }
.band { padding-block: clamp(72px, 9vw, 148px); }
.band + .band, .band + .how, .how + .band { border-top: 1px solid var(--line); }
.chapter { display: flex; align-items: center; gap: .55em; color: var(--muted); font-size: 13px; font-weight: 620; letter-spacing: .16em; }
.chapter .dot { margin-right: .1em; }
.intro { padding-block: clamp(85px, 11vw, 170px) clamp(68px, 8vw, 128px); }
.intro-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(225px, 1fr); align-items: end; gap: clamp(24px, 5vw, 85px); margin-top: 19px; }
.intro-detail { max-width: 22em; padding-bottom: .55em; }
.intro-detail p + p { margin-top: .9em; }
.intro-detail, .how-intro p { color: var(--muted); font-size: clamp(16px, 1.45vw, 20px); line-height: 1.85; }
.opening-motion #promise { padding-top: clamp(34px, 4.2vw, 72px); }
#promise-title { margin-top: 19px; }
.intent-detail { max-width: 30em; margin-top: clamp(18px, 2.5vw, 34px); color: var(--muted); font-size: clamp(16px, 1.45vw, 20px); line-height: 1.85; }

.modes-demo { margin-top: clamp(46px, 6.6vw, 96px); padding-top: clamp(19px, 3.1vw, 41px); border-top: 1px solid var(--line); }
.modes-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; }
.modes-hint { color: var(--muted); font-size: 15px; }
.modes-source { margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 52em; }
.modes-label { display: block; color: #9a5c15; font-size: 12px; font-weight: 660; letter-spacing: .14em; margin-bottom: 4px; }
.mode-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); margin-top: clamp(22px, 3vw, 34px); border-top: 1px solid var(--line); }
.mode-tabs button { position: relative; padding: 18px 0 16px; border: 0; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.mode-tabs button::before { content: ''; position: absolute; top: -1px; inset-inline: 0 14%; height: 2px; background: transparent; }
.mode-tabs button[aria-pressed='true'] { color: var(--ink); }
.mode-tabs button[aria-pressed='true']::before { background: var(--amber); }
.mode-tabs button:hover { color: var(--ink); }
.mode-name { display: block; font: 500 clamp(20px, 1.9vw, 26px)/1.2 var(--serif); letter-spacing: -.02em; }
.mode-duration { display: block; margin-top: 3px; font-size: 12px; font-weight: 620; letter-spacing: .1em; }
.mode-desc { display: block; margin-top: 10px; font-size: 14px; line-height: 1.7; max-width: 15em; }
.mode-result { margin-top: clamp(26px, 3.6vw, 46px); }
.mode-out { margin-top: 14px; font: 500 clamp(26px, 3.4vw, 52px)/1.28 var(--serif); letter-spacing: -.045em; min-height: 2.56em; }
.mode-out span { display: block; }
.mode-result .chapter { display: flex; }

.film { margin-top: clamp(46px, 6.4vw, 104px); }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0a1430; }
.film-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 13px; padding-inline: var(--gutter); color: #c3cbea; font-size: 13px; }

.banners { background: linear-gradient(180deg, #173eae 0%, #12307f 100%); color: #fffdf7; padding-block: clamp(72px, 9vw, 148px) clamp(43px, 5.6vw, 85px); }
.banners-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: clamp(30px, 4.6vw, 66px); }
.banners-heading .display-title { font-size: clamp(40px, 5.9vw, 88px); margin-top: 16px; }
.banners-heading > p { max-width: 19em; color: #d3daf2; font-size: clamp(15px, 1.42vw, 19px); line-height: 1.8; }
.banners .chapter, .band-deep .chapter, .band-night .chapter { color: #d3daf2; }
.banner-art { width: 100%; height: clamp(252px, 30vw, 565px); object-fit: cover; background: #0b0b0b; }
.banner-caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 20px; margin-top: 16px; color: #fffdf7; font-size: 13px; }
.banner-terms { color: #d3daf2; font-size: 12px; }
.banner-quote { text-align: right; }
.banner-options { display: flex; flex-wrap: wrap; gap: 0 clamp(13px, 3vw, 40px); margin-top: 20px; border-top: 1px solid rgba(255, 253, 247, .32); }
.banner-options button { min-height: 46px; position: relative; padding: 2px 1px 0; border: 0; background: transparent; color: #d3daf2; cursor: pointer; font-size: 14px; }
.banner-options button:hover, .banner-options button[aria-pressed='true'] { color: #fffdf7; }
.banner-options button[aria-pressed='true']::before { content: ''; position: absolute; top: -1px; inset-inline: 0; height: 2px; background: var(--amber); }

.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.17fr); gap: clamp(28px, 6.6vw, 102px); padding-block: clamp(72px, 9vw, 148px); }
.how .display-title { font-size: clamp(40px, 5.5vw, 82px); margin-top: 16px; }
.how-intro p { max-width: 21em; margin-top: 15px; }
.how-details > div { display: grid; grid-template-columns: minmax(5em, .31fr) 1fr; gap: clamp(8px, 2vw, 25px); align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.how-details dt { font-weight: 670; }
.how-details dd { color: var(--muted); }
.step-no { display: block; margin-bottom: 3px; color: #9a5c15; font: 620 12px/1 var(--sans); letter-spacing: .12em; }
.how-foot { grid-column: 1 / -1; max-width: 48em; margin-top: clamp(24px, 3.4vw, 42px); padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.8; }

.vocab { margin-top: clamp(40px, 5.6vw, 78px); }
.vocab-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; padding-bottom: 12px; }
.vocab-head p:last-child { color: var(--muted); font-size: 15px; }
.vocab-rows { list-style: none; margin: 0; padding: 0; }
.vocab-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 16px; padding: 17px 0; border-top: 1px solid var(--line); }
.vocab-rows li:last-child { border-bottom: 1px solid var(--line); }
.vocab-term { font: 500 clamp(22px, 2.2vw, 30px)/1.3 var(--serif); letter-spacing: -.02em; }
.vocab-meta { grid-column: 1; color: var(--muted); font-size: 13px; }
.vocab-toggle { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-height: 40px; padding: 0 15px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 620; }
.vocab-toggle:hover { border-color: var(--ink); color: var(--ink); }
.vocab-rows li.is-off .vocab-term { color: #9c978c; text-decoration: line-through; text-decoration-thickness: 1px; }
.vocab-rows li.is-off .vocab-meta { color: #9c978c; }
.vocab-toggle[aria-pressed='true'] { border-color: var(--ink); color: var(--ink); }
.vocab-foot { margin-top: 16px; color: var(--muted); font-size: 14px; }

.band-deep { background: linear-gradient(180deg, #12307f 0%, #0b2359 100%); color: #fffdf7; padding-block: clamp(72px, 9vw, 148px); }
.band-night { background: linear-gradient(180deg, #0b2359 0%, #061634 100%); color: #fffdf7; padding-block: clamp(72px, 9vw, 148px); }
.band-deep .display-title, .band-night .display-title { font-size: clamp(40px, 6vw, 90px); margin-top: 16px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3.4vw, 52px); margin-top: clamp(38px, 5vw, 66px); }
.three > div { padding-top: 16px; border-top: 1px solid rgba(255, 253, 247, .3); }
.three h3 { font-size: 17px; font-weight: 650; letter-spacing: .01em; }
.three p { margin-top: 9px; color: #cfd7f0; font-size: 15px; line-height: 1.8; }
.pledges { margin-top: clamp(40px, 5.4vw, 76px); }
.pledges ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.pledges li { position: relative; padding-left: 1.55em; color: #eae6dc; font: 500 clamp(19px, 2vw, 26px)/1.55 var(--serif); letter-spacing: -.02em; }
.pledges li::before { content: ''; position: absolute; left: 0; top: .62em; width: .4em; height: .4em; border-radius: 50%; background: var(--amber); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(38px, 5vw, 66px); }
.split > div { padding-top: 16px; border-top: 1px solid rgba(255, 253, 247, .3); }
.split h3 { font-size: 17px; font-weight: 650; }
.split p { margin-top: 9px; color: #cfd7f0; font-size: 15px; line-height: 1.85; max-width: 24em; }
.split .inline-link { color: var(--amber); margin-top: 12px; }
.dawn { height: clamp(88px, 13vw, 190px); background: linear-gradient(180deg, #061634 0%, var(--paper) 100%); }

.download-lede { margin-top: 14px; color: var(--muted); font-size: 16px; }
.fact-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); padding-bottom: clamp(52px, 7vw, 92px); }
.fact-rows > div { padding-top: 14px; border-top: 1px solid var(--line); }
.fact-rows dt { color: var(--muted); font-size: 12px; font-weight: 660; letter-spacing: .12em; }
.fact-rows dd { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 22em; }
.inline-link { display: block; margin-top: 5px; color: var(--blue); width: fit-content; font-weight: 620; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.download-section { }
.download-inner { display: flex; align-items: end; justify-content: space-between; gap: 27px; padding-block: clamp(26px, 4vw, 52px) clamp(46px, 7vw, 95px); }
.download-title { display: flex; align-items: baseline; gap: .16em; margin-top: 7px; font: 500 clamp(41px, 6.25vw, 89px)/1.12 var(--serif); letter-spacing: -.06em; }
.download-title .dot { align-self: center; width: .32em; height: .32em; margin-right: .18em; }
.release-state { font-size: 18px; font-weight: 650; }
.release-detail { color: var(--muted); font-size: 15px; margin-top: 3px; }
.download-inner .button { margin-top: 10px; }
.download-inner .text-link { margin-top: 5px; }

.masthead { min-height: 73px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; gap: 12px; font-size: 14px; font-weight: 650; }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: #12378e; }
.text-link { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; gap: 7px; color: var(--blue); font-size: 14px; font-weight: 650; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.site-footer nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.site-footer nav a:hover { color: var(--blue); }
.subpage, .home { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; padding-block: 62px 76px; min-height: calc(100svh - 149px); }
.subpage > .text-link { margin-bottom: 14px; }
.subpage h1, .home h1 { margin-bottom: 19px; font: 500 clamp(40px, 6vw, 65px)/1.14 var(--serif); letter-spacing: -.05em; }
.subpage .intro, .home > p { font-size: 17px; color: var(--muted); padding: 0; margin-bottom: 24px; }
.subpage section, .subpage article { padding-block: 24px; border-top: 1px solid var(--line); }
.subpage h2 { margin-bottom: 7px; font-size: 21px; font-weight: 690; }
.subpage p, .subpage li { color: var(--muted); }
.subpage section p + p, .subpage article p + p { margin-top: 9px; }
.subpage ul, .subpage ol { margin-block: 6px; padding-inline-start: 24px; }
.subpage a:not(.button) { color: var(--blue); }
.subpage p a:hover { text-decoration: underline; }
.subpage .release-metadata { color: var(--muted); font-size: 14px; }
.subpage .checksum { overflow-wrap: anywhere; font-size: 12px; }
.home .button { margin-top: 5px; }

@media (max-width: 800px) {
  .intro-layout, .how { grid-template-columns: 1fr; }
  .intro-detail { max-width: 29em; padding-bottom: 0; }
  .banners-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .banners-heading > p { max-width: 26em; }
  .three { grid-template-columns: 1fr; gap: 20px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .fact-rows { grid-template-columns: 1fr; gap: 18px; }
  .mode-tabs { grid-template-columns: 1fr; border-top: 0; }
  .mode-tabs button { border-top: 1px solid var(--line); padding-block: 15px; }
  .mode-tabs button::before { inset-inline: 0 auto; width: 3.4em; }
  .mode-desc { max-width: none; }
  .mode-out { min-height: 0; }
}

@media (max-width: 640px) {
  .opening-reveal { padding-inline: 16px; }
  .opening-copy h1 { font-size: clamp(52px, 13.2vw, 86px); }
  .opening-copy p { margin-top: 13px; letter-spacing: .06em; }
  .opening-footer { bottom: max(14px, env(safe-area-inset-bottom)); }
  .wordmark { font-size: 13px; }
  .keyboard-poster { width: 90%; top: 70%; }
  .display-title, .band-deep .display-title, .band-night .display-title { font-size: clamp(38px, 9.8vw, 62px); }
  .intro-layout { gap: 19px; margin-top: 14px; }
  .mode-out { font-size: clamp(26px, 7.4vw, 40px); }
  .banners-heading .display-title { font-size: clamp(32px, 9vw, 54px); }
  .banner-art { height: clamp(235px, 69vw, 340px); }
  .banner-caption { grid-template-columns: minmax(0, 1fr); }
  .download-inner { align-items: flex-start; flex-direction: column; gap: 20px; }
  .how-details > div { grid-template-columns: 1fr; gap: 6px; }
  .vocab-rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .vocab-toggle { padding: 0 12px; font-size: 12px; }
  .pledges li { font-size: clamp(17px, 5vw, 22px); }
  .brand { font-size: 12px; }
  .site-footer nav a { font-size: 12px; }
  .subpage, .home { padding-block: 35px 55px; }
}

@media (max-height: 500px) {
  .opening { --opening-height: max(320px, 100svh); }
  .opening-copy h1 { font-size: clamp(38px, min(10vw, 14svh), 70px); }
  .opening-copy p { margin-top: 8px; font-size: clamp(13px, 2vw, 17px); }
  .opening-footer { bottom: max(6px, env(safe-area-inset-bottom)); }
  .opening-motion #promise { padding-top: 18px; }
  .opening-motion #promise-title { margin-top: 11px; }
}
