/* Self-hosted fonts (SIL Open Font License, see assets/fonts/OFL-*.txt): no request to Google before consent. */
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/courier-prime-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/courier-prime-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* SceneScribe coming-soon page. Stripboard colours (white, yellow, blue, gold) never change between themes. */
:root {
  --canvas: #eef1f5;
  --ink: #1a2433;
  --ink-soft: #4a5566;
  --rule: #cfd6df;
  --gold: #f2c230;
  --gold-deep: #b38c14;
  --strip-int-day: #ffffff;
  --strip-ext-day: #f6e27a;
  --strip-int-night: #9cc3ee;
  --strip-ink: #1a2433;
  --strip-edge: #1a2433;
  --focus: #1a2433;
  --panel: #1a2433;
  --panel-ink: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #141414;
    --ink: #ffffff;
    --ink-soft: #b3b3b3;
    --rule: #2d2d2d;
    --gold-deep: #f2c230;
    --strip-edge: #000000;
    --focus: #ffffff;
    --panel: #2d2d2d;
    --panel-ink: #ffffff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #141414;
  --ink: #ffffff;
  --ink-soft: #b3b3b3;
  --rule: #2d2d2d;
  --gold-deep: #f2c230;
  --strip-edge: #000000;
  --focus: #ffffff;
  --panel: #2d2d2d;
  --panel-ink: #ffffff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 700px) { .wrap { padding: 0 2.5rem; } }

/* top bar */
.bar { padding: 1.25rem 0; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand img { width: 28px; height: 28px; display: block; }
.lang { display: flex; gap: 0.25rem; font-size: 0.875rem; }
.lang a, .lang span {
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink-soft);
}
.lang a:hover { color: var(--ink); }
.lang [aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

/* hero */
main { flex: 1; }
.hero { padding: 3rem 0 2.5rem; }
@media (min-width: 700px) { .hero { padding: 5.5rem 0 3.5rem; } }
.title {
  margin: 0;
  font-weight: 850;
  font-stretch: 72%;
  font-variation-settings: "wdth" 72;
  font-size: clamp(3.25rem, 13vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  max-width: 12ch;
  text-wrap: balance;
}
.lede {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.0625rem, 2.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* stripboard */
.board { padding: 0 0 3.5rem; }
.strips { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.strip {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  align-items: stretch;
  background: var(--strip-int-day);
  color: var(--strip-ink);
  border-left: 6px solid var(--strip-edge);
  min-height: 4.5rem;
}
.strip.ext-day { background: var(--strip-ext-day); }
.strip.int-night { background: var(--strip-int-night); }
.strip .num {
  display: flex; align-items: center; justify-content: center;
  font-family: "Courier Prime", ui-monospace, monospace;
  font-weight: 700;
  font-size: 1.25rem;
  border-right: 1px solid rgba(26, 36, 51, 0.25);
}
.strip .body { padding: 0.85rem 1rem; display: grid; gap: 0.2rem; min-width: 0; }
.strip .slug {
  font-family: "Courier Prime", ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.strip .text { font-size: 1rem; line-height: 1.4; }
@media (min-width: 800px) {
  .strip { grid-template-columns: 4.5rem 16rem 1fr; min-height: 3.5rem; }
  .strip .num { grid-row: span 1; }
  .strip .body { display: contents; }
  .strip .slug, .strip .text { display: flex; align-items: center; padding: 0.85rem 1.25rem; }
  .strip .slug { border-right: 1px solid rgba(26, 36, 51, 0.25); }
}

/* the gold day-break strip carries the status */
.daybreak {
  margin-top: 4px;
  background: var(--gold);
  color: var(--strip-ink);
  border-left: 6px solid var(--strip-edge);
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.25rem;
}
.daybreak .status { margin: 0; font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 0.6rem; }
.daybreak .status::before {
  content: "";
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--strip-ink);
  animation: rec 1.6s ease-in-out infinite;
}
.daybreak .when { margin: 0; }
@media (min-width: 800px) {
  .daybreak { grid-template-columns: 16rem 1fr; padding: 0; gap: 0; }
  .daybreak .status, .daybreak .when { padding: 1rem 1.25rem; }
  .daybreak .status { border-right: 1px solid rgba(26, 36, 51, 0.25); padding-left: calc(4.5rem + 1.25rem); grid-column: 1 / 2; }
  .daybreak { grid-template-columns: calc(4.5rem + 16rem) 1fr; }
}

/* contact */
.contact { padding: 0 0 4rem; }
.contact p { margin: 0; font-size: 1.05rem; color: var(--ink-soft); }
.contact a {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 700;
  font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  overflow-wrap: anywhere;
}
.contact a:hover { border-bottom-color: var(--gold-deep); }

footer { border-top: 1px solid var(--rule); padding: 1.25rem 0; font-size: 0.85rem; color: var(--ink-soft); }

/* the one orchestrated moment: strips are laid on the board */
@media (prefers-reduced-motion: no-preference) {
  .strips .strip, .daybreak { animation: lay 520ms cubic-bezier(0.32, 0.94, 0.6, 1) both; }
  .strips .strip:nth-child(1) { animation-delay: 120ms; }
  .strips .strip:nth-child(2) { animation-delay: 220ms; }
  .strips .strip:nth-child(3) { animation-delay: 320ms; }
  .daybreak { animation-delay: 460ms; }
}
@media (prefers-reduced-motion: reduce) {
  .daybreak .status::before { animation: none; }
}
@keyframes lay { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* 404 */
.notfound .title { font-size: clamp(3rem, 12vw, 6rem); }
.notfound .links { margin-top: 2rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.notfound .links a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); }

/* footer links */
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.foot-links a, .foot-links button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule);
}
.foot-links a:hover, .foot-links button:hover { color: var(--ink); text-decoration-color: var(--gold); }

/* cookie consent: a slate card at the foot of the screen, two equal buttons */
.consent {
  position: fixed; z-index: 10;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 34rem;
  margin: 0 auto;
  background: var(--panel);
  color: var(--panel-ink);
  border-left: 6px solid var(--gold);
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
  line-height: 1.45;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 0.85rem; }
.consent a { color: inherit; text-underline-offset: 3px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.consent-actions button {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 0.6rem 1rem; border-radius: 4px;
  background: transparent; color: var(--panel-ink);
  border: 2px solid var(--panel-ink);
}
.consent-actions button:hover { background: var(--panel-ink); color: var(--panel); }
.consent :focus-visible { outline-color: var(--gold); }

/* privacy notice */
.doc { padding: 2.5rem 0 4rem; }
.doc .title { font-size: clamp(2.5rem, 9vw, 4.5rem); max-width: none; }
.doc .prose { max-width: 40rem; margin-top: 1.5rem; }
.doc h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2rem; }
.doc a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.doc .updated { font-size: 0.9rem; }
.inline-link { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.doc code { font-size: 0.9em; }
