:root {
  --paper: #faf9f6;
  --ink: #242520;
  --muted: #66675f;
  --line: #d8d8cf;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --width: 1180px;
  --gutter: clamp(22px, 5vw, 64px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; }
h1, h2, h3, p { margin-top: 0; }
.container { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px 20px; background: var(--ink); color: white; z-index: 10; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { font-family: var(--serif); font-size: 28px; letter-spacing: -.045em; text-decoration: none; }
.wordmark span { color: var(--muted); }
nav { display: flex; gap: clamp(16px, 3vw, 36px); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
nav a:hover { text-decoration: underline; }
h1 { font-size: clamp(44px, 5.8vw, 76px); margin-bottom: 28px; }
.text-link { display: inline-block; padding-block: 8px; font-size: 14px; }
.text-link span { margin-inline: 6px; }
.projects-section, .about-section { scroll-margin-top: 115px; }
.projects-section { padding-block: clamp(42px, 7vw, 88px); }
h2 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 20px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.project { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); text-decoration: none; min-width: 0; }
.project:hover { background: #f0efe9; }
.project-pending:hover { background: transparent; }
.project:focus-visible { position: relative; outline-offset: -5px; }
.project-number { align-self: flex-end; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; margin-bottom: 42px; }
.project h2 { font-size: 30px; margin-bottom: 18px; }
.project p { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.project-link { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; }
.project:hover .project-link { text-decoration: underline; text-underline-offset: 5px; }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-block: clamp(64px, 8vw, 104px); }
.about-section > p { color: var(--muted); max-width: 520px; font-size: 18px; margin: 0; }
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; color: var(--muted); }
.site-footer a { display: inline-block; padding-block: 10px; }
.footer-name { font-family: var(--serif); font-size: 21px; text-decoration: none; color: var(--ink); }
.article { max-width: 740px; padding-block: 54px 80px; }
.article-header { padding-block: 48px 30px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.article h1 { font-size: clamp(42px, 5vw, 64px); }
.article-description { color: var(--muted); font-size: 20px; margin-bottom: 0; }
.prose { font-size: 18px; overflow-wrap: anywhere; }
.prose h2 { font-size: 32px; margin-top: 48px; }
.prose h3 { font-size: 26px; margin-top: 32px; }
.prose p, .prose ul, .prose ol { margin-bottom: 24px; }
.prose li + li { margin-top: 8px; }
.prose blockquote { margin: 30px 0; padding: 20px 24px; border-left: 2px solid var(--line); background: #f0efe9; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { max-width: 100%; height: auto; }
.prose pre { overflow-x: auto; padding: 20px; background: #f0efe9; }
.article-end { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); }
.not-found { padding-block: 100px; }
@media (max-width: 760px) {
  .header-inner { min-height: 76px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-number { margin-bottom: 28px; }
  .about-section { grid-template-columns: 1fr; gap: 12px; }
  .site-footer { flex-wrap: wrap; gap: 8px 20px; }
}
