/* spb.engineer: the only stylesheet for public pages. The admin has its own in /admin. */

:root {
  --paper: #f2f0eb;
  --paper-deep: #e6e2d9;
  --ink: #000;
  --ink-soft: #55524c;
  --line: #d6d1c6;
  --accent: #142d52;
  --live: #2f7d4f;

  --font: "norman-variable", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --space: clamp(72px, 10vw, 128px);
  --radius: 6px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 600 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-decoration-color .15s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.arrow { display: inline-block; font-weight: 400; }

/* ---------- shared bits ---------- */
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 38em; }
.eyebrow { font-size: 0.9375rem; color: var(--ink-soft); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.875rem; color: var(--ink-soft); }
.fine { font-size: 0.875rem; color: var(--ink-soft); }
.empty { color: var(--ink-soft); padding: 32px 0; }
.back { margin-bottom: 40px; font-size: 0.9375rem; }
.back a { text-decoration: none; color: var(--ink-soft); }
.back a:hover { color: var(--ink); }

.button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius);
  max-width: 100%; font-weight: 700; line-height: 1.35; text-decoration: none; transition: background .15s, color .15s;
}
.button:hover { background: var(--accent); border-color: var(--accent); }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button-quiet:hover { background: transparent; border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.icon-button {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 50%; transition: border-color .15s, opacity .15s;
}
.icon-button:hover:not(:disabled) { border-color: var(--ink); }
.icon-button:disabled { opacity: .35; cursor: default; }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; text-decoration: none; }
.status:hover { text-decoration: underline; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 18%, transparent); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tags li { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8125rem; color: var(--ink-soft); }

/* A link that makes its whole card clickable. */
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: var(--radius); }

/* ---------- header & footer ---------- */
.site-header { padding-block: 24px; }
.header-inner nav { width: 100%; }
.nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 64px repeat(2, minmax(0, 1fr)); align-items: center; gap: 16px; width: min(100%, 680px); margin-inline: auto; list-style: none; font-size: .9375rem; }
.nav-links li { min-width: 0; display: flex; justify-content: center; }
.nav-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 10px; text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a[aria-current] { text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: .45em; }
.nav-links .brand { min-width: 56px; min-height: 56px; padding: 8px; }
.brand img { width: 40px; height: auto; }
@media (max-width: 600px) {
  .site-header { padding-block: 16px; }
  .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)) 56px repeat(2, minmax(0, 1fr)); gap: 0; font-size: .875rem; }
  .nav-links a { width: 100%; min-height: 48px; padding-inline: 2px; }
  .nav-links .brand { width: 56px; padding: 8px; }
  .brand img { width: 36px; }
}
@media (max-width: 360px) { .nav-links { font-size: .8125rem; } }

.site-footer { margin-top: var(--space); padding-block: 48px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer-brand { display: flex; gap: 14px; align-items: center; color: var(--ink-soft); line-height: 1.4; }
.footer-brand img { width: 36px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; justify-content: flex-end; }
.footer-links a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding-block: 8px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.875rem; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } .footer-links { justify-content: flex-start; } }

/* ---------- sections ---------- */
.section { margin-top: var(--space); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.035em; }
.section-head a { font-size: 0.9375rem; white-space: nowrap; }
.page-head { margin: clamp(24px, 5vw, 64px) 0 48px; display: grid; gap: 20px; }
.page-head h1 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.05em; line-height: 0.95; }

/* ---------- home ---------- */
.home, .about { --ink: #111111; --ink-soft: #595959; --accent: #111111; --live: #111111; --line: #d1cfca; --wrap: 1080px; --space: clamp(64px, 8vw, 112px); --section-inset: clamp(16px, 2.5vw, 32px); }
:is(.home, .about) .section { padding-block: var(--section-inset); }
.home .hero { display: grid; gap: 44px; align-items: center; text-align: center; padding-block: clamp(40px, 5vw, 72px) clamp(16px, 2.5vw, 32px); }
.home .hero-text { min-width: 0; }
.home .hero-lede { margin-inline: auto; }
.hero-greeting { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.home .display { font-size: clamp(3.125rem, 7.3vw, 5.875rem); line-height: .94; letter-spacing: -.05em; font-weight: 700; text-transform: none; margin: 0 0 24px; text-wrap: initial; }
.hero-period { color: #111111; }
.home .hero-lede { font-weight: 600; max-width: 32em; color: var(--ink-soft); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.home .home-button { min-height: 52px; padding: 12px 21px; justify-content: center; gap: 20px; background: #111111; border-color: #111111; border-radius: 8px; color: #ffffff; font-size: 1rem; line-height: 1.35; font-weight: 600; }
.home .home-button .arrow { font-size: 1.25rem; line-height: 1; }
.home .home-button:hover { background: #333333; border-color: #333333; }
.home .home-button.button-quiet { background: transparent; color: #111111; border-color: #aaa8a3; }
.home .home-button.button-quiet:hover { background: #e7e5e0; border-color: #555555; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; margin-top: 16px; color: var(--ink-soft); font-size: .875rem; }
.hero-meta > span { display: inline-flex; align-items: center; min-height: 44px; }
.hero-meta .status { min-height: 44px; padding: 8px 4px; font-size: .875rem; }
.home .hero-portrait { min-width: 0; margin: 0; }
.home .hero-portrait img, .about-portrait img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 52% 50%; border: 1px solid var(--line); border-radius: clamp(16px, 2vw, 24px); }
.hero-portrait figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; gap: 0 16px; padding-top: 10px; color: var(--ink-soft); font-size: .8125rem; line-height: 1.5; }
.hero-portrait figcaption > span { max-width: 28ch; }
.hero-portrait figcaption a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 2px; font-weight: 600; text-decoration: none; }
.hero-portrait figcaption a:hover { text-decoration: underline; }
.hero-portrait figcaption .arrow { font-size: 1.125rem; }
.home .home-section-head, .about .section-head { position: relative; flex-direction: column; align-items: center; text-align: center; gap: 20px; border-bottom: 0; padding-bottom: clamp(36px, 4vw, 48px); margin-bottom: clamp(32px, 4vw, 48px); }
.home-section-head .eyebrow { font-size: .8125rem; font-weight: 500; color: #666666; margin-bottom: 9px; }
.home-section-head .section-note { color: var(--ink-soft); font-size: .9375rem; line-height: 1.55; }
.home .section-button { min-height: 48px; padding: 11px 18px; gap: 18px; font-size: .9375rem; font-weight: 600; line-height: 1.35; background: transparent; color: #111111; border-color: #aaa8a3; border-radius: 8px; }
.home .section-button:hover { background: #e7e5e0; border-color: #555555; }
.home .section-button .arrow { margin-left: auto; font-size: 1.125rem; }

/* Clear project actions, with room for the work to speak for itself. */
.home .projects { list-style: none; display: grid; gap: 40px; }
.home .project { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 12px 0 44px; text-align: center; }

.home .project-art { align-self: center; width: 64px; aspect-ratio: 1; border-radius: 22%; overflow: hidden; background: var(--paper-deep); display: grid; place-items: center; }
.home .project-art img { width: 100%; height: 100%; object-fit: contain; }
.home .project-art-cover img { object-fit: cover; }
.home .project-art-text { padding: 10px; font-weight: 700; font-size: .8125rem; text-align: center; line-height: 1.2; }
.home .project .meta { align-self: center; justify-content: center; font-size: .8125rem; }
.home .project-title { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.035em; }
.home .project .card-link::after { content: ""; inset: 0; border-radius: inherit; }
.home .project .card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.home .project-summary { color: var(--ink-soft); max-width: 42em; margin-block: 0 4px; font-size: 1rem; }
.home .project .tags { justify-content: center; margin-top: auto; padding-top: 4px; }
.home .project-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.home-contact { margin-top: var(--space); }
.home-contact-inner { position: relative; isolation: isolate; max-width: 1080px; margin-inline: auto; display: grid; justify-items: center; text-align: center; gap: 24px; padding: clamp(100px, 10vw, 144px) clamp(24px, 5vw, 64px) clamp(44px, 6vw, 84px); color: var(--ink); }
.home-contact-inner::before { content: ""; position: absolute; z-index: -2; inset: 24px 8px 8px; background: #80b7ca; border: 1px solid #6ca2b7; border-radius: 16px; pointer-events: none; }
.home-contact-inner::after { content: ""; position: absolute; z-index: -1; inset: 56px 0 0; background: linear-gradient(180deg, #e1f0f6, #cce5ef); border: 1px solid #a6cad9; border-radius: 18px; box-shadow: 0 8px 20px rgb(0 0 0 / .04), inset 0 1px 0 rgb(255 255 255 / .65); pointer-events: none; }
.home-contact h2 { font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.15; letter-spacing: -.035em; margin: 0; }
.home-contact .eyebrow { position: absolute; top: 0; left: 8px; display: flex; align-items: center; width: clamp(140px, 20vw, 176px); height: 40px; padding: 8px 18px; border: 1px solid #6ca2b7; border-bottom: 0; border-right: 0; border-radius: 14px 22px 0 0; background: #80b7ca; color: #193d4c; font-size: .8125rem; line-height: 1.5; font-weight: 600; }
.home-contact-copy { max-width: 42ch; color: #354e59; margin: 18px auto 0; font-size: clamp(1rem, 1.3vw, 1.1875rem); line-height: 1.65; }
.home-contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; min-width: 0; }
.home .home-contact .button-quiet { color: var(--ink); border-color: #91b1c0; background: rgb(255 255 255 / .45); }
.home .home-contact .button-quiet:hover { background: #fff; border-color: #557583; }
@media (max-width: 600px) {
  .home-contact-inner { max-width: 480px; padding-top: 88px; padding-bottom: 32px; }
  .home-contact-actions { width: 100%; flex-direction: column; align-items: center; }
  .home .home-contact .button { width: 100%; max-width: 280px; justify-content: center; }
}
.home .site-footer, .about .site-footer { position: relative; margin-top: var(--space); border-top: 0; padding-block: clamp(44px, 5vw, 64px); }
:is(.home, .about) .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; }
:is(.home, .about) .footer-links { justify-content: center; gap: 4px 20px; }
.home .story { text-align: center; }
.home .story .meta { justify-content: center; }
.home .gallery-item figcaption { text-align: center; }
@media (min-width: 760px) {
  .home .hero, .about .about-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .95fr); column-gap: clamp(36px, 4.5vw, 64px); align-items: center; }
}
@media (min-width: 900px) {
  .home .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .home .project-art { width: 80px; }
  .home .project-title { font-size: 1.75rem; }
}
@media (max-width: 1000px) and (min-width: 760px) {
  .home .display { font-size: clamp(3.1rem, 7.1vw, 4.8rem); }
  .hero-actions { gap: 10px; }
  .home .home-button { padding-inline: 17px; gap: 16px; font-size: .9375rem; }
  .hero-meta { column-gap: 15px; }
}
@media (max-width: 759px) {
  .home .display { font-size: clamp(3.125rem, 12vw, 5.25rem); }
  .hero-greeting { margin-bottom: 16px; }
  .hero-meta { margin-top: 16px; }
  .home .hero-portrait { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 640px) {
  .home .home-section-head { align-items: center; gap: 16px; }
  .home .home-section-head .section-button { width: 100%; }
  .home-section-head .section-note br { display: none; }
}
@media (max-width: 420px) {
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .home .hero-actions .home-button { width: 100%; }
  .hero-meta { column-gap: 14px; font-size: .8125rem; }
  .hero-meta .status { font-size: .8125rem; }
}

/* Stories */
.stories { display: grid; gap: 48px 32px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.story { position: relative; display: grid; gap: 10px; align-content: start; }
.story-cover { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--paper-deep); margin-bottom: 8px; transition: opacity .2s; }
.story:hover .story-cover { opacity: .9; }
.story-title { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.025em; }
.story:hover .story-title a { text-decoration: underline; text-decoration-thickness: 2px; }
.story-dek { color: var(--ink-soft); font-size: 1rem; }
.story[hidden] { display: none; }

/* Photos: a sideways-scrolling filmstrip that keeps each photo's proportions. */
.gallery-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-bottom: 4px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track { align-items: flex-start; }
.gallery-item { flex: none; scroll-snap-align: start; display: grid; gap: 10px; }
/* width/height auto with both max sizes scales each photo down without cropping it. */
.gallery-item img {
  width: auto; height: auto; max-height: clamp(240px, 62vh, 600px); max-width: calc(100vw - 2 * var(--gutter));
  border-radius: var(--radius); background: var(--paper-deep);
}
.gallery-item figcaption { font-size: 0.875rem; color: var(--ink-soft); }
.gallery-controls { display: flex; gap: 8px; margin-top: 20px; }
.gallery-controls[hidden] { display: none; }

/* ---------- journal ---------- */
.journal-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; padding-block: 16px; border-block: 1px solid var(--line); }
.journal-tools[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 0.9375rem; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search input { width: min(280px, 100%); min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; }
.search input:focus { border-color: var(--ink); outline: none; }
.search { flex: 1 1 200px; display: flex; justify-content: flex-end; }
@media (max-width: 560px) { .search { justify-content: stretch; } .search input { width: 100%; } }

/* ---------- article ---------- */
.page-article { --measure: 680px; padding-top: clamp(16px, 4vw, 48px); }
.page-article > .back, .article-head, .prose, .next-story, .preview-banner { max-width: var(--measure); margin-inline: auto; }
.article-head { display: grid; gap: 20px; margin-bottom: 48px; }
.article-head h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); letter-spacing: -0.045em; line-height: 1.02; }
.byline { font-size: 0.9375rem; color: var(--ink-soft); padding-top: 20px; border-top: 1px solid var(--line); }
.article-cover { max-width: 1000px; margin: 0 auto 56px; }
.article-cover img { width: 100%; max-height: 80vh; object-fit: cover; border-radius: var(--radius); }
.preview-banner { padding: 14px 18px; margin-bottom: 32px; border: 1px solid var(--accent); border-radius: var(--radius); color: var(--accent); font-size: 0.9375rem; }

.prose { font-size: 1.1875rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.75rem; margin-top: 2em; letter-spacing: -0.03em; }
.prose h3 { font-size: 1.375rem; margin-top: 1.8em; }
.prose h4 { font-size: 1.125rem; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose a { text-decoration-color: var(--accent); color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { margin-inline: 0; padding-left: 1.2em; border-left: 3px solid var(--ink); font-size: 1.3rem; line-height: 1.5; }
.prose figure, .prose > img { margin-block: 2em; }
.prose img { border-radius: var(--radius); }
.prose figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--ink-soft); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.prose code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--paper-deep); padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre { overflow-x: auto; padding: 16px 18px; background: var(--paper-deep); border-radius: var(--radius); font-size: 0.9rem; }
.prose pre code { background: none; padding: 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 1rem; max-width: 100%; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { border-bottom-color: var(--ink); font-weight: 700; }

.next-story { margin-top: var(--space); padding-top: 24px; border-top: 1px solid var(--ink); display: grid; gap: 20px; }
.next-story .story { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .next-story .story { grid-template-columns: 220px 1fr; column-gap: 28px; }
  .next-story .story-cover { grid-row: 1 / span 3; margin: 0; }
}

.page-message { padding-block: clamp(48px, 12vw, 160px); display: grid; gap: 16px; justify-items: start; }
.page-message h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.045em; }
.page-message p:last-child { color: var(--ink-soft); }

/* ---------- about ---------- */
.about-hero { display: grid; gap: clamp(32px, 5vw, 56px); padding-block: clamp(32px, 5vw, 64px) 16px; align-items: center; text-align: center; }
.about-intro { display: grid; justify-items: center; gap: 24px; align-content: center; max-width: 38ch; margin-inline: auto; }
.about-intro h1 { font-size: clamp(3.25rem, 6.5vw, 5.5rem); letter-spacing: -0.055em; line-height: .95; }
.about-intro .lede { color: var(--ink-soft); font-size: clamp(1.0625rem, 1.5vw, 1.125rem); line-height: 1.75; }
.about .section { margin-top: clamp(56px, 7vw, 88px); padding-block: clamp(12px, 2vw, 24px); }
.about-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; font-size: .875rem; color: var(--ink-soft); }
.about-meta .status { min-height: 44px; }
.about-actions { justify-content: center; }
.about-portrait { width: 100%; max-width: 520px; margin-inline: auto; }
.about-details { display: grid; gap: 32px; margin: clamp(40px, 5vw, 64px) auto 0; max-width: 960px; text-align: center; color: var(--ink-soft); line-height: 1.75; }
.about-details p { max-width: 44ch; margin-inline: auto; }
.about .skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 48px; margin: 0 auto; max-width: 900px; text-align: center; }
.skills dt { font-weight: 700; margin-bottom: 8px; }
.skills dd { margin: 0; color: var(--ink-soft); }
.about .skills dd { max-width: 36ch; margin-inline: auto; line-height: 1.7; }
.link-list { list-style: none; }
.link-list a { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.link-list a:hover span:first-child { text-decoration: underline; }
.link-note { font-size: .9375rem; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; text-align: right; }
.about .link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; max-width: 900px; margin-inline: auto; }
.about .link-list a { flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 88px; border-bottom: 0; text-align: center; }
.about .link-note { text-align: center; overflow-wrap: anywhere; }
@media (min-width: 760px) {
  .about-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
}
@media (min-width: 960px) {
  .about-hero { row-gap: 44px; }
}
@media (max-width: 600px) {
  .about .skills, .about .link-list { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 420px) {
  .about-actions { width: 100%; flex-direction: column; }
  .about-actions .button { justify-content: center; }
  .about .skills, .about .link-list { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- product pages ---------- */
.product-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(32px, 6vw, 64px); font-size: 0.9375rem; }
.product-nav a { text-decoration: none; color: var(--ink-soft); }
.product-nav a:hover { color: var(--ink); }
.product-nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.product .back { margin-bottom: clamp(32px, 6vw, 64px); }

.product-hero { display: grid; gap: 48px; align-items: center; }
.product-intro { display: grid; gap: 22px; justify-items: start; }
.product-intro h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); letter-spacing: -0.05em; line-height: 0.98; }
.product-name { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.product-name img { width: 44px; height: 44px; border-radius: 22%; }
.product-intro .actions { margin-top: 6px; }
.product-visual img { width: 100%; border-radius: var(--radius); }
.product-visual figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--ink-soft); }
.product-visual a { display: block; cursor: zoom-in; }
.product-visual-icon { background: var(--paper-deep); border-radius: var(--radius); display: grid; place-items: center; aspect-ratio: 4 / 3; }
.product-visual-icon img { width: 46%; border-radius: 22%; }
@media (min-width: 900px) { .product-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin: clamp(56px, 8vw, 96px) 0 0; padding-block: 24px; border-block: 1px solid var(--ink); }
.facts dt { font-size: 0.875rem; color: var(--ink-soft); }
.facts dd { margin: 4px 0 0; font-weight: 700; font-size: 1.125rem; }

.product-section { margin-top: var(--space); }
.product-section > h2, .section-intro h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.035em; margin-bottom: 32px; }
.section-intro { display: grid; gap: 0 48px; margin-bottom: 8px; }
.section-intro p { color: var(--ink-soft); max-width: 36em; margin-bottom: 32px; }
@media (min-width: 900px) { .section-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } .section-intro h2 { margin-bottom: 0; } }

.features { display: grid; gap: 0 48px; margin: 0; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.features div { padding-block: 22px; border-top: 1px solid var(--line); }
.features dt { font-weight: 700; font-size: 1.125rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.features dd { margin: 0; color: var(--ink-soft); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step); font-weight: 700; font-size: 2.75rem; line-height: 1; letter-spacing: -0.04em; margin-bottom: 8px; }
.steps h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.steps p { color: var(--ink-soft); }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.shots a { display: block; cursor: zoom-in; }
.shots img { width: 100%; border-radius: var(--radius); }
.shots figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--ink-soft); }

details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.notes, .release-entry { border-top: 1px solid var(--line); }
.notes { margin-top: var(--space); border-bottom: 1px solid var(--line); }
.notes > summary, .release-entry > summary {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 20px 32px 20px 0; position: relative; font-weight: 700; font-size: 1.125rem;
}
.notes > summary span, .release-entry > summary span { font-weight: 400; font-size: 0.9375rem; color: var(--ink-soft); }
.notes > summary::after, .release-entry > summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; line-height: 1; }
details[open] > summary::after { content: "−"; }
.notes ul, .release-body ul { padding: 0 0 24px 1.2em; color: var(--ink-soft); display: grid; gap: 6px; max-width: 46em; }
.release-list { border-bottom: 1px solid var(--line); }
.release-entry:last-child { border-bottom: 1px solid var(--line); }
.release-body h3 { font-size: 1rem; margin: 4px 0 12px; }
.release-changes { list-style: none; padding-left: 0 !important; }
.release-changes li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: baseline; }
.change-badge { font-size: 0.8125rem; font-weight: 700; }
.change-added { color: var(--live); }
.change-improved { color: var(--accent); }
.change-fixed { color: #8a4b12; }
.release-body code, .notes code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; }

.product-end { margin-top: var(--space); padding-top: 32px; border-top: 1px solid var(--ink); }

/* ---------- image viewer ---------- */
.viewer { width: min(96vw, 1600px); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.viewer::backdrop { background: rgb(0 0 0 / .86); }
.viewer img { max-width: 100%; max-height: calc(94vh - 56px); margin-inline: auto; border-radius: var(--radius); }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #fff; padding-bottom: 12px; font-size: 0.9375rem; }
.viewer .icon-button { color: #fff; border-color: rgb(255 255 255 / .4); }
.viewer .icon-button:hover { border-color: #fff; }

.about .elsewhere-label { display: inline-flex; align-items: center; gap: 10px; color: #111; }

.about .resume-skills {
  max-width: 860px;
  margin-inline: auto;
  text-align: left;
}
.resume-skills h2 {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -.035em;
}
.resume-entries { margin: 0; }
.resume-entries > div {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr);
  gap: 24px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.resume-entries dt { font-weight: 700; }
.resume-entries dd { margin: 0; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 640px) {
  .resume-entries > div { grid-template-columns: 1fr; gap: 4px; padding-block: 16px; }
}

/* Product shelf */
.home .projects {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.home .project {
  align-items: stretch;
  gap: 12px;
  padding: 0 22px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #faf9f6;
  text-align: left;
}
.product-stage {
  display: grid;
  place-items: center;
  height: clamp(120px, 12vw, 158px);
  margin: 0 -22px 8px;
  background: radial-gradient(ellipse at top left, #fff9, transparent 75%), var(--stage, #dfddd7);
  border-bottom: 1px solid var(--line);
}
.project[data-product="autosync-project"] { --stage: #cee5ee; }
.project[data-product="astro"] { --stage: #dbd9ea; }
.home .product-stage .project-art { width: 68px; box-shadow: 0 6px 14px #0001; }
.home .project .meta { align-self: stretch; justify-content: space-between; }
.home .project-title { font-size: 1.5rem; }
.home .project-summary { margin: 0; line-height: 1.55; }
.home .project .tags { justify-content: flex-start; padding-top: 8px; }

:is(.home, .about) { --header-height: 104px; }
@media (max-width: 600px) {
  :is(.home, .about) { --header-height: 88px; }
}
:is(.home, .about) main > section {
  margin-block: 0;
  min-height: 100vh;
  min-height: 100svh;
  align-content: center;
  padding-block: clamp(32px, 5vw, 72px);
}
:is(.home, .about) main > section:not(.hero, .about-hero) { display: grid; grid-template-columns: minmax(0, 1fr); }
:is(.home, .about) main > :is(.hero, .about-hero) {
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
}
.home .home-contact-inner { width: 100%; }
:is(.home, .about) .site-footer { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  html:has(body.home, body.about) { scroll-snap-type: y mandatory; }
  :is(.home, .about) .site-header, :is(.home, .about) main > section:not(.hero, .about-hero), :is(.home, .about) .site-footer { scroll-snap-align: start; }
  :is(.home, .about) main > :is(.hero, .about-hero) { scroll-snap-align: start; scroll-margin-top: var(--header-height); }
}

.about-hero .about-details { grid-column: 1 / -1; margin-top: 0; }
.about .link-list { width: 100%; }
.about .link-list a { border-radius: 12px; background: rgb(255 255 255 / .35); border: 1px solid var(--line); }
:is(.home, .about) .section-head { padding-bottom: 8px; }
:is(.hero-portrait, .about-portrait) img { box-shadow: 0 8px 24px rgb(30 28 23 / .08); }
@media (prefers-reduced-motion: no-preference) {
  .section-arrived :is(h1, h2) { animation: section-arrival .45s ease-out both; }
  @keyframes section-arrival { from { transform: translateY(8px); opacity: .8; } to { transform: translateY(0); opacity: 1; } }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home .project, .about .link-list a { transition: transform .2s, box-shadow .2s; }
  .home .project:hover, .about .link-list a:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgb(0 0 0 / .08); }
}

/* Native same-origin navigation. The header keeps its place while content fades. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-navigation; }
  ::view-transition-old(root) { animation: page-leave 120ms ease-out both; }
  ::view-transition-new(root) { animation: page-enter 200ms ease-out both; }
  ::view-transition-group(site-navigation) { animation-duration: 180ms; }
  @keyframes page-leave { to { opacity: 0; } }
  @keyframes page-enter { from { opacity: 0; } to { opacity: 1; } }
  .section-arrived :is(.hero-portrait, .about-portrait, .section-note, .home-contact-copy) {
    animation: detail-arrival 360ms 40ms ease-out backwards;
  }
  @keyframes detail-arrival {
    from { opacity: .85; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.about .about-portrait { max-width: none; }
.about .about-details { margin: 0 auto clamp(36px, 5vw, 64px); }
@media (min-width: 760px) {
  /* Reserve the same caption space as the home portrait. */
  .about .about-portrait { padding-bottom: 54px; }
}
@media (max-width: 759px) {
  .about .about-portrait { max-width: 520px; }
}
@media (prefers-reduced-motion: no-preference) {
  :is(.hero-portrait, .about-portrait) img { view-transition-name: steve-portrait; }
  ::view-transition-group(steve-portrait) { animation-duration: 260ms; }
}
.home .project { border-color: #111; }
.home .project-arrow {
  position: absolute;
  top: 14px;
  right: 16px;
  color: #111;
  font-size: 1.375rem;
  line-height: 1;
  pointer-events: none;
}
.home .project:has(.card-link:focus-visible) { outline: 3px solid #111; outline-offset: 3px; }

.about .about-intro { max-width: 52ch; gap: 16px; }
.about .about-intro .about-details {
  grid-template-columns: 1fr;
  margin: 0;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.6;
}
.about-meta { color: var(--ink); font-weight: 600; }
.about-meta .status {
  flex-basis: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #d7f6b7;
  color: #174723;
  font-weight: 700;
}
.about-meta .status-dot { background: #278047; }

.home .hero-portrait { position: relative; padding-top: 54px; }
.portrait-status {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 16px 6px 12px;
  border-radius: 999px;
  background: #153923;
  color: #f2ffe9;
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
}
.portrait-status:hover { background: #204d30; }
@media (max-width: 759px) {
  .portrait-status { right: 50%; transform: translateX(50%); white-space: nowrap; }
}

.home .project { padding: 0; }
.project-open { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.home .project-open .product-stage { margin: 0; }
.project-info { display: grid; align-content: start; gap: 12px; padding: 20px; }
.home .project:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }

.home .project-open .product-stage { position: relative; }
.home .project-info { padding: 20px 22px 24px; gap: 10px; }
.home .project-info .tags { margin-top: 6px; }
.home .project-arrow { top: 14px; right: 14px; }


/* Four balanced product previews with a readable caption beneath each image. */
.home .projects {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.home .project {
  border: 1px solid #bdbbb5;
  border-radius: 18px;
  background: #faf9f6;
  box-shadow: 0 2px 4px #15171905;
}
.home .project-open { display: flex; flex-direction: column; isolation: isolate; }
.home .project-open .product-stage {
  position: relative;
  height: clamp(170px, 18vw, 232px);
  overflow: hidden;
  border-bottom: 1px solid #11111112;
  background: var(--stage, #e5e3dd);
}
.project[data-product="hyperdust"] { --stage: #15102c; }
.project-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px 60px;
}
.project-backdrop.planner-cover { padding: 0; }
.home .project[data-product="kiwi-calendar"] .product-stage {
  background: #e5e5e3 url("/brand/kiwi-calendar-device-calendar.webp") center / contain no-repeat;
}
.home .project[data-product="astro"] .product-stage {
  background: #e7e8ee url("/brand/astro-overview.webp") center / contain no-repeat;
}
.home .project-open .project-art {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 16px;
  width: 54px;
  margin: 0;
  border-radius: 14px;
  box-shadow: 0 3px 12px #0002, 0 0 0 4px #faf9f6;
}
.home .project-info {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 10px;
  padding: 20px 22px 24px;
  color: var(--ink);
  background: #faf9f6;
}
.home .project-info .meta {
  justify-content: space-between;
  color: #686761;
  font-size: .72rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.home .project-title { font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.15; }
.home .project-info .project-summary {
  display: block;
  color: #62615c;
  font-size: .9375rem;
  line-height: 1.55;
  max-width: 50ch;
}
.home .project-info .tags { display: none; }
.home .project-arrow {
  z-index: 2;
  display: grid;
  place-items: center;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #11111118;
  border-radius: 50%;
  background: #faf9f6;
  color: #111;
  box-shadow: 0 2px 5px #00000008;
}
.home .project-arrow svg { width: 18px; height: 18px; }
.home .project-open:focus-visible { outline: none; }
.home .project:focus-within { outline: 2px solid #111; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .home .project:hover { border-color: #111; }
  @media (prefers-reduced-motion: no-preference) {
    .home .project { transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease, filter .4s ease, opacity .4s ease; }
    .home .project:hover { transform: translateY(-4px) scale(1.025); z-index: 2; box-shadow: 0 10px 24px #1517190d; }
    .home .project-arrow svg { transition: transform .28s ease; }
    .home .project:hover .project-arrow svg { transform: translate(2px, -2px); }
  }
}
@media (max-width: 620px) {
  .home .projects { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .home .project-open .product-stage { height: 190px; }
  .home .project-info { padding: 20px; }
}

@media (hover: hover) and (pointer: fine) {
  .home .projects:has(.project:hover) .project:not(:hover, :focus-within),
  .home .projects:has(.project-open:focus-visible) .project:not(:hover, :focus-within) {
    opacity: .65;
    filter: blur(2px);
  }
  @media (prefers-reduced-motion: no-preference) {
    .home .projects:has(.project:hover, .project-open:focus-visible) .project:not(:hover, :focus-within) { transform: scale(.97); }
    .home .project:focus-within { transform: translateY(-4px) scale(1.025); z-index: 2; }
  }
}

/* Projects redesign: overrides are isolated from all other sections. */
.home main > #projects { display: block; min-height: auto; padding: 6rem 1.5rem 7rem; background: #f1efea; }
#projects .project-tile { text-decoration: none; border-style: solid; }
#projects .project-heading h2 { animation: none; }
#projects .project-tile, #projects .project-heading { transition-property: transform, opacity, box-shadow; transition-timing-function: cubic-bezier(0.2,0.7,0.2,1); transition-duration: 300ms; }
#projects .project-shot { transition: transform 500ms cubic-bezier(0.2,0.7,0.2,1), opacity 700ms cubic-bezier(0.2,0.7,0.2,1); }
#projects .project-app-icon { transition: transform 600ms cubic-bezier(0.34,1.56,0.64,1), opacity 700ms cubic-bezier(0.2,0.7,0.2,1); }
@media (prefers-reduced-motion: no-preference) {
  #projects.js [data-reveal]:not([data-revealed="true"]) { opacity: 0; transform: translateY(24px); }
  #projects.js .project-heading:not([data-revealed="true"]) { transform: translateY(16px); }
  #projects .project-heading { transition-duration: 600ms; }
  #projects .project-tile:not([data-revealed="true"]) { transition-duration: 700ms; }
  #projects.js .project-tile:not([data-revealed="true"]) .project-shot { opacity: 0; transform: translateY(20px); }
  #projects.js .project-tile:not([data-revealed="true"]) .project-app-icon { opacity: 0; transform: scale(.85); }
  #projects .project-tile[data-reveal] { transition-delay: var(--reveal-delay, 0ms); }
  #projects .project-tile[data-revealed="true"] .project-shot { transition-delay: 150ms; }
  #projects .project-tile:hover .project-shot, #projects .project-tile:focus-visible .project-shot { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  #projects [data-reveal], #projects .project-shot, #projects .project-app-icon { opacity: 1; transform: none; transition: none; transition-delay: 0ms !important; }
}

/* Give small text enough weight in Norman Variable. */
body :is(.eyebrow, .meta, .fine, .section-note, figcaption, .hero-lede, .project-tile p, .project-heading > p) { font-weight: 600; }

/* Fixed dock: page space and component interactions. Utilities are compiled separately. */
body { padding-top: 116px; }
#floating-dock { position: fixed; top: 28px; left: 50%; transform: translateX(-50%); z-index: 50; }
#floating-dock [hidden] { display: none !important; }
#floating-dock :is(.dock-pill,.dock-work,.dock-panel) { border-style: solid; }
#floating-dock a { text-decoration: none; }
#floating-dock .dock-link { color: #4a4640; }
#floating-dock .dock-link[data-highlighted="true"], #floating-dock .dock-link[aria-current="page"] { color: white; }
#floating-dock:has(.dock-link[data-highlighted]) .dock-link:not([data-highlighted="true"]) { color: #4a4640; }
#floating-dock .dock-highlight { transform: translateX(calc(var(--i) * var(--item-w))); transition: transform 450ms cubic-bezier(.3,1.35,.5,1); }
#floating-dock .dock-home img { transition: transform 400ms cubic-bezier(.3,1.4,.5,1); object-fit: contain; }
#floating-dock .dock-home:is(:hover,:focus-visible) img { transform: rotate(-12deg) scale(1.08); }
#floating-dock .dock-work { transition: background-color 250ms, border-color 250ms; }
#floating-dock .dock-work:is(:hover,:focus-visible) { background: #ddefe2; border-color: #b5dabf; }
#floating-dock .dock-work:is(:hover,:focus-visible) .dock-asterisk { animation-duration: 1.2s; }
#floating-dock .dock-panel-wrapper { opacity: 0; transition: opacity 250ms; max-width: calc(100vw - 24px); }
#floating-dock[data-open="true"] .dock-panel-wrapper { opacity: 1; }
#floating-dock a:focus-visible { outline: 2px solid #2b64a0; outline-offset: 3px; }
html { scroll-padding-top: 116px; }
@media (max-width: 680px) {
  #floating-dock { width: max-content; max-width: calc(100vw - 20px); top: 16px; }
  #floating-dock .dock-links { --item-w: clamp(65px,18vw,100px) !important; }
  #floating-dock .dock-link { font-size: 14px; }
  #floating-dock .dock-divider { display: none; }
  #floating-dock .dock-work { width: 48px; padding: 0; justify-content: center; }
  #floating-dock .dock-work span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #floating-dock .dock-pill { gap: 4px; }
  body { padding-top: 100px; }
  html { scroll-padding-top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  #floating-dock *, #floating-dock .dock-home:is(:hover,:focus-visible) img { animation: none !important; transition: none !important; }
  #floating-dock .dock-home img { transform: none !important; }
}

/* Readability: retain Norman Variable with a stronger, larger text scale. */
body { font-size: 1.25rem; font-weight: 700; line-height: 1.7; }
h1, h2, h3, h4 { font-weight: 800; }
.home .hero-lede { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 700; line-height: 1.65; color: #3e3b36; }
body :is(.eyebrow, .meta, .fine, .section-note, figcaption, .back, .link-note, .footer-note) { font-size: 1rem; font-weight: 700; line-height: 1.6; }
body :is(.lede, .prose, .about-bio) { font-weight: 700; line-height: 1.75; }
body :is(.notes > summary span, .release-entry > summary span) { font-weight: 700; font-size: 1rem; }
#projects .project-tile p { font-size: 1.25rem; font-weight: 700; line-height: 1.65; }
#projects .project-heading > p { font-size: 1.25rem; font-weight: 700; line-height: 1.6; }
#projects .project-tile li { font-size: .875rem; font-weight: 800; }
#floating-dock nav .dock-link { font-size: 17px; font-weight: 700; }
#floating-dock nav .dock-work { font-size: 17px; font-weight: 700; }
#floating-dock .dock-panel span > span { font-size: 16px; font-weight: 700; line-height: 1.5; }
#floating-dock .dock-panel strong { font-size: 23px; font-weight: 800; }
@media (max-width: 680px) {
  body { font-size: 1.125rem; }
  #floating-dock nav .dock-link { font-size: 16px; }
  #projects .project-tile p { font-size: 1.125rem; }
}

/* Article reading layout: a wider column and a clear, comfortable type scale. */
.page-article { --measure: 960px; max-width: 1320px; padding-inline: clamp(20px, 4vw, 64px); padding-top: 32px; }
.page-article > .back { margin-bottom: 32px; font-size: 1.125rem; }
.page-article .article-head { gap: 24px; margin-bottom: 40px; }
.page-article .article-head h1 { font-size: clamp(2.5rem, 4.8vw, 4.75rem); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.page-article .article-head .lede { max-width: none; font-size: clamp(1.375rem, 1.8vw, 1.75rem); line-height: 1.55; }
.page-article .byline { font-size: 1.0625rem; line-height: 1.6; }
.page-article .article-cover { max-width: 1180px; margin-bottom: 56px; }
.page-article .article-cover img { width: auto; max-width: 100%; max-height: 680px; height: auto; margin-inline: auto; border-radius: 14px; }
.page-article .prose { font-size: clamp(1.375rem, 1.5vw, 1.625rem); line-height: 1.7; overflow-wrap: break-word; }
.page-article .prose > * + * { margin-top: 1.25em; }
.page-article .prose h2 { font-size: clamp(2rem, 2.6vw, 2.5rem); line-height: 1.2; margin-top: 1.8em; letter-spacing: -.02em; }
.page-article .prose h3 { font-size: clamp(1.625rem, 2vw, 2rem); line-height: 1.25; margin-top: 1.6em; }
.page-article .prose h4 { font-size: 1.5rem; line-height: 1.3; }
.page-article .prose :is(h2,h3,h4) + * { margin-top: .65em; }
.page-article .prose li + li { margin-top: .55em; }
.page-article .prose blockquote { font-size: 1.15em; line-height: 1.6; }
.page-article .prose img { max-width: 100%; height: auto; margin-inline: auto; border-radius: 12px; }
.page-article .prose figcaption { font-size: 1rem; line-height: 1.6; }
.page-article .prose table { width: 100%; font-size: 1.125rem; line-height: 1.6; margin-block: 28px; }
.page-article .prose :is(th,td) { padding: 14px 18px; min-width: 100px; }
.page-article .prose th { background: #eae6dd; }
.page-article .prose tr:nth-child(even) { background: #eeebe5; }
.page-article .next-story { margin-top: 80px; margin-bottom: 72px; }
@media (max-width: 600px) {
  .page-article { padding-top: 20px; }
  .page-article .article-head { gap: 18px; margin-bottom: 28px; }
  .page-article .article-cover { margin-bottom: 36px; }
  .page-article .prose table { font-size: 1rem; }
  .page-article .prose :is(th,td) { padding: 12px; }
}

/* Native mobile scrolling: long sections must not snap back after short swipes. */
@media (max-width:1023px), (pointer:coarse) {
  html:has(body.home,body.about) { scroll-snap-type:none; scroll-behavior:auto; overflow-x:clip; }
  :is(.home,.about) :is(.site-header,.site-footer),
  :is(.home,.about) main > section { scroll-snap-align:none; scroll-snap-stop:normal; }
}
