/* Lucubra — lucubra.pages.dev. "Fresco by day, lamplight by night."
   Tokens follow the app's Theme.swift. One motif: the tabula ansata (the Roman inscription tablet with dovetail
   handles) is the hero, the photo masks, the buttons, the bullets and the band. Built by tools/site-build.py. */

@font-face { font-family: "Alegreya"; src: url(/fonts/alegreya-regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url(/fonts/alegreya-medium.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url(/fonts/alegreya-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url(/fonts/cinzel-medium.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #EFE8DC; --surface: #F8F4EC; --raised: #E6DCCB;
  --ink: #1D1712; --soft: #625444;
  --red: #9C2F25; --red-ink: #8E2A21; --on-red: #FFF7EC;
  --gold: #B0863A; --gold-ink: #765614;
  --verd: #2C665C; --olive: #4C6326; --tyr: #6A2C5A;
  --night: #1E1610; --on-night: #F5E9D4; --on-night-soft: #CDB99A;
  --flame: #E9A23B;
  /* fields that stay the same in both appearances: the fresco red, the verdigris and Tyrian panels */
  --fresco: #9C2F25; --fresco-deep: #8A281F; --fresco-gilt: #F1CF8C;
  --verd-field: #2C665C; --tyr-field: #6A2C5A;
  --scene-off: #E6DCCB; --scene-on: #1E1610;
  --ui-bg: var(--surface); --ui-raised: var(--raised);

  --serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --caps: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  /* five sizes */
  --t0: clamp(60px, 9.4vw, 156px);
  --t1: clamp(50px, 6.4vw, 104px);
  --t2: clamp(29px, 3vw, 46px);
  --t3: clamp(18px, 1.3vw, 20px);
  --t4: 16px;

  --m: clamp(16px, 3.4vw, 56px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(112px, 13vw, 200px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms; --t-reveal: 850ms;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #110D0A; --surface: #1B1612; --raised: #2A221B;
    --ink: #F1E6D2; --soft: #BBAA90;
    --red: #E2725E; --red-ink: #EE8D79; --on-red: #1A0E0B;
    --gold: #E2B460; --gold-ink: #E4BE70;
    --verd: #7CC2B3; --olive: #A9BC6E; --tyr: #CF95C1;
    --night: #271E17; --flame: #F0B04E;
    --fresco: #8E2A21; --fresco-deep: #7E241C;
    --verd-field: #1F4943; --tyr-field: #4E2043;
    --scene-off: #241D17; --scene-on: #0B0806;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #110D0A; --surface: #1B1612; --raised: #2A221B;
  --ink: #F1E6D2; --soft: #BBAA90;
  --red: #E2725E; --red-ink: #EE8D79; --on-red: #1A0E0B;
  --gold: #E2B460; --gold-ink: #E4BE70;
  --verd: #7CC2B3; --olive: #A9BC6E; --tyr: #CF95C1;
  --night: #271E17; --flame: #F0B04E;
  --fresco: #8E2A21; --fresco-deep: #7E241C;
  --verd-field: #1F4943; --tyr-field: #4E2043;
  --scene-off: #241D17; --scene-on: #0B0806;
  color-scheme: dark;
}

/* ---------------------------------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: var(--t3);
  line-height: 1.5; font-kerning: normal; font-variant-numeric: oldstyle-nums proportional-nums; overflow-x: clip;
  transition: background-color .5s ease, color .5s ease; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
p, li { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: .07em; text-underline-offset: .18em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
cite { font-style: italic; }
::selection { background: var(--gold); color: #1D1712; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 20; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { top: 12px; }
.nums { font-variant-numeric: lining-nums tabular-nums; }
.wrap { width: 100%; max-width: 1720px; margin-inline: auto; padding-inline: var(--m); }

.display { font-family: var(--serif); font-weight: 500; font-size: var(--t1); line-height: .95; letter-spacing: -.025em; }
.head { font-family: var(--caps); font-weight: 500; font-size: var(--t2); line-height: 1.08; letter-spacing: .01em; text-wrap: balance; }
.lead { font-size: clamp(19px, 1.45vw, 23px); line-height: 1.45; max-width: 36ch; }
.caption { font-family: var(--ui); font-size: var(--t4); line-height: 1.4; color: var(--soft); }
.free { font-family: var(--ui); font-size: 15px; font-weight: 600; color: var(--olive); white-space: nowrap; }
.text-link { font-family: var(--ui); font-size: var(--t4); font-weight: 600; color: var(--red-ink); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover); }
@media (hover: hover) and (pointer: fine) { .text-link:hover { text-decoration-color: currentColor; } }

/* the motif as a clip: landscape (handles left and right) and portrait (handles top and bottom) */
.shape-h { clip-path: polygon(11% 0, 89% 0, 89% 43%, 100% 20%, 100% 80%, 89% 57%, 89% 100%, 11% 100%, 11% 57%, 0 80%, 0 20%, 11% 43%); }
.shape-v { clip-path: polygon(0 9%, 43% 9%, 20% 0, 80% 0, 57% 9%, 100% 9%, 100% 91%, 57% 91%, 80% 100%, 20% 100%, 43% 91%, 0 91%); }

/* buttons: flat, cut to the tablet's shape */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 40px;
  font-family: var(--ui); font-size: 17px; font-weight: 600; text-decoration: none; background: var(--fresco); color: #FFF7EC;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.btn--ansate { clip-path: polygon(16px 0, calc(100% - 16px) 0, calc(100% - 16px) 36%, 100% 6%, 100% 94%, calc(100% - 16px) 64%, calc(100% - 16px) 100%, 16px 100%, 16px 64%, 0 94%, 0 6%, 16px 36%); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--small { min-height: 44px; padding: 10px 22px; font-size: 15px; background: var(--on-night); color: #1E1610; }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--fresco-deep); }
  .btn--ink:hover { background: var(--soft); }
  .btn--small:hover { background: var(--fresco-gilt); }
}
.soon { font-family: var(--ui); font-size: var(--t4); font-weight: 600; line-height: 1.3; }
.soon--link { text-decoration: underline; }
.badge { display: inline-block; transition: transform var(--t-press) var(--ease-out); }
.badge:active { transform: scale(.97); }
.badge__img { width: 150px; height: 50px; }
.badge__img--white { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge__img--black { display: none; } :root:not([data-theme="light"]) .badge__img--white { display: block; } }
:root[data-theme="dark"] .badge__img--black { display: none; }
:root[data-theme="dark"] .badge__img--white { display: block; }

/* ---------------------------------------------------------------------------------------------- bar */
.bar { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.bar--over { position: absolute; top: 0; left: 0; right: 0; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--caps); font-weight: 500; font-size: 26px; letter-spacing: .04em; }
.wordmark__lamp { width: 17px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-family: var(--ui); font-size: 15px; font-weight: 500; }
.nav a { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { text-decoration-color: currentColor; } }
.lampbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 0; background: var(--ink); color: var(--paper);
  font-family: var(--ui); font-size: 14px; font-weight: 600; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover); }
.lampbtn:active { transform: scale(.96); }
.flame-i { width: 11px; height: 15px; fill: var(--flame); }
.lampbtn[aria-pressed="true"] .flame-i { animation: flicker-i 2.4s ease-in-out infinite; }
@keyframes flicker-i { 0%, 100% { transform: scale(1); } 40% { transform: scale(.92, 1.06); } 70% { transform: scale(1.04, .96); } }
@media (max-width: 767px) { .nav__wide { display: none; } .wordmark { font-size: 22px; } .head { font-size: 26px; } }

/* ---------------------------------------------------------------------------------------------- hero */
.hero { position: relative; min-height: max(100svh, 640px); display: flex; align-items: center; overflow: clip; }
.hero__stage { position: absolute; inset: 0; }
.hero__tablet, .hero__inscription { position: absolute; left: 47vw; top: 52%; width: 86vw; aspect-ratio: 1000 / 560; transform: translateY(-50%); }
.tablet { overflow: visible; }
.hero__tablet { max-width: none; }
.tablet__plate { fill: var(--fresco); transition: fill .5s ease; }
.tablet__field { fill: var(--fresco-deep); }
.hero__inscription { left: calc(47vw + 86vw * .11); width: calc(53vw - 86vw * .11); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2vw; }
.hero__lamp { position: relative; width: clamp(110px, 10.5vw, 190px); }
.lamp { position: relative; display: block; }
.lamp__body { width: 100%; }
.lamp__flame { position: absolute; inset: 0; width: 100%; transform-origin: 50% var(--wick, 27%); }
.glow { position: absolute; left: 50%; top: 12%; width: 260%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(240 176 78 / .62), rgb(240 176 78 / .24) 42%, rgb(240 176 78 / 0) 72%); /* taste-skill-ignore: the lamp's warm glow is part of the brand */
  pointer-events: none; }
.carve { font-family: var(--caps); font-weight: 500; font-size: clamp(40px, 5.3vw, 92px); line-height: 1; letter-spacing: .07em; color: var(--fresco-gilt); padding-left: .07em; }
.hero__text { position: relative; z-index: 2; padding-top: 76px; }
.hero__text .display { max-width: 6.6em; }
.hero__text .lead { margin-top: 36px; max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 40px; }

@media (prefers-reduced-motion: no-preference) {
  .glow { animation: glow 3.8s ease-in-out infinite; }
  .lamp__flame { animation: flame 2.9s ease-in-out infinite; }
}
@keyframes glow { 0%, 100% { opacity: 1; scale: 1; } 30% { opacity: .82; scale: .96; } 55% { opacity: .95; scale: 1.03; } 78% { opacity: .86; scale: .98; } }
@keyframes flame { 0%, 100% { transform: scale(1, 1); } 25% { transform: scale(.97, 1.035) rotate(-.6deg); } 50% { transform: scale(1.02, .98); } 75% { transform: scale(.985, 1.02) rotate(.5deg); } }

@media (max-width: 767px) {
  .hero { align-items: flex-start; min-height: max(100svh, 680px); }
  .hero__tablet, .hero__inscription { left: 50%; top: auto; bottom: -14vw; width: 172vw; transform: translateX(-50%); }
  .hero__inscription { width: 100vw; height: calc(172vw * .56); aspect-ratio: auto; transform: translateX(-50%); gap: 4vw; padding-top: 4vw; justify-content: flex-start; }
  .hero__lamp { width: 24vw; }
  .carve { font-size: 12vw; }
  .hero__text { padding-top: 15svh; }
  .hero__text .display { font-size: 11.5vw; }
  .hero__text .lead { margin-top: 20px; font-size: 17px; }
  .actions { margin-top: 26px; gap: 14px 20px; }
  .btn { padding-inline: 32px; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .hero { align-items: flex-start; min-height: max(100svh, 900px); }
  .hero__tablet, .hero__inscription { left: 50%; top: auto; bottom: -8vw; width: 124vw; transform: translateX(-50%); }
  .hero__inscription { width: 100vw; height: calc(124vw * .56); aspect-ratio: auto; justify-content: flex-start; padding-top: 5vw; gap: 3vw; }
  .hero__lamp { width: 15vw; }
  .carve { font-size: 9vw; }
  .hero__text { padding-top: 14svh; }
  .hero__text .display { font-size: 9vw; }
}

/* the tessera row, the app's divider */
.tesserae { overflow: hidden; height: 16px; margin-block: 0; }
.tesserae svg { height: 16px; width: auto; max-width: none; }
.t-red { fill: var(--fresco); } .t-gold { fill: var(--gold); } .t-verd { fill: var(--verd-field); } .t-ink { fill: var(--ink); }
.t-paper { fill: var(--raised); } .t-tyr { fill: var(--tyr-field); }

/* ---------------------------------------------------------------------------------------------- tap any word */
.words { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); overflow-x: clip;
  padding-block: clamp(72px, 8vw, 120px); align-items: center; }
.words__stage { grid-column: 5 / 13; grid-row: 1; position: relative; align-self: stretch; min-height: min(92svh, 860px); }
.words__tablet { position: absolute; left: 40%; top: 52%; height: min(56svh, 540px); aspect-ratio: 1000 / 700; translate: -50% -50%; }
.words__tablet .tablet { width: 100%; height: 100%; }
.words__tablet .tablet__plate { transition: fill .3s ease; }
.tint-red .tablet__plate { fill: var(--fresco); }
.tint-verd .tablet__plate { fill: var(--verd-field); }
.tint-gold .tablet__plate { fill: var(--gold); }
.tint-tyr .tablet__plate { fill: var(--tyr-field); }
.words__device { position: absolute; left: 40%; top: 50%; translate: -50% -50%; width: auto; height: min(80svh, 760px); }
.words__fact { position: absolute; right: 0; bottom: 6%; width: 19ch; font-family: var(--ui); font-size: var(--t4); line-height: 1.45; color: var(--soft); }
.words__en { display: block; font-family: var(--serif); font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.words__list { grid-column: 1 / 5; grid-row: 1; align-self: center; position: relative; z-index: 2; }
.wl__head { font-family: var(--caps); font-weight: 500; font-size: var(--t2); line-height: 1.15; color: var(--soft); letter-spacing: .01em; }
.wl { margin-top: 6px; }
.wl__w { display: inline-block; border: 0; background: none; padding: 0 0 2px; margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: var(--t2); line-height: 1.15; color: var(--soft); text-decoration: underline; text-decoration-thickness: 3px;
  text-underline-offset: .16em; text-decoration-color: transparent; transition: color var(--t-hover), text-decoration-color var(--t-hover), transform var(--t-press) var(--ease-out); }
.wl__w.is-on { color: var(--ink); text-decoration-color: var(--red); }
.wl__w:active { transform: translateX(4px); }
@media (hover: hover) and (pointer: fine) { .wl__w:hover { color: var(--ink); } }
.words__note { margin-top: 32px; font-size: var(--t4); max-width: 36ch; line-height: 1.5; }
.card { transition: opacity .3s ease; }
.card.is-swapping { opacity: 0; }

@media (max-width: 1099px) {
  .words { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-top: 96px; }
  .words__stage { min-height: 0; height: auto; display: grid; justify-items: center; padding-top: 40px; }
  .words__tablet { position: relative; left: auto; top: auto; translate: none; width: min(92vw, 720px); height: auto; grid-area: 1 / 1; align-self: end; margin-bottom: 8vw; }
  .words__device { position: relative; left: auto; top: auto; translate: none; height: auto; width: min(70vw, 330px); grid-area: 1 / 1; margin-bottom: 0; }
  .words__fact { position: static; width: auto; margin-top: 28px; justify-self: start; }
  .words__list { order: -1; padding: 0; }
  .wl__head { font-size: 26px; }
  .wl { display: flex; flex-wrap: wrap; gap: 0 18px; padding-top: 4px; }
  .wl__w { font-size: 26px; min-height: 44px; }
}

/* ---------------------------------------------------------------------------------------------- the device */
.device { position: relative; width: 300px; aspect-ratio: 390 / 844; padding: 9px; border-radius: 46px; background: #15100C; margin: 0; }
.device__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--ui-bg); }
.device__media { width: 100%; height: 100%; object-fit: cover; }
.device--dark .device__screen { background: #110D0A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .device { background: #3A2F26; } }
:root[data-theme="dark"] .device { background: #3A2F26; }

/* app fragments (the app's own layout, system type) */
.ui { height: 100%; font-family: var(--ui); font-size: 14px; line-height: 1.35; padding: 46px 16px 16px; overflow: hidden;
  --u-bg: #EFE8DC; --u-card: #F8F4EC; --u-raised: #E6DCCB; --u-ink: #1D1712; --u-soft: #625444; --u-red: #8E2A21; --u-fill: #9C2F25; --u-gold: #765614; --u-goldf: #B0863A;
  --u-verd: #2C665C; --u-olive: #4C6326; --u-tyr: #6A2C5A; background: var(--u-bg); color: var(--u-ink); }
.ui--dark { --u-bg: #110D0A; --u-card: #1B1612; --u-raised: #2A221B; --u-ink: #F1E6D2; --u-soft: #BBAA90; --u-red: #EE8D79; --u-fill: #E2725E; --u-gold: #E4BE70; --u-goldf: #E2B460;
  --u-verd: #7CC2B3; --u-olive: #A9BC6E; --u-tyr: #CF95C1; }
.ui--card { --u-bg: var(--paper); --u-card: var(--surface); --u-raised: var(--raised); --u-ink: var(--ink); --u-soft: var(--soft); --u-red: var(--red-ink); --u-fill: var(--red);
  --u-gold: var(--gold-ink); --u-goldf: var(--gold); --u-verd: var(--verd); --u-olive: var(--olive); --u-tyr: var(--tyr); padding-top: 44px; }
.ui__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.ui__title { font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: -.01em; }
.ui__latin { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--u-red); }
.ui__inter { display: flex; flex-wrap: wrap; gap: 10px 9px; padding: 14px 12px; background: var(--u-card); border-radius: 12px; }
.ui__inter .iw { display: inline-flex; flex-direction: column; }
.ui__inter .iw__l { font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.ui__inter .iw__e { font-size: 13px; color: var(--u-red); }
.ui__trans { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--u-soft); }
.ui__unit, .ui__shelf { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 12px; margin-bottom: 8px; background: var(--u-card); border-radius: 12px; }
.ui__unit-t { font-weight: 600; font-size: 14px; }
.ui__unit-l { grid-column: 1; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--u-red); }
.ui__count { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 13px; color: var(--u-soft); }
.ui__tiles { grid-column: 1 / 3; display: flex; gap: 3px; margin-top: 6px; }
.ui__tiles i { width: 11px; height: 11px; background: var(--u-raised); }
.ui__tiles i:nth-child(-n+3) { background: var(--u-goldf); }
.ui__sub { color: var(--u-soft); margin-bottom: 8px; }
.ui__big { font-family: var(--serif); font-size: 64px; line-height: 1.1; text-align: center; margin: 24px 0; font-variant-numeric: lining-nums; }
.ui__opts { display: grid; gap: 8px; }
.ui__opts span { padding: 12px; background: var(--u-card); border-radius: 12px; font-family: var(--caps); font-size: 16px; text-align: center; letter-spacing: .04em; }
.ui__opts span:first-child { outline: 2px solid var(--u-olive); outline-offset: -2px; }
.ui__timer { height: 6px; margin-top: 18px; background: var(--u-raised); }
.ui__timer i { display: block; width: 62%; height: 100%; background: var(--u-fill); }
.ui__coins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; text-align: center; font-size: 12.5px; }
.ui__coin i { display: block; width: 58px; height: 58px; margin: 0 auto 6px; border-radius: 50%; background: #A86A3C; border: 4px solid #7E4C26; }
.ui__coin--silver i { background: #B9BCC0; border-color: #8C9096; }
.ui__coin--gold i { background: #E2B460; border-color: #A87B26; }

/* the word card */
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card__form { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.05; }
.card__ipa { font-size: 13px; color: var(--u-soft); }
.card__syl { font-family: var(--serif); font-size: 15px; margin-right: 4px; color: var(--u-ink); }
.card__syl b { font-weight: 500; color: var(--u-red); text-decoration: underline; text-underline-offset: 3px; }
.card__lemma { margin-top: 6px; font-family: var(--serif); font-size: 17px; color: var(--u-red); }
.card__pos { font-family: var(--ui); font-size: 13px; color: var(--u-soft); }
.card__here { margin-top: 12px; padding: 9px 11px; background: var(--u-card); border-radius: 10px; font-weight: 600; }
.card__here span { display: block; font-size: 12.5px; font-weight: 500; color: var(--u-soft); }
.card__parse { margin-top: 10px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.chip { padding: 3px 8px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.chip--case { --c: var(--u-verd); } .chip--tense { --c: var(--u-red); } .chip--mood { --c: var(--u-gold); }
.chip--voice { --c: var(--u-olive); } .chip--num { --c: var(--u-soft); } .chip--gender { --c: var(--u-tyr); }
.card__def { margin-top: 10px; color: var(--u-soft); }
.card__table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13.5px; background: var(--u-card); border-radius: 10px; overflow: hidden; }
.card__table caption { text-align: left; font-size: 12.5px; color: var(--u-soft); padding-bottom: 4px; caption-side: top; }
.card__table th { text-align: left; font-weight: 500; color: var(--u-soft); padding: 4px 8px; font-size: 12.5px; }
.card__table td { font-family: var(--serif); font-size: 15px; padding: 4px 8px; border-top: 1px solid var(--u-raised); }
.card__table td.on { outline: 2px solid var(--u-fill); outline-offset: -2px; font-weight: 500; color: var(--u-red); }
.card__note { margin-top: 8px; font-size: 13px; color: var(--u-soft); }
.card__note [lang="la"] { font-family: var(--serif); font-style: italic; font-size: 15px; }

/* ---------------------------------------------------------------------------------------------- the interlinear scene */
.scene { position: relative; --bg: var(--scene-off); --fg: var(--ink); --fg-soft: var(--soft); --gloss: var(--red-ink);
  background: var(--bg); color: var(--fg); transition: background-color .35s ease, color .35s ease; }
.scene.is-on { --bg: var(--scene-on); --fg: var(--on-night); --fg-soft: var(--on-night-soft); --gloss: #F0B04E; }
.scene__stage { position: relative; min-height: max(100svh, 700px); overflow: hidden; display: flex; align-items: flex-start; }
.scene__glow { position: absolute; left: 12%; top: 46%; width: 70vw; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(240 176 78 / .26), rgb(240 176 78 / .08) 50%, rgb(240 176 78 / 0) 75%); /* taste-skill-ignore: the lamp's glow on the night field */
  opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.scene.is-on .scene__glow { opacity: 1; }
.scene__text { position: relative; z-index: 1; padding-block: clamp(72px, 12svh, 128px) 96px; }
.scene__p { margin-top: 20px; max-width: 40ch; color: var(--fg-soft); transition: color .35s ease; }
.verse { margin-top: clamp(40px, 6svh, 72px); max-width: min(60vw, 1060px); font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.5vw, 44px); line-height: 1.1; }
.verse__line { display: flex; flex-wrap: wrap; gap: 0 .34em; margin-bottom: .5em; }
.iw { display: inline-flex; flex-direction: column; }
.iw__e { font-family: var(--ui); font-size: 16px; font-weight: 500; line-height: 1.3; min-height: 1.3em; margin-top: 4px; color: var(--gloss);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), color .35s ease; }
.scene:not(.is-on) .iw__e { opacity: 0; transform: translateY(-6px); }
.scene.is-scrub .iw:not(.is-shown) .iw__e { opacity: 0; transform: translateY(-6px); }
.scene__trans { margin-top: 28px; max-width: 46ch; font-family: var(--ui); font-size: var(--t4); color: var(--fg-soft); transition: opacity .6s ease, color .35s ease; }
.scene__trans span { display: block; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--fg); margin-bottom: 4px; }
.scene:not(.is-on) .scene__trans, .scene.is-scrub:not(.is-done) .scene__trans { opacity: 0; }
.scene__control { position: absolute; right: -5vw; bottom: -7svh; font-size: min(44svh, 29vw); display: flex; flex-direction: column; align-items: flex-start; z-index: 1; }
.switch__label { font-family: var(--ui); font-weight: 600; font-size: .15em; line-height: 1.2; margin: 0 0 .12em .06em; color: var(--fg); transition: color .35s ease; }
.switch { position: relative; width: 1.65em; height: 1em; border-radius: .5em; border: 0; padding: 0; font-size: 1em; background: #D6C9B4;
  transition: background-color .45s ease; }
.switch__thumb { position: absolute; top: .065em; left: .065em; width: .87em; height: .87em; border-radius: 50%; background: #FFFDF8;
  transition: transform .45s var(--ease-out); }
.switch[aria-checked="true"] { background: #E9A23B; }
.switch[aria-checked="true"] .switch__thumb { transform: translateX(.65em); }
.switch:focus-visible { outline-width: .02em; outline-offset: .02em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .switch { background: #3B3129; } }
:root[data-theme="dark"] .switch { background: #3B3129; }
.switch[aria-checked="true"] { background: #E9A23B !important; }

/* pinned: the scene holds for two screens and the meanings arrive word by word */
.is-pinning .scene { height: 250svh; }
.is-pinning .scene__stage { position: sticky; top: 0; height: 100svh; min-height: 0; }

@media (max-width: 767px) {
  .verse { max-width: none; font-size: 26px; }
  .scene__text { padding-block: 88px 46svh; }
  .scene__control { font-size: 34vw; right: -8vw; bottom: -5vw; }
}

/* ---------------------------------------------------------------------------------------------- reading aids */
.reader { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center;
  padding-right: var(--m); margin-block: var(--section); max-width: 1720px; margin-inline: auto; }
.reader__photo { grid-column: 1 / 6; height: min(80svh, 860px); margin-left: -12%; overflow: hidden; }
.reader__img { height: 108%; margin-top: -4%; }
.reader__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.reader__text { grid-column: 7 / 13; }
.reader__p { margin-top: 20px; max-width: 46ch; }
.pts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.pts__col { display: grid; gap: 40px; align-content: start; }
.pt__t { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.25; display: flex; gap: 9px; align-items: baseline; }
.pt p { margin-top: 6px; font-size: var(--t4); line-height: 1.45; color: var(--soft); }
.bul { flex: none; width: 1.15em; height: .64em; }
.bul--red path { fill: var(--red); } .bul--verd path { fill: var(--verd); } .bul--gold path { fill: var(--gold); } .bul--tyr path { fill: var(--tyr); }
.reader .caption { margin-top: 48px; max-width: 52ch; }
@media (max-width: 1099px) { .pts { grid-template-columns: 1fr 1fr; } .pts__col { display: contents; } }
@media (max-width: 767px) {
  .reader { display: block; padding: 0; }
  .reader__photo { width: 82vw; height: min(60svh, 520px); margin-left: -6vw; }
  .reader__text { padding-inline: var(--m); margin-top: 48px; }
  .pts { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .pt__t { margin-left: -1.6em; }
  .pt__t .bul { width: 1.1em; }
  .pt { padding-left: 1.6em; }
}

/* ---------------------------------------------------------------------------------------------- fresco and lamplight */
.themes { margin-block: var(--section); overflow-x: clip; }
.themes__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.themes__head h2 { grid-column: 1 / 8; }
.themes__head p { grid-column: 9 / 13; max-width: 44ch; }
.themes__stage { position: relative; margin-top: 64px; height: clamp(560px, 72svh, 760px); }
.themes__day, .themes__night { position: absolute; top: 9%; bottom: 9%; width: 100%; }
.themes__day { clip-path: polygon(11% 0, 50% 0, 50% 100%, 11% 100%, 11% 57%, 0 80%, 0 20%, 11% 43%); }
.themes__day img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.themes__night { background: #1E1610; clip-path: polygon(50% 0, 89% 0, 89% 43%, 100% 20%, 100% 80%, 89% 57%, 89% 100%, 50% 100%); overflow: hidden; }
.glow--big { left: 70%; top: 50%; width: 46vw; }
.themes__phones { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: clamp(24px, 6vw, 120px); }
.themes__phones > div { height: 100%; }
.themes__phones > div { height: 88%; }
.themes__phones .device { height: 100%; width: auto; }
.themes__cap { margin-top: 20px; }
@media (max-width: 767px) {
  .themes__head { display: block; } .themes__head p { margin-top: 18px; }
  .themes__stage { height: auto; margin-top: 40px; padding-block: 40px; }
  .themes__day, .themes__night { top: 0; bottom: 0; }
  .themes__phones { position: relative; gap: 3vw; }
  .themes__phones > div { width: 44vw; }
  .themes__phones .device { width: 100%; height: auto; padding: 5px; border-radius: 26px; }
  .themes__phones .device__screen { border-radius: 22px; }
  .themes__phones .ui { transform: scale(.62); transform-origin: 0 0; width: 161%; height: 161%; }
}

/* ---------------------------------------------------------------------------------------------- the course */
.course { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-block: var(--section); }
.course__main { grid-column: 1 / 9; }
.course__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.course__count { font-family: var(--ui); font-size: var(--t4); font-weight: 600; white-space: nowrap; }
.course__p { margin-top: 20px; max-width: 58ch; }
.units { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; margin-top: 56px; }
.unit { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; }
.unit__tile { display: grid; place-items: center; height: 52px; padding-inline: 14px; color: #FFF7EC; font-family: var(--serif); font-weight: 500; font-size: 16px; white-space: nowrap;
  clip-path: polygon(14% 0, 86% 0, 86% 38%, 100% 10%, 100% 90%, 86% 62%, 86% 100%, 14% 100%, 14% 62%, 0 90%, 0 10%, 14% 38%); transition: transform var(--t-ui) var(--ease-out); }
.unit__tile.tint-red { background: var(--fresco); } .unit__tile.tint-verd { background: var(--verd-field); } .unit__tile.tint-gold { background: #8A6424; }
.unit__tile.tint-tyr { background: var(--tyr-field); } .unit__tile.tint-olive { background: #4C6326; }
@media (hover: hover) and (pointer: fine) { .unit:hover .unit__tile { transform: rotate(-3deg) scale(1.04); } }
.unit__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.unit__t { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.25; }
.unit__n { font-family: var(--ui); font-size: 15px; font-weight: 500; color: var(--soft); white-space: nowrap; }
.unit__sum { margin-top: 4px; font-size: var(--t4); line-height: 1.45; color: var(--soft); max-width: 38ch; }
.unit__latin { margin-top: 4px; font-style: italic; font-size: var(--t4); color: var(--red-ink); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.course__side { grid-column: 10 / 13; }
.course__sticky { position: sticky; top: 40px; display: grid; justify-items: center; gap: 28px; }
.course__sticky .device { width: min(100%, 290px); }
.course__pic { width: 100%; aspect-ratio: 1 / 1.08; overflow: hidden; }
.course__pic img { width: 100%; height: 100%; object-fit: cover; }
.course__sticky .caption { justify-self: start; margin-top: -12px; }
@media (max-width: 1099px) { .course__main { grid-column: 1 / 13; } .course__side { grid-column: 1 / 13; margin-top: 64px; } .course__sticky { position: static; grid-template-columns: 1fr 1fr; align-items: center; } }
@media (max-width: 767px) {
  .units { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .unit { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .unit__tile { height: 44px; font-size: 15px; padding-inline: 10px; }
  .course__head { flex-direction: column; gap: 8px; }
  .course__sticky { grid-template-columns: 1fr; }
  .course__sticky .device { width: min(76vw, 300px); }
}

/* ---------------------------------------------------------------------------------------------- the library */
.library { margin-block: var(--section); }
.library__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.library__intro { grid-column: 1 / 6; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; }
.library__intro h2, .library__intro p { grid-column: 1 / 3; }
.library__intro p { margin-top: 20px; max-width: 44ch; }
.library__device { grid-column: 1 / 3; margin-top: 48px; }
.library__device .device { width: 260px; }
.library__mosaic { grid-column: 7 / 13; }
.shutter { overflow: hidden; aspect-ratio: 1000 / 820; }
.shutter img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.library__mosaic .caption { margin-top: 16px; }
.poster { margin-top: clamp(80px, 9vw, 140px); }
.poster__row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.poster__name { font-family: var(--caps); font-weight: 500; font-size: var(--t0); line-height: .98; letter-spacing: .015em; transition: color var(--t-hover) ease; }
.poster__fact { font-family: var(--ui); font-size: 18px; color: var(--soft); text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.poster__fact .free { margin-left: 8px; }
@media (hover: hover) and (pointer: fine) { .poster__row:hover .poster__name { color: var(--red-ink); } }
@media (max-width: 1099px) { .library__intro { grid-column: 1 / 13; } .library__mosaic { grid-column: 1 / 13; margin-top: 56px; } .library__device { display: none; } }
@media (max-width: 767px) {
  .poster__row { display: block; margin-bottom: 22px; }
  .poster__name { display: block; font-size: 11.6vw; }
  .poster__fact { display: block; text-align: left; font-size: 15px; margin-top: 6px; }
}

/* ---------------------------------------------------------------------------------------------- games */
.games { background: var(--verd-field); color: #F5EEDF; }
.games__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); grid-template-rows: auto 1fr auto;
  min-height: max(88svh, 820px); padding-block: clamp(80px, 9vw, 128px) clamp(56px, 6vw, 88px); }
.games__top { grid-column: 1 / 8; }
.games__p { margin-top: 18px; max-width: 46ch; }
.games__list { margin-top: 28px; display: grid; gap: 8px; font-size: var(--t4); }
.games__list li { max-width: 60ch; }
.g__t { font-weight: 500; font-size: 18px; }
.g__s { color: #D5E3DC; }
.games .free { color: #F1CF8C; margin-left: 6px; }
.numeral { margin-top: 40px; width: min(420px, 100%); padding: 16px 18px; background: #F8F4EC; color: #1D1712; border-radius: 14px; font-family: var(--ui); }
.numeral label { display: block; font-size: 15px; font-weight: 600; }
.numeral__row { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.numeral input[type="range"] { flex: 1; accent-color: #9C2F25; min-height: 44px; }
.numeral input[type="number"] { width: 88px; min-height: 44px; padding: 8px 10px; border: 2px solid #D6C9B4; border-radius: 9px; background: #fff; color: #1D1712; font-size: 17px; font-variant-numeric: tabular-nums; }
.games__device { grid-column: 9 / 13; grid-row: 1 / 3; justify-self: end; align-self: start; }
.games__device .device { width: 280px; }
.games__figure { grid-column: 1 / 13; grid-row: 3; align-self: end; margin-top: 48px; font-family: var(--caps); font-weight: 500; line-height: .8; letter-spacing: .02em;
  font-size: var(--fig, clamp(72px, 13vw, 230px)); white-space: nowrap; color: #F1CF8C; font-variant-numeric: lining-nums; }
.games__how { grid-column: 9 / 13; grid-row: 3; align-self: end; justify-self: end; max-width: 32ch; font-family: var(--ui); font-size: var(--t4); color: #D5E3DC; margin-top: 24px; }
.games__figure { grid-column: 1 / 9; }
@media (max-width: 1099px) { .games__top { grid-column: 1 / 9; } .games__device { grid-column: 9 / 13; } .games__device .device { width: 230px; } }
@media (max-width: 767px) {
  .games__grid { display: block; min-height: 0; }
  .games__device { display: none; }
  .games__figure { margin-top: 64px; font-size: var(--fig-phone, 26vw); }
  .games__how { margin-top: 20px; max-width: none; }
}

/* ---------------------------------------------------------------------------------------------- honours */
.honours { margin-block: var(--section); }
.band { padding-inline: var(--m); }
.band__plate { position: relative; height: clamp(84px, 9vw, 150px); }
.band__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.band__svg .tablet__plate { fill: var(--fresco); }
.band__text { position: absolute; left: 0; right: 0; top: 0; bottom: 0; overflow: hidden; display: flex; align-items: center; white-space: nowrap;
  font-family: var(--caps); font-weight: 500; font-size: clamp(26px, 3.4vw, 58px); letter-spacing: .06em; color: var(--fresco-gilt); }
.band__text > span { display: block; white-space: nowrap; }
.honours__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(72px, 8vw, 120px); align-items: start; }
.honours__text { grid-column: 1 / 8; }
.honours__text > p { margin-top: 20px; max-width: 52ch; }
.ladder { margin-top: 24px; font-family: var(--ui); font-size: var(--t4); }
.ladder summary { cursor: pointer; font-weight: 600; color: var(--red-ink); min-height: 44px; display: flex; align-items: center; width: max-content; }
.ladder ol { columns: 3; column-gap: 32px; margin-top: 12px; }
.ladder li { break-inside: avoid; padding: 3px 0; }
.ladder li span:first-child { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.ladder li span:last-child { color: var(--soft); }
.honours__tabula { margin-top: 56px; max-width: 760px; overflow: hidden; }
.honours__tabula .caption { margin-top: 12px; }
.honours__device { grid-column: 9 / 13; justify-self: end; }
@media (max-width: 767px) {
  .honours__grid { display: block; }
  .ladder ol { columns: 2; }
  .honours__device { display: grid; justify-items: center; margin-top: 56px; }
  .honours__device .device { width: min(76vw, 300px); }
}

/* ---------------------------------------------------------------------------------------------- pricing */
.pricing { margin-block: var(--section); }
.pricing__title { margin-bottom: 40px; }
.fields { display: grid; grid-template-columns: 5fr 7fr; min-height: max(88svh, 720px); }
.field { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 48px) max(var(--m), 40px); }
.field--free { background: var(--raised); color: var(--ink); }
.field--pro { background: var(--tyr-field); color: #F5E9D4; }
.field__name { font-family: var(--caps); font-weight: 500; font-size: var(--t2); line-height: 1.1; letter-spacing: .01em; }
.field__who { margin-top: 18px; font-size: clamp(19px, 1.45vw, 22px); max-width: 26ch; }
.field__p { margin-top: 28px; font-size: var(--t4); max-width: 54ch; line-height: 1.55; }
.field__plans { margin-top: 18px; font-family: var(--ui); font-size: var(--t4); display: grid; gap: 4px; }
.field__plans .nums { font-weight: 600; }
.field__foot { margin-top: auto; padding-top: 48px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.field__price { font-family: var(--serif); font-weight: 500; font-size: var(--t1); line-height: .85; letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.field__per { margin-top: 12px; font-family: var(--ui); font-size: var(--t4); font-weight: 500; }
.field__p + .field__p { margin-top: 14px; }
.field--pro .soon { color: #F5E9D4; }
.field--pro .btn { background: #F5E9D4; color: #4E2043; }
.pricing__legal { margin-top: 28px; font-family: var(--ui); font-size: 15px; line-height: 1.5; color: var(--soft); max-width: 75ch; }
@media (max-width: 767px) {
  .fields { grid-template-columns: 1fr; min-height: 0; }
  .field--pro { order: -1; min-height: 70svh; }
  .field--free { min-height: 60svh; }
  .field__price { font-size: 20vw; }
  .field__foot .btn, .field__foot .soon { width: 100%; }
  .field__foot .btn { justify-content: center; }
}

/* ---------------------------------------------------------------------------------------------- privacy */
.private { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; margin-block: var(--section); }
.private__pic { grid-column: 1 / 5; aspect-ratio: 1 / 1.25; overflow: hidden; }
.private__pic > div { height: 108%; margin-top: -4%; }
.private__pic img { width: 100%; height: 100%; object-fit: cover; }
.private__text { grid-column: 6 / 12; }
.statement { margin-top: 24px; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.22; letter-spacing: -.01em; max-width: 26ch; }
.private__facts { margin-top: 32px; display: grid; gap: 14px; max-width: 52ch; font-size: var(--t4); }
.private__facts li { display: flex; gap: 12px; }
.private__facts li::before { content: ""; flex: none; width: 18px; height: 10px; margin-top: 7px; background: var(--verd);
  clip-path: polygon(14% 0, 86% 0, 86% 38%, 100% 10%, 100% 90%, 86% 62%, 86% 100%, 14% 100%, 14% 62%, 0 90%, 0 10%, 14% 38%); }
.private__text .text-link { display: inline-block; margin-top: 28px; }
.private .caption { margin-top: 28px; }
@media (max-width: 767px) { .private { display: block; } .private__pic { width: 76vw; } .private__text { margin-top: 40px; } }

/* ---------------------------------------------------------------------------------------------- questions */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-block: var(--section); align-items: start; }
.faq__title { grid-column: 1 / 5; position: sticky; top: 96px; }
.faq__tiles { grid-column: 5 / 13; display: grid; gap: 8px; }
.tile { background: var(--surface); transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.tile summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 72px; padding: 18px 24px;
  font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.3; cursor: pointer; }
.tile summary::-webkit-details-marker { display: none; }
.tile summary i { position: relative; flex: none; width: 16px; height: 16px; }
.tile summary i::before, .tile summary i::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.tile summary i::after { transform: rotate(90deg); }
.tile[open] { background: var(--fresco); color: #FFF7EC; }
.tile[open] summary i::after { transform: rotate(0deg); }
.tile p { padding: 0 24px 24px; font-size: 17px; max-width: 58ch; }
@media (hover: hover) and (pointer: fine) { .tile:not([open]) summary:hover { background: var(--raised); } }
@media (max-width: 767px) {
  .faq { display: block; } .faq__title { position: static; margin-bottom: 28px; }
  .faq__tiles { gap: 6px; } .tile summary { font-size: 18px; min-height: 64px; padding: 16px 20px; } .tile p { font-size: 16px; padding: 0 20px 20px; }
}

/* ---------------------------------------------------------------------------------------------- closing */
.closing { position: relative; background: var(--fresco); color: #FFF7EC; overflow: hidden; }
.closing__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); min-height: max(90svh, 760px); padding-block: 72px; align-items: center; }
.closing__text { grid-column: 1 / 6; align-self: end; padding-bottom: 8px; }
.closing__title { font-family: var(--serif); font-weight: 500; font-size: var(--t1); line-height: .92; letter-spacing: -.025em; max-width: 5.5em; }
.closing__text p { margin-top: 24px; max-width: 40ch; font-size: 17px; }
.closing__right { grid-column: 7 / 13; display: grid; justify-items: end; }
.closing__lamp { width: 74%; }
.closing__lamp img { width: 100%; aspect-ratio: 1000 / 600; object-fit: cover; clip-path: polygon(11% 0, 89% 0, 89% 43%, 100% 20%, 100% 80%, 89% 57%, 89% 100%, 11% 100%, 11% 57%, 0 80%, 0 20%, 11% 43%); }
.closing__lamp .caption { color: #F3D9C8; margin: 10px 11% 0; text-align: right; }
.dialog { position: relative; margin-top: 28px; margin-right: 0; width: min(440px, 100%); background: var(--surface); color: var(--ink); border-radius: 18px; padding: 26px 24px 24px;
  font-family: var(--ui); box-shadow: 0 30px 60px rgb(40 10 6 / .35); /* taste-skill-ignore: a dialog floats */ }
.dialog__title { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; }
.dialog__detail { margin-top: 8px; font-size: 15px; color: var(--soft); }
.opts { border: 0; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 13px 14px; background: var(--paper); border-radius: 12px; cursor: pointer;
  outline: 2px solid transparent; outline-offset: -2px; transition: outline-color var(--t-hover), transform var(--t-press) var(--ease-out); }
.opt:active { transform: scale(.985); }
.opt input { grid-row: 1 / 3; margin: 3px 0 0; accent-color: #9C2F25; width: 18px; height: 18px; }
.opt__t { font-weight: 600; font-size: 16px; }
.opt__d { font-size: 14px; color: var(--soft); }
.opt:has(input:checked) { outline-color: var(--red); }
.dialog__ipa { margin-top: 16px; font-size: 15px; color: var(--soft); }
.dialog__ipa [lang="la"] { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.dialog__action { margin-top: 18px; }
.dialog .soon { display: flex; justify-content: center; align-items: center; min-height: 52px; background: #9C2F25; color: #FFF7EC; border-radius: 12px; font-size: 17px; }
.dialog .badge { display: flex; justify-content: center; }
@media (max-width: 767px) {
  .closing__grid { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-block: 64px; gap: 48px; }
  .closing__title { font-size: 13vw; }
  .closing__right { justify-items: stretch; }
  .dialog { width: 100%; margin: 24px 0 0; }
}

/* ---------------------------------------------------------------------------------------------- footer */
.foot { background: #1E1610; color: #F5E9D4; padding-block: 56px 40px; }
.foot__mark { display: flex; align-items: flex-end; gap: 4px; height: clamp(150px, 34svh, 340px); }
.block { flex: 1; height: var(--h); display: flex; align-items: flex-end; justify-content: center; padding-bottom: .04em; font-family: var(--caps); font-weight: 500;
  font-size: clamp(60px, 11vw, 200px); line-height: .8; color: #1E1610; overflow: hidden; }
.block--red { background: #9C2F25; } .block--gold { background: #B0863A; } .block--verd { background: #2C665C; } .block--tyr { background: #6A2C5A; } .block--ink { background: #CDB99A; }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 56px; font-family: var(--ui); font-size: 15px; }
.foot__links { grid-column: span 2; display: grid; gap: 10px; align-content: start; }
.foot__links a, .foot__contact a, .foot__imprint a { text-decoration: underline; text-decoration-color: rgb(245 233 212 / .35); }
@media (hover: hover) and (pointer: fine) { .foot a:hover { text-decoration-color: currentColor; } }
.foot__contact { grid-column: 9 / 13; display: grid; gap: 10px; font-size: var(--t4); color: #CDB99A; }
.foot__contact a { color: #F5E9D4; }
.foot__imprint { margin-top: 56px; display: grid; gap: 10px; font-family: var(--ui); font-size: 15px; line-height: 1.5; color: #CDB99A; max-width: 75ch; }
.foot__last { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--ui); font-size: 15px; }
.foot__last [lang="la"] { font-family: var(--serif); font-style: italic; font-size: 19px; }
@media (max-width: 767px) {
  .foot__mark { height: 22svh; gap: 3px; }
  .block { font-size: 12vw; }
  .foot__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot__links { grid-column: span 1; }
  .foot__contact { grid-column: 1 / 3; }
}

/* ---------------------------------------------------------------------------------------------- text pages */
.page .bar { border: 0; }
.doc__head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.doc__plate { grid-column: 1 / 8; position: relative; aspect-ratio: 1000 / 300; display: grid; place-items: center; }
.doc__tablet { position: absolute; inset: 0; width: 100%; height: 100%; }
.doc__title { position: relative; font-family: var(--caps); font-weight: 500; font-size: clamp(28px, 4.2vw, 68px); line-height: 1; letter-spacing: .03em; color: var(--fresco-gilt); text-align: center; padding-inline: 16%; }
.doc__lead { grid-column: 9 / 13; }
.doc { padding-bottom: var(--section); }
.doc__sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(56px, 6vw, 88px); }
.doc__h { grid-column: 1 / 5; font-family: var(--caps); font-weight: 500; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }
.doc__body { grid-column: 5 / 12; max-width: 68ch; }
.doc__body p + p, .doc__body ul + p, .doc__body p + ul { margin-top: 14px; }
.doc__body ul { display: grid; gap: 8px; }
.doc__body li { padding-left: 26px; position: relative; }
.doc__body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 15px; height: 8px; background: var(--red);
  clip-path: polygon(14% 0, 86% 0, 86% 38%, 100% 10%, 100% 90%, 86% 62%, 86% 100%, 14% 100%, 14% 62%, 0 90%, 0 10%, 14% 38%); }
.doc__body a { color: var(--red-ink); }
.doc__mail { font-size: var(--t2); font-family: var(--serif); }
.doc .tesserae { margin-top: 0; }
.lost { min-height: 64svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 32px; padding-block: 64px; }
.lost .doc__plate { width: min(760px, 100%); }
@media (max-width: 767px) {
  .doc__head, .doc__sec { display: block; }
  .doc__plate { aspect-ratio: auto; height: 34vw; min-height: 110px; }
  .doc__lead { margin-top: 28px; }
  .doc__body { margin-top: 16px; }
}

/* ---------------------------------------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transition: opacity var(--t-reveal) var(--ease-expo), transform var(--t-reveal) var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(26px); }
  .js .unit[data-reveal]:not(.is-in) { transform: translateY(18px); }
  .js .poster__row[data-reveal]:not(.is-in) { transform: translateX(-3vw); }
  .js .shutter { clip-path: polygon(11% 0, 89% 0, 89% 0, 100% 0, 100% 0, 89% 0, 89% 0, 11% 0, 11% 0, 0 0, 0 0, 11% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .is-in > .shutter { clip-path: polygon(11% 0, 89% 0, 89% 43%, 100% 20%, 100% 80%, 89% 57%, 89% 100%, 11% 100%, 11% 57%, 0 80%, 0 20%, 11% 43%); }
  .js .is-in > .shutter img { transform: none; }
  [data-parallax], [data-drift] { will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
