/* ==========================================================================
   jasminashford.com — independent-magazine design system
   Butter ground, aubergine ink, green section fields, lime used sparingly.
   Fixed palette: no automatic theme substitution.
   ========================================================================== */

:root {
  color-scheme: only light;

  --butter:    #F5EDC8;
  --green:     #28734F;
  --aubergine: #302333;
  --lime:      #D7EF65;

  --ink:       var(--aubergine);
  --ground:    var(--butter);
  --rule:      rgba(48, 35, 51, 0.22);
  --muted:     rgba(48, 35, 51, 0.68);

  --maxw: 1200px;
  --gutter: 24px;
}

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

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

body {
  background: var(--ground);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.62;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;            /* keeps the footer at the bottom on short pages */
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > .sitefooter { flex-shrink: 0; }

img, video { max-width: 100%; }
[hidden] { display: none !important; }   /* must beat component display rules */

/* ---- layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.band { padding: 88px 0; }
.band + .band { padding-top: 0; }
.band-green { background: var(--green); color: var(--butter); padding: 88px 0; margin-top: 88px; }
.band + .band-green { margin-top: 0; }   /* the band's own padding already spaces it */
.band-green + .band { padding-top: 88px; }

@media (max-width: 760px) {
  .band { padding: 48px 0; }
  .band-green { padding: 48px 0; margin-top: 48px; }
  .band-green + .band { padding-top: 48px; }
  :root { --gutter: 20px; }
}

/* ---- type ---- */
h1, h2, h3, h4, .display {
  font-family: "Barlow Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}

.name { font-size: clamp(56px, 11vw, 138px); line-height: 0.92; }
h1, .pagetitle { font-size: clamp(40px, 7.4vw, 82px); line-height: 0.98; }
h2, .sectiontitle { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
h4 { font-size: 20px; font-weight: 700; }

p, li { max-width: 68ch; }
p + p { margin-top: 1em; }

.lede { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.45; max-width: 34ch; }
.standfirst { font-size: 20px; line-height: 1.5; max-width: 62ch; color: var(--muted); }
.label {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green);
}
.meta { font-size: 14px; color: var(--muted); }
.note { font-size: 15px; color: var(--muted); }

/* ---- links ---- */
a { color: inherit; }
a:focus-visible, button:focus-visible, video:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px;
}
.band-green a:focus-visible, .band-green button:focus-visible { outline-color: var(--lime); }

/* inline links inside body copy pick up the link colour of their surface */
.band p a:not([class]), .band li a:not([class]),
.band p a:not([class]):visited, .band li a:not([class]):visited {
  color: var(--green); text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 2px; font-weight: 500;
}
.band p a:not([class]):hover, .band li a:not([class]):hover { text-decoration-thickness: 3px; }
.band-green p a:not([class]), .band-green p a:not([class]):visited,
.band-green li a:not([class]), .band-green li a:not([class]):visited { color: var(--lime); }

.textlink, .textlink:visited {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--green); font-weight: 600; text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.textlink:hover { text-decoration-thickness: 3px; }
.band-green .textlink, .band-green .textlink:visited { color: var(--lime); }
.sitefooter .textlink, .sitefooter .textlink:visited { color: var(--lime); }

.arrowlink, .arrowlink:visited {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600; font-size: 17px; letter-spacing: 0;
  color: var(--green); text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 3px;
  display: inline-block;
}
.arrowlink:hover { border-bottom-width: 3px; }
/* keep the tight underline but give the link a 44px touch target */
.arrowlink { position: relative; }
.arrowlink::after {
  content: ""; position: absolute; left: 0; right: 0;
  top: 50%; transform: translateY(-50%); height: 44px;
}
.band-green .arrowlink, .band-green .arrowlink:visited { color: var(--lime); }

/* ---- navigation ---- */
.sitenav { padding: 28px 0 0; }
.sitenav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.sitenav li { max-width: none; }
.sitenav a, .sitenav a:visited {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600; font-size: 17px; letter-spacing: 0.01em;
  text-decoration: none; color: var(--ink);
  display: inline-block; padding: 8px 2px; min-height: 44px;
  border-bottom: 3px solid transparent;
}
.sitenav a:hover { border-bottom-color: var(--rule); }
.sitenav a[aria-current="page"] { border-bottom-color: var(--green); }

/* ---- footer ---- */
.sitefooter { background: var(--aubergine); color: var(--butter); margin-top: 96px; padding: 44px 0; }
.sitefooter--flush { margin-top: 0; }   /* page ends on a colour band already */
.sitefooter p { max-width: none; font-size: 17px; }
.sitefooter a, .sitefooter a:visited { color: var(--lime); font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (max-width: 760px) { .sitefooter { margin-top: 56px; padding: 32px 0; } }

/* ---- rules & rows ---- */
hr.rule { border: 0; border-top: 2px solid var(--rule); margin: 0; }

.row { padding: 44px 0; border-top: 2px solid var(--rule); }
.row:first-of-type { border-top: 0; padding-top: 8px; }

/* ---- role statement: a quiet line, not a banner ---- */
.role {
  font-size: 15px; color: var(--muted); max-width: 62ch;
  padding-left: 16px; border-left: 3px solid var(--green);
}

/* ---- quotations ---- */
blockquote {
  margin: 20px 0; padding-left: 22px; border-left: 3px solid var(--green);
  font-size: 19px; line-height: 1.55;
}
blockquote p { max-width: 62ch; }

/* ---- media ---- */
figure { margin: 0; }
figure img, .shot img { width: 100%; height: auto; display: block; }
figcaption, .caption { font-size: 15px; color: var(--muted); margin-top: 12px; max-width: 62ch; }

.player video { width: 100%; height: auto; display: block; background: #000; }
