/* ============================================================
   Sydney Zoo — base.css
   Reset, design tokens, typography, buttons, utilities
   ============================================================ */

:root {
  /* colour */
  --ink: #181818;
  --paper: #ffffff;
  --sand: #f7f7f5;
  --olive: #666832;
  --olive-deep: #565831;
  --muted: #616161;
  --line: rgba(24, 24, 24, 0.12);
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.72);

  /* type */
  --font-display: "Nunito Sans", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* spacing / layout */
  --maxw: 1440px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 9vw, 120px);
  --radius-pill: 100px;
  --radius-card: 0px;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; }

/* typography scale */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.375rem); /* ~86px */
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2rem); /* ~32px */
  line-height: 1.35;
}
.h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
}
.accent-olive { color: var(--olive); }

/* eyebrow label • LABEL */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow::before { content: "•"; font-size: 1em; line-height: 1; }
.eyebrow.on-dark { color: #cfd0a8; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  line-height: 1;
}
.btn:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-deep); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--olive); color: var(--olive); }

/* arrow button: label + circular arrow chip */
.btn-arrow { padding: 8px 8px 8px 24px; gap: 0.9em; }
.btn-arrow .chip {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--olive); color: #fff; flex: none;
}
.btn-light.btn-arrow .chip { background: var(--olive); color: #fff; }
.btn-primary.btn-arrow .chip { background: #fff; color: var(--olive); }
.btn-arrow .chip svg { width: 16px; height: 16px; }

/* text link with arrow */
.tlink {
  font-weight: 600;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.18s ease, gap 0.18s ease;
}
.tlink:hover { border-color: var(--olive); gap: 0.65em; }

/* utilities */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.measure { max-width: 46ch; }
.measure-wide { max-width: 62ch; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }
