:root {
  --ink: #161512;
  --paper: #eee9df;
  --signal: #e14b2a;
  --muted: #68645b;
  --rule: rgba(22, 21, 18, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Mono", monospace;
  font-size: 15px;
  line-height: 1.6;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
}

a { color: inherit; }
.site-header, main, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
.wordmark { font-weight: 500; text-decoration: none; letter-spacing: -0.08em; }
nav { display: flex; gap: clamp(18px, 4vw, 52px); }
nav a { color: var(--muted); font-size: 12px; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
nav a:hover { color: var(--signal); }

.hero { min-height: calc(100vh - 92px); display: grid; align-content: center; padding: 72px 0; }
.eyebrow { color: var(--signal); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Newsreader", serif; font-weight: 400; margin: 0; }
h1 { max-width: 1000px; font-size: clamp(68px, 12vw, 168px); line-height: .78; letter-spacing: -.065em; }
h1 em { color: var(--signal); font-weight: 400; }
.hero-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 76px; align-items: end; }
.lede { max-width: 610px; font-family: "Newsreader", serif; font-size: clamp(23px, 3vw, 36px); line-height: 1.16; margin: 0; }
.signal-link { justify-self: end; width: min(100%, 300px); display: flex; justify-content: space-between; padding: 15px 0; border-top: 1px solid var(--ink); text-decoration: none; }
.signal-link:hover { color: var(--signal); }

.project-section { padding: 150px 0 70px; border-top: 1px solid var(--rule); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; margin-bottom: 72px; }
h2 { font-size: clamp(48px, 7vw, 92px); line-height: .9; letter-spacing: -.045em; }
.project-row { display: grid; grid-template-columns: 1fr 5fr auto; gap: 30px; padding: 34px 0; border-top: 1px solid var(--rule); transition: padding .2s ease; }
.project-row:hover { padding-left: 12px; }
.project-index, .project-status { margin: 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.project-copy h3 { font-size: clamp(38px, 5vw, 68px); line-height: 1; margin: 6px 0 16px; }
.project-summary { max-width: 740px; font-family: "Newsreader", serif; font-size: 24px; line-height: 1.25; margin: 0; }
.project-detail { max-width: 700px; color: var(--muted); margin: 18px 0 0; }
.project-link { align-self: center; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 50%; font-size: 20px; text-decoration: none; }
.project-link:hover { color: var(--paper); background: var(--signal); border-color: var(--signal); }

.notes-section { margin-top: 80px; padding: 140px 0; border-top: 1px solid var(--rule); }
.notes-section h2 { color: var(--signal); }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin: 70px 0 0 33%; }
.notes-grid p { margin: 0; }
footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.load-error { padding: 40px 0; border-top: 1px solid var(--rule); }

@media (max-width: 720px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { height: 72px; }
  nav a:nth-child(2) { display: none; }
  .hero { min-height: calc(100vh - 72px); }
  h1 { font-size: clamp(58px, 20vw, 100px); }
  .hero-lower, .section-heading, .notes-grid { grid-template-columns: 1fr; }
  .hero-lower { margin-top: 52px; }
  .signal-link { justify-self: start; }
  .section-heading { gap: 20px; }
  .project-section { padding-top: 100px; }
  .project-row { grid-template-columns: 34px 1fr; }
  .project-link { grid-column: 2; width: 44px; height: 44px; }
  .notes-grid { margin-left: 0; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .75s both; }
  .hero > *:nth-child(2) { animation-delay: .08s; }
  .hero > *:nth-child(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
}
