:root {
  --ink: #1c1a17;
  --text: #332f2a;
  --muted: #69635b;
  --paper: #f6f2ea;
  --paper-2: #fbf9f5;
  --wash: #ece7de;
  --line: #d9d1c4;
  --copper: #98501f;
  --green: #2f5d50;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: var(--copper); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #1676d2; outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -80px; background: #fff; color: var(--ink); padding: 10px 14px; z-index: 100; }
.skip-link:focus { top: 12px; }
.serif { font-family: "Instrument Serif", Georgia, serif; }
.mono { font-family: "IBM Plex Mono", monospace; }
.container { width: min(100% - 64px, var(--max)); margin-inline: auto; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.page-title { margin: 0; font: 400 52px/1 "Instrument Serif", Georgia, serif; letter-spacing: -.03em; text-wrap: balance; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 22px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 700; }
.button:hover { background: var(--wash); text-decoration: none; }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: #33302b; }

.site-header { position: sticky; inset-block-start: 0; z-index: 20; border-bottom: 1px solid #e6dfd3; background: rgb(246 242 234 / 92%); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: var(--ink); display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding-bottom: 8px; }
.brand-mark::before, .brand-mark::after { content: ""; display: block; width: 4px; border-radius: 1px; }
.brand-mark::before { height: 18px; background: var(--paper); }
.brand-mark::after { height: 13px; background: #b5642c; }
.brand-name { color: var(--ink); font: 400 22px/1 "Instrument Serif", Georgia, serif; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--ink); padding: 9px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.nav-links a[aria-current="page"] { background: var(--wash); }
.nav-links a:hover { background: var(--wash); text-decoration: none; }
.nav-links .nav-cta { margin-left: 6px; padding-inline: 18px; background: var(--ink); color: var(--paper); }
.nav-links .nav-cta:hover { background: #33302b; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-button span, .menu-button::before, .menu-button::after { content: ""; display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; }

.hero { padding-block: 72px 96px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero h1 { margin: 0; font: 400 64px/.98 "Instrument Serif", Georgia, serif; letter-spacing: -.03em; text-wrap: balance; }
.hero p { max-width: 550px; margin: 0; color: #4a453d; font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { width: 420px; aspect-ratio: 21/26; object-fit: cover; object-position: top; border-radius: 20px; }
.dark-band { background: var(--ink); color: var(--paper); }
.dark-grid { padding-block: 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.dark-quote { font: 400 42px/1.05 "Instrument Serif", Georgia, serif; letter-spacing: -.025em; text-wrap: balance; }
.dark-copy { color: #d7cfc2; font-size: 17px; line-height: 1.65; }
.dark-copy p { margin-top: 0; }
.dark-copy a { color: #efb487; font-weight: 700; }
.section { padding-block: 88px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 32px; }
.section-heading h2 { margin: 0; font: 400 38px/1.05 "Instrument Serif", Georgia, serif; letter-spacing: -.025em; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper-2); color: var(--ink); }
.post-card:hover { border-color: var(--copper); text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.post-card-copy { padding: 22px 24px 26px; }
.post-meta { margin-bottom: 10px; color: var(--muted); font: 12px/1.5 "IBM Plex Mono", monospace; }
.post-title { font: 400 24px/1.1 "Instrument Serif", Georgia, serif; letter-spacing: -.02em; }
.post-rule { margin-top: 10px; color: var(--copper); font-size: 14px; font-weight: 700; line-height: 1.5; }
.rules-band { padding-block: 28px; border-block: 1px solid var(--line); background: var(--paper-2); }
.rules { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 18px; }
.rule-chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font: 400 21px/1.2 "Instrument Serif", Georgia, serif; }
.letter { background: var(--wash); }
.letter-grid { padding-block: 64px; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.letter h2 { margin: 0 0 8px; font: 400 38px/1.05 "Instrument Serif", Georgia, serif; }
.letter p { margin: 0; color: #4a453d; line-height: 1.55; }

.page-shell { padding-block: 72px 96px; }
.about-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 72px; align-items: start; }
.about-photo { width: 380px; aspect-ratio: 19/23; object-fit: cover; object-position: top; border-radius: 20px; position: sticky; top: 104px; }
.stack { display: flex; flex-direction: column; gap: 28px; }
.prose { color: var(--text); font-size: 18px; line-height: 1.65; }
.prose p { margin: 0 0 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.stat strong { display: block; font: 400 40px/1 "Instrument Serif", Georgia, serif; }
.stat span { color: var(--muted); font-size: 13px; }

.projects-grid { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project-feature { grid-column: 1/-1; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; border: 1px solid #e8e8ed; border-radius: 22px; background: #fff; color: #1d1d1f; }
.project-feature h2 { margin: 16px 0 10px; font-size: 30px; letter-spacing: -.025em; line-height: 1.1; }
.project-feature p { color: #515154; line-height: 1.6; }
.project-feature .product-visual { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; }
.project-card { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper-2); }
.project-card h2 { margin: 14px 0 8px; font: 400 30px/1.05 "Instrument Serif", Georgia, serif; }
.project-card p { margin: 0; color: #4a453d; line-height: 1.55; }
.project-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; font-weight: 700; }

.writing-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; }
.writing-aside { position: sticky; top: 104px; }
.writing-aside p { color: #4a453d; line-height: 1.55; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 20px; }
.filter { min-height: 38px; padding: 7px 14px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.post-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; padding-block: 28px; border-top: 1px solid var(--line); }
.post-row[hidden] { display: none; }
.post-row img { width: 160px; aspect-ratio: 1; object-fit: cover; border: 1px solid #e6dfd3; border-radius: 12px; }
.post-row h2 { margin: 8px 0; font: 400 30px/1.05 "Instrument Serif", Georgia, serif; letter-spacing: -.02em; }
.post-row p { margin: 0; color: #4a453d; font-size: 15px; line-height: 1.55; }
.post-row .post-rule { border-left: 2px solid var(--copper); padding-left: 12px; }
.post-source { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; }
.empty-state { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); }

.timeline { margin-top: 48px; }
.timeline-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding-block: 30px; border-top: 1px solid var(--line); }
.timeline-date { color: var(--muted); font: 13px/1.5 "IBM Plex Mono", monospace; }
.timeline-row:first-child .timeline-date { color: var(--copper); }
.timeline-row h2 { margin: 0 0 6px; font: 400 32px/1.05 "Instrument Serif", Georgia, serif; }
.timeline-role { margin-bottom: 6px; font-size: 15px; font-weight: 700; }
.timeline-row p { max-width: 680px; margin: 0; color: #4a453d; font-size: 15px; line-height: 1.55; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-copy { color: #4a453d; font-size: 17px; line-height: 1.6; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; }
.contact-card { padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper-2); }
.contact-card h2 { margin: 0 0 12px; font: 400 30px/1.1 "Instrument Serif", Georgia, serif; }
.contact-card p { margin: 0 0 24px; color: #4a453d; line-height: 1.6; }

.concept-shell { background: var(--wash); }
.concept-note { margin-bottom: 32px; padding: 16px 18px; border-left: 4px solid var(--copper); background: var(--paper-2); line-height: 1.55; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dashboard-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); }
.dashboard-card strong { display: block; margin-top: 8px; font: 400 34px/1 "Instrument Serif", Georgia, serif; }

.site-footer { border-top: 1px solid var(--line); }
.footer-wrap { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; color: var(--muted); font-size: 13px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; }
.footer-links a { color: var(--muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 340px; gap: 36px; }
  .hero h1 { font-size: 54px; }
  .hero-photo { width: 340px; }
  .about-grid { grid-template-columns: 300px 1fr; gap: 40px; }
  .about-photo { width: 300px; }
  .writing-layout { grid-template-columns: 240px 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 40px, var(--max)); }
  .nav-wrap { min-height: 68px; }
  .menu-button { display: block; }
  .nav-links { display: none; position: fixed; inset: 68px 0 auto; max-height: calc(100vh - 68px); overflow: auto; padding: 16px 20px 24px; border-bottom: 1px solid var(--line); background: var(--paper); flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
  .nav-links .nav-cta { margin: 8px 0 0; text-align: center; }
  .hero { padding-block: 52px 64px; grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: clamp(44px, 13vw, 56px); }
  .hero-photo { width: 100%; max-height: 520px; aspect-ratio: 4/5; }
  .dark-grid, .letter-grid, .about-grid, .projects-grid, .project-feature, .writing-layout, .contact-grid { grid-template-columns: 1fr; }
  .dark-grid { padding-block: 56px; gap: 28px; }
  .dark-quote { font-size: 36px; }
  .section, .page-shell { padding-block: 56px 72px; }
  .cards-3 { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-end; }
  .letter-grid { gap: 28px; }
  .letter-grid .button { justify-self: start; }
  .about-photo { position: static; width: 100%; max-height: 520px; aspect-ratio: 4/5; }
  .page-title { font-size: 44px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .project-feature { padding: 24px; gap: 28px; }
  .writing-aside { position: static; }
  .post-row { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; }
  .post-row img { width: 112px; }
  .post-row h2 { font-size: 25px; }
  .timeline-row { grid-template-columns: 1fr; gap: 8px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .footer-wrap { padding-block: 28px; align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 460px) {
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .post-row { grid-template-columns: 1fr; }
  .post-row img { width: 100%; max-width: 240px; }
}
