/* Daisy Foundation — site styles
   Tokens first, then elements, then components, then utilities.
   No JavaScript anywhere on this site. Keep it that way. */

:root {
  --bone:        #F5F0E6;
  --bone-sunk:   #EDE5D6;
  --oxblood:     #5E1F2B;
  --oxblood-dk:  #421520;
  --brass:       #B98A34;
  --brass-lt:    #C9A96E;
  --ink:         #221F1C;
  --muted:       #6E6154;
  --rule:        rgba(94, 31, 43, 0.16);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --measure: 34rem;
  --wide:    72rem;
  --gutter:  clamp(1.25rem, 5vw, 4rem);

  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.75rem;
  --s4: 3rem;
  --s5: 5rem;
  --s6: 7.5rem;
}

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

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.65;
  font-synthesis-weight: none;
}

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

a { color: var(--oxblood); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass); }

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 40;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--oxblood);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; font-family: var(--body); font-weight: 700; letter-spacing: 0; color: var(--ink); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */

.shell {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose { max-width: var(--measure); }
.prose > * + h2 { margin-top: var(--s4); }
.prose > * + h3 { margin-top: var(--s3); }

.band { padding-block: var(--s5); }
.band--tight { padding-block: var(--s4); }
.band--sunk { background: var(--bone-sunk); }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 var(--s2);
}

.lede { font-size: 1.3rem; line-height: 1.55; color: var(--muted); }

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

.masthead { border-bottom: 1px solid var(--rule); }

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  padding-block: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}

.brand__mark { width: 38px; flex: none; }

.brand__name {
  font-family: var(--body);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--oxblood);
  line-height: 1;
}

.brand__name span {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-top: 0.35rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  font-size: 0.94rem;
}

.nav a:not(.btn) { text-decoration: none; color: var(--ink); }
.nav a:not(.btn):hover,
.nav a:not(.btn)[aria-current="page"] { color: var(--oxblood); }
.nav a:not(.btn)[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--brass); }

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

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--oxblood);
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn.btn--solid { background: var(--oxblood); color: var(--bone); }
.btn.btn--solid:hover { background: var(--oxblood-dk); border-color: var(--oxblood-dk); color: var(--bone); }
.btn.btn--ghost { background: transparent; color: var(--oxblood); }
.btn.btn--ghost:hover { background: var(--oxblood); color: var(--bone); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }

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

.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem); }

.hero__art {
  position: absolute;
  right: -14%;
  top: 50%;
  transform: translateY(-50%);
  width: min(46rem, 78vw);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.hero__inner { position: relative; z-index: 1; max-width: 42rem; }

.hero h1 { margin-bottom: var(--s3); }

.hero .lede { max-width: 30rem; }

@media (min-width: 60rem) {
  .hero__art { opacity: 0.09; right: -6%; }
}

/* petals settle into place once, on load */
.hero__art path {
  transform-origin: 0 0;
  animation: settle 900ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.hero__art path:nth-child(1) { animation-delay: 0ms; }
.hero__art path:nth-child(2) { animation-delay: 70ms; }
.hero__art path:nth-child(3) { animation-delay: 140ms; }
.hero__art path:nth-child(4) { animation-delay: 210ms; }
.hero__art path:nth-child(5) { animation-delay: 280ms; }
.hero__art path:nth-child(6) { animation-delay: 350ms; }

@keyframes settle {
  from { opacity: 0; transform: rotate(-18deg) scale(0.9); }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__art path { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Petal list ---------- */

.petals { list-style: none; margin: 0; padding: 0; }

.petals > li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: var(--s3);
}

.petals > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 13px;
  height: 13px;
  background: var(--oxblood);
  border-radius: 0 100% 0 100%;
  transform: rotate(-20deg);
}

/* ---------- Columns ---------- */

.cols {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .cols--2 { grid-template-columns: repeat(2, 1fr); }
  .cols--3 { grid-template-columns: repeat(3, 1fr); }
}

.cols h3 { margin-bottom: var(--s1); }
.cols p { font-size: 1.0625rem; color: var(--muted); }

/* ---------- Figure / stats ---------- */

.figures { display: grid; gap: var(--s4); grid-template-columns: 1fr; }

@media (min-width: 48rem) { .figures { grid-template-columns: repeat(3, 1fr); } }

.figure__num {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 60;
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  line-height: 1;
  color: var(--oxblood);
  display: block;
}

.figure p { font-size: 1rem; color: var(--muted); margin-top: 0.7rem; }

.source { font-size: 0.85rem; color: var(--muted); margin-top: var(--s3); }
.source a { color: var(--muted); }

/* ---------- Crisis card (the one loud thing on the site) ---------- */

.crisis {
  background: var(--oxblood);
  color: var(--bone);
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: 3px;
  max-width: 40rem;
}

.crisis h2, .crisis h3 { color: var(--bone); }
.crisis h2 { margin-bottom: var(--s2); }

.crisis .eyebrow { color: var(--brass-lt); }

.crisis ol { margin: 0; padding-left: 1.4rem; }
.crisis li { margin-bottom: var(--s2); }
.crisis li::marker { color: var(--brass-lt); font-weight: 700; }

.crisis strong { color: var(--brass-lt); font-weight: 700; }

.crisis__foot {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid rgba(245, 240, 230, 0.25);
  font-size: 0.95rem;
}

.crisis a { color: var(--brass-lt); }

/* ---------- Quote ---------- */

.quote { max-width: 38rem; border-left: 2px solid var(--brass); padding-left: var(--s3); }

.quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 24;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--oxblood);
}

.quote figcaption { margin-top: var(--s2); font-size: 0.95rem; color: var(--muted); }

/* ---------- Callout ---------- */

.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
  padding: var(--s3);
  background: var(--bone-sunk);
  font-size: 1.0625rem;
  margin-block: var(--s3);
}

/* ---------- Definition rows ---------- */

.rows { border-top: 1px solid var(--rule); margin-top: var(--s3); }

.rows > div {
  border-bottom: 1px solid var(--rule);
  padding-block: var(--s3);
}

@media (min-width: 48rem) {
  .rows > div { display: grid; grid-template-columns: 14rem 1fr; gap: var(--s3); }
}

.rows dt, .rows h3 { font-weight: 700; color: var(--oxblood); }
.rows dd { margin: 0; color: var(--muted); }

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

.foot {
  background: var(--oxblood-dk);
  color: var(--bone);
  padding-block: var(--s5) var(--s4);
  margin-top: var(--s6);
}

.foot a { color: var(--brass-lt); }
.foot h3 { color: var(--bone); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: var(--s2); font-weight: 700; }

.foot__grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }

@media (min-width: 48rem) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.foot ul { list-style: none; margin: 0; padding: 0; font-size: 0.98rem; }
.foot li { margin-bottom: 0.6rem; }
.foot p { font-size: 0.98rem; color: rgba(245, 240, 230, 0.75); }

.foot__base {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid rgba(245, 240, 230, 0.2);
  font-size: 0.85rem;
  color: rgba(245, 240, 230, 0.6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  justify-content: space-between;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  position: static;
  display: inline-block;
  padding: 0.6rem 1rem;
  background: var(--oxblood);
  color: var(--bone);
}


/* ---------- Article meta ---------- */

.reviewed {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--rule);
  max-width: 38rem;
}

.eyebrow a { color: var(--muted); }
.rows h3 a { text-decoration: none; }
.rows h3 a:hover { text-decoration: underline; }
