/* Westport Dock Co. — ported from the Stripe system.
   Near-monochrome ledger on a cool-white canvas. Weight 300 everywhere,
   tracking tightens as type grows, 4px radius on everything, depth from
   background tint only. Stripe's indigo is substituted for a signal blue. */

:root {
  /* neutrals */
  --white: #ffffff;      /* page canvas + elevated card surfaces */
  --mist: #f8fafd;       /* section banding, footer */
  --frost: #e5edf5;      /* every border + hover fill. the workhorse */
  --smoke: #839bc8;      /* muted, decorative headings only. never body */
  --slate: #64748d;      /* link + tag text accent */
  --steel: #50617a;      /* tertiary body + helper copy */
  --midnight: #061b31;   /* headings and body. anchors everything */

  /* the one action color (Stripe's indigo substituted) */
  --signal: #2f5fd0;
  --signal-soft: #6d8fe4;   /* text accent only, never the CTA */
  --signal-edge: #b9c8ef;   /* hairline ghost-button border */
  --signal-wash: #eef2fd;   /* lightest tinted surface */

  --face: 'Inter Tight', system-ui, -apple-system, sans-serif;

  /* Major Second 1.125 from 16 */
  --t-display: clamp(2.5rem, 5.2vw, 3.5rem);  /* 56 */
  --t-h2: clamp(2rem, 3.6vw, 3rem);           /* 48 */
  --t-h3: 2rem;                               /* 32 */
  --t-h4: 1.625rem;                           /* 26 */
  --t-sub: 1.375rem;                          /* 22 */
  --t-lg: 1.25rem;                            /* 20 */
  --t-18: 1.125rem;
  --t-body: 1rem;
  --t-14: .875rem;
  --t-12: .75rem;

  --maxw: 1320px;
  --section: 96px;    /* the big vertical gap between regions */
  --pad-card: 32px;
  --gap: 8px;
  --r: 4px;           /* cards, inputs, buttons. all of them. */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--midnight);
  font-family: var(--face);
  font-size: var(--t-body);
  font-weight: 400;              /* body only. everything larger is 300 */
  line-height: 1.2;
  font-feature-settings: 'ss01' on, 'tnum' on;   /* tabular figures */
  overflow-x: hidden;
}

/* weight 300 is the entire typographic identity — even at 56px */
h1, h2, h3, h4 { font-weight: 300; color: var(--midnight); margin: 0; }

h1 { font-size: var(--t-display); line-height: 1.03; letter-spacing: -0.025em; }
h2 { font-size: var(--t-h2);      line-height: 1.03; letter-spacing: -0.02em; }
h3 { font-size: var(--t-h3);      line-height: 1.1;  letter-spacing: -0.02em; }
h4 { font-size: var(--t-h4);      line-height: 1.12; letter-spacing: -0.01em; }

p { margin: 0; }
a { color: inherit; }

.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.section { padding-block: var(--section); }

/* sections divide by hairline rule + gap. never by card or shadow. */
.rule { border: 0; border-top: 1px solid var(--frost); margin: 0; }

.label {
  font-size: var(--t-12); font-weight: 400; letter-spacing: .06em;
  text-transform: uppercase; color: var(--slate);
}
.body-copy {
  font-size: var(--t-lg); font-weight: 300; line-height: 1.4;
  letter-spacing: -0.01em; color: var(--steel); max-width: 64ch;
}

/* ── nav ─────────────────────────────────────────────── */
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; gap: 16px; }
.nav__brand {
  font-size: var(--t-18); font-weight: 400; letter-spacing: -0.01em;
  color: var(--midnight); text-decoration: none;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: var(--t-14); font-weight: 400; color: var(--steel); text-decoration: none; }
.nav__links a:hover { color: var(--signal); }
@media (max-width: 860px) { .nav__links a:not(.btn) { display: none; } }

/* ── buttons — 4px, and a filled one never travels alone ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--t-14); font-weight: 400; letter-spacing: -0.01em;
  padding: 11px 18px; border-radius: var(--r);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn--fill  { background: var(--signal); color: var(--white); }
.btn--ghost { background: transparent; color: var(--midnight); border-color: var(--signal-edge); }
.btn--ghost:hover { background: var(--frost); }

/* ── hero ────────────────────────────────────────────── */
.hero { padding-top: 56px; padding-bottom: var(--section); }
.hero__grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { max-width: 15ch; margin-top: 18px; }
.hero__sub { margin-top: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--gap); margin-top: 34px; }

/* hero figure — the drawing sits on a tinted panel, since this system
   gets its depth from background tint rather than elevation */
.hero__fig {
  margin: 48px 0 0;
  background: var(--mist);
  border: 1px solid var(--frost);
  border-radius: var(--r);
  padding: 28px 28px 20px;
}
.hero__fig img { display: block; width: 100%; height: auto; }
.hero__fig figcaption {
  display: block; margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--frost);
}
@media (max-width: 980px) { .hero__fig { margin-top: 36px; } }
@media (max-width: 560px) { .hero__fig { padding: 16px 16px 14px; } }

/* ── cards — tint for depth, never elevation ─────────── */
.card { background: var(--white); border: 1px solid var(--frost); border-radius: var(--r); padding: var(--pad-card); }
.card--tint { background: var(--mist); }
.card--wash { background: var(--signal-wash); border-color: var(--signal-edge); }
.card h4 { margin-bottom: 10px; }
.card p { font-size: var(--t-body); font-weight: 300; line-height: 1.5; color: var(--steel); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

/* ── scope ledger — tabular figures doing real work ──── */
.ledger { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td { text-align: left; padding: 18px 14px; border-top: 1px solid var(--frost); vertical-align: top; }
.ledger th {
  font-size: var(--t-12); font-weight: 400; letter-spacing: .06em;
  text-transform: uppercase; color: var(--slate); border-top: 0;
}
.ledger td { font-size: var(--t-body); font-weight: 300; color: var(--steel); line-height: 1.5; }
.ledger td:first-child { color: var(--midnight); width: 30%; }
.ledger td.num { color: var(--midnight); width: 18%; white-space: nowrap; }
@media (max-width: 760px) {
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger thead { display: none; }
  .ledger tr { border-top: 1px solid var(--frost); padding-block: 10px; }
  .ledger td { border: 0; padding: 4px 0; width: auto !important; }
  .ledger td:first-child { font-size: var(--t-18); }
  .ledger td.num { font-size: var(--t-14); color: var(--slate); }
}

/* ── intake ──────────────────────────────────────────── */
.intake .field { margin-bottom: 12px; }
.intake label { display: block; font-size: var(--t-12); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.intake input, .intake textarea {
  width: 100%; font-family: var(--face); font-size: var(--t-body); font-weight: 400;
  color: var(--midnight); background: var(--white);
  border: 1px solid var(--frost); border-radius: var(--r); padding: 11px 13px;
}
.intake textarea { resize: vertical; min-height: 80px; line-height: 1.4; }
.intake input:focus, .intake textarea:focus { outline: none; border-color: var(--signal); }
.intake__row { display: flex; gap: var(--gap); margin-top: 4px; }
.intake__row .btn { flex: 1; }
.intake__fine { font-size: var(--t-12); font-weight: 300; color: var(--slate); line-height: 1.5; margin-top: 12px; }

/* ── tags ────────────────────────────────────────────── */
.places { display: flex; flex-wrap: wrap; gap: var(--gap); margin-top: 24px; }
.tag {
  font-size: var(--t-14); font-weight: 300; color: var(--steel);
  border: 1px solid var(--frost); border-radius: var(--r); padding: 8px 14px;
}

/* ── footer ──────────────────────────────────────────── */
.foot { background: var(--mist); padding-block: 56px; }
.foot__grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: end; }
.foot p { font-size: var(--t-14); font-weight: 300; color: var(--steel); line-height: 1.6; max-width: 58ch; margin-top: 12px; }

.callbar { display: none; }
@media (max-width: 700px) {
  .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--signal); text-align: center; }
  .callbar a { display: block; padding: 15px; color: var(--white); text-decoration: none; font-size: var(--t-14); font-weight: 400; }
  body { padding-bottom: 54px; }
}

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

/* ---------- generated sub-pages ---------- */
/* Added when the site expanded from one page to the full architecture. */

.crumbs { display: flex; align-items: center; gap: 9px; padding-top: 18px; }
.crumbs a, .crumbs span {
  font-size: var(--t-12); font-weight: 400; letter-spacing: .06em;
  text-transform: uppercase; color: var(--slate); text-decoration: none;
}
.crumbs a:hover { color: var(--signal); }
.crumbs [aria-current] { color: var(--steel); }

/* sub-page hero is a section opener, not a first impression */
.hero--sub { padding-top: 34px; padding-bottom: var(--section); }
.hero--sub h1 { font-size: clamp(2.25rem, 4.6vw, 3rem); letter-spacing: -0.02em; max-width: 17ch; }
.hero--sub .body-copy { max-width: 62ch; }

/* linked cards: depth from tint shift, never elevation */
.card--link {
  display: block; text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.card--link:hover { border-color: var(--signal-edge); background: var(--signal-wash); }
.card--link h4 { color: var(--midnight); }

/* footer link columns */
.foot__grid a:not(.btn) {
  display: block; color: var(--steel); text-decoration: none;
  font-size: var(--t-14); font-weight: 300; margin-top: 8px;
}
.foot__grid a:not(.btn):hover { color: var(--signal); }
.foot__grid .label { margin-bottom: 2px; }
.foot__grid > div { min-width: 150px; }
