@font-face {
  font-family: Golos;
  src: url('./assets/golos-regular.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: Golos;
  src: url('./assets/golos-semibold.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Oranienbaum;
  src: url('./assets/oranienbaum.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: SiteMono;
  src: url('./assets/mono.woff') format('woff');
  font-display: swap;
}

:root {
  --shell-bg: #150a0c;
  --shell-text: #f2e7e4;
  --shell-dim: #bda4a0;
  --shell-gold: #e4ae4e;
  --shell-line: #4b3338;
  --wine: #32151d;
  --wine-deep: #251016;
  --serif: Oranienbaum, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--shell-bg);
  color: var(--shell-text);
  font-family: Golos, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--shell-gold);
  outline-offset: 4px;
}

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--shell-bg);
}

.site-shell .topbar nav [aria-current="page"] {
  color: var(--shell-gold);
  text-decoration: underline;
  text-underline-offset: 6px;
}

main {
  background: radial-gradient(ellipse at 79% 8%, #33131b 0, transparent 48%);
  padding-bottom: clamp(42px, 7vw, 88px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, 290px);
  align-items: end;
  gap: clamp(30px, 5vw, 70px);
  padding-block: clamp(43px, 7vw, 96px) clamp(38px, 5.6vw, 70px);
}

h1, h2, h3, .source-name {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  max-width: 760px;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 1.04;
  letter-spacing: -.043em;
}

.intro-copy > p {
  max-width: 57ch;
  margin-top: 27px;
  font-size: clamp(16px, 1.6vw, 19px);
}

.current-project {
  padding: 17px 0 0 23px;
  border-left: 1px solid var(--shell-gold);
}

.current-project h2 {
  margin-top: 5px;
  color: var(--shell-gold);
  font-size: 47px;
  line-height: 1;
}

.current-project h2 + p { margin-top: 10px; }

.meta, time {
  color: var(--shell-dim);
  font-size: 13px;
}

.meta { letter-spacing: .02em; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: 10px;
  color: var(--shell-gold);
  font-size: 14px;
  font-weight: 600;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.text-link:hover { text-decoration-color: currentColor; }

.publication {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.featured {
  display: grid;
  grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr);
  gap: clamp(26px, 5vw, 67px);
  padding: clamp(21px, 4vw, 48px);
  border: 1px solid #74414b;
  background: linear-gradient(108deg, var(--wine), var(--wine-deep));
}

.source-name {
  margin-bottom: 4px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.06;
}

.publication-source time {
  display: block;
  margin-top: 3px;
}

.publication-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.publication h3 {
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.11;
  overflow-wrap: anywhere;
}

.featured h3 {
  max-width: 22ch;
  font-size: clamp(31px, 4.45vw, 58px);
}

.publication-body p {
  max-width: 56ch;
  margin-block: 11px;
  color: var(--shell-text);
}

.publication-body .text-link { margin-top: auto; }

.publication-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3.5vw, 47px);
  margin-top: 28px;
}

.publication-grid .publication {
  padding-top: 19px;
  border-top: 1px solid var(--shell-line);
}

.publication-grid .publication-source {
  min-height: 87px;
  margin-bottom: 15px;
}

@media (max-width: 760px) {
  .intro, .featured, .publication-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  h1 { font-size: clamp(42px, 13vw, 70px); }

  .intro { gap: 26px; }

  .intro-copy > p { margin-top: 20px; }

  .current-project {
    max-width: 460px;
    padding: 4px 0 0 15px;
  }

  .current-project h2 { font-size: 36px; }

  .featured { gap: 17px; }

  .publication-grid .publication-source {
    min-height: auto;
    margin-bottom: 11px;
  }
}

@media (max-width: 600px) {
  .site-shell .topbar > nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-shell .topbar nav a { transition: none; }
}
