@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@1,6..72,400&display=swap");

:root {
  --ink: #181815;
  --paper: #f4f0e8;
  --line: rgba(24, 24, 21, 0.22);
  --orange: #ef5b31;
  --yc-orange: #ff6600;
  --theory-teal: #58a99a;
  --theory-ink: #1a1b1c;
  --sans: "Manrope", "PingFang SC", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --serif: "Newsreader", "Songti SC", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: 1px solid var(--ink);
}

.wordmark { display: inline-flex; align-items: center; font-weight: 700; letter-spacing: -0.045em; }
.wordmark i { width: 0.54em; height: 0.54em; margin: 0 0.08em; background: var(--orange); border-radius: 50%; }
.wordmark b { margin-left: 12px; font-family: var(--mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.08em; }
.studio-link, .issue, .archive-heading p, .story-type, footer, .archive-note span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; }

.intro {
  min-height: 560px;
  padding: clamp(70px, 10vw, 140px) clamp(22px, 8vw, 128px) 70px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(48px, 6vw, 82px) clamp(48px, 6vw, 82px);
}

.issue { margin: 0 0 28px; }

h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -0.055em; }
.intro > p:last-child { max-width: 600px; margin: 44px 0 0; font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.75; }

.archive { border-top: 1px solid var(--ink); }
.archive-heading { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; padding: 34px clamp(22px, 4vw, 64px); border-bottom: 1px solid var(--ink); }
.archive-heading p { margin: 7px 0 0; }
.archive-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 4.5rem); letter-spacing: -0.055em; }

.story > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 18px 28px;
  min-height: 0;
  padding: 28px clamp(22px, 4vw, 64px);
  background: var(--story-bg, #d9bd68);
  border-bottom: 1px solid var(--ink);
}

.story-yc { --story-bg: var(--yc-orange); }
.story-theory { --story-bg: var(--theory-teal); }
.story-nrx {
  --story-bg: var(--theory-ink);
  color: var(--paper);
}
.story-land {
  --story-bg: #090c11;
  color: #dbb96b;
}
.story-strauss {
  --story-bg: #d76757;
  color: #f2eee4;
}

.story-index { font-family: var(--mono); font-size: 0.76rem; }
.story-copy {
  align-self: start;
  margin-top: 4px;
  margin-left: 20px;
  max-width: 48em;
}
.story-type { margin: 0 0 18px; }
.story h3 { max-width: none; margin: 0; font-size: clamp(2.5rem, 5.6vw, 6.6rem); letter-spacing: -0.07em; line-height: 0.98; }
.story-dek { max-width: 45em; margin: 24px 0 0; line-height: 1.75; }
.arrow { font-size: 2rem; transition: transform 180ms ease; }
.story > a:hover .arrow, .story > a:focus-visible .arrow { transform: translate(6px, -6px); }

.archive-note { display: flex; justify-content: space-between; gap: 24px; padding: 28px clamp(22px, 4vw, 64px); }
.archive-note p { margin: 0; font-size: 0.82rem; }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 32px clamp(22px, 4vw, 64px); border-top: 1px solid var(--ink); }
footer p { margin: 0; }
footer a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 680px) {
  .masthead { min-height: 70px; }
  .intro { min-height: calc(100svh - 70px); padding-top: 72px; }
  h1 { font-size: clamp(3.2rem, 16vw, 5.2rem); }
  .archive-heading, .story > a { grid-template-columns: 1fr; }
  .arrow { position: absolute; right: 22px; }
  .archive-note, footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .arrow { transition: none; }
}
