/* ==========================================================================
   base.css — resets, @font-face, base elements, typography, layout helpers
   ========================================================================== */

/* --------------------------------------------------------------------------
   Self-hosted brand fonts.
   Drop the woff2 files into assets/fonts/ and these activate automatically;
   until then the stacks in variables.css fall back to Georgia / Segoe UI.
   No CDN is ever contacted (CLAUDE.md §7).
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../assets/fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* sticky header height + breathing room for anchor jumps */
  scroll-padding-top: 6.5rem;
}

body {
  min-height: 100%;
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-400);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
picture,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-900);
  line-height: var(--lh-tight);
}

h2 {
  font-size: clamp(1.9rem, 4.4vw, var(--fs-800));
}

h3 {
  font-size: clamp(1.35rem, 2.6vw, var(--fs-700));
}

h4 {
  font-size: var(--fs-600);
  letter-spacing: 0.04em;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: var(--fw-semibold);
  color: var(--color-cream);
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  position: relative;
  padding-block: var(--section-pad-block);
}

.section--panel {
  background-color: var(--bg-panel);
}

/* Photo-backed band: real photography carrying the visual weight, scrimmed
   down so type stays at AA contrast. */
.section--photo {
  background-color: var(--color-black);
  isolation: isolate;
  overflow: hidden;
}

.section__bg {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
}

.section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--color-black) 0%,
    var(--scrim-mid) 32%,
    var(--scrim-mid) 68%,
    var(--color-black) 100%
  );
}

.section--photo > .container {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.section-head {
  max-width: 44rem;
  margin-bottom: var(--spacing-xl);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xs);
  margin-bottom: var(--spacing-sm);
  color: var(--text-accent);
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: var(--hairline);
  background-color: currentColor;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head__lead {
  margin-top: var(--spacing-md);
  color: var(--text-muted);
  font-size: var(--fs-500);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  z-index: calc(var(--z-header) + 10);
  padding: var(--spacing-2xs) var(--spacing-sm);
  background-color: var(--color-orange-500);
  color: var(--color-black);
  font-size: var(--fs-200);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform var(--duration-fast) var(--ease-out-soft);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

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

::selection {
  background-color: var(--color-green-400);
  color: var(--color-black);
}

/* Firefox scrollbar */
html {
  scrollbar-color: var(--color-green-900) var(--color-black);
}
