/* Green Pastures design system: base.css (1.0, 2026-12-04)
   Fonts, reset, body defaults, type roles and the page shell. Needs tokens.css first. */

/* Fonts: the site's own files, served from this site. */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nyght Serif"; src: url("/assets/fonts/NyghtSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nyght Serif"; src: url("/assets/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-top: 100px; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }

/* Body: mint paper, near-black Manrope copy (measured on body). */
body {
  background-color: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--size-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-180);
  letter-spacing: var(--tracking-tight-1);
}

/* Links: forest, underline from the font, the underline fades out on hover. */
a { color: var(--ink); text-decoration: underline; text-underline-position: from-font; transition: all var(--duration) var(--ease); }
a:hover { text-decoration-color: transparent; }

/* Focus ring: visible on every tone (the site draws a transparent outline at rest). */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.tone-forest :focus-visible, .tone-rosemary :focus-visible, .on-photo :focus-visible { outline-color: var(--focus-on-dark); }

/* Type roles */
.display {
  font-family: var(--font-serif); font-size: var(--size-display); font-weight: var(--weight-regular);
  line-height: var(--leading-100); letter-spacing: var(--tracking-tight-2); color: var(--ink);
}
.heading-2 {
  font-family: var(--font-serif); font-size: var(--size-h2); font-weight: var(--weight-regular);
  line-height: var(--leading-110); letter-spacing: var(--tracking-tight-2); color: var(--ink);
}
.heading-3 {
  font-family: var(--font-serif); font-size: var(--size-h3); font-weight: var(--weight-medium);
  line-height: var(--leading-100); letter-spacing: var(--tracking-tight-2); color: var(--ink);
}
.heading-4 {
  font-family: var(--font-serif); font-size: var(--size-h4); font-weight: var(--weight-medium);
  line-height: var(--leading-100); letter-spacing: var(--tracking-normal); color: var(--ink);
}
.heading-6 {
  font-family: var(--font-serif); font-size: var(--size-h6); font-weight: var(--weight-medium);
  line-height: var(--leading-100); color: var(--ink);
}
.body-medium { font-size: var(--size-body); line-height: var(--leading-180); letter-spacing: var(--tracking-tight-1); color: var(--text); }
.eyebrow {
  font-family: var(--font-sans); 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(--ink);
}
.label-md { font-size: var(--size-label-md); font-weight: var(--weight-semibold); line-height: var(--leading-130); letter-spacing: var(--tracking-tight-1); color: var(--text); }
.label-sm { font-size: var(--size-label-sm); font-weight: var(--weight-medium); line-height: var(--leading-110); letter-spacing: var(--tracking-tight-2); color: var(--text); }
.label-mini { font-size: var(--size-label-mini); font-weight: var(--weight-medium); line-height: var(--leading-124); letter-spacing: var(--tracking-tight-2); color: var(--text); }

@media (max-width: 767px) {
  .display, .heading-2, .heading-3 { letter-spacing: var(--tracking-tight-2); }
}

/* Band tones. Mint is the page; forest and rosemary turn headings and copy white. */
.tone-mint { background-color: var(--color-mint); }
.tone-forest { background-color: var(--band-dark); }
.tone-rosemary { background-color: var(--band-mid); }
.tone-forest :is(.heading-2, .heading-3, .heading-4, .eyebrow, p),
.tone-rosemary :is(.heading-2, .heading-3, .heading-4, .eyebrow, p) { color: var(--color-white); }

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

/* Spacers: the site's vertical rhythm as named gaps. */
.gap-2 { height: var(--space-2); } .gap-4 { height: var(--space-4); } .gap-20 { height: var(--space-20); }
.gap-24 { height: var(--space-24); } .gap-30 { height: var(--space-30); } .gap-36 { height: var(--space-36); }
.gap-52 { height: var(--space-52); } .gap-80 { height: var(--space-80); } .gap-128 { height: var(--space-128); }
.gap-156 { height: var(--space-156); } .gap-200 { height: var(--space-200); } .gap-236 { height: var(--space-236); }

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

/* Skip link: hidden until focused. */
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 1000; padding: 8px 12px; background: var(--ink); color: var(--color-off-white); font-size: var(--size-label-mini); font-weight: var(--weight-bold); text-decoration: none; border-radius: var(--radius-pill); }
.skip-link:focus { top: 8px; }

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