/* ═════════════════════════════════════════════════════════════
   greatthings.dev: shared styles for every page.
   Page-specific components live in automation.css, guide.css
   and blog.css, which all build on these tokens.
   ═════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   Tokens: gray-white paper, near-black ink, one blue accent.
   Never hardcode a color in a rule; add a token here instead.
   ───────────────────────────────────────────────────────────── */
:root {
  --paper:        #F5F6F8;   /* page background, gray-white */
  --paper-2:      #ECEFF3;   /* cards, insets */
  --paper-3:      #FFFFFF;   /* raised surfaces */
  --ink:          #151C26;   /* primary text */
  --ink-2:        #444E5B;   /* secondary text */
  --ink-3:        #66707C;   /* captions, labels */
  --rule:         #DDE2E8;   /* hairlines */
  --rule-2:       #C3CAD3;   /* stronger hairline */
  --hl:           #E4E8ED;   /* hover surface */
  --blue:         #2F5E8E;   /* the accent: emphasis, links, primary buttons */
  --blue-ink:     #24496F;   /* primary button hover */
  --blue-soft:    rgba(47, 94, 142, 0.08);
  --on-blue:      #FFFFFF;   /* text on a blue fill */
  --blue-inv:     #9DBDE0;   /* blue on an inverted (ink) background */
  --blush:        #DCE5EF;   /* portrait loading background */

  /* Same pairing as screenrecords.app: Inter for text, Inter Tight bold for headings */
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "SFMono-Regular", "SF Mono", Menlo, monospace;

  --radius:       6px;
  --radius-lg:    10px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

[data-theme="dark"] {
  --paper:        #0E1217;
  --paper-2:      #151B22;
  --paper-3:      #1B222B;
  --ink:          #E8ECF0;
  --ink-2:        #A9B2BC;
  --ink-3:        #87909A;
  --rule:         #252C35;
  --rule-2:       #343D48;
  --hl:           #1B222B;
  --blue:         #7FA8D6;
  --blue-ink:     #9BBCE0;
  --blue-soft:    rgba(127, 168, 214, 0.12);
  --on-blue:      #0E1217;
  --blue-inv:     #2F5E8E;
  --blush:        #222C38;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: var(--on-blue); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

/* Inline text link */
.u { color: var(--blue); border-bottom: 1px solid color-mix(in oklab, var(--blue) 35%, transparent); transition: border-color .2s var(--ease); }
.u:hover { border-bottom-color: var(--blue); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: var(--radius);
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

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

.section {
  padding: clamp(64px, 10vw, 120px) 0;
  border-top: 1px solid var(--rule);
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
@media (min-width: 760px) {
  .section-head { grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
  .section-head .eyebrow { padding-top: 14px; }
}

/* Small section label: plain words, a blue dot, no code-style numbering */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  display: inline-block;
  flex-shrink: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: normal; color: var(--blue); }
h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.2;
}

p { margin: 0 0 1em; }
.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 58ch;
  line-height: 1.6;
}
.section-head .lead { margin-top: 16px; }

/* ─────────────────────────────────────────────────────────────
   Nav (same markup on every page)
   ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--rule); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 0;
  white-space: nowrap;
}
.brand .dot { color: var(--blue); margin-left: 1px; }
.nav-links {
  display: none;
  gap: 26px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-links a { position: relative; padding: 4px 0; transition: color .2s var(--ease); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--on-blue);
  white-space: nowrap;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { background: var(--blue-ink); transform: translateY(-1px); }
@media (max-width: 420px) {
  .brand { font-size: 17px; }
  .nav-cta { padding: 7px 10px; font-size: 13px; }
}

.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--rule-2); color: var(--ink); background: var(--hl); }
.theme-toggle svg { width: 15px; height: 15px; }
[data-theme="light"] .icon-sun,
[data-theme="dark"]  .icon-moon { display: none; }

/* ─────────────────────────────────────────────────────────────
   Buttons and chips
   ───────────────────────────────────────────────────────────── */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 20px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--on-blue);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn:hover { transform: translateY(-1px); background: var(--blue-ink); border-color: var(--blue-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--hl); border-color: var(--rule-2); }
.btn .arr { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 4px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.chip:hover { border-color: var(--blue); color: var(--ink); background: var(--blue-soft); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px;
  color: var(--ink-3);
  padding: 2px 9px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.tag.main { color: var(--blue); border-color: color-mix(in oklab, var(--blue) 45%, transparent); background: var(--blue-soft); }

/* ─────────────────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────────────────── */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); }
.hero-meta {
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: clamp(28px, 4.5vw, 48px);
}
.hero-meta .sep { width: 16px; height: 1px; background: var(--rule-2); }
.hero-meta .open { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--blue) 50%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0    color-mix(in oklab, var(--blue) 45%, transparent); }
  70%  { box-shadow: 0 0 0 10px color-mix(in oklab, var(--blue) 0%, transparent); }
  100% { box-shadow: 0 0 0 0    color-mix(in oklab, var(--blue) 0%, transparent); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.5fr 1fr; gap: 72px; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.03;
  text-wrap: balance;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(22px, 3.5vw, 32px);
  max-width: 16ch;
}

.hero-bio .lead { max-width: 52ch; }

.now {
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper-3);
}
.now-tag {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}

.followers {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  font-size: 14px;
  color: var(--ink-2);
}
.followers strong { color: var(--ink); font-weight: 600; }

.portrait { position: relative; margin: 0; }
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--radius-lg);
  background: var(--blush);
}
.portrait figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
  display: flex; justify-content: space-between; gap: 12px;
}
.portrait figcaption span:first-child { color: var(--ink); font-weight: 500; }
@media (max-width: 879px) { .portrait { max-width: 360px; } }

/* ─────────────────────────────────────────────────────────────
   Trust strip
   ───────────────────────────────────────────────────────────── */
.trust { border-top: 1px solid var(--rule); padding: 22px var(--gutter); }
.trust-inner {
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 10px 36px;
}
.trust-label { font-size: 13px; color: var(--ink-3); }
.trust-names {
  display: flex; flex-wrap: wrap; gap: 8px 30px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.trust-names .ph { color: var(--blue); }

/* ─────────────────────────────────────────────────────────────
   Small numbered label (projects, workshops)
   ───────────────────────────────────────────────────────────── */
.num-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ─────────────────────────────────────────────────────────────
   Workshops
   ───────────────────────────────────────────────────────────── */
.group-label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 14px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.group-label span { font-weight: 400; color: var(--ink-3); }
.workshops + .group-label { margin-top: 48px; }
.group-label + .workshops { margin-top: 0; }

.workshops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.workshop {
  padding: 26px 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper-3);
  display: flex; flex-direction: column;
  transition: border-color .2s var(--ease), transform .25s var(--ease);
}
.workshop:hover { border-color: var(--rule-2); transform: translateY(-2px); }
.workshop.featured { border-color: color-mix(in oklab, var(--blue) 45%, transparent); }
.workshop-num { margin-bottom: 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.workshop h3 { margin-bottom: 10px; }
.workshop p { color: var(--ink-2); font-size: 15px; }
.workshop dl {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 14px;
}
.workshop dt { color: var(--ink-3); }
.workshop dd { margin: 0; color: var(--ink-2); }

.workshops.compact .workshop { background: transparent; }

.formats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}
@media (min-width: 880px) { .formats { grid-template-columns: 1fr auto; } }
.formats h3 { margin-bottom: 6px; }
.formats ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-size: 15px;
  color: var(--ink-2);
}
.formats li strong { color: var(--ink); font-weight: 600; }
.formats p { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.formats .cta-row { margin-top: 0; }

/* ─────────────────────────────────────────────────────────────
   Point of view
   ───────────────────────────────────────────────────────────── */
.pov {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}
.principle {
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper-3);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.principle:hover { border-color: var(--rule-2); transform: translateY(-2px); }
.principle-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 16px;
}
.principle h3 { font-size: 20px; margin-bottom: 10px; }
.principle p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ─────────────────────────────────────────────────────────────
   Projects
   ───────────────────────────────────────────────────────────── */
.projects { display: grid; border-top: 1px solid var(--rule); }
.project {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: background .25s var(--ease), padding .25s var(--ease);
}
.project:hover { background: var(--paper-2); padding-left: 16px; padding-right: 16px; }
.project .num-label { padding-top: 7px; }
.project-body h3 { margin-bottom: 8px; }
.project-desc { color: var(--ink-2); font-size: 15px; max-width: 62ch; margin-bottom: 12px; }
.project-link {
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  padding-top: 6px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s var(--ease), transform .25s var(--ease);
}
.project:hover .project-link { color: var(--blue); transform: translateX(4px); }
@media (max-width: 640px) {
  .project { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .project-link { grid-column: 2; padding-top: 0; }
}

/* ─────────────────────────────────────────────────────────────
   Writing
   ───────────────────────────────────────────────────────────── */
.writing-list { display: grid; }
.writing-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 96px;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
  transition: background .2s var(--ease), padding .25s var(--ease);
}
.writing-row:last-child { border-bottom: 1px solid var(--rule); }
.writing-row:hover { background: var(--paper-2); padding-left: 12px; padding-right: 12px; }
.writing-row:hover .writing-title { color: var(--blue); }
.writing-date, .writing-platform { font-size: 13px; color: var(--ink-3); }
.writing-platform { text-align: right; }
.writing-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.writing-title small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-3);
}
.writing-date.ml { color: var(--ink-2); }
.writing-group { font-size: 14px; font-weight: 500; color: var(--ink); margin: 0 0 12px; }
.writing-list + .writing-group { margin-top: 48px; }
@media (max-width: 700px) {
  .writing-row { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .writing-platform { grid-column: 2; text-align: left; }
}

/* ─────────────────────────────────────────────────────────────
   Background (resume)
   ───────────────────────────────────────────────────────────── */
.resume-list { display: grid; }
.resume-list + .resume-list { margin-top: 32px; }
.resume-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.resume-row:last-child { border-bottom: 1px solid var(--rule); }
.resume-year { font-size: 14px; color: var(--ink-3); }
.resume-text { color: var(--ink-2); }
.resume-text strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .resume-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ─────────────────────────────────────────────────────────────
   Follow along
   ───────────────────────────────────────────────────────────── */
.big-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 12vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.big-number span { color: var(--blue); }
.orbit {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 880px) { .orbit { grid-template-columns: 1fr 1fr; gap: 72px; } }

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.platform {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper-3);
  transition: border-color .2s var(--ease), transform .25s var(--ease);
}
.platform:hover { border-color: var(--blue); transform: translateY(-2px); }
.platform-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: flex; justify-content: space-between;
}
.platform-name .ext { color: var(--ink-3); transition: transform .2s var(--ease), color .2s var(--ease); }
.platform:hover .platform-name .ext { transform: translate(2px,-2px); color: var(--blue); }
.platform p { margin: 0; font-size: 14px; color: var(--ink-2); }
.platform .handle { font-size: 13px; color: var(--ink-3); margin-top: auto; }

/* ─────────────────────────────────────────────────────────────
   Ways to work together (list rows)
   ───────────────────────────────────────────────────────────── */
.collab-list { display: grid; border-top: 1px solid var(--rule); }
.collab-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) {
  .collab-row { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: baseline; }
}
.collab-row h3 { font-size: 20px; }
.collab-row p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.collab-row .more { display: inline-block; margin-top: 8px; }

/* ─────────────────────────────────────────────────────────────
   Contact
   ───────────────────────────────────────────────────────────── */
.contact { background: var(--paper-2); }
.contact-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}
@media (min-width: 880px) { .contact-block { grid-template-columns: 1.3fr 1fr; gap: 72px; } }
.big-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  display: inline-block;
  padding: 6px 0;
  position: relative;
  overflow-wrap: anywhere;
}
.big-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(.3);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.big-link:hover::after { transform: scaleX(1); }
.contact-hint { font-size: 14px; color: var(--ink-3); display: block; margin-bottom: 10px; }
.contact-side { font-size: 15px; color: var(--ink-2); display: grid; gap: 4px; }
.contact-side a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-2);
  transition: color .2s var(--ease);
}
.contact-side a:hover { color: var(--blue); }
.contact-side a .ext { color: var(--ink-3); transition: transform .2s var(--ease); }
.contact-side a:hover .ext { transform: translate(2px,-2px); color: var(--blue); }

/* ─────────────────────────────────────────────────────────────
   Standalone document pages (privacy, 404)
   ───────────────────────────────────────────────────────────── */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(64px, 10vw, 120px) var(--gutter); }
.doc h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.doc h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 40px 0 12px; }
.doc .updated { font-size: 14px; color: var(--ink-3); margin: 20px 0 36px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; line-height: 1.65; max-width: 62ch; }
.doc ul { padding-left: 20px; margin: 0 0 1em; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--blue); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.doc a:hover { border-bottom-color: var(--blue); }
.doc .back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-size: 15px; font-weight: 500; }

/* ─────────────────────────────────────────────────────────────
   Footer (same markup on every page)
   ───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 56px var(--gutter) 40px;
  font-size: 14px;
  color: var(--ink-3);
}
.footer-grid {
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
}
.footer-about .brand { margin-bottom: 10px; }
.footer-about p { margin: 0; max-width: 32ch; color: var(--ink-2); }
.footer-col-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer-col a { display: block; padding: 4px 0; color: var(--ink-2); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--blue); }
.footer-base {
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.footer-base a { color: var(--ink-2); }
.footer-base a:hover { color: var(--blue); }

/* ─────────────────────────────────────────────────────────────
   Reveal: calm, single pass. Content is only hidden while JS
   runs (html.js), so it never disappears without scripts.
   ───────────────────────────────────────────────────────────── */
.js .section .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .section .reveal.in { opacity: 1; transform: none; }

.hero .reveal { animation: heroRise .9s var(--ease) both; animation-delay: var(--delay, 0ms); }
.hero .reveal:nth-child(2) { --delay: 60ms; }
.hero .reveal:nth-child(3) { --delay: 120ms; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media print {
  .nav, .footer, .theme-toggle { display: none; }
  body { background: white; color: black; }
  .js .section .reveal { opacity: 1; transform: none; }
}

/* ─── Copy blocks (.code-block, .prompt): icon button + click-to-copy text, see site.js ─── */
.copy-btn {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; padding: 0; flex-shrink: 0;
  color: var(--ink-2); background: var(--paper);
  border: 1px solid var(--rule-2); border-radius: var(--radius);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.copy-btn svg { width: 16px; height: 16px; grid-area: 1 / 1; }
.copy-btn .icon-check { visibility: hidden; }
.copy-btn.done .icon-copy { visibility: hidden; }
.copy-btn.done .icon-check { visibility: visible; }
.copy-btn:hover, .copy-btn.done { color: var(--blue); border-color: var(--blue); }
.copy-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
html:not(.js) .copy-btn { display: none; }
.code-block:has(pre.is-copyable:hover) .copy-btn,
.prompt:has(pre.is-copyable:hover) .copy-btn { color: var(--blue); border-color: var(--blue); }
.copy-status {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
