/* ==========================================================================
   Cinder and Collective
   Fonts are self-hosted in /fonts (see images/SOURCES.txt for photo sources).
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/newsreader-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/newsreader-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/newsreader-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   Tokens
   Text colours are checked against WCAG AA on their intended backgrounds:
   --muted 5.56:1 on white, --sage 5.17:1 on white, --on-dark 10.07:1 on --dark.
   -------------------------------------------------------------------------- */

:root {
  --ink: #16211c;
  --body: #3d4640;
  --body-soft: #4a534d;
  --muted: #5f6b64;
  --sage: #5d7266;
  --dark: #1c2620;
  --dark-hover: #2c3b33;
  --on-dark: #c9d2cb;
  --on-dark-strong: #f2f4f1;
  --on-dark-soft: #a9b5ad;
  --line: #e7eae7;
  --line-strong: #dfe6e0;
  --surface: #ffffff;
  --tint: #f7f9f7;
  --tint-strong: #eef1ee;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --gutter: clamp(24px, 5vw, 64px);
  --section-y: clamp(56px, 8vw, 88px);
  --wrap: 1100px;
  --radius: 3px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

figure { margin: 0; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--sage); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--dark);
  color: var(--on-dark-strong);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  color: var(--on-dark-strong);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  width: 100%;
}

.section {
  padding: var(--section-y) var(--gutter);
}
.section--tint { background: var(--tint-strong); }
.section--soft { background: var(--tint); border-top: 1px solid var(--line); }
.section--tight { padding-block: clamp(44px, 6vw, 68px); }

main { flex: 1; }

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}

.label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}

.lede {
  font-size: 17px;
  color: var(--body-soft);
  max-width: 34em;
}

.muted { color: var(--muted); }

h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font-size: 19px; }

h1 em, h2 em, .wordmark em { font-style: italic; color: var(--sage); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.announce {
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 9px 16px;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--solid { background: var(--dark); color: #ffffff; }
.btn--solid:hover { background: var(--dark-hover); color: #ffffff; }

.btn--outline {
  border: 1px solid #b9c4bc;
  color: var(--ink);
  background: var(--surface);
}
.btn--outline:hover { border-color: var(--dark); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 5px;
  align-self: flex-start;
}
.link-arrow span { font-family: var(--serif); }
.link-arrow:hover { color: var(--sage); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 6vw, 64px);
  align-items: center;
}

.hero__copy { max-width: 620px; display: flex; flex-direction: column; gap: 20px; }
.hero__copy .eyebrow { margin-bottom: -6px; }

.hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--tint);
}
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* --------------------------------------------------------------------------
   Facts strip
   -------------------------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fact {
  background: var(--surface);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fact dt { font-size: 12px; color: var(--muted); }
.fact dd { margin: 0; font-size: 15px; font-weight: 600; }

/* --------------------------------------------------------------------------
   Category tiles
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tile:hover {
  border-color: var(--sage);
  box-shadow: 0 6px 18px rgba(28, 38, 32, 0.08);
  transform: translateY(-2px);
}
.tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--tint-strong);
}
.tile__body { padding: 16px 18px; }
.tile__body h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 4px;
}
.tile__body p { font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Generic cards / grids
   -------------------------------------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
  padding: 26px 28px;
}
.card h2, .card h3 { margin-bottom: 10px; }

.card--contact .card__value {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  word-break: break-word;
}
.card--contact .card__note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.promise { display: flex; flex-direction: column; gap: 6px; }
.promise h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}
.promise p { font-size: 14px; color: var(--body-soft); }

.spec { display: flex; flex-direction: column; gap: 2px; }
.spec dt { font-size: 12px; color: var(--muted); }
.spec dd { margin: 0; font-size: 15px; }

/* --------------------------------------------------------------------------
   Prose (policy pages)
   -------------------------------------------------------------------------- */

.prose {
  max-width: 40em;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 16px;
  color: var(--body);
}
.prose h2 {
  font-size: 24px;
  margin-top: 22px;
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--dark);
  color: var(--on-dark);
  padding: 44px var(--gutter) 26px;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
}

.footer__col { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.footer__col .label { color: var(--on-dark-soft); margin-bottom: 4px; }
.footer__brand {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--on-dark-strong);
}
.footer__brand em { font-style: italic; color: var(--on-dark-soft); }

.footer a { color: var(--on-dark); }
.footer a:hover { color: var(--on-dark-strong); }

.footer__base {
  border-top: 1px solid rgba(242, 244, 241, 0.15);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--on-dark-soft);
}

address { font-style: normal; }

/* --------------------------------------------------------------------------
   Error page
   -------------------------------------------------------------------------- */

.notfound {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding-block: clamp(72px, 12vw, 120px);
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 560px) {
  .masthead { padding-block: 16px; }
  .nav { gap: 8px 18px; font-size: 11px; }
  .wordmark { font-size: 19px; }
  .section-head { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .tile:hover { transform: none; }
}

@media print {
  .announce, .nav, .hero__media, .tile img { display: none; }
  .footer { background: none; color: #000; }
  .footer a, .footer__base { color: #000; }
}
