:root {
  --bg: #000000;
  --surface: #0d0d0d;
  --surface-2: #141414;
  --line: rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.20);
  --ink: #ffffff;
  --muted: #8f8f8f;
  --muted-2: #7d7d7d;
  --accent: #ffffff;
  --accent-ink: #000000;
  --glow: rgba(255,255,255,.06);
  --nav-bg: rgba(0,0,0,.72);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1120px;
  --measure: 40rem;
  --radius: 14px;
  color-scheme: dark;
}
/* light: opt-in via the footer switch. Warm grey paper, not white. */
:root[data-theme="light"] {
  --bg: #efeeea; --surface: #f7f6f3; --surface-2: #e6e4de;
  --line: rgba(0,0,0,.09); --line-2: rgba(0,0,0,.18);
  --ink: #161616; --muted: #66645f; --muted-2: #9a978f;
  --accent: #161616; --accent-ink: #f7f6f3;
  --glow: rgba(0,0,0,.05); --nav-bg: rgba(239,238,234,.8);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
ul { list-style: none; }
::selection { background: var(--ink); color: var(--bg); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 26px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: saturate(140%) blur(14px); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand svg { height: 20px; width: auto; display: block; }
.brand--mark svg { height: 30px; }
.brand--footer svg { height: 18px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link { color: var(--muted); font-weight: 400; font-size: .92rem; transition: color .15s ease; }
.nav__link:hover, .nav__link.is-current { color: var(--ink); }
.nav__cta { margin-left: 8px; padding: 8px 16px; font-size: .88rem; }

/* buttons, x.ai pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; font-size: .92rem; padding: 11px 20px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { opacity: .88; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--line-2); }

main { flex: 1; }

/* hero */
.hero { padding: 96px 0 104px; position: relative; overflow: hidden; text-align: center; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -35%; transform: translateX(-50%); width: 960px; height: 960px; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; position: relative; }
.hero__avatar {
  width: 104px; height: 104px; border-radius: 50%; object-fit: cover; background: #fff;
  border: 1px solid var(--line-2); margin-bottom: 36px;
}
.hero__lockup { margin-bottom: 34px; width: min(100%, 400px); }
.hero__lockup svg { width: 100%; height: auto; display: block; color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .84rem; margin-bottom: 30px;
}
.pill__tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pill__go { color: var(--muted); }
.pill:hover .pill__go { color: var(--ink); }
.hero__title {
  font-weight: 500; font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 1.06; letter-spacing: -.035em; max-width: 18ch; margin-inline: auto; text-wrap: balance;
}
.hero__sub { color: var(--muted); font-size: 1.18rem; line-height: 1.6; margin: 26px auto 0; max-width: 34rem; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* rotating word, x.ai style. Keyframes are generated on the page from the word count (index.njk).
   Letters type in left to right with blur, hold, the band runs twice, letters blur out upward left to right. */
.swap { position: relative; display: inline-grid; vertical-align: baseline; padding-bottom: .02em; transition: width .45s cubic-bezier(.4,0,.2,1); }
.swap__word { position: relative; grid-area: 1 / 1; justify-self: start; white-space: nowrap; }
.swap__ch {
  display: inline-block; opacity: 0; filter: blur(6px); will-change: opacity, filter, transform;
  animation: swap-letter var(--loop) linear infinite;
  animation-delay: calc(var(--dur) * var(--i) + .028s * var(--c));
}
/* each word carries its own bar (::after) and band (::before), sized to the word, shown while the word is */
.swap__word::after, .swap__word::before {
  content: ""; position: absolute; left: 0; right: .35em; bottom: -.06em; height: .075em; border-radius: 999px; opacity: 0;
  animation-duration: var(--loop); animation-iteration-count: infinite; animation-delay: calc(var(--dur) * var(--i));
}
.swap__word::after { background: var(--line-2); animation-name: swap-bar; animation-timing-function: linear; }
.swap__word::before {
  z-index: 1;
  background: linear-gradient(90deg, transparent, #f5a524 15%, #f0c93a 32%, #e0407a 55%, #7b3fe4 78%, #2f6bff 90%, transparent) no-repeat;
  background-size: 50% 100%; background-position-x: -100%;
  animation-name: swap-bar, swap-band; animation-timing-function: linear, cubic-bezier(.5,0,.5,1);
  animation-duration: var(--loop), var(--loop); animation-delay: calc(var(--dur) * var(--i)), calc(var(--dur) * var(--i));
}
/* standalone underline with a single periodic band (used outside the rotating word) */
.uline { position: relative; display: inline-block; }
.uline::after, .uline::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: .075em; border-radius: 999px;
}
.uline::after { background: var(--line-2); }
.uline::before {
  z-index: 1;
  background: linear-gradient(90deg, transparent, #f5a524 15%, #f0c93a 32%, #e0407a 55%, #7b3fe4 78%, #2f6bff 90%, transparent) no-repeat;
  background-size: 50% 100%; background-position-x: -100%;
  animation: uline-sweep 4.5s cubic-bezier(.45,0,.2,1) infinite;
}
@keyframes uline-sweep { 0% { background-position-x: -100%; } 22% { background-position-x: 200%; } 100% { background-position-x: 200%; } }
@media (prefers-reduced-motion: reduce) {
  .swap__ch, .swap__word::before, .swap__word::after, .uline::before { animation: none; }
  .swap__word:first-child::after { opacity: 1; }
  .swap__ch { opacity: 0; filter: none; }
  .swap__word:first-child .swap__ch { opacity: 1; }
}

/* section headers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.section__title { font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.03em; line-height: 1.1; }
.section__title--page { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.lede { color: var(--muted); font-size: 1.12rem; margin-top: 16px; max-width: var(--measure); }
.lede a, .note a { text-decoration: underline; text-underline-offset: 3px; }

/* writing list */
.writing { padding: 0 0 88px; }
.plist { margin-top: 26px; border-top: 1px solid var(--line); }
.plist__item { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.plist--full .plist__item { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; padding: 22px 0; }
.plist--full .plist__desc { grid-column: 1; color: var(--muted); font-size: .96rem; max-width: var(--measure); }
.plist--full .plist__date { grid-column: 2; grid-row: 1; }
.plist__link { font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; transition: color .15s ease; }
.plist__link:hover { color: var(--muted); }
.plist__date { color: var(--muted-2); font-size: .88rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plist__cat { grid-column: 1; display: inline-block; width: max-content; color: var(--muted-2); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cats__btn { font: inherit; font-size: .88rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.cats__btn:hover { color: var(--ink); border-color: var(--ink); }
.cats__btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cats + .plist { margin-top: 20px; }
.plist__more { margin-top: 18px; color: var(--muted); font-size: .94rem; }
.plist__more a:hover { color: var(--ink); }
.plist__empty { color: var(--muted-2); padding: 32px 0 0; border-top: 1px solid var(--line); margin-top: 26px; }

/* pages */
.page { padding-block: 72px 96px; max-width: 760px; }
.page--wide { max-width: 980px; }
.who { font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 28px 0 14px; }
.bio { font-size: 1.25rem; line-height: 1.5; max-width: var(--measure); }
.note { color: var(--muted); margin-top: 1.4rem; }
.about__top { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; align-items: center; }
.about__portrait { margin: 0; }
.about__portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; background: #fff; border: 1px solid var(--line-2); }
.about__more { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }

.post__title { font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em; margin-top: 6px; max-width: 22ch; }
.post__meta { color: var(--muted-2); font-size: .92rem; margin: 18px 0 40px; }
.post__meta a:hover { color: var(--ink); }
.post__foot { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .94rem; }

.prose { max-width: var(--measure); font-size: 1.06rem; color: var(--ink); opacity: .86; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.prose h2 { font-size: 1.7rem; margin-top: 2.4em; }
.prose h3 { font-size: 1.32rem; margin-top: 2em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.7em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose p:empty { display: none; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote { border-left: 2px solid var(--line-2); padding-left: 1em; color: var(--muted); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: .92rem; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose img { border-radius: 10px; border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose u { text-decoration: underline; text-underline-offset: 3px; }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.prose .callout > * + * { margin-top: .8em; }
.prose details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; }
.prose details > * + * { margin-top: .8em; }
.prose summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.prose details[open] summary { margin-bottom: .4em; }
.prose .video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose img + em, .prose pre + em { display: block; margin-top: .5em; color: var(--muted); font-size: .92rem; font-style: normal; }
.prose input[type="checkbox"] { margin-right: .4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .96rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }

/* subscribe: one pill, button inside */
.subscribe { margin-top: 24px; position: relative; }
.subscribe__done, .subscribe__fail { display: none; }
.subscribe__done-title { font-size: 1.15rem; font-weight: 500; }
.subscribe__done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.subscribe__done:target, .subscribe.is-done .subscribe__done { display: block; }
.subscribe__done:target ~ .subscribe__form, .subscribe.is-done .subscribe__form, .subscribe.is-done .subscribe__fail { display: none; }
.subscribe__fail:target, .subscribe.is-fail .subscribe__fail { display: block; margin-bottom: 10px; }
.subscribe__fail .subscribe__hint { color: #ff7b7b; }
.subscribe__label, .subscribe__hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.subscribe__row {
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 22px; max-width: 520px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  transition: border-color .15s ease;
}
.subscribe__row:focus-within { border-color: var(--ink); }
.subscribe__input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 0; outline: none; padding: 8px 0; }
.subscribe__input::placeholder { color: var(--muted-2); }
.subscribe__btn { flex: none; padding: 10px 20px; }
.subscribe__btn[disabled] { opacity: .6; }
.subscribe__hint { color: var(--muted-2); font-size: .84rem; margin-top: 12px; }
.hero__capture { width: min(100%, 560px); margin-top: 44px; text-align: center; scroll-margin-top: 90px; }
.capture__title { font-weight: 500; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; }
.divider { width: 64px; height: 1px; border: 0; background: var(--line-2); margin: 6px auto 30px; }
.capture__ps { color: var(--muted); font-size: 1.12rem; line-height: 1.55; margin-top: 10px; max-width: 36rem; margin-inline: auto; }
.hero .capture__ps { color: var(--muted); font-size: 1.18rem; margin-top: 0; }
.hero .capture__ps strong { color: var(--ink); }
.capture__ps strong { font-weight: 600; }
.hero__capture .subscribe { margin-top: 26px; }
.hero__capture .subscribe__row { margin-inline: auto; }
.subscribe-box--post .capture__ps { margin-inline: 0; }
.hero__capture .subscribe__hint, .hero__capture .subscribe__done { text-align: center; }
.hero__links { margin-top: 26px; display: flex; gap: 12px; justify-content: center; color: var(--muted-2); font-size: .92rem; }
.hero__links a { color: var(--muted); }
.hero__links a:hover { color: var(--ink); }
.subscribe-box { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 40px; max-width: 720px; }
.subscribe-box--post { margin-top: 56px; padding: 28px; }
@media (max-width: 520px) { .subscribe__row { padding: 6px; } .subscribe__input { padding-left: 14px; } .subscribe-box { padding: 28px 22px; } }

/* share row */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.share__label { font-weight: 500; margin-right: 8px; }
.share__btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .86rem; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.share__btn svg { width: 14px; height: 14px; }
.share__btn:hover { border-color: var(--line-2); background: var(--surface-2); }

/* read next */
.readnext { padding: 0 0 96px; }
.readnext__title { font-weight: 500; font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: 20px; }
.readnext__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.rcard__link { display: block; }
.rcard__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.rcard__img--blank { display: grid; place-items: center; color: var(--muted-2); }
.rcard__img--blank svg { width: 44px; height: 44px; }
.rcard__meta { color: var(--muted); font-size: .84rem; margin-top: 14px; }
.rcard__title { font-weight: 500; font-size: 1.12rem; letter-spacing: -.015em; line-height: 1.3; margin-top: 6px; transition: color .15s ease; }
.rcard__link:hover .rcard__title { color: var(--muted); }
.rcard__desc { color: var(--muted); font-size: .94rem; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rcard__author { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .86rem; color: var(--muted); }
.rcard__author img { width: 22px; height: 22px; border-radius: 50%; background: #fff; }
@media (max-width: 860px) { .readnext__grid { grid-template-columns: 1fr; gap: 24px; } }

/* offer pages */
.pg { padding: 72px 0 110px; }
.pg--narrow { max-width: 780px; }
.pg__title { font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.035em; line-height: 1.05; max-width: 20ch; }
.pg .lede { font-size: 1.18rem; margin-top: 20px; max-width: 44rem; }
.pg__cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr); gap: 56px; margin-top: 48px; align-items: start; }
.pg__side { position: sticky; top: 92px; }
.card-box { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 28px; }
.card-box__title { font-weight: 500; font-size: 1.3rem; letter-spacing: -.02em; }
.card-box__sub { color: var(--muted); font-size: .94rem; margin-top: 8px; }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price__num { font-weight: 500; font-size: 2.4rem; letter-spacing: -.03em; }
.price__note { color: var(--muted); font-size: .94rem; }
.price__alt { color: var(--muted-2); font-size: .88rem; margin-top: 4px; }
.ticks { margin: 18px 0 8px; }
.ticks li { padding: 6px 0 6px 22px; position: relative; font-size: .96rem; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.prose table { display: table; }
.prose th { color: var(--ink); font-weight: 500; }
.prose td:first-child { white-space: nowrap; color: var(--muted); }

/* ladder */
.ladder { margin-top: 44px; border-top: 1px solid var(--line); }
.ladder__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.ladder__tag { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.ladder__title { font-weight: 500; font-size: 1.35rem; letter-spacing: -.02em; margin: 4px 0 8px; }
.ladder__item p:last-child { color: var(--muted); max-width: 44rem; }

/* apply forms */
.apply { margin-top: 20px; position: relative; }
.apply__done, .apply__fail { display: none; }
.apply__done-title { font-size: 1.15rem; font-weight: 500; }
.apply__hint { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.apply__done:target, .apply.is-done .apply__done { display: block; }
.apply__done:target ~ .apply__form, .apply.is-done .apply__form, .apply.is-done .apply__fail { display: none; }
.apply__fail:target, .apply.is-fail .apply__fail { display: block; margin-bottom: 12px; }
.apply__fail .apply__hint { color: #ff7b7b; }
.apply__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; color: var(--muted); }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; outline: none; width: 100%;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.apply__btn { margin-top: 14px; width: 100%; }
.apply__btn[disabled] { opacity: .6; }
.apply__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 860px) { .pg__cols { grid-template-columns: 1fr; gap: 36px; } .pg__side { position: static; } .ladder__item { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .apply__grid { grid-template-columns: 1fr; } .card-box { padding: 22px 18px; } }

/* social icons + theme switch */
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.social__link {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.social__link svg { width: 15px; height: 15px; display: block; }
.social__link:hover { color: var(--ink); border-color: var(--line-2); background: var(--surface-2); }
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.theme-switch button {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted-2); cursor: pointer; transition: color .15s ease, background .15s ease;
}
.theme-switch button svg { width: 14px; height: 14px; display: block; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }

/* footer */
.footer { border-top: 1px solid var(--line); padding-top: 64px; background: var(--bg); margin-top: auto; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; padding-bottom: 44px; }
.footer__brand p { color: var(--muted); margin-top: 18px; max-width: 320px; font-size: .96rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__bottom { align-items: center; }
.footer__col h2 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; font-weight: 500; }
.footer__col a { display: block; color: var(--muted); font-size: .94rem; padding: 5px 0; transition: color .15s ease; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .86rem; }

@media (max-width: 760px) {
  .hero { padding: 56px 0 72px; }
  .hero__lockup { width: min(100%, 300px); }
  .hero__avatar { width: 88px; height: 88px; margin-bottom: 28px; }
  .page { padding-block: 48px 64px; }
  .about__top { grid-template-columns: 1fr; gap: 28px; }
  .about__portrait { width: 200px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .nav__links { gap: 16px; }
  .nav__cta { display: none; }
  .plist__item { flex-direction: column; gap: 4px; }
  .plist--full .plist__item { grid-template-columns: 1fr; }
  .plist--full .plist__date { grid-column: 1; grid-row: auto; }
}
