/* "harbor": a coastal child theme on the Fluid base v2, for charters and
   marinas (Cinzel and Bodoni Moda, a classic charter pairing). Inscribed
   capitals for the display and the label voice, a Didone for section heads,
   a quiet grotesk for text; deep navy for actions, sea-salt greys, a double
   rule like a chart's border. Fonts: themes/fonts/harbor.css. Link after the
   base: fluid.min.css, then this file. */
@layer reset, tokens, base, layouts, components, themes, utilities;

@layer themes {
  :root {
    --font-display: "Cinzel Variable", "Trajan Pro", Optima, "Palatino Linotype", Georgia, serif;
    --font-heading: "Bodoni Moda Variable", Didot, "Bodoni MT", "Noto Serif Display", P052, Georgia, serif;
    --font-body: "Hanken Grotesk Variable", "Helvetica Neue", "Segoe UI Variable Text", "Segoe UI", Roboto, Arial, sans-serif;
    --accent: oklch(38% 0.08 230);          /* deep-water teal navy; white on it ≈ 9.8:1 */
    --neutral-tint: oklch(50% 0.009 225);   /* sea-salt: greys lean cool, toward the water */
    --type-ratio: 1.333;                    /* capitals read large: a step under the base */
    --weight-display: 500;                  /* Cinzel's regular is thin at 1x; h2 Bodoni at 500 too */
    --weight-heading: 500;
    --display-max: 8rem;
    --measure: 60ch;
    --radius-control: 2px;
    --container-content: 84rem;
    --space-section: clamp(4.5rem, 3rem + 6.667vi, 9.5rem);    /* 72 → 152 */
    --toc-font: var(--font-body);
    --toc-dock-font: var(--font-body);
    --nav-tracking: 0.14em;
    --nav-tracking-min: 0.06em;
  }

  /* Inscribed capitals: Cinzel draws a-z as small capitals and has no
     italic, so the display is set a touch tight in line and emphasis
     switches to Bodoni's italic. */
  .display, .hero__headline, h1 { line-height: 1.02; letter-spacing: 0.01em; }
  :is(.display, .hero__headline, h1) em {
    font-family: var(--font-heading);
    font-style: italic;
    letter-spacing: -0.01em;
  }

  /* The label voice: the base's labels, nav, buttons and the nav's action
     in Cinzel capitals, tracked like a nautical chart's lettering. Full
     capitals, not Cinzel's small capitals: at 13px those are 7px tall. */
  :is(.eyebrow, h5, h6, thead th, .plate, cite, legend, dt, .toc__label, .stat__label),
  :is(button, .button, .nav__cta), :is(.nav__link, .nav__dropdown-link), .nav__brand {
    font-family: var(--font-display);
    font-weight: calc(600 + var(--_dark-weight));
    text-transform: uppercase;
  }
  :is(.eyebrow, h5, h6, thead th, .plate, cite, legend, dt, .toc__label, .stat__label) { letter-spacing: 0.14em; }
  :is(button, .button, .nav__cta) { letter-spacing: 0.1em; }
  .nav__brand { letter-spacing: 0.08em; }
  /* A long button label still fits a 320px screen. */
  @media (max-width: 24rem) {
    :is(button, .button, .nav__cta) { letter-spacing: 0.02em; }
  }
  /* A segmented button group cannot wrap: on a phone its capitals lose their
     tracking and some padding, so three labels still fit a 390px screen. */
  @media (max-width: 30rem) {
    .button-group > :is(button, .button) { letter-spacing: 0; padding-inline: 1em; }
  }

  /* A double rule over each section head, like the border of a chart. */
  :is(.section__head, .features__header, .stats__header, .team__header, .testimonials__header) {
    border-block-start: 4px double var(--color-border-strong);
  }

  .lede { font-family: var(--font-body); font-weight: 400; }   /* Bodoni under 400 is hairline */

  blockquote:not(.testimonial__quote) {
    font: italic 500 var(--step-2) / 1.25 var(--font-heading);
    border-inline-start-width: 2px;
  }
  .stat__value { font-family: var(--font-display); font-weight: calc(500 + var(--_dark-weight)); }

  /* Bodoni's fine cut loses its hairlines on 1x screens and phones (Neil,
     2026-10-29, on the gallery theme): there, its sturdier optical size and
     one step heavier, for the section heads and every quote. */
  @media (max-resolution: 1.5dppx), (max-width: 40rem) {
    :root { --weight-heading: 600; }
    h2, h3 { font-variation-settings: "opsz" 11; letter-spacing: -0.02em; }
    :is(.display, .hero__headline, h1) em, blockquote, .pullquote, .testimonial__quote p {
      font-variation-settings: "opsz" 11;
    }
    :is(.pullquote, .testimonial__quote p) { font-weight: calc(500 + var(--_dark-weight)); }
  }

  /* ---------- Layout signature (_docs/plans/2026-11-22-theme-differentiation.md) ----------
     The theme recomposes the default hero (one with no data-layout; an author's
     data-layout wins) and the bar; the markup stays the core's. */
  /* A light bar in the page's own colours, a hairline under it. */
  :root { --nav-bg: var(--color-background); --nav-ink: var(--color-text); }
  .nav:not([data-bg], [data-variant]) {
    color-scheme: inherit;
    --_dark-weight: inherit;
    border-block-end: 1px solid var(--color-border);
  }
  /* A masthead on a wide screen: the brand centred over a row of links. */
  @media (min-width: 64rem) {
    .nav:not([data-nav]) { flex-wrap: wrap; justify-content: center; row-gap: var(--space-2); }
    .nav:not([data-nav]) > .nav__brand { flex: 1 0 100%; justify-content: center; font-size: var(--step-2); }
    .nav:not([data-nav]) :is(.nav__menu, .nav__actions) { margin-inline: 0; }
  }
  /* A chart's symmetry: the hero centred, its photo framed in a double rule. */
  .hero:not([data-layout]) { text-align: center; }
  .hero:not([data-layout]) > :is(.eyebrow, .hero__headline, .hero__subheadline, .lede) { margin-inline: auto; }
  .hero:not([data-layout]) .hero__actions { justify-content: center; }
  .hero:not([data-layout]) > .hero__plate {
    margin-inline: 0;
    margin-block-end: 0;
    padding: var(--space-2);
    border: 4px double var(--color-border-strong);
  }
  .hero:not([data-layout]) > .hero__plate figcaption { margin-inline: 0; text-align: center; }
  .section__head, .features__header, .stats__header, .team__header, .testimonials__header { text-align: center; }
  :is(.section__head, .features__header, .stats__header, .team__header, .testimonials__header) > * { margin-inline: auto; }
  .card__content { text-align: center; }
}
