/* Project Serve Beach base, v1.0, 2026-12-04.
   Fonts, reset, body defaults, type roles and the page shell. Needs tokens.css first. */

/* ---- Fonts ----
   The site's own files (Google's Anton and Poppins), now served from this site's fonts/ folder.
   Anton 400 for display; Poppins 400 for text and 700 for buttons. */
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/design-system/fonts/anton-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/design-system/fonts/anton-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/design-system/fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/design-system/fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/design-system/fonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/design-system/fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }

@media (max-width: 544px) {
  html { font-size: 91.25%; } /* measured: 14.6px body on phones */
}

/* ---- Body ---- */
body {
  font-family: var(--font-text);
  font-size: var(--size-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  color: var(--color-paper);
  background: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--motion-fast), background-color var(--motion-fast); }

/* Focus: visible on every tone (decided; replaces the site's thin dotted outline). */
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.tone-light :focus-visible { outline: var(--focus-ring-on-light); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- Type roles ---- */
.t-hero {
  font-family: var(--font-display);
  font-size: var(--size-hero);
  font-weight: var(--weight-display-hero);
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--color-paper-soft);
}
.t-section {
  font-family: var(--font-display);
  font-size: var(--size-section);
  font-weight: var(--weight-regular);
  line-height: var(--leading-section);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--color-gold);
}
.t-section--light { color: var(--color-paper-soft); }
.t-item {
  font-family: var(--font-display);
  font-size: var(--size-item);
  font-weight: var(--weight-regular);
  line-height: var(--leading-item);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--color-paper-soft);
}
.t-band-title { /* sentence case, on the white band */
  font-family: var(--font-display);
  font-size: var(--size-item);
  font-weight: var(--weight-regular);
  line-height: var(--leading-band-title);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
}
.t-footer-title {
  font-family: var(--font-display);
  font-size: var(--size-footer-title);
  font-weight: var(--weight-regular);
  line-height: var(--leading-footer-title);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--color-paper-soft);
}
.t-body { font-size: var(--size-body); line-height: var(--leading-body); }

/* ---- Page shell ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }

.band { position: relative; }
.band--ink { background-color: var(--color-ink); color: var(--color-paper); }
.band--paper { background-color: var(--color-paper); color: var(--color-ink); }

/* A photo band: the picture under a blue-black wash. The picture comes from the page. */
.band--photo { background-color: var(--color-ink); background-repeat: no-repeat; }
.band--photo::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.band--photo > * { position: relative; }
.band--wash-50::before { background-color: var(--overlay-hero); }
.band--wash-80::before { background-color: var(--overlay-photo); }

.skip-link {
  position: absolute; left: 10px; top: -100px; z-index: 200;
  padding: 10px 20px; background: var(--color-gold); color: var(--color-ink); font-weight: var(--weight-bold);
}
.skip-link:focus { top: 10px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
