/* Fonts (self-hosted, latin subset) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/cormorant-garamond-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/cormorant-garamond-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/cormorant-garamond-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/cormorant-garamond-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/cormorant-garamond-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-variable.woff2") format("woff2"); }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
body { min-height: 100dvh; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
[hidden] { display: none !important; }

/* Base */
body {
  background: var(--sand);
  color: var(--sea);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .h-display, .h-section, .h-card {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; }
p { max-width: 65ch; text-wrap: pretty; }
strong { font-weight: 600; }

/* Focus */
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 2px; }
.section--sea :focus-visible, .on-dark :focus-visible { outline-color: var(--gold); }

/* Skip link */
.skip-link {
  position: fixed; left: var(--space-3); top: var(--space-3); z-index: var(--z-skip);
  padding: var(--space-2) var(--space-3); background: var(--sea); color: var(--sand);
  transform: translateY(-200%); transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Utilities */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }
.section--mist { background: var(--mist); }
.section--sea { background: var(--sea); color: var(--sand); }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: var(--step--1);
  font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sea-soft);
  margin-bottom: var(--space-3);
}
.section--sea .eyebrow { color: var(--mist); }
.h-display { font-size: var(--step-5); }
.h-section { font-size: var(--step-4); }
.h-card { font-size: var(--step-2); font-weight: 400; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--sea-soft); font-weight: 300; }
.section--sea .lead { color: var(--mist); }
.muted { color: var(--sea-soft); }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }
.stack > * + * { margin-top: var(--space-4); }
.stack-sm > * + * { margin-top: var(--space-3); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon-line { display: flex; align-items: center; gap: var(--space-2); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; }

/* Placeholder marker: invisible on the live site. Add class "show-ph" to <html> to highlight unconfirmed facts. */
.show-ph .ph { text-decoration: underline dashed var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  background: var(--sea); color: var(--sand); border: 1px solid var(--sea);
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
}
.btn:hover { background: transparent; color: var(--sea); }
.btn--light { background: var(--sand); color: var(--sea); border-color: var(--sand); }
.btn--light:hover { background: transparent; color: var(--sand); }
.btn--ghost { background: transparent; color: var(--sea); }
.btn--ghost:hover { background: var(--sea); color: var(--sand); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--step--1); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; padding-block: var(--space-2); border-bottom: 1px solid currentColor;
  transition: gap var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.link-arrow:hover { gap: var(--space-3); color: var(--gold-deep); }
.section--sea .link-arrow:hover { color: var(--gold); }
.link-arrow .icon { width: 1em; height: 1em; }
