/* Ferry Signal — site styles.
   System: printed sailing schedule (paper, ink, hairline rules) with the
   live board as a terminal departures panel (near-black, LED green).
   Signal orange is reserved for live/alert states: low counts, cancellations,
   errors, focus. Type: Saira Condensed (display) / Saira (body) /
   Spline Sans Mono (data & labels). */

:root {
  --paper: #f5f4ee;
  --ink: #1e252d;
  --card: #fbfaf6;
  --field: #ffffff;
  --rule: #d8d5c9;
  --muted: #5a626b;
  --action: #2e5578;
  --action-hover: #16283a;
  --signal: #bc4a06;
  --ok: #1e6e46;
  --panel: #10161d;
  --panel-ink: #eff0e9;
  --panel-muted: #8d97a2;
  --panel-rule: rgba(239, 240, 233, 0.16);
  --led: #5fe0a0;
  --signal-bright: #ff8b3d;
  --radius: 3px;
  --measure: 66ch;
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Saira", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.65;
}

a { color: var(--action); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--action-hover); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ------------------------------------------------------------- masthead */
/* Printed-schedule masthead: paper bar closed by a heavy ink rule. */
.masthead {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 0.85rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .beacon { margin-right: 0.5rem; vertical-align: 0.08em; }
.wordmark:hover,
.wordmark:focus-visible { color: var(--ink); }
.masthead nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.masthead nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.masthead nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- type */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
h1 { font-size: clamp(2.5rem, 6vw, 3.9rem); }
h2 { font-size: 1.7rem; margin-top: 2.4rem; }
h3 { font-size: 1.25rem; margin-top: 1.7rem; }
p, ul, ol { max-width: var(--measure); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.4rem 0 0.4rem;
}

.lede { font-size: 1.16rem; max-width: var(--measure); }

main { padding: 2.4rem 0 3.75rem; }
main > .eyebrow:first-child { margin-top: 0; }

/* -------------------------------------------------- signature: the board */
/* Departures panel: near-black, mono numerals, hairline rows. */
.board {
  background: var(--panel);
  color: var(--panel-ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem 1.3rem;
  margin-top: 1.9rem;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  overflow-x: auto;
}
.board-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--panel-muted);
  margin-bottom: 0.8rem;
}
.beacon {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--led);
  animation: beacon 2.4s ease-in-out infinite;
}
@keyframes beacon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.board table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.board th, .board td {
  text-align: left;
  padding: 0.38rem 1.1rem 0.38rem 0;
  border-bottom: 1px solid var(--panel-rule);
  white-space: nowrap;
}
.board th {
  color: var(--panel-muted);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.board .num { text-align: right; }
.board .low { color: var(--signal-bright); font-weight: 700; }
.board .cancelled { color: var(--signal-bright); text-decoration: line-through; }
.board-empty { color: var(--panel-muted); padding: 0.6rem 0 0.2rem; }
.freshness { font-size: 0.75rem; color: var(--panel-muted); margin-top: 0.8rem; }
.board a.res-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.board a.res-link:hover, .board a.res-link:focus-visible { color: #fff; }
.board-legend { font-size: 0.86rem; color: var(--muted); max-width: var(--measure); margin-top: 0.7rem; }
.board .vessel { color: var(--panel-muted); }

/* -------------------------------------------------------------- countdown */
.countdown {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.1rem, 8vw, 4.2rem);
  line-height: 1.1;
  color: var(--led);
  letter-spacing: 0.03em;
  margin: 0.45rem 0 0.25rem;
}
.countdown-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--panel-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ cards */
/* Schedule callout: flat card opened by a heavy ink rule, like a
   timetable footnote box. */
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.3rem 1.4rem 1.4rem;
  margin: 1.7rem 0;
}
.card h2, .card h3 { margin-top: 0; }
.card .eyebrow { margin-top: 0; }

.promises {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  padding: 0;
  margin: 2.6rem 0 0;
  max-width: none;
  list-style: none;
}
.promises li {
  border-top: 2px solid var(--ink);
  padding: 0.7rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.promises strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

/* ------------------------------------------------------------------- form */
form.capture { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1rem; }
form.capture input[type="email"] {
  flex: 1 1 16rem;
  font: inherit;
  padding: 0.68rem 0.85rem;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--ink);
}
form.capture button {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.68rem 1.4rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
form.capture button:hover { background: var(--action-hover); }
.form-note { font-size: 0.87rem; color: var(--muted); margin-top: 0.5rem; }
.form-status { font-weight: 600; margin-top: 0.6rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--signal); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ slots */
[data-slot] { display: none; } /* registry renders empty until activated */

/* ----------------------------------------------------------------- footer */
footer.site {
  border-top: 1px solid var(--ink);
  padding: 1.5rem 0 2.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}
footer.site .wrap { display: flex; gap: 0.4rem 1.6rem; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .beacon { animation: none; }
}
