@charset "UTF-8";
/* =========================================================================
   Cape Solander Lighthouse Society — single page
   -------------------------------------------------------------------------
   Design rationale, recorded so the choices are decisions and not defaults:

   TYPE      Display: Newsreader (serif) — drawn from the lettering of
             Admiralty chart title blocks and 19th-century stationery.
             Body: Public Sans, a neutral grotesque, for the dense
             timetable/spec matter where legibility at 13px beats novelty.
             Mono: Fragment Mono, used only for coordinates, the light
             readout and object dates. Never for running prose.
             Display and body are deliberately different families.
             REJECTED: the model-default pool (Space Grotesk, Geist,
             DM Serif Display, Playfair Display) and Inter as a sole
             identity face on an expressive page.

   COLOUR    Ink on chart paper. 70/20/10 = paper neutrals / ink greys /
             one signal red. The red is the sector red carried by every
             port-hand mark on a chart; it does two jobs only — action,
             and warning. REJECTED: near-black base + warm brass accent +
             serif display, i.e. the converged "tasteful darkroom" look.
             A lighthouse at night would earn that palette; this subject is
             a *dark* light, in daylight, documented on paper. Light theme
             only — no second theme is shipped, so no untested variant.

   DEPTH     No shadows, no gradients, no glass. Depth is expressed the way
             a printed drawing expresses it: hairlines, paper tones and
             type weight. One radius value in the whole sheet: 2px.

   MOTION    Exactly one orchestrated moment: the light-character readout
             replays the tower's real flash group — three flashes at their
             true intervals — once, in under a second, then rests. Derived
             from the subject's own data, not from the particle/blob/
             starfield defaults. All content is visible with JavaScript
             disabled; the page ships no JavaScript at all.
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  /* surfaces + ink */
  --paper:      #F2EEE4;
  --paper-2:    #E8E2D3;
  --ink:        #17211C;
  --ink-2:      #4A554D;
  --ink-3:      #5F6A62;
  --rule:       #D6CEBB;
  --rule-2:     #B4A98F;

  /* the one accent, and its tint for the inverted footer */
  --signal:      #A83224;
  --signal-dark: #83261A;
  --signal-lift: #E07A5F;
  --on-signal:   #FBF6EC;
  --paper-on-ink:#C9C3B4;

  /* type */
  --font-display: 'Newsreader', ui-serif, Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', ui-sans-serif, system-ui, -apple-system,
               'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'Fragment Mono', ui-monospace, SFMono-Regular, Menlo,
               Consolas, monospace;

  /* five sizes, no more */
  --fs-1: clamp(2.25rem, 5.4vw, 3.7rem);
  --fs-2: clamp(1.55rem, 3vw, 2.05rem);
  --fs-3: 1.125rem;
  --fs-4: 1.0625rem;
  --fs-5: 0.8125rem;

  --lh-1: 1.04;
  --lh-2: 1.16;
  --lh-3: 1.4;
  --lh-4: 1.62;

  /* one spacing scale, 4px base */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px;  --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;

  /* one radius value, used everywhere */
  --r-sm: 2px;

  --wrap: 74rem;
  --gutter: clamp(20px, 4.5vw, 48px);
  --hairline: 1px solid var(--rule);

  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-4);
  line-height: var(--lh-4);
  font-weight: 400;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
address { font-style: normal; }

h1, h2 { font-family: var(--font-display); font-weight: 400; }
h1 {
  font-size: var(--fs-1);
  line-height: var(--lh-1);
  letter-spacing: -0.021em;
  text-wrap: balance;
}
h2 {
  font-size: var(--fs-2);
  line-height: var(--lh-2);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h3 {
  font-size: var(--fs-3);
  line-height: var(--lh-3);
  font-weight: 600;
  letter-spacing: -0.005em;
}

::selection { background: var(--signal); color: var(--on-signal); }

/* ---------- focus: always visible, never removed ---------- */
:focus { outline: 3px solid var(--signal); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.skip {
  position: absolute; left: var(--sp-4); top: -4rem; z-index: 20;
  background: var(--ink); color: var(--paper);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  font-size: var(--fs-5); font-weight: 600;
  transition: top .15s ease;
}
.skip:focus { top: var(--sp-4); }

/* ---------- primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(48px, 8vw, 112px); scroll-margin-top: 5rem; }
.section--tone { background: var(--paper-2); border-block: var(--hairline); }
.section__head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 { margin-bottom: var(--sp-4); }
.section__lede {
  font-size: var(--fs-4);
  color: var(--ink-2);
  max-width: 40rem;
}
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-5);
  letter-spacing: 0.01em;
  font-feature-settings: "tnum" 1;
}
.small { font-size: var(--fs-5); color: var(--ink-3); line-height: 1.55; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h3 { margin-top: var(--sp-7); }
.prose p { max-width: 38rem; }

/* ---------- buttons + links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-5); font-weight: 600; line-height: 1;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border: 1px solid var(--signal);
  border-radius: var(--r-sm);
  background: var(--signal);
  color: var(--on-signal);
  text-decoration: none;
  transition: background-color .14s ease, border-color .14s ease,
              color .14s ease;
}
.btn:hover { background: var(--signal-dark); border-color: var(--signal-dark); }

.arrow {
  display: inline-flex; align-items: baseline; gap: var(--sp-2);
  color: var(--signal);
  font-size: var(--fs-5); font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness .14s ease, color .14s ease;
}
.arrow::after { content: "\2192"; }
.arrow:hover { text-decoration-thickness: 2px; color: var(--signal-dark); }

/* :not(.btn) matters — a bare `.place a` (0,1,1) outranks `.btn` (0,1,0)
   and would paint a button's label in its own background colour. */
.prose a:not(.btn), .place a:not(.btn), address a:not(.btn) {
  color: var(--signal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness .14s ease;
}
.prose a:not(.btn):hover,
.place a:not(.btn):hover,
address a:not(.btn):hover { text-decoration-thickness: 2px; }

/* =========================================================================
   Masthead
   ========================================================================= */
.masthead {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: var(--hairline);
}
.masthead__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--sp-3) var(--sp-5);
  padding-block: var(--sp-3);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__text {
  font-family: var(--font-display);
  font-size: 1.0625rem; line-height: 1.15;
  letter-spacing: -0.008em;
  max-width: 15rem;
}
.nav { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.nav a {
  color: var(--ink-2); text-decoration: none;
  font-size: var(--fs-5); font-weight: 600;
  padding-block: var(--sp-1);
  transition: color .14s ease;
}
.nav a:hover { color: var(--signal); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { padding-block: clamp(40px, 7vw, 88px) 0; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.hero h1 { max-width: 18ch; }
.hero__lede {
  margin-top: var(--sp-6);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34rem;
}
.hero__note {
  margin-top: var(--sp-4);
  color: var(--ink-2);
  max-width: 34rem;
}
.hero__actions {
  margin-top: var(--sp-7);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--sp-4) var(--sp-7);
}

/* technical plate */
.plate { margin: 0; }
.plate__svg {
  width: 100%; height: auto;
  max-width: 26rem;
  margin-inline: auto;
  overflow: visible;
}
.plate__cap {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: var(--hairline);
  font-size: var(--fs-5);
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 26rem;
  margin-inline: auto;
}
.plate__cap .mono { color: var(--ink-2); }

.plate__ground { fill: none; stroke: var(--ink); stroke-width: 2; }
.plate__line   { fill: none; stroke: var(--ink); stroke-width: 1.5;
                 stroke-linejoin: round; stroke-linecap: round; }
.plate__fine   { fill: none; stroke: var(--ink); stroke-width: 1;
                 stroke-linecap: round; }
.plate__hatch  { stroke: var(--rule-2); stroke-width: 1; stroke-linecap: round; }
.plate__dim    { fill: none; stroke: var(--rule-2); stroke-width: 1; }
.plate__dimtext {
  font-family: var(--font-mono); font-size: 12.5px;
  fill: var(--ink-3); letter-spacing: 0.02em;
}
.plate__numtext {
  font-family: var(--font-mono); font-size: 12.5px;
  fill: var(--ink-3);
}

/* =========================================================================
   Light-character readout — the page's one orchestrated moment
   ========================================================================= */
.readout {
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--paper-2);
  border: var(--hairline);
  border-radius: var(--r-sm);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.readout__label {
  /* --ink-3 measures 4.36:1 on the --paper-2 panel; below AA. --ink-2 gives 5.9:1. */
  color: var(--ink-2);
  display: block;
  margin-bottom: var(--sp-2);
}
.readout__value {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.readout__gloss { color: var(--ink-2); margin-top: var(--sp-3); }

.strip { position: relative; padding-top: 1.4rem; }
.strip__num {
  position: absolute; top: 0;
  left: calc(var(--at) * 1%);
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: var(--fs-5);
  color: var(--ink-2);
}
.strip__track {
  position: relative;
  height: clamp(46px, 7vw, 76px);
  border-bottom: 2px solid var(--rule-2);
}
.strip__guide {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--at) * 1%);
  width: 1px; background: var(--rule);
}
.strip__bar {
  position: absolute; bottom: 0;
  left: calc(var(--at) * 1%);
  width: 4.5%; min-width: 9px; height: 100%;
  background: var(--signal);
  transform-origin: 50% 100%;
  animation: csl-flash 200ms cubic-bezier(.2, .8, .25, 1) both;
}
.strip__bar--1 { animation-delay: 80ms; }
.strip__bar--2 { animation-delay: 300ms; }
.strip__bar--3 { animation-delay: 520ms; }
@keyframes csl-flash { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.strip__axis { position: relative; height: 1.6em; margin-top: var(--sp-2); }
.strip__tick {
  position: absolute; left: calc(var(--at) * 1%);
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: var(--fs-5);
  color: var(--ink-2);
}
.strip__tick:first-child { transform: none; }
.strip__tick:last-child { transform: translateX(-100%); }

/* =========================================================================
   Ledgers (spec / practical info) — rows, never cards
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.split--flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }

.ledger__row {
  display: grid;
  grid-template-columns: minmax(7rem, 9.5rem) minmax(0, 1fr);
  gap: var(--sp-5);
  padding-block: var(--sp-4);
  border-top: var(--hairline);
}
.ledger__row:last-child { border-bottom: var(--hairline); }
.ledger dt {
  font-size: var(--fs-5); font-weight: 600;
  color: var(--ink-2); line-height: 1.5;
}
.ledger dd { font-size: var(--fs-4); line-height: 1.55; }
.ledger dd .mono { color: var(--ink-2); }

/* pull quote */
.pull {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 2px solid var(--ink);
}
.pull p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: -0.008em;
  max-width: 30rem;
}
.pull footer {
  margin-top: var(--sp-3);
  font-size: var(--fs-5);
  color: var(--ink-3);
}

/* =========================================================================
   Catalogue (museum) — object / date / note rows
   ========================================================================= */
.catalogue__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-2) var(--sp-5);
  padding-block: var(--sp-4);
  border-top: var(--hairline);
}
.catalogue__item:last-child { border-bottom: var(--hairline); }
.catalogue__obj { font-weight: 600; }
.catalogue__date {
  font-family: var(--font-mono);
  font-size: var(--fs-5); color: var(--ink-3);
  white-space: nowrap;
}
.catalogue__note {
  grid-column: 1 / -1;
  color: var(--ink-2);
  font-size: var(--fs-4);
  line-height: 1.55;
  max-width: 44rem;
}

/* =========================================================================
   Place / getting here
   ========================================================================= */
.place { display: grid; gap: var(--sp-5); align-content: start; }
.place h3 { margin-bottom: calc(var(--sp-2) * -1); }
.place p { color: var(--ink-2); max-width: 32rem; }
.coords {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: var(--sp-2) var(--sp-4);
  padding-block: var(--sp-3);
  border-block: var(--hairline);
  color: var(--ink-2);
}
.coords .mono { color: var(--ink); }
.linklist { display: grid; gap: var(--sp-3); }
.linklist a:not(.btn) {
  color: var(--signal); font-size: var(--fs-5); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.linklist a:not(.btn):hover { text-decoration-thickness: 2px; }
.linklist a::after { content: " \2197"; font-weight: 400; }

/* =========================================================================
   Roles (volunteering) — stacked rows, varying from the ledgers above
   ========================================================================= */
.roles__item {
  padding-block: var(--sp-5);
  border-top: var(--hairline);
}
.roles__item:last-child { border-bottom: var(--hairline); }
.roles__when {
  font-family: var(--font-mono);
  font-size: var(--fs-5);
  color: var(--ink-3);
  margin-top: var(--sp-1);
}
.roles__item p:last-child { margin-top: var(--sp-3); color: var(--ink-2); max-width: 34rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  background: var(--ink);
  color: var(--paper-on-ink);
  padding-block: clamp(48px, 7vw, 88px);
}
.footer a { color: var(--signal-lift); text-decoration: underline;
            text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer a:hover { text-decoration-thickness: 2px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
}
.footer h2 {
  font-family: var(--font-body);
  font-size: var(--fs-5);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--paper);
  margin-bottom: var(--sp-4);
}
.footer p { font-size: var(--fs-5); line-height: 1.65; }
.footer p + p { margin-top: var(--sp-4); }
.footer address { font-size: var(--fs-5); line-height: 1.9; }
.footer__colophon {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(201, 195, 180, 0.28);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-7);
  justify-content: space-between;
}

/* =========================================================================
   Narrow viewports — audited to 360px
   ========================================================================= */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1, .hero__lede, .hero__note { max-width: 32rem; }
  .plate { justify-self: start; width: 100%; }
  .plate__svg, .plate__cap { margin-inline: 0; }
  .readout { grid-template-columns: minmax(0, 1fr); }
  .split, .split--flip { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .masthead__inner { padding-block: var(--sp-4); }
  .brand__text { max-width: none; font-size: 1rem; }
  .brand { width: 100%; }
  .nav { gap: var(--sp-2) var(--sp-4); }
  .nav a { font-size: 0.78rem; }
  .ledger__row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  .ledger dt { color: var(--ink-3); font-size: 0.75rem; }
  .hero__actions { gap: var(--sp-4); align-items: flex-start; flex-direction: column; }
  .catalogue__item { grid-template-columns: minmax(0, 1fr); }
  .catalogue__date { white-space: normal; }
  .strip__num, .strip__tick { font-size: 0.7rem; }
}

/* ---------- motion opt-out ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .strip__bar { animation: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
