/* Resource pages (the generated /resources/<slug> pages, plus /jev and /newsletter, which add
   their own file on top). Apple-style, matching the /resources hub in resources.css: white canvas,
   soft grey bands, system type, one blue accent, pills. 2026-10-09 redesign.
   The navbar comes from site-nav.css and needs nothing from this file. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #86868b;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-ink: #0066cc;
  --kicker: #bf4800;
  --card: #ffffff;
  --radius: 24px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  /* Side padding that keeps a full-width band's content on the hub's 1120px column */
  --pad: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  --band: clamp(48px, 7vw, 96px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  border-radius: 6px;
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* The old paper-texture layer is still in the generated markup; it is not part of this look */
.paper {
  display: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 16px;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transform: translateY(-220%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

main {
  margin: 0;
  padding: 0;
}

/* Every block of the article is a full-width band; --pad centres its content */
[id] {
  scroll-margin-top: 84px;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

/* Hero */
.hero {
  padding: clamp(56px, 9vw, 112px) var(--pad) clamp(44px, 6vw, 76px);
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 18ch;
  margin: 14px auto 0;
  font-size: clamp(40px, 6.6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.summary {
  max-width: 700px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: clamp(19px, 2.1vw, 23px);
  letter-spacing: -0.012em;
  line-height: 1.4;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
  margin: 30px 0 0;
}

/* Buttons are pills: the primary is filled blue, the secondary is a blue text link ending in a chevron */
.button {
  display: inline-block;
  border: 0;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
}

.button-primary {
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  transition: background 0.2s;
}

.button-primary:hover {
  background: #0077ed;
}

.button-secondary {
  color: var(--accent-ink);
}

.button-secondary::after {
  content: "\203A";
  display: inline-block;
  margin-left: 0.3em;
  transition: transform 0.25s var(--ease);
}

.button-secondary:hover {
  text-decoration: underline;
}

.button-secondary:hover::after {
  transform: translateX(3px);
}

.offer {
  max-width: 700px;
  margin: 30px auto 0;
  padding: 16px 24px;
  border-radius: 18px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

/* Section labels and headings */
.section-label,
.number {
  margin: 0;
  color: var(--kicker);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Steps + links: two white cards on a soft grey band */
.resource-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(14px, 1.8vw, 22px);
  align-items: start;
  padding: clamp(40px, 6vw, 80px) var(--pad);
  background: var(--bg-soft);
}

.checklist,
.sources {
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius);
  background: var(--card);
}

.checklist ol,
.sources ul {
  margin-top: clamp(20px, 2.6vw, 28px);
}

.checklist li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--hair);
}

.checklist li:last-child,
.sources li:last-child {
  padding-bottom: 0;
}

.checklist li > span {
  padding-top: 4px;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.checklist li p {
  margin: 0;
  overflow-wrap: anywhere;
}

.sources li {
  padding: 14px 0;
  border-top: 1px solid var(--hair);
}

.sources a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  transition: color 0.2s;
}

.sources a span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sources a span:last-child {
  flex: none;
  color: var(--accent-ink);
  transition: transform 0.25s var(--ease);
}

.sources a:hover {
  color: var(--accent-ink);
}

.sources a:hover span:last-child {
  transform: translate(2px, -2px);
}

.source-note {
  margin: 4px 0 0;
  padding-right: 28px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.42;
}

/* Prompts: a white band of grey cards, the prompt itself in a white code block */
.prompts {
  padding: var(--band) var(--pad);
}

.prompts > .section-label {
  color: var(--ink-soft);
  font-size: 17px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.prompts > h2 {
  margin-top: 8px;
  font-size: clamp(34px, 5.4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.07;
}

.prompt-list {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(28px, 4vw, 48px);
}

.prompt-list li {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.prompt-title {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.16;
}

.prompt-when {
  margin: 6px 0 18px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.42;
}

.prompt-text {
  margin: 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* "Keep in mind": the one full-black band, heading on the left, the note beside it */
.note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 18px clamp(24px, 5vw, 72px);
  align-items: baseline;
  padding: clamp(56px, 8vw, 104px) var(--pad);
  background: #000;
  color: #f5f5f7;
}

.note .section-label {
  color: #f5f5f7;
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.07;
  text-transform: none;
}

.note p:not(.section-label) {
  margin: 0;
  color: #d2d2d7;
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.5;
}

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--gutter) 40px;
  color: var(--ink-soft);
  font-size: 13px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--accent-ink);
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 880px) {
  .resource-grid,
  .note {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .eyebrow {
    font-size: 16px;
  }

  .checklist li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
  }

  .source-note {
    padding-right: 0;
  }

  .prompt-text {
    padding: 16px;
    font-size: 13px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link,
  .button-primary,
  .button-secondary::after,
  .sources a,
  .sources a span:last-child {
    transition: none;
  }

  .button-secondary:hover::after,
  .sources a:hover span:last-child {
    transform: none;
  }
}
