/* =========================================================================
   Brand tokens. Source of truth: the macsen-branding repo (tokens/tokens.css).
   ========================================================================= */
@font-face {
  font-family: "Sora";
  src: url("/fonts/Sora-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  /* Light: cream surface, plum text. */
  --bg: #fff6ee;      /* cream */
  --fg: #1e1030;      /* plum */
  --muted: #6b5480;   /* plum muted, 6.1:1 on cream */
  --accent: #b8341c;  /* coral deep, 5.5:1 on cream */
  --rule: #e8e7ea;    /* plum 100 */
  --focus: #1e1030;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark: plum surface, cream text. */
    --bg: #1e1030;
    --fg: #fff6ee;
    --muted: #c9b6d6;  /* lavender, 9.5:1 on plum */
    --accent: #ffc83d; /* amber, 11.6:1 on plum */
    --rule: #3a2352;   /* plum 700 */
    --focus: #ffc83d;
  }
}
/* ====================== end brand tokens ================================ */

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.5;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Header / logo ---------------------------------------------------------- */
.site-header {
  padding-block: 1.5rem;
}

.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  height: 1.75rem; /* 28px; lockup minimum is 24px */
  width: auto;
}

/* Main ------------------------------------------------------------------- */
main {
  flex: 1;
  padding-block: clamp(3rem, 10vh, 7rem) 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 3.5rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  text-wrap: balance;
}

.about p {
  margin: 0 0 2.5rem;
}

h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.contact p {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

/* Footer ----------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 1.5rem 2rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0.25rem 0;
}

/* Items wrap as whole units on narrow screens. */
.legal {
  list-style: none;
  margin: 0.25rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
}
