/* Green Pastures Austin design system: base.css (v1.0, 2026-12-03)
   Fonts, reset, body defaults, type roles as classes, page shell. Needs tokens.css first. */

/* ===== Fonts: the site's own files, self-hosted in ./fonts ===== */
@font-face { font-family: "Manrope"; src: url("/design-system/fonts/Manrope-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/design-system/fonts/Manrope-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/design-system/fonts/Manrope-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/design-system/fonts/Manrope-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nyght Serif"; src: url("/design-system/fonts/NyghtSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nyght Serif"; src: url("/design-system/fonts/NyghtSerif-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding: 100px; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ===== Body ===== */
html, body { overflow-x: clip; } /* clip, not hidden, so sticky parts can stick */
body {
  background-color: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: var(--size-body);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-tight-1);
  line-height: var(--leading-180);
}

/* Links: forest, underlined in running text; the underline drops away on hover. */
a { color: var(--color-link); text-decoration: underline; text-underline-position: from-font; transition: color var(--dur-fast) ease; }
a:hover { text-decoration-color: transparent; }

/* Focus: a visible ring on every tone (the live site hid it). */
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.tone-dark :focus-visible, .on-photo :focus-visible { outline-color: var(--color-focus-on-dark); }

/* ===== Type roles =====
   Each replaces the site's class of the same job; sizes come from tokens.css. */
.t-display {          /* h1, 120 / 56 */
  font-family: var(--font-display); font-size: var(--size-display); font-weight: var(--weight-regular);
  line-height: var(--leading-100); letter-spacing: var(--tracking-tight-2); color: var(--color-heading);
}
.t-h2 {               /* 64 / 36 */
  font-family: var(--font-display); font-size: var(--size-h2); font-weight: var(--weight-regular);
  line-height: var(--leading-110); letter-spacing: var(--tracking-tight-2); color: var(--color-heading);
}
.t-h3 {               /* 48 / 30, medium */
  font-family: var(--font-display); font-size: var(--size-h3); font-weight: var(--weight-medium);
  line-height: var(--leading-100); letter-spacing: var(--tracking-tight-2); color: var(--color-heading);
}
.t-h4 {               /* 36 / 26, medium */
  font-family: var(--font-display); font-size: var(--size-h4); font-weight: var(--weight-medium);
  line-height: var(--leading-100); letter-spacing: var(--tracking-normal); color: var(--color-heading);
}
.t-body {             /* 18 / 16 on 1.8 */
  font-family: var(--font-text); font-size: var(--size-body); font-weight: var(--weight-regular);
  line-height: var(--leading-180); letter-spacing: var(--tracking-tight-1); color: var(--color-text);
}
.t-label-md {         /* 18 / 16 semibold, names */
  font-family: var(--font-text); font-size: var(--size-label-md); font-weight: var(--weight-semibold);
  line-height: var(--leading-130); letter-spacing: var(--tracking-tight-1); color: var(--color-text);
}
.t-label-sm {         /* 16 / 15 medium, footer links and contact */
  font-family: var(--font-text); font-size: var(--size-label-sm); font-weight: var(--weight-medium);
  line-height: var(--leading-110); letter-spacing: var(--tracking-tight-2);
}
.t-mini {             /* 14 medium, captions */
  font-family: var(--font-text); font-size: var(--size-mini); font-weight: var(--weight-medium);
  line-height: var(--leading-124); letter-spacing: var(--tracking-tight-2); color: var(--color-text);
}
.t-eyebrow {          /* 12 uppercase */
  font-family: var(--font-text); font-size: var(--size-eyebrow); font-weight: var(--weight-regular);
  line-height: var(--leading-140); letter-spacing: var(--tracking-normal); text-transform: uppercase; color: var(--color-heading);
}

/* ===== Tones =====
   mint (page), rosemary (green band), forest (footer). On rosemary and forest, headings and text turn white. */
.tone-mint { background-color: var(--color-mint); }
.tone-rosemary { background-color: var(--color-rosemary); color: var(--color-on-dark); }
.tone-forest { background-color: var(--color-forest); color: var(--color-on-dark); }
.tone-rosemary :is(.t-display, .t-h2, .t-h3, .t-h4, .t-body, .t-eyebrow),
.tone-forest :is(.t-display, .t-h2, .t-h3, .t-h4, .t-body, .t-eyebrow) { color: var(--color-on-dark); }

/* ===== Page shell ===== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); position: relative; }
@media (max-width: 1220px) { .container { padding-left: var(--gutter-sm); padding-right: var(--gutter-sm); } }

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

/* Skip link: hidden until focused. */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100000; padding: 12px 20px; border-radius: var(--radius-pill); background: var(--color-forest); color: var(--color-mint); font-weight: var(--weight-semibold); text-decoration: none; }
.skip-link:focus { top: 16px; }

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