:root {
  --paper: #f0ebe2;
  --ink: #211e1b;
  --muted: #655d57;
  --rule: rgba(75, 58, 48, 0.2);
  --accent: #a9442f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { top: 16px; }
.site { min-height: 100vh; overflow: hidden; }
.site-nav,
.hero,
.section,
.footer {
  width: min(1380px, calc(100% - 80px));
  margin-inline: auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--rule);
  background: rgba(240, 235, 226, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.wordmark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(75, 58, 48, 0.25);
  border-radius: 50%;
  font-size: 11px;
}
.site-nav nav { display: flex; align-items: center; gap: 30px; color: #5e5751; font-size: 11px; }
.site-nav nav a { padding: 10px 0; border-bottom: 1px solid transparent; }
.site-nav nav a:hover { border-color: var(--accent); color: #6f3024; }

#work, #threads, #research-media { scroll-margin-top: 82px; }
.hero {
  min-height: 760px;
  padding: 82px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
}
.kicker {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(66px, 7.5vw, 104px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.86;
}
.intro {
  max-width: 800px;
  margin: 42px 0 0;
  color: #5f5852;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.62;
}
.meta { margin-top: 35px; display: flex; align-items: center; gap: 30px; color: #6a625c; font-size: 12px; }
.social-links, .link-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.meta .social-links a, .footer .social-links a { border-bottom: 1px solid rgba(169, 68, 47, 0.38); }
.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 0.82;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #d5c4b5;
  box-shadow: 0 22px 55px rgba(83, 58, 43, 0.13);
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 36% 42%;
  transform: scale(1.45);
  transform-origin: 36% 42%;
  filter: saturate(0.62) sepia(0.08) contrast(1.03);
}

.section { padding: 96px 0 112px; border-top: 1px solid var(--rule); }
.section-label { display: grid; grid-template-columns: 62px 1fr; gap: 16px; align-items: baseline; }
.section-label span { color: var(--accent); font-family: "Courier New", monospace; font-size: 11px; }
.section-label h2 { margin: 0; font-size: 32px; letter-spacing: -0.04em; }
.section-subtitle { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }

.program-grid {
  margin: 46px 0 0 78px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.program-grid article {
  min-height: 330px;
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(75, 58, 48, 0.12);
  border-radius: 14px;
  background: #eee3d7;
  box-shadow: 0 8px 28px rgba(83, 58, 43, 0.035);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.program-grid article:first-child { background: #dfc6b7; }
.program-grid article:nth-child(2) { background: #eee1d5; }
.program-grid article:nth-child(3) { background: #d9dfd5; }
.program-grid article:nth-child(4) { background: #e8dfc4; }
.program-grid article:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(83, 58, 43, 0.075); }
.card-meta { display: flex; justify-content: space-between; color: #6a625c; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.program-grid h3 { margin: 64px 0 13px; font-family: Georgia, "Times New Roman", serif; font-size: 42px; font-weight: 400; letter-spacing: -0.045em; }
.program-grid p { max-width: 500px; margin: 0 0 30px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.program-grid .link-row, .program-grid .status { margin-top: auto; }
.link-row a, .status { padding-bottom: 3px; font-size: 12px; font-weight: 700; }
.link-row a { border-bottom: 1px solid currentColor; }

.thread-list { margin: 46px 0 0 78px; border-top: 1px solid var(--rule); }
.thread-list article {
  min-height: 190px;
  padding: 36px 10px;
  display: grid;
  grid-template-columns: 48px minmax(230px, 0.75fr) minmax(360px, 1.25fr);
  gap: 30px;
  align-items: start;
  border-bottom: 1px solid var(--rule);
}
.thread-list article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ead0c3;
  color: #8d3d2d;
  font-family: "Courier New", monospace;
  font-size: 10px;
}
.thread-list article:nth-child(2) > span { background: #dce2d8; color: #4d6452; }
.thread-list article:nth-child(3) > span { background: #e9dfbf; color: #786632; }
.thread-list h3 { margin: 1px 0 0; font-size: 23px; letter-spacing: -0.03em; line-height: 1.3; }
.thread-copy strong { display: block; margin-bottom: 10px; font-size: 15px; line-height: 1.45; }
.thread-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.68; }

.output-grid {
  margin: 46px 0 0 78px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.output-grid > article {
  min-height: 430px;
  padding-bottom: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(75, 58, 48, 0.12);
  border-radius: 12px;
  background: #f8f3eb;
  box-shadow: 0 8px 24px rgba(83, 58, 43, 0.035);
}
.output-grid > article:nth-child(3n + 2) { background: #f2e6da; }
.output-grid > article:nth-child(3n) { background: #e9eee8; }
.output-image { height: 205px; margin-bottom: 20px; display: grid; place-items: center; overflow: hidden; background: #d9cdc2; }
.output-image img { width: 100%; height: 100%; object-fit: cover; }
.output-image span { padding: 30px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; text-align: center; }
.output-grid small, .output-grid h3, .output-grid > article > p, .output-grid > article > .link-row { margin-left: 21px; margin-right: 21px; }
.output-grid small { color: var(--accent); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.output-grid h3 { margin-top: 20px; margin-bottom: 22px; font-size: 19px; line-height: 1.32; }
.output-grid h3 a:hover { color: #7f3426; }
.output-grid > article > p { margin-top: auto; margin-bottom: 13px; color: #6a625c; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; }
.output-grid > article > .link-row { margin-top: auto; }
.output-grid > article > p + .link-row { margin-top: 0; }
.multi-link { gap: 8px 12px; }

.footer { min-height: 130px; padding: 35px 0; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); color: #6a625c; font-size: 12px; }

@media (max-width: 1120px) {
  .output-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thread-list article { grid-template-columns: 42px minmax(180px, 0.7fr) minmax(260px, 1.3fr); gap: 20px; }
}

@media (max-width: 760px) {
  .site-nav, .hero, .section, .footer { width: calc(100% - 36px); }
  .site-nav { min-height: 62px; gap: 18px; }
  .wordmark { width: 34px; height: 34px; }
  .site-nav nav { max-width: calc(100% - 50px); gap: 16px; overflow-x: auto; white-space: nowrap; font-size: 9px; scrollbar-width: none; }
  .site-nav nav::-webkit-scrollbar { display: none; }
  .hero { min-height: auto; padding: 62px 0 78px; grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: clamp(58px, 18vw, 78px); }
  .portrait { width: 88%; }
  .portrait img {
    transform: scale(1.65);
  }
  .meta { align-items: flex-start; flex-direction: column; }
  .section { padding: 72px 0 82px; }
  .program-grid, .thread-list, .output-grid { margin-left: 0; grid-template-columns: 1fr; }
  .program-grid h3 { font-size: 36px; }
  .thread-list article { min-height: auto; grid-template-columns: 42px 1fr; gap: 18px; }
  .thread-copy { grid-column: 2; }
  .footer { align-items: flex-start; flex-direction: column; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .program-grid article { transition: none; }
}
