/* Freelance News — broadside on raw paper.
   One typeface, one weight, black ink, hairline rules. Colour is rationed:
   sage marks the single action, ember marks urgency, nothing else is coloured. */

:root {
  --carbon: #000000;
  --paper: #ffffff;
  --plaster: #f1f2f2;
  --linen: #e5e3df;
  --ash: #bdbdbd;
  --graphite: #828282;
  --sage: #71cc98;
  --ember: #ff7f41;

  --font: 'Helvetica Neue', Inter, 'Neue Haas Grotesk', Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;

  --text-caption: 10px;
  --text-micro: 11px;
  --text-body: 16px;
  --text-lg: 19px;
  --text-subheading: 22px;
  --text-heading-sm: 27px;
  --text-heading: 34px;
  --text-heading-lg: 44px;
  --text-display: 63px;

  --page: 1200px;
  --gutter: 24px;
  --shadow-md: rgba(0, 0, 0, 0.25) 0px 0px 10px 0px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--carbon);
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--text-body);
  line-height: 1.5;
  font-synthesis-weight: none;
}

/* Weight 500 everywhere is the brand rule, not a default. */
h1, h2, h3, h4, strong, b, th { font-weight: 500; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  padding: 16px 0 12px;
}
.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }

/* Logo: a printed stamp — stacked cells, 1px black border, flush, no radius. */
.stamp { display: inline-block; line-height: 0; }
.stamp span {
  display: block;
  border: 1px solid var(--carbon);
  padding: 3px 7px 4px;
  font-size: var(--text-micro);
  line-height: 1.1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.stamp span + span { border-top: 0; }
.stamp:hover { text-decoration: none; }

.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: flex-end; }
.site-nav a { font-size: var(--text-body); line-height: 1.4; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sage); }

/* ── Masthead ─────────────────────────────────────────────────────────── */
.masthead { background: var(--linen); padding: 56px 0 48px; margin-bottom: 0; }
.masthead h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, var(--text-display));
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.rule-sage { height: 3px; background: var(--sage); border: 0; margin: 18px 0 0; width: 180px; }
.masthead p {
  margin: 18px 0 0;
  font-size: clamp(19px, 2.4vw, var(--text-subheading));
  line-height: 1.27;
  max-width: 62ch;
}

/* ── Section headings ─────────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, var(--text-heading));
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-size: var(--text-caption);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--carbon);
}
.muted { color: var(--graphite); }

/* ── The list: the core content unit ──────────────────────────────────── */
.rows { border-top: 1px solid var(--carbon); }
.row {
  display: grid;
  grid-template-columns: 132px 1fr 190px;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--carbon);
  align-items: start;
}
.row:hover { background: var(--plaster); }
.row-date { font-size: var(--text-body); line-height: 1.4; white-space: nowrap; }
.row-title { font-size: clamp(19px, 2.2vw, var(--text-subheading)); line-height: 1.27; margin: 0; }
.row-dek { margin: 6px 0 0; font-size: var(--text-body); line-height: 1.5; color: var(--graphite); }
.row-meta { font-size: var(--text-body); line-height: 1.4; text-align: right; color: var(--graphite); }
.row-cat { display: inline-block; font-size: var(--text-caption); letter-spacing: 0.2em; text-transform: uppercase; }
.fresh { color: var(--ember); }

/* ── Article ──────────────────────────────────────────────────────────── */
.article { padding: 48px 0 0; max-width: 78ch; }
.article h1 {
  margin: 0;
  font-size: clamp(30px, 5.4vw, var(--text-heading-lg));
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.article .dek { margin: 16px 0 0; font-size: clamp(19px, 2.4vw, var(--text-subheading)); line-height: 1.27; }
.article-meta {
  margin: 20px 0 0; padding: 12px 0;
  border-top: 1px solid var(--carbon); border-bottom: 1px solid var(--carbon);
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: var(--text-body);
}
.article-body { margin-top: 28px; }
.article-body p { margin: 0 0 20px; font-size: var(--text-lg); line-height: 1.6; }
.keypoints { margin: 28px 0; padding: 20px 0; border-top: 1px solid var(--carbon); }
.keypoints ul { margin: 12px 0 0; padding-left: 18px; }
.keypoints li { margin: 0 0 8px; font-size: var(--text-body); line-height: 1.5; }

.source-box { margin: 32px 0; padding: 20px; background: var(--linen); }
.source-box p { margin: 0 0 8px; font-size: var(--text-body); line-height: 1.5; }
.source-box p:last-child { margin: 0; }
.disclosure { font-size: var(--text-body); line-height: 1.5; color: var(--graphite); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tag { font-size: var(--text-caption); letter-spacing: 0.18em; text-transform: uppercase; border: 1px solid var(--ash); padding: 5px 9px; }

/* ── Promo: labelled, never disguised as editorial ────────────────────── */
.promo { margin: 40px 0; border: 1px solid var(--carbon); padding: 20px; }
.promo-label { font-size: var(--text-caption); letter-spacing: 0.22em; text-transform: uppercase; color: var(--graphite); }
.promo h3 { margin: 10px 0 6px; font-size: var(--text-heading-sm); line-height: 1.2; }
.promo p { margin: 0 0 14px; font-size: var(--text-body); line-height: 1.5; max-width: 60ch; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--sage); color: var(--carbon);
  border: 0; border-radius: 50px;
  padding: 10px 20px;
  font-family: var(--font); font-weight: 500; font-size: var(--text-lg); line-height: 1;
  cursor: pointer;
}
.pill:hover { text-decoration: none; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--carbon); display: inline-block; }
.ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-body); border: 0; background: none; padding: 0; cursor: pointer;
  font-family: var(--font); font-weight: 500;
}
.btn-secondary { border: 1px solid var(--graphite); border-radius: 2px; padding: 9px 14px; font-size: var(--text-body); display: inline-block; }

.sticky-pill { position: fixed; right: 24px; bottom: 24px; z-index: 60; box-shadow: var(--shadow-md); }

/* ── Rubric index ─────────────────────────────────────────────────────── */
.rubrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--carbon); }
.rubric { padding: 20px; border-bottom: 1px solid var(--carbon); border-right: 1px solid var(--carbon); }
.rubric:hover { background: var(--plaster); text-decoration: none; }
.rubric h3 { margin: 0 0 6px; font-size: var(--text-subheading); line-height: 1.27; }
.rubric p { margin: 0; font-size: var(--text-body); line-height: 1.5; color: var(--graphite); }

/* ── Prose pages ──────────────────────────────────────────────────────── */
.prose { max-width: 72ch; padding: 48px 0; }
.prose h1 { font-size: clamp(30px, 5vw, var(--text-heading-lg)); line-height: 1.1; margin: 0 0 20px; }
.prose h2 { font-size: var(--text-heading-sm); line-height: 1.2; margin: 36px 0 12px; }
.prose p, .prose li { font-size: var(--text-lg); line-height: 1.6; }
.prose ul { padding-left: 20px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--carbon); margin-top: 72px; padding: 32px 0 64px; background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.foot-grid h4 { margin: 0 0 10px; font-size: var(--text-caption); letter-spacing: 0.22em; text-transform: uppercase; }
.foot-grid a, .foot-grid p { display: block; font-size: var(--text-body); line-height: 1.7; margin: 0; }
.foot-note { margin-top: 28px; font-size: var(--text-body); line-height: 1.5; color: var(--graphite); max-width: 70ch; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--sage); padding: 10px 16px; z-index: 100; }

/* ── Narrow ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row-meta { text-align: left; }
  .masthead { padding: 40px 0 36px; }
  .section { padding: 40px 0; }
  .sticky-pill { right: 16px; bottom: 16px; }
  .rubric { border-right: 0; }
}

@media print {
  .site-head, .sticky-pill, .promo { display: none; }
  body { font-size: 12pt; }
}
