/* ARTFULNESS design system
   Rustic and modern: muted earthy palette, geometric type, generous whitespace. */

:root {
  --sage:      #77B595;
  --sage-deep: #4E8C6E;  /* backgrounds, hovers, borders */
  --sage-text: #3F7359;  /* green used for TEXT: 5.1:1 on ivory, passes AA */
  --ivory:     #F5F7F2;
  --navy:      #312E42;
  --card:      #E4E0DF;
  --grey:      #6A6672;  /* 5.2:1 on ivory, passes AA at 13px */
  --gold:      #C9A24B;
  --white:     #FFFFFF;

  --measure: 68ch;
  --pad: clamp(20px, 5vw, 64px);
  --shell: 1200px;

  --sans: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Poppins", "Montserrat", "Segoe UI", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 800px) { body { font-size: 18px; } }

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

a { color: inherit; text-decoration-color: var(--sage); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--sage-deep); }

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1.15em; max-width: var(--measure); }

/* ---------- shell ---------- */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.shell-narrow { max-width: 860px; margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: clamp(56px, 8vw, 104px); }
.tight { padding-block: clamp(40px, 5vw, 64px); }

/* ---------- type helpers ---------- */
.kicker {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  color: var(--sage-text);
  margin: 0 0 18px;
  display: block;
}
.kicker-light { color: var(--sage); }
.lede { font-size: clamp(1.06rem, 1.7vw, 1.28rem); font-weight: 400; line-height: 1.62; }
.source { font-size: 13px; font-weight: 500; color: var(--grey); line-height: 1.55; max-width: 60ch; }
.band-dark .source { color: rgba(245,247,242,.68); }
.small { font-size: 14px; }
.mal { font-weight: 600; }

/* headline with the 3px sage rule */
.ruled { position: relative; padding-left: 24px; }
.ruled::before {
  content: ""; position: absolute; left: 0; top: .12em; bottom: .12em;
  width: 3px; background: var(--sage); border-radius: 2px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--card); }
.header-inner {
  max-width: var(--shell); margin-inline: auto; padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .2em; font-size: 22px; color: var(--navy);
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 12px;
}
.wordmark .mark { width: 30px; height: 30px; flex: none; }
@media (max-width: 420px) { .wordmark { font-size: 19px; letter-spacing: .16em; gap: 9px; } .wordmark .mark { width: 24px; height: 24px; } }
.nav { display: none; align-items: center; gap: 30px; }
@media (min-width: 940px) { .nav { display: flex; } }
.nav a {
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--navy);
  padding-block: 4px; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--sage); }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 0 10px; background: none;
  border: 1px solid var(--card); border-radius: 4px; cursor: pointer;
}
@media (min-width: 940px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 80; background: var(--sage);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 32px var(--pad); overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  font-size: clamp(1.5rem, 6vw, 2.1rem); font-weight: 700; color: var(--navy);
  text-decoration: none; padding-block: 10px;
  border-bottom: 1px solid rgba(49,46,66,.16);
}
.mobile-nav .close {
  position: absolute; top: 18px; right: var(--pad);
  width: 44px; height: 44px; font-size: 28px; line-height: 1;
  background: none; border: 1px solid rgba(49,46,66,.3); border-radius: 4px;
  color: var(--navy); cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
  padding: 15px 28px; border-radius: 4px; border: 1px solid transparent;
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--sage); color: var(--navy); }
.btn-primary:hover { background: var(--sage-deep); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--ivory); }
.band-dark .btn-outline { color: var(--ivory); border-color: rgba(245,247,242,.55); }
.band-dark .btn-outline:hover { background: var(--ivory); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.text-link {
  font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; border-bottom: 2px solid var(--sage); padding-bottom: 3px;
}
.text-link:hover { border-bottom-color: var(--navy); }

/* ---------- bands ---------- */
.band-sage  { background: var(--sage);  color: var(--navy); }
.band-dark  { background: var(--navy);  color: var(--ivory); }
.band-white { background: var(--white); }
.band-card  { background: var(--card); }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--ivory); }
.band-dark a { color: var(--ivory); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(44px, 7vw, 88px); }
.hero-split { display: grid; gap: clamp(32px, 5vw, 60px); align-items: center; }
@media (min-width: 940px) {
  /* On wide screens let the photograph fill the full height of the text column
     rather than floating in the middle of it. */
  .hero-split { grid-template-columns: 1.05fr .95fr; align-items: stretch; }
  .hero-split > .reveal:first-child { align-self: center; }
  .hero-photo img { aspect-ratio: auto; min-height: 100%; }
}
.hero h1 { margin-bottom: .5em; }
.hero-photo { border-radius: 4px; overflow: hidden; background: var(--card); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.tagline {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .18em; font-size: 11px; color: var(--sage-text); margin: -10px 0 22px;
}
.hero .kicker { font-size: 14px; letter-spacing: .22em; margin-bottom: 12px; }
.tagline { font-size: 12px; }
.hero-interior { padding-block: clamp(48px, 7vw, 92px); }
.hero-interior p { max-width: 62ch; }

/* ---------- claim band ---------- */
.claim { text-align: center; }
.claim p.claim-line {
  font-size: clamp(1.3rem, 2.9vw, 2rem); font-weight: 300; line-height: 1.4;
  max-width: 24ch; margin: 0 auto .9em;
}
.claim .source { margin-inline: auto; }

/* ---------- numbered rows ---------- */
.rows { display: grid; gap: 0; margin-top: 44px; }
.row-item {
  display: grid; gap: 8px 26px; padding: clamp(24px, 3vw, 34px) 0;
  border-top: 1px solid var(--card); align-items: start;
}
.row-item:last-child { border-bottom: 1px solid var(--card); }
@media (min-width: 760px) { .row-item { grid-template-columns: 78px 1fr; } }
.row-num {
  font-weight: 300; font-size: 44px; line-height: 1; color: var(--card);
  font-variant-numeric: tabular-nums;
}
.band-dark .row-num { color: rgba(245,247,242,.28); }
.band-dark .row-item { border-color: rgba(245,247,242,.2); }
.row-item h3 { margin-bottom: .35em; }
.row-item p:last-child { margin-bottom: 0; }
.row-meta {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--sage-text); margin-bottom: 8px;
}
a.row-item { text-decoration: none; transition: background-color .2s ease; }
a.row-item:hover { background: rgba(119,181,149,.1); }
a.row-item:hover h3 { color: var(--sage-text); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; margin-top: 44px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--card); border-radius: 4px;
  padding: clamp(26px, 3vw, 38px); box-shadow: none;
}
.band-white .card { background: var(--ivory); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; display: block; transition: border-color .2s ease; }
a.card:hover { border-color: var(--sage); }
a.card:hover h3 { color: var(--sage-text); }
.card-arrow {
  display: block; margin-top: 18px; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--sage-text);
}

/* ---------- third space ---------- */
.third-space { display: grid; gap: 18px; margin-top: 44px; }
@media (min-width: 900px) { .third-space { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.ts-col {
  background: rgba(255,255,255,.5); border: 1px solid rgba(49,46,66,.14);
  border-radius: 4px; padding: clamp(24px, 2.6vw, 34px);
}
.ts-col.is-centre { background: var(--white); border: 2px solid var(--gold); }
.ts-col h3 { font-size: 1.15rem; }
.ts-col p { font-size: 15.5px; line-height: 1.62; }
.ts-foot {
  margin-top: 22px; background: var(--navy); color: var(--ivory);
  border-radius: 4px; padding: clamp(26px, 3vw, 38px);
}
.ts-foot p { max-width: 78ch; font-size: clamp(1rem, 1.5vw, 1.12rem); }
.ts-foot .source { color: rgba(245,247,242,.66); }

/* ---------- pull quote ---------- */
.pull {
  border-left: 3px solid var(--gold); padding: 6px 0 6px 26px;
  margin: 40px 0; max-width: 60ch;
}
.pull p { font-size: clamp(1.15rem, 2.1vw, 1.6rem); font-weight: 300; line-height: 1.45; margin: 0; }

/* ---------- callout ---------- */
.callout {
  background: var(--sage); border-radius: 4px;
  padding: clamp(28px, 3.4vw, 44px); margin: 44px 0;
}
.callout p { max-width: 66ch; font-size: clamp(1.02rem, 1.6vw, 1.16rem); margin-bottom: 0; }
.callout p + p { margin-top: 1em; }

/* ---------- definition block (answer engines) ---------- */
.definition {
  background: var(--white); border: 1px solid var(--card); border-left: 3px solid var(--sage);
  border-radius: 4px; padding: clamp(28px, 3.4vw, 44px);
}
.definition p { max-width: 72ch; }
.definition p:last-child { margin-bottom: 0; }
.definition dl { margin: 0; }
.definition dt {
  font-weight: 600; font-size: 13px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--sage-text); margin-top: 22px;
}
.definition dd { margin: 5px 0 0; max-width: 72ch; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin-top: 36px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15.5px; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--card); vertical-align: top; }
th {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em;
  color: var(--grey); border-bottom-width: 2px;
}
tbody tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 600; width: 38%; }
.band-dark th { color: rgba(245,247,242,.6); border-color: rgba(245,247,242,.25); }
.band-dark td { border-color: rgba(245,247,242,.2); }

/* On narrow screens the two column tables stack into label and value pairs
   rather than scrolling sideways. The header row is dropped, because each
   pair reads as a definition without it. */
@media (max-width: 660px) {
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  tbody tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--card); }
  tbody tr:last-child { border-bottom: none; }
  tbody td { display: block; width: auto; padding: 0; border: none; }
  tbody td:first-child {
    width: auto; font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .09em; color: var(--sage-text); margin-bottom: 6px;
  }
  .band-dark tbody tr { border-color: rgba(245,247,242,.2); }
  .band-dark tbody td:first-child { color: var(--sage); }
  caption.source { padding-bottom: 16px; }
}

/* ---------- evidence ---------- */
.ev-list { list-style: none; margin: 32px 0 0; padding: 0; }
.ev-list li { padding: 22px 0; border-top: 1px solid var(--card); max-width: 78ch; }
.ev-list li:last-child { border-bottom: 1px solid var(--card); }
.ev-claim { margin: 0 0 6px; max-width: 78ch; }
.chip {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .09em; padding: 4px 11px; border-radius: 999px; margin-bottom: 10px;
  border: 1px solid;
}
.chip-good { color: var(--sage-text); border-color: var(--sage); background: rgba(119,181,149,.12); }
.chip-contested { color: #8A6A16; border-color: var(--gold); background: rgba(201,162,75,.12); }
.chip-retired { color: var(--grey); border-color: var(--grey); background: rgba(125,121,133,.1); }

/* ---------- photo grid ---------- */
.photo-grid { display: grid; gap: 14px; margin-top: 40px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; border-radius: 4px; }
figure { margin: 0; }
figcaption { font-size: 13px; font-weight: 500; color: var(--grey); margin-top: 8px; }

/* ---------- form ---------- */
.form { margin-top: 40px; max-width: 720px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field .hint { font-size: 13px; font-weight: 400; color: var(--grey); display: block; margin-top: 3px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--navy);
  background: var(--white); border: 1px solid var(--card); border-radius: 4px;
  padding: 13px 15px; line-height: 1.5;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sage); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; max-width: 66ch; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--sage-deep); }
.check label { font-size: 14.5px; font-weight: 400; line-height: 1.55; }
.form-note { font-size: 13.5px; color: var(--grey); margin-top: 18px; max-width: 66ch; }
.form-success {
  background: var(--sage); border-radius: 4px; padding: clamp(28px, 3.4vw, 44px); margin-top: 40px;
}
.form-success h2 { margin-bottom: .4em; }
.form-success p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }

/* ---------- chips filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.filter-chip {
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--card);
  background: transparent; color: var(--navy); cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.filter-chip:hover { border-color: var(--sage); }
.filter-chip[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--ivory); padding-block: clamp(48px, 6vw, 76px); }
.footer-top {
  display: grid; gap: 36px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(245,247,242,.18);
}
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer .wordmark { color: var(--ivory); font-size: 22px; }
.site-footer .wordmark .mark { width: 34px; height: 34px; }
.footer-col h4 {
  font-size: 11px; font-weight: 800; font-family: var(--display); text-transform: uppercase;
  letter-spacing: .16em; color: var(--sage); margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14.5px; text-decoration: none; color: rgba(245,247,242,.85); }
.footer-col a:hover { color: var(--sage); }
.footer-bottom {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(245,247,242,.18);
  display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between;
  font-size: 13.5px; color: rgba(245,247,242,.7);
}
.footer-bottom p { margin: 0; max-width: none; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--ivory); padding: 12px 20px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- motion ---------- */
/* Reveal is a progressive enhancement. Without JavaScript the .js class is
   never added, so every .reveal element simply renders as normal. */
.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- answer pages ---------- */
.crumbs { font-size: 13px; font-weight: 500; color: var(--grey); margin-bottom: 18px; }
.crumbs a { color: var(--grey); text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.crumbs span { margin: 0 6px; }
.faq { margin-top: 28px; }
.faq-item { padding: 22px 0; border-top: 1px solid var(--card); max-width: 78ch; }
.faq-item:last-child { border-bottom: 1px solid var(--card); }
.faq-item h3 { font-size: clamp(1.02rem, 1.6vw, 1.16rem); margin-bottom: .4em; }
.faq-item p { margin-bottom: 0; }
.link-list { list-style: none; margin: 24px 0 0; padding: 0; max-width: 78ch; }
.link-list li { padding: 12px 0; border-top: 1px solid var(--card); }
.link-list li:last-child { border-bottom: 1px solid var(--card); }
.link-list a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--card); }
.link-list a:hover { border-bottom-color: var(--navy); }
.video { margin: 28px 0; }
.callout .small { font-size: 14px; margin-top: 1em; }
.callout a { color: var(--navy); }
@media (min-width: 940px) and (max-width: 1080px) { .nav a { padding-inline: 10px; } }
