/* ============================================================
   Alba & Flint Creative — design tokens + base
   One accent (teal), held with discipline. The work carries the rest.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Palette (locked) */
  --cloud: #f6f3ed;       /* base, background */
  --limewash: #d8cdbb;    /* surfaces, sand, dividers */
  --seaglass: #9db2a3;    /* soft supporting tone */
  --clay: #c9a892;        /* warm whisper, near-invisible */
  --driftwood: #5b5147;   /* body text */
  --teal: #1f4e4a;        /* the single accent */
  --teal-hover: #2f6e66;  /* interactive states */

  /* Derived */
  --line: rgba(91, 81, 71, 0.16);      /* hairline dividers */
  --surface: #fffdf8;                  /* lifted cards on cloud */
  --ink: #2c2722;                      /* deepest text, rare */
  --teal-ink-contrast: #f6f3ed;        /* text on teal */

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale */
  --fs-hero: clamp(2.75rem, 6vw, 4.5rem);
  --fs-h2: clamp(1.9rem, 3.5vw, 2.75rem);
  --fs-h3: 1.5rem;
  --fs-lead: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* Rhythm */
  --measure: 64ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 10vw, 8rem);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.4s;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cloud);
  color: var(--driftwood);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-hover); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 450;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; max-width: var(--measure); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--teal);
  color: var(--teal-ink-contrast);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 100;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.5rem; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 1px;
}

.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;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: 1440px; }
.wrap--narrow { max-width: 760px; }

.section { padding-block: var(--section-y); }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--driftwood);
  opacity: 0.7;
  margin: 0 0 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn--primary { background: var(--teal); color: var(--teal-ink-contrast); }
.btn--primary:hover { background: var(--teal-hover); color: var(--teal-ink-contrast); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--teal); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cloud) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--teal); }
.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--driftwood);
  text-decoration: none;
}
.site-nav a:hover { color: var(--teal); }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--cloud);
    border-bottom: 1px solid var(--line);
    padding: 0 var(--gutter) 1.5rem;
    display: none;
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; gap: 1rem; padding-top: 1rem; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-size: var(--fs-small);
    color: var(--driftwood);
    cursor: pointer;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--limewash);
  color: var(--driftwood);
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}
.site-footer a { color: var(--teal); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 2rem;
}
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.footer-col h4 {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--driftwood);
  opacity: 0.7;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: var(--fs-small);
  opacity: 0.8;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
