/* Düsseldorf — a daily portrait. Gallery layout: the painting owns the first screen; the honest
   vitals sit quietly below. Mobile-first, dark, art-forward (SPEC §9 Stage F; Constitution Art. 9).
   The visitor reads TIME, never "fresh/stale" — so the "as of" line is styled to be legible, with
   the relative phrase prominent and the absolute local time as a quiet backstop. */

:root {
  --bg: #0b0d10;
  --bg-soft: #14181d;
  --ink: #f3f1ec;
  --ink-dim: #9aa3ad;
  --ink-faint: #6b7480;
  --line: #232a31;
  --gold: #e3b873;          /* a warm accent echoing the painting's golden light */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── the hero ───────────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100svh;
  object-fit: cover;
  object-position: center;
}

.hero-pending {
  background:
    radial-gradient(120% 80% at 50% 20%, #1d2735 0%, #0b0d10 70%);
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)) 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-caption .interpretation { display: block; }

.hero-caption .interp-text {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 5.2vw, 2rem);
  line-height: 1.32;
  font-weight: 400;
  margin: 0.45rem 0 0 0;
  text-wrap: balance;
  text-shadow: 0 1px 18px rgba(0,0,0,0.55);
}

.hero-meta {
  margin: 0.7rem 0 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}

.hero-date { color: var(--ink); }
.carried { color: var(--gold); }

.scroll-cue {
  align-self: flex-start;
  margin-top: 0.25rem;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  opacity: 0.85;
}
.scroll-cue:hover { color: var(--ink); }

/* ── the AI marker — small, always present on interpretation ──────────────────────────── */

.ai-marker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(227,184,115,0.45);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}

/* ── the vitals ───────────────────────────────────────────────────────────────────────── */

.vitals {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem calc(3rem + env(safe-area-inset-bottom)) 1.25rem;
}

.vitals-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}
.vitals-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.live {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.vitals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 540px) {
  .vitals-grid { grid-template-columns: 1fr 1fr; }
}

.vital {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem 0.85rem 1.1rem;
}
.vital-title {
  margin: 0 0 0.6rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.readings { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.reading { display: flex; align-items: baseline; gap: 0.4rem; }
.reading-label { flex: 1; color: var(--ink-dim); font-size: 0.92rem; }
.reading-value { font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.reading-unit { color: var(--ink-faint); font-size: 0.85rem; }

.no-reading { margin: 0.2rem 0; color: var(--ink-faint); font-style: italic; font-size: 0.95rem; }

.measure-meta {
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.source { color: var(--ink-faint); font-size: 0.72rem; }
.as-of { display: flex; flex-direction: column; }
.as-of-rel { color: var(--ink); font-size: 0.82rem; font-weight: 500; }
.as-of-abs { color: var(--ink-faint); font-size: 0.7rem; }

/* ── credits ──────────────────────────────────────────────────────────────────────────── */

.credits { margin-top: 2rem; }
.credits .interpretation { display: flex; flex-direction: column; gap: 0.5rem; }
.credits .interp-text { margin: 0; color: var(--ink-dim); font-size: 0.82rem; line-height: 1.55; }
.credits-line {
  margin: 1rem 0 0 0;
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}
