/* Cape Solander Lighthouse Society — single-page site stylesheet */

@font-face {
  font-family: "Sentient";
  src: url("fonts/sentient-var.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f1e8;
  --paper-2: #ece6d9;
  --ink: #14262e;
  --ink-soft: #3d515c;
  --deep: #10303c;
  --signal: #b03222;
  --signal-dark: #8d2718;
  --brass: #a8761b;
  --brass-light: #d8a13a;
  --brass-text: #7d5a0e;
  --cream: #fdfaf3;
  --line: rgba(20, 38, 46, 0.20);
  --line-soft: rgba(20, 38, 46, 0.10);
  --focus: #a8761b;
  --radius: 2px;
  --pill: 999px;
  --font-display: "Sentient", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --band: clamp(3rem, 6vw, 5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  font-synthesis-weight: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5.4vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

cite { font-style: italic; }

a {
  color: var(--signal-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
a:hover { color: var(--ink); }

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

.skip {
  position: absolute;
  left: -100vw;
  top: 0;
  z-index: 20;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

/* ---------------------------------------------------------------- layout */

.wrap {
  width: min(calc(100% - 2.5rem), 68rem);
  margin-inline: auto;
}

.band { padding-block: var(--band); }
.band-alt { background: var(--paper-2); }

.band-deep {
  --focus: #e0b25c;
  background: var(--deep);
  color: var(--cream);
}
.band-deep h2, .band-deep h3 { color: var(--cream); }
.band-deep a { color: var(--brass-light); }
.band-deep a:hover { color: var(--cream); }
.band-deep .section-lede, .band-deep .fine { color: #b8cdd3; }

section[id] { scroll-margin-top: 6rem; }

/* ---------------------------------------------------------------- header */

.site-head {
  position: static;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.mark { width: 2rem; height: 2rem; flex: 0 0 auto; }
.mark-stone { fill: var(--ink); }
.mark-glass { fill: var(--signal); }
.mark-beam { fill: var(--brass); }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-sub {
  display: block;
  font-size: 0.78rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.nav {
  flex: 1 1 100%;
  min-width: 0;
  order: 3;
}
.nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.nav a {
  display: block;
  padding-block: 0.25rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); text-decoration: underline; }

.btn-head { display: none; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  background: var(--signal);
  border: 1px solid var(--signal);
  border-radius: var(--radius);
  color: var(--cream);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover {
  background: var(--signal-dark);
  border-color: var(--signal-dark);
  color: var(--cream);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-on-dark {
  background: var(--brass-light);
  border-color: var(--brass-light);
  color: var(--deep);
}
.band-deep a.btn-on-dark { color: var(--deep); }
.band-deep a.btn-on-dark:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--deep);
}

.link-arrow {
  display: inline-block;
  padding: 0.75rem 0.25rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.link-arrow::after {
  content: " \2192";
  font-family: var(--font-body);
}
.link-arrow:hover { border-bottom-color: var(--signal-dark); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-block: 1.75rem;
}

/* ---------------------------------------------------------------- hero */

.hero { padding-block: clamp(2.5rem, 5vw, 4rem) var(--band); }

.hero-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--brass-text);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 1rem 1.5rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.fact-k {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.fact-v {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
}

.hero-art { margin: 0; }
.hero-art svg { display: block; width: 100%; height: auto; max-width: 30rem; margin-inline: auto; }
.hero-art figcaption {
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 26rem;
  margin-inline: auto;
}

.art-stone { fill: var(--cream); }
.art-band { fill: var(--signal); }
.art-ink { fill: var(--ink); }
.art-glass { fill: #1c4b5c; }
.art-brass { fill: var(--brass); stroke: var(--brass); stroke-width: 3; }
.art-land { fill: var(--deep); }
.art-fluke { fill: var(--deep); }
.art-line { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.art-wave { stroke: var(--deep); stroke-width: 3; stroke-linecap: round; opacity: 0.45; }
.art-beam { opacity: 0.3; }
.art-beam path { fill: var(--brass-light); }

/* ---------------------------------------------------------------- section heads */

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.sec-num { font-family: var(--font-display); color: var(--brass-text); }
.sec-label { color: var(--ink-soft); }
.band-deep .sec-num { color: var(--brass-light); }
.band-deep .sec-label { color: #a9c3cb; }

.section-lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44rem;
  margin-bottom: 2rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3vw, 3rem);
  align-items: start;
}
.split-tight { margin-top: 2.5rem; }

.prose p + p { margin-top: 0; }
.prose p { max-width: 42rem; }

.stack { display: grid; gap: 2rem; }

/* ---------------------------------------------------------------- specs list */

.specs { margin: 0; border-top: 1px solid var(--line); }
.specs > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.5rem 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line-soft);
}
.specs dt {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.specs dd { margin: 0; }

/* ---------------------------------------------------------------- tables */

.table-wrap { margin-bottom: 2rem; }

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
caption {
  caption-side: top;
  padding-bottom: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: left;
}
th, td { padding: 0.75rem 1rem 0.75rem 0; vertical-align: top; }
thead th {
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
tbody th { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
tbody tr { border-bottom: 1px solid var(--line-soft); }
tbody td { color: var(--ink-soft); }
.band-deep thead th, .band-deep tbody td { color: #b8cdd3; }

/* ---------------------------------------------------------------- tiles */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tile {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.tile p { color: var(--ink-soft); font-size: 1rem; }
.band-deep .tile { border-top-color: rgba(253, 250, 243, 0.28); }
.band-deep .tile p { color: #b8cdd3; }

.tiers { gap: 2rem; }
.price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--signal);
  margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------- lists */

.ticks, .ticks-tight {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
.ticks li, .ticks-tight li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
}
.ticks li::before, .ticks-tight li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--signal);
  border-radius: var(--pill);
}
.band-deep .ticks li, .band-deep .ticks-tight li { color: #b8cdd3; }
.ticks-tight li { font-size: 0.95rem; }

/* ---------------------------------------------------------------- fund */

.fund {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fund h3 { font-size: 1.35rem; }
.fund p { max-width: 46rem; }
.fund .cta-row { margin-bottom: 0; }

.fine {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44rem;
}

/* ---------------------------------------------------------------- footer */

.site-foot {
  padding-block: var(--band) 2.5rem;
  background: var(--deep);
  color: var(--cream);
  --focus: #e0b25c;
}
.site-foot a { color: var(--brass-light); }
.site-foot a:hover { color: var(--cream); }
.site-foot .mark-stone { fill: var(--cream); }
.site-foot .mark-glass { fill: var(--brass-light); }

.foot-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.foot-brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.foot-tagline {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #b8cdd3;
  max-width: 24rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1.5rem 2rem;
}
.foot-label {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--brass-light);
}
.foot-grid p { font-size: 0.95rem; line-height: 1.55; color: #d6e3e6; }

.country {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(253, 250, 243, 0.24);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #b8cdd3;
  max-width: 46rem;
}

.foot-bottom { margin-top: 1.5rem; font-size: 0.9rem; color: #b8cdd3; }
.foot-fine { font-size: 0.85rem; color: #9db4bb; }

/* ---------------------------------------------------------------- motion */

a, .btn, .link-arrow, .skip, .nav a { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }

/* ---------------------------------------------------------------- breakpoints */

@media (min-width: 44rem) {
  .foot-top { grid-template-columns: minmax(16rem, 22rem) 1fr; }
}

@media (min-width: 52rem) {
  .site-head { position: sticky; top: 0; }
  .btn-head { display: inline-block; }
  .nav { flex: 1 1 auto; order: 0; }
  .nav ul { justify-content: flex-end; overflow-x: visible; padding-bottom: 0; }
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split-tight { grid-template-columns: 0.9fr 1.1fr; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

@media (max-width: 33rem) {
  table.table-stack thead { display: none; }
  table.table-stack tr {
    display: block;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--line-soft);
  }
  table.table-stack th,
  table.table-stack td {
    display: block;
    padding: 0 0 0.25rem;
  }
  table.table-stack tbody th { font-size: 1.1rem; }
  table.table-stack td::before {
    content: attr(data-label) ": ";
    color: var(--brass-text);
  }
  .specs > div { grid-template-columns: 1fr; gap: 0; }
  .specs dt { margin-bottom: 0.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none; }
}
