/* ── Larnis Print — countdown teaser ──────────────────────────────
   Tokens and components inherited from the binding Larnis Print
   Design Spec (../3d-printing/docs/reference/Larnis_Design_Spec.md).
   Warm paper + navy ink, one amber accent; the nested-square-L mark
   and the frame/bracket primitive it generates. Deliberately not the
   parent site's dark-navy/mono-tech look — this teases Larnis Print,
   which has its own committed identity.                              */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/space-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink-900: #14213D;
  --ink-800: #1B2A4A;
  --ink-600: #33436B;
  --ink-400: #6B7793;
  --ink-200: #B9C0D0;

  --paper-000: #FBFAF7;
  --paper-100: #F4F1EA;
  --paper-200: #EAE5DB;
  --paper-300: #DBD4C6;
  --surface: #FFFFFF;

  --accent-500: #E08A3C;
  --accent-600: #C7702A;
  --accent-100: #FBE6D4;

  --live-500: #2F9E6E;

  --dark-bg: #16181C;
  --dark-text: #EDEBE6;
  --dark-rule: #2E3239;

  --font-display: "Space Grotesk", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

::selection { background: var(--accent-100); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 3px;
  border-radius: 2px;
}

html {
  color-scheme: light;
  scrollbar-color: var(--ink-200) var(--paper-100);
}

body {
  margin: 0;
  background: var(--paper-000);
  color: var(--ink-800);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--ink-800);
  text-decoration-color: var(--paper-300);
  text-underline-offset: 3px;
  transition: color 150ms var(--ease-out-quint), text-decoration-color 150ms var(--ease-out-quint);
}
a:hover { color: var(--accent-600); text-decoration-color: var(--accent-500); }

.mono { font-family: var(--font-mono); }

/* ── the persistent layer-rail, left margin ───────────────────── */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--paper-300) 0,
    var(--paper-300) 2px,
    transparent 2px,
    transparent 10px
  );
  z-index: 0;
}
@media (max-width: 640px) { .rail { display: none; } }

/* ── header ────────────────────────────────────────────────────── */
.site-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 56px) 0;
}

.mark-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.mark { width: 30px; height: 30px; flex: none; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink-900);
}
.wordmark em {
  font-style: normal;
  color: var(--ink-600);
  font-weight: 500;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live-500);
  box-shadow: 0 0 0 3px var(--paper-200);
  animation: pulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; } }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.status-text { color: var(--ink-800); }
.status-loc { color: var(--ink-600); }
.status-loc::before { content: "· "; }

/* ── hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 56px);
  text-align: left;
  overflow: hidden;
}

.hero > :not(.mark-echo) { max-width: 760px; }

.mark-echo {
  position: absolute;
  top: 50%;
  right: clamp(-40px, 4vw, 40px);
  width: min(46vw, 620px);
  height: min(46vw, 620px);
  opacity: 0.09;
  transform: translateY(-50%);
  pointer-events: none;
}
@media (max-width: 1000px) { .mark-echo { display: none; } }

.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 20px;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-600);
  max-width: 52ch;
  margin: 0 0 48px;
}
.lede strong { color: var(--ink-900); font-weight: 600; }

/* ── the countdown instrument ─────────────────────────────────── */
.instrument-wrap { margin-bottom: 40px; }

.instrument {
  position: relative;
  display: inline-block;
  background: var(--surface);
  padding: clamp(20px, 4vw, 32px) clamp(24px, 5vw, 48px);
}

.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent-500);
  border-style: solid;
  animation: corner-draw 450ms var(--ease-out-quint) both;
}
.corner.tl { top: -1px;    left: -1px;   border-width: 2px 0 0 2px; transform-origin: top left; }
.corner.tr { top: -1px;    right: -1px;  border-width: 2px 2px 0 0; transform-origin: top right; }
.corner.bl { bottom: -1px; left: -1px;   border-width: 0 0 2px 2px; transform-origin: bottom left; }
.corner.br { bottom: -1px; right: -1px;  border-width: 0 2px 2px 0; transform-origin: bottom right; }
.corner.tr { animation-delay: 60ms; }
.corner.bl { animation-delay: 120ms; }
.corner.br { animation-delay: 180ms; }

@keyframes corner-draw {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .corner { animation: none; }
}

.instrument-live {
  display: flex;
  align-items: baseline;
  gap: clamp(8px, 2vw, 18px);
}

.unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.unit-value {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.unit-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.sep {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--paper-300);
  transform: translateY(-8px);
}

.instrument-launched {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--live-500);
}
.instrument-launched a { color: var(--live-500); text-decoration-color: currentColor; }

.instrument-caption {
  margin: 14px 2px 0;
  font-size: 12px;
  color: var(--ink-600);
}

.meanwhile {
  font-size: 14px;
  color: var(--ink-600);
}
.meanwhile-sep { margin: 0 10px; color: var(--paper-300); }

/* ── footer — the one other sanctioned dark surface ───────────── */
.site-foot {
  position: relative;
  z-index: 1;
  background: var(--dark-bg);
  color: var(--dark-text);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(237, 235, 230, 0.05) 0,
    rgba(237, 235, 230, 0.05) 1px,
    transparent 1px,
    transparent 4px
  );
  padding: 20px clamp(20px, 5vw, 56px);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

@media (max-width: 560px) {
  .site-head { padding-top: 20px; }
  .status { font-size: 10px; }
  .status-loc { display: none; }
  .instrument-live { gap: 6px; }
  .sep { display: none; }
  .instrument-live { flex-wrap: wrap; row-gap: 14px; }
}
