/* Eric Johnson, portfolio. One stylesheet, no build step. */

/* ---------- Fonts (self-hosted, latin subset, SIL OFL) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-roman.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("assets/fonts/public-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Color: warm paper, near-black ink, one red-ink accent */
  --paper: #F4EFE5;
  --paper-2: #FBF8F2;          /* raised */
  --paper-3: #EAE3D5;          /* sunken band */
  --ink: #1C1A16;
  --ink-2: #4A443A;
  --ink-3: #6B6456;
  --rule: #DCD3C2;
  --rule-strong: #C9BDA7;
  --accent: #A63A1B;
  --accent-wash: rgb(166 58 27 / 0.14);
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bg-hover: #36322B;

  --media-doomstep: #E6DCCA;
  --media-claritide: #13201E;
  --media-hourhand: #E1DDD3;

  --shadow-shot:
    0 1px 1px rgb(28 26 22 / 0.06),
    0 8px 16px -6px rgb(28 26 22 / 0.14),
    0 28px 48px -20px rgb(28 26 22 / 0.30);
  --shadow-card:
    0 1px 0 rgb(28 26 22 / 0.03),
    0 18px 40px -28px rgb(28 26 22 / 0.30);

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --t-h1: clamp(2.6rem, 1.75rem + 3.7vw, 5rem);
  --t-h2: clamp(2.05rem, 1.55rem + 2vw, 3.25rem);
  --t-h3: clamp(1.75rem, 1.45rem + 1.05vw, 2.4rem);
  --t-lead: clamp(1.125rem, 1.06rem + 0.3vw, 1.3rem);
  --t-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --t-small: 0.9375rem;
  --t-xs: 0.8125rem;

  /* Space (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 48px; --s-10: 64px;
  --s-11: 80px; --s-12: 96px;
  --section-y: clamp(72px, 9vw, 136px);
  --gutter: 16px;
  --maxw: 1200px;
  --measure: 38rem;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-shot: clamp(10px, 1.3vw, 16px);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 160ms;

  --header-h: 60px;
}

@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; --header-h: 68px; } }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16140F;
    --paper-2: #1F1C16;
    --paper-3: #110F0B;
    --ink: #F0E9DC;
    --ink-2: #C4BBAA;
    --ink-3: #9C9383;
    --rule: #342F27;
    --rule-strong: #4A433A;
    --accent: #EE8C69;
    --accent-wash: rgb(238 140 105 / 0.20);
    --btn-bg: #F0E9DC;
    --btn-fg: #16140F;
    --btn-bg-hover: #FFFFFF;

    --media-doomstep: #2B251C;
    --media-claritide: #0E1917;
    --media-hourhand: #24211B;

    --shadow-shot:
      0 0 0 1px rgb(255 255 255 / 0.07),
      0 1px 1px rgb(0 0 0 / 0.30),
      0 10px 20px -8px rgb(0 0 0 / 0.45),
      0 30px 50px -22px rgb(0 0 0 / 0.60);
    --shadow-card: 0 0 0 1px rgb(255 255 255 / 0.02), 0 20px 40px -28px rgb(0 0 0 / 0.7);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--accent-wash); color: var(--ink); }

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

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 50;
  background: var(--ink); color: var(--paper);
  padding: var(--s-2) var(--s-4); border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: var(--s-3); }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ico {
  width: 0.75em; height: 0.75em;
  flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Display type */
h1, h2, h3, .film-title, .yt-title, .tut-title, .campus-name, .email, .brand-name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: var(--t-h1);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 480;
}
h2 {
  font-size: var(--t-h2);
  line-height: 1.06;
  letter-spacing: -0.018em;
}
h3 {
  font-size: var(--t-h3);
  line-height: 1.1;
  letter-spacing: -0.012em;
}
p, li { text-wrap: pretty; }

/* Grid children may shrink below their content width */
.hero-grid > *, .project > *, .audit-grid > *, .ads-grid > *, .teach-grid > *, .film > * { min-width: 0; }
.nowrap { white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s-3);
  text-decoration: none;
}
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
  line-height: 1;
}
.brand-name { display: none; font-size: 1.2rem; font-weight: 560; letter-spacing: -0.01em; }
.site-nav {
  display: flex; align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  font-size: 0.875rem;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding-block: var(--s-2);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.nav-long { display: none; }
@media (min-width: 560px) {
  .brand-name { display: inline; }
  .nav-long { display: inline; }
  .nav-short { display: none; }
}
@media (min-width: 560px) and (max-width: 719px) {
  .brand-name { display: none; }
}
@media (min-width: 720px) {
  .site-nav { font-size: 0.9375rem; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn .ico { width: 13px; height: 13px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-quiet { border: 1px solid var(--rule-strong); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--ink-3); background: var(--paper-2); }

.links { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
.links a, .toonhook a, .channel-link a, .footer-links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.links a:hover, .toonhook a:hover, .channel-link a:hover, .footer-links a:hover {
  text-decoration-color: var(--accent);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 104px) clamp(56px, 6vw, 88px); }
.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--t-small); font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin-top: var(--s-5); max-width: 13ch; }
.hero-sub {
  margin-top: var(--s-6);
  max-width: 33rem;
  text-wrap: balance;
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
}
.proof {
  margin-top: var(--s-7);
  max-width: 33rem;
  border-top: 1px solid var(--rule);
}
.proof li { border-bottom: 1px solid var(--rule); }
.proof a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 13px 0;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.proof a:hover { color: var(--accent); }
.proof-n {
  flex: none;
  width: 1.1em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.actions { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: var(--s-3); }

.hero-shots { width: 100%; }
.hero-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  aspect-ratio: 100 / 118;
}
.hero-stack .shot { position: absolute; width: 49%; }
.shot-back { left: 0; top: 0; }
.shot-front { right: 0; bottom: 0; }
.hero-shots figcaption {
  margin-top: var(--s-5);
  text-align: center;
  font-size: var(--t-xs);
  color: var(--ink-3);
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero-stack { aspect-ratio: 8 / 11; max-width: 440px; margin-inline: auto 0; }
  .hero-stack .shot { width: 56%; }
  .hero-shots figcaption { text-align: right; }
}

/* Shared screenshot style */
.shot {
  width: 100%;
  border-radius: var(--r-shot);
  box-shadow: var(--shadow-shot);
  background: var(--paper-3);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; }
.hero + .section { padding-top: clamp(32px, 5vw, 72px); }
.section-n {
  display: flex; align-items: center; gap: var(--s-4);
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.section-n::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.section-head h2 { margin-top: var(--s-6); max-width: 18ch; }
.section-intro {
  margin-top: var(--s-5);
  max-width: var(--measure);
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
}
.section-intro + .section-intro { margin-top: var(--s-4); }

/* ---------- Projects ---------- */
.project {
  margin-top: var(--s-7);
  display: grid;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.section-head + .project { margin-top: clamp(40px, 5vw, 64px); }
.project-copy {
  padding: clamp(24px, 4vw, 52px);
  display: flex; flex-direction: column;
}
.label {
  font-size: var(--t-small);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.project h3 { margin-top: var(--s-2); }
.lead {
  margin-top: var(--s-4);
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34rem;
}
.facts { margin-top: var(--s-6); max-width: 34rem; }
.facts li {
  padding: 11px 0;
  border-top: 1px solid var(--rule);
  font-size: var(--t-small);
  line-height: 1.55;
  color: var(--ink-2);
}
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.project .links { margin-top: auto; padding-top: var(--s-6); }

/* Doomstep timeline */
.timeline {
  margin-top: var(--s-6);
  max-width: 34rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-4);
}
.tl-point { display: flex; flex-direction: column; gap: 2px; }
.tl-end { text-align: right; }
.tl-date { font-size: var(--t-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-what { font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.tl-line {
  position: relative;
  height: 1px;
  background: var(--rule-strong);
}
.tl-line::before, .tl-line::after {
  content: ""; position: absolute; top: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  transform: translateY(-50%);
}
.tl-line::before { left: 0; background: var(--paper-2); border: 1.5px solid var(--ink-3); }
.tl-line::after { right: 0; background: var(--accent); }

/* Media panels */
.project-media {
  order: -1;
  display: grid; place-items: center;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
}
.media-doomstep { background: var(--media-doomstep); }
.media-claritide { background: var(--media-claritide); }
.media-hourhand { background: var(--media-hourhand); }
.media-claritide .shot { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 24px 48px -20px rgb(0 0 0 / 0.7); }

.pair {
  width: 100%;
  max-width: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2.2vw, 28px);
}

.combo {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 100 / 92;
}
.combo .shot-wide { position: absolute; left: 0; top: 0; width: 84%; border-radius: var(--r-md); }
.combo .shot-phone { position: absolute; right: 0; bottom: 0; width: 33%; }
.combo figcaption {
  position: absolute; left: 0; bottom: 0;
  width: 58%;
  font-size: var(--t-xs);
  line-height: 1.45;
  color: var(--ink-3);
}

@media (min-width: 900px) {
  .project { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .project-media { order: 0; }
}

/* ---------- Audit ---------- */
.audit-grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (min-width: 1000px) {
  .audit-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .audit-copy { position: sticky; top: calc(var(--header-h) + 48px); }
}

.report {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  font-size: var(--t-small);
  overflow: hidden;
}
.report-head, .report-sec, .report-foot { padding-inline: clamp(18px, 3.4vw, 32px); }
.report-head { padding-block: 22px 20px; }
.report-kicker {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
  font-size: var(--t-xs); font-weight: 600;
  color: var(--ink-3);
}
.report-kicker > span:first-child { flex: none; }
.report-file {
  min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.75rem;
}
.report h3 { margin-top: var(--s-3); font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2rem); }
.report-meta { margin-top: 6px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.report-sec { padding-block: 18px 20px; border-top: 1px dashed var(--rule-strong); }

.leak-head, .leaks li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.25rem 3.75rem;
  gap: var(--s-3);
  align-items: baseline;
}
.leak-head {
  padding-bottom: 8px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3);
}
.leak-head span:not(:first-child), .leak-src, .leak-w { text-align: right; }
.leaks li {
  position: relative;
  padding: 8px 0 10px;
  border-top: 1px solid var(--rule);
}
.leaks li::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  height: 2px;
  width: calc(var(--w) * 100%);
  background: var(--ink-3);
  opacity: 0.35;
}
.leaks li.is-top::after { background: var(--accent); opacity: 1; }
.leak-name { color: var(--ink); }
.leaks li.is-top .leak-name { font-weight: 650; }
.leak-src { font-size: var(--t-xs); color: var(--ink-3); }
.leak-w { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.leaks li.is-top .leak-w { color: var(--accent); }

.report-h {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3);
}
.quote { margin-top: var(--s-4); padding-left: var(--s-4); border-left: 2px solid var(--accent); }
.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
}
.quote mark {
  color: inherit;
  background: linear-gradient(transparent 55%, var(--accent-wash) 55%);
  padding-inline: 1px;
}
.quote footer { margin-top: 6px; font-size: var(--t-xs); color: var(--ink-3); }

.report-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4) var(--s-6);
  padding-block: 18px 22px;
  border-top: 1px dashed var(--rule-strong);
  background: var(--paper);
}
.report-foot dt { font-size: var(--t-xs); color: var(--ink-3); }
.report-foot dd { margin-top: 2px; font-weight: 600; color: var(--ink); }
.report-foot .score { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: var(--s-3); }
.report-foot .score dd {
  font-family: var(--font-display);
  font-size: 1.9rem; line-height: 1;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 560px) {
  .report-foot { grid-template-columns: auto 1fr auto; align-items: end; }
  .report-foot .score { grid-column: auto; display: block; border-top: 0; padding-top: 0; text-align: right; }
}
.report-fig figcaption { margin-top: var(--s-3); font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- Ads ---------- */
.ads-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  gap: var(--s-7);
}
.film { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: var(--s-4); align-items: start; align-content: start; }
.film video {
  width: 100%; height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--r-md);
  background: #0D0C0A;
  box-shadow: var(--shadow-shot);
}
.film figcaption { display: flex; flex-direction: column; gap: 4px; }
.film-title { font-size: 1.4rem; line-height: 1.15; letter-spacing: -0.01em; }
.film-meta { font-size: var(--t-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.film-note { margin-top: var(--s-2); font-size: var(--t-small); line-height: 1.55; color: var(--ink-2); max-width: 30rem; }

.ads-side { display: flex; flex-direction: column; }
.yt-card { display: block; text-decoration: none; }
.yt-card img, .tut img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-shot);
  background: var(--paper-3);
}
.yt-title {
  display: block;
  margin-top: var(--s-4);
  font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease);
}
.yt-meta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px;
  font-size: var(--t-xs); font-weight: 600;
  color: var(--ink-3);
}
.yt-card:hover .yt-title, .tut:hover .tut-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.disclaimer { margin-top: var(--s-2); font-size: var(--t-xs); color: var(--ink-3); }
.toonhook {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  font-size: var(--t-body);
  color: var(--ink);
}

@media (min-width: 640px) {
  .ads-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8) var(--s-7); }
  .film { grid-template-columns: 1fr; }
  .film figcaption { margin-top: var(--s-2); }
  .ads-side { grid-column: 1 / -1; }
}
@media (min-width: 640px) and (max-width: 999px) {
  .ads-side { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-7); align-items: start; }
  .ads-side .yt-card { grid-row: span 3; }
  .ads-side .disclaimer { grid-column: 1; }
  .ads-side .toonhook { grid-column: 2; grid-row: 1; margin-top: 0; }
}
@media (min-width: 1000px) {
  .ads-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: var(--s-8); }
  .ads-side { grid-column: auto; }
}

/* ---------- Teaching ---------- */
.teach-grid { display: grid; gap: var(--s-8); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.list-h {
  font-family: var(--font-text);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: var(--s-3);
}
.tutorials li { border-top: 1px solid var(--rule); }
.tutorials li:last-child { border-bottom: 1px solid var(--rule); }
.tut {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  grid-template-areas: "img title" "img meta" "img note";
  grid-template-rows: 1fr auto auto;
  column-gap: var(--s-4);
  padding: var(--s-4) 0;
  text-decoration: none;
}
.tut img { grid-area: img; align-self: start; border-radius: var(--r-sm); }
.tut-title { grid-area: title; align-self: end; font-size: 1.1rem; line-height: 1.25; letter-spacing: -0.005em; }
.tut .yt-meta { grid-area: meta; align-self: start; }
.tut-note { grid-area: note; margin-top: var(--s-1); font-size: var(--t-xs); color: var(--ink-3); }
.channel-link { margin-top: var(--s-5); }

.campus {
  display: flex; flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: border-color var(--dur) var(--ease);
}
.campus:hover { border-color: var(--ink-3); }
.campus-name { font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2.1rem); line-height: 1.1; letter-spacing: -0.012em; }
.campus-text { margin-top: var(--s-3); color: var(--ink-2); line-height: 1.55; }
.campus-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--s-6);
  font-weight: 600; font-size: var(--t-small);
  color: var(--ink);
}
.campus:hover .campus-link { color: var(--accent); }

@media (min-width: 640px) {
  .tut { grid-template-columns: 208px minmax(0, 1fr); column-gap: var(--s-6); padding: var(--s-5) 0; }
  .tut-title { font-size: 1.3rem; }
}
@media (min-width: 1000px) {
  .teach-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-10); }
  .teach-side { position: sticky; top: calc(var(--header-h) + 48px); padding-top: 31px; }
}

/* ---------- How I'd help ---------- */
.section-help { background: var(--paper-3); padding-top: var(--section-y) !important; }
.section-help .section-n::after { background: var(--rule-strong); }
.offers {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  counter-reset: offer;
}
.offers li {
  counter-increment: offer;
  display: grid;
  align-content: start;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  grid-template-areas: "n title" "n text";
  column-gap: var(--s-3);
  padding: var(--s-6) 0 var(--s-7);
  border-top: 1px solid var(--rule-strong);
}
.offers li::before {
  content: counter(offer);
  grid-area: n;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.1rem; line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.offers h3 { grid-area: title; font-size: clamp(1.45rem, 1.3rem + 0.6vw, 1.85rem); }
.offers p { grid-area: text; margin-top: var(--s-2); color: var(--ink-2); max-width: 30rem; }
@media (min-width: 720px) {
  .offers { grid-template-columns: 1fr 1fr; column-gap: var(--s-9); }
}

.method {
  margin-top: var(--s-9);
  display: grid;
  gap: var(--s-4);
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--rule);
}
.method-h {
  font-family: var(--font-text);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3);
}
.steps { display: grid; gap: var(--s-4); counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: baseline;
  color: var(--ink);
  line-height: 1.5;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  font-size: 0.75rem; font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  transform: translateY(-1px);
  align-self: start;
}
@media (min-width: 900px) {
  .method { grid-template-columns: 11rem minmax(0, 1fr); align-items: start; }
  .method-h { padding-top: 4px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
}

/* ---------- Contact / footer ---------- */
.site-footer { padding-block: var(--section-y) var(--s-9); }
.site-footer h2 { margin-top: var(--s-6); }
.email {
  margin-top: var(--s-5);
  font-size: clamp(1.7rem, 0.95rem + 3.6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.email a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
  text-decoration-color: var(--rule-strong);
  transition: text-decoration-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.email a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.footer-links { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-7); }
.sign {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  font-size: var(--t-small);
  color: var(--ink-3);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
