:root {
  color-scheme: light;
  --ink: #111;
  --muted: #6b6b6b;
  --line: #dedede;
  --line-strong: #b8b8b8;
  --soft: #f5f5f5;
  --paper: #fff;
  --accent: #111;
  --accent-dark: #111;
  --page: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

html, body { background: var(--paper); }
body { color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-tap-highlight-color: rgba(0,0,0,.1); overflow-x: hidden; }
body, button, input, textarea { font-family: var(--font); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a, button { transition: color 140ms ease-out, background-color 140ms ease-out, border-color 140ms ease-out, transform 140ms ease-out; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.site { width: min(100%, calc(var(--page) + var(--gutter) * 2)); max-width: none; padding-inline: var(--gutter); }
.site-header { grid-template-columns: auto 1fr; gap: 32px; min-height: 68px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 20px; font-weight: 740; letter-spacing: -.04em; }
.wordmark span { width: 6px; height: 6px; margin-left: 6px; background: var(--ink); vertical-align: 2px; }
.site-header nav { grid-column: 2; justify-self: end; height: 68px; gap: 24px; }
.site-header nav a { min-width: auto; min-height: 44px; padding: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; font-weight: 560; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); font-weight: 680; }
main { min-height: 70vh; padding-bottom: 54px; }

.hero { position: relative; display: grid; grid-template-columns: minmax(390px, 1.12fr) minmax(300px, .88fr) minmax(270px, .64fr); gap: clamp(18px, 2.1vw, 30px); align-items: center; min-height: 520px; padding: 64px 0 70px; border-bottom: 1px solid var(--ink); }
.hero::before { content: ""; position: absolute; inset: 28px 0 28px auto; z-index: 0; width: 61%; pointer-events: none; opacity: .45; background-image: linear-gradient(#e8e8e8 1px, transparent 1px), linear-gradient(90deg, #e8e8e8 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(90deg, transparent, #000 28%); }
.hero-copy, .hero-illustration, .hero-index { position: relative; z-index: 1; min-width: 0; }
.eyebrow { display: inline-flex; width: fit-content; padding: 0 0 7px; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font: 650 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .05em; }
.hero-copy h1 { display: grid; max-width: 740px; margin: 24px 0 18px; line-height: 1; font-weight: 720; }
.hero-intro, .hero-subline { display: block; }
.hero-intro { white-space: nowrap; font-size: clamp(50px, 4.7vw, 60px); letter-spacing: -.065em; }
.hero-subline { margin-top: 12px; font-size: clamp(36px, 3.8vw, 48px); letter-spacing: -.055em; }
.hero-copy > p { max-width: 620px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.hero-illustration { align-self: center; display: grid; place-items: center; margin: 0 -14px; }
.hero-illustration img { display: block; width: 100%; height: auto; max-height: 350px; object-fit: contain; filter: grayscale(1) contrast(1.04); }
.button-link { min-height: 42px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); font-size: 13px; font-weight: 650; }
.button-link::after { margin-left: 10px; }
.button-link:hover { background: var(--soft); color: var(--ink); transform: translateY(-1px); }
.button-link.primary-link { background: var(--ink); border-color: var(--ink); color: #fff; }
.button-link.primary-link:hover { background: #333; border-color: #333; color: #fff; }
.hero-index { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; min-height: 330px; padding: 28px; border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.index-label { color: #a8a8a8; font: 600 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; }
.index-label::after { content: "THINK → WRITE → BUILD"; display: block; max-width: 230px; margin-top: 16px; color: #fff; font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -.03em; }
.hero-index ol { display: grid; gap: 0; margin: auto 0 0; padding: 0; border-top: 1px solid #555; list-style: none; }
.hero-index li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 11px 0; border-bottom: 1px solid #333; font-size: 13px; }
.hero-index li span { color: #8f8f8f; font: 500 10px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.availability { margin: 17px 0 0 !important; color: #999; font-size: 11px !important; }
.availability::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; background: #fff; }

.home-section { padding: 46px 0 50px; border-top: 0; }
.home-section + .home-section { border-top: 1px solid var(--line); }
.section-kicker { gap: 12px; margin-bottom: 13px; }
.section-kicker .index { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.section-kicker .index, .section-kicker span:last-child { font-size: 11px; font-weight: 650; letter-spacing: .05em; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, .7fr) auto; align-items: start; gap: 24px; margin-bottom: 22px; }
.section-heading-compact { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.section-heading-compact .text-link { grid-column: 2; justify-self: end; }
.section-heading h2 { max-width: 650px; font-size: clamp(30px, 3.5vw, 42px); line-height: 1.1; letter-spacing: -.045em; font-weight: 690; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.text-link { color: var(--ink); font-size: 12px; font-weight: 650; text-decoration-color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { color: #555; }
.featured-article { grid-template-columns: 110px minmax(0, 1fr) 52px; gap: 24px; padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.featured-article .date { padding-top: 3px; color: var(--muted); font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.featured-article h3 { margin-bottom: 6px; font-size: clamp(21px, 2.4vw, 29px); line-height: 1.25; letter-spacing: -.03em; font-weight: 650; }
.featured-article h3 a:hover { color: #555; }
.featured-article p { max-width: 700px; color: var(--muted); font-size: 13px; line-height: 1.58; }
.article-read-icon { align-self: center; justify-self: end; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--ink); color: var(--ink); transition: background-color .16s ease, color .16s ease, transform .16s ease; }
.article-read-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }
.article-read-icon:hover { background: var(--ink); color: #fff; transform: translateX(2px); }
.article-read-icon:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.project-card { grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr); border: 1px solid var(--ink); border-radius: 0; background: #fff; overflow: hidden; }
.project-shot { display: grid; aspect-ratio: auto; padding: 22px; place-items: center; border-right: 1px solid var(--ink); background: var(--soft); }
.project-shot img { width: 100%; height: auto; min-height: 0; max-height: 330px; border: 1px solid var(--line); object-fit: contain; object-position: center; }
.project-card-copy { justify-content: flex-start; padding: 28px 30px; }
.project-meta { margin-bottom: 0; color: var(--muted); font: 500 10px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.project-meta span:first-child { color: var(--ink); font-weight: 680; }
.project-card h3 { margin: 24px 0 9px; font-size: clamp(34px, 4vw, 46px); font-weight: 690; letter-spacing: -.05em; }
.project-card p { color: var(--muted); font-size: 13px; line-height: 1.58; }
.project-card .project-lead { max-width: 520px; color: #4d4d4d; font-size: 14px; }
.project-why { margin-top: 25px; padding-top: 19px; border-top: 1px solid var(--line); }
.project-why > span { display: block; color: var(--ink); font: 650 10px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .07em; text-transform: uppercase; }
.project-why h4 { max-width: 520px; margin: 8px 0 7px; font-size: 19px; line-height: 1.35; letter-spacing: -.025em; }
.project-why p { max-width: 570px; font-size: 12px; line-height: 1.65; }
.project-links { gap: 15px; margin-top: auto; padding-top: 24px; }

.reading-width { max-width: 1000px; padding-top: 48px; }
.page-head { grid-template-columns: 1.6fr 1fr; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.page-head h1 { font-size: clamp(40px, 5vw, 58px); line-height: 1.02; letter-spacing: -.055em; font-weight: 690; }
.page-head p { margin-bottom: 3px; color: var(--muted); font-size: 13px; line-height: 1.58; }
.year-group { grid-template-columns: 96px 1fr; gap: 24px; padding: 22px 0; }
.year-group h2 { color: var(--ink); font: 650 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.article-row { grid-template-columns: 110px 1fr; gap: 22px; padding: 2px 0 17px; }
.article-row + .article-row { padding-top: 17px; border-top-color: var(--line); }
.article-row h3 { margin-bottom: 5px; font-size: 20px; line-height: 1.3; font-weight: 620; }
.article-row h3 a:hover { color: #555; }
.article-row p { max-width: 700px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.date { color: var(--muted); font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }

.article-top { margin-right: 210px; padding: 48px 0 24px; border-bottom: 1px solid var(--ink); }
.article-top h1 { margin-bottom: 13px; font-size: clamp(38px, 4.8vw, 56px); line-height: 1.1; letter-spacing: -.05em; font-weight: 680; }
.byline { gap: 16px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.article-layout { grid-template-columns: minmax(0, 700px) 180px; gap: 46px; padding-top: 28px; }
.prose { color: #242424; font-size: 16px; line-height: 1.72; }
.prose > * + * { margin-top: 13px; }
.prose > h2 { margin-top: 32px; padding-top: 15px; border-top-color: var(--line); color: var(--ink); font-size: 24px; line-height: 1.34; }
.prose > h3 { margin-top: 23px; color: var(--ink); font-size: 20px; }
.prose > h2 + * { margin-top: 10px; }
.prose > h3 + * { margin-top: 8px; }
.prose a { color: var(--ink); }
.prose .callout { margin-block: 19px; padding: 16px 18px; border-left: 3px solid var(--ink); border-radius: 0; background: var(--soft); }
.prose figure, .image-grid { margin-block: 21px; }
.prose img { background: var(--soft); }
.image-button { border-radius: 0; }
.toc { top: 20px; color: var(--muted); font-size: 12px; }
.toc summary { color: var(--ink); font-size: 12px; }
.toc a { padding: 5px 0; }
.toc a:hover { color: var(--ink); }

.project-page { padding-top: 48px; }
.project-hero { gap: 32px; padding-bottom: 30px; border-bottom: 1px solid var(--ink); }
.project-hero h1 { margin: 15px 0 10px; font-size: clamp(52px, 7vw, 82px); letter-spacing: -.06em; font-weight: 680; }
.project-hero p { color: var(--muted); font-size: 16px; }
.project-number { color: var(--ink); font: 700 74px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.project-cover { margin-top: 30px; }
.project-cover img { border-radius: 0; }
.project-section { grid-template-columns: 145px 1fr; gap: 34px; padding: 46px 0; }
.project-copy h2 { margin-bottom: 14px; font-size: clamp(29px, 3.6vw, 41px); letter-spacing: -.04em; font-weight: 660; }
.project-copy p { color: #333; font-size: 15px; line-height: 1.68; }
.capability-grid { border-top: 1px solid var(--ink); }
.capability-grid > div { min-height: 145px; padding: 21px 25px 21px 0; }
.capability-grid > div:nth-child(even) { padding-left: 25px; border-left-color: var(--line); }
.capability-grid strong { font-size: 17px; }
.capability-grid p { margin-top: 13px; color: var(--muted); font-size: 13px; }

.editor { padding-top: 48px; }
.editor .page-head { margin-bottom: 22px; }
.manager-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; }
.composer-paper { border: 1px solid var(--ink); border-radius: 0; background: #fff; box-shadow: none; overflow: hidden; }
.composer-paper .field label { position: static; width: auto; height: auto; margin: 0; padding: 11px 20px 0; overflow: visible; clip: auto; color: var(--muted); font-size: 10px; font-weight: 650; }
.field .composer-title { min-height: 62px; padding: 5px 20px 8px; color: var(--ink); font-size: 31px; font-weight: 640; }
.field .composer-summary { min-height: 56px; padding: 4px 20px 13px; color: var(--ink); font-size: 14px; }
.field input, .field textarea { border-color: var(--line-strong); background: #fff; }
.editor-toolbar { padding: 7px 9px; background: var(--soft); }
.editor-toolbar button { border-color: transparent; background: transparent; color: var(--muted); }
.editor-toolbar button:hover, .editor-toolbar button:focus-visible { border-color: var(--line); background: #fff; color: var(--ink); }
.toolbar-button.is-active { color: var(--ink); }
.visual-editor { min-height: 450px; padding: 25px 20px 52px; }
.manage-row { padding: 14px 0; border-bottom-color: var(--line); }
.manage-row h3 { font-size: 16px; }
.manage-row p { color: var(--muted); font-size: 12px; }
.auth-gate h1 { font-size: clamp(36px, 5vw, 54px); }
footer { padding: 22px 0 28px; border-top-color: var(--line); color: var(--muted); font-size: 11px; }
main:focus-visible, .composer-title:focus-visible, .composer-summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
dialog { border: 1px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); overscroll-behavior: contain; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero::before { width: 100%; }
  .hero-illustration { width: min(100%, 520px); margin: -6px auto 2px; }
  .hero-illustration img { max-height: 360px; }
  .hero-index { min-height: 300px; }
  .section-heading { grid-template-columns: 1.4fr 1fr; }
  .section-heading .text-link { grid-column: 1 / -1; }
  .section-heading-compact { grid-template-columns: minmax(0, 1fr) auto; }
  .section-heading-compact .text-link { grid-column: 2; }
}

@media (max-width: 650px) {
  .site-header { grid-template-columns: 1fr; padding-top: 13px; }
  .site-header nav { grid-column: 1; justify-self: stretch; height: 48px; margin-left: -8px; gap: 0; }
  .site-header nav a { flex: 1; justify-content: center; padding-inline: 7px; }
  .hero { padding: 40px 0 42px; gap: 28px; }
  .hero-copy h1 { margin-block: 20px 16px; }
  .hero-intro { font-size: clamp(42px, 12vw, 50px); }
  .hero-subline { margin-top: 10px; font-size: clamp(31px, 9vw, 38px); }
  .hero-copy > p { font-size: 15px; }
  .hero-illustration { width: min(100%, 420px); margin-block: -4px; }
  .hero-illustration img { max-height: 300px; }
  .hero-index { min-height: 280px; padding: 24px; }
  .home-section { padding: 36px 0 40px; }
  .section-heading { display: block; margin-bottom: 19px; }
  .section-heading p { margin-top: 9px; }
  .section-heading .text-link { display: inline-block; margin-top: 12px; }
  .featured-article { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 16px; padding: 18px 0; }
  .featured-article .date { grid-column: 1 / -1; }
  .featured-article > div:nth-child(2) { grid-column: 1; }
  .article-read-icon { grid-column: 2; grid-row: 2; }
  .project-card { grid-template-columns: 1fr; }
  .project-shot { padding: 14px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .project-card-copy { padding: 21px; }
  .project-card h3 { margin-top: 24px; }
  .project-why { margin-top: 22px; }
  .reading-width { padding-top: 36px; }
  .page-head { grid-template-columns: 1fr; gap: 10px; }
  .page-head h1 { font-size: 42px; }
  .year-group { grid-template-columns: 1fr; gap: 9px; }
  .article-row { grid-template-columns: 1fr; gap: 5px; }
  .article-top { padding-top: 36px; }
  .article-layout { padding-top: 23px; }
  .prose { font-size: 16px; line-height: 1.68; }
  .project-section { padding: 36px 0; }
  .manager-grid { gap: 30px; }
  .button-link { flex: 0 1 auto; }
  .actions .button-link { flex: 1 1 140px; }
}

@media (max-width: 380px) {
  .hero-intro { font-size: 40px; }
  .hero-subline { font-size: 30px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print { body { background: #fff; } }
