:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --paper-deep: #e5dfd2;
  --ink: #111111;
  --muted: #5b5b55;
  --line: rgba(17, 17, 17, 0.13);
  --line-strong: rgba(17, 17, 17, 0.24);
  --steel: #667077;
  --moss: #516f61;
  --oxblood: #733b35;
  --charcoal: #202322;
  --font-display: Georgia, "Times New Roman", Times, serif;
  --font-institution: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-text: "Avenir Next", "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-text);
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper) 0%, #ece7dd 58%, var(--paper-deep) 100%);
  background-size: 24px 24px, auto;
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: radial-gradient(rgba(17, 17, 17, 0.11) 0.5px, transparent 0.5px);
  background-size: 7px 7px;
  opacity: 0.24;
}

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

button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(243, 240, 232, 0.86);
  backdrop-filter: blur(18px);
}

.wordmark,
.nav,
.button,
.section-label,
.entry-type,
.ticker,
.briefing-table,
.footer {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-family: var(--font-institution);
  font-size: clamp(18px, 1.42vw, 23px);
  font-weight: 600;
  line-height: 1;
  text-transform: none;
}

.mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-institution);
  font-size: 17px;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: clamp(14px, 2.5vw, 30px);
  color: var(--ink);
  font-family: var(--font-institution);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover,
.footer a:hover,
.entry a:hover {
  color: var(--oxblood);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(430px, 0.8fr) minmax(360px, 0.64fr);
  align-items: center;
  gap: clamp(34px, 4.5vw, 76px);
  min-height: calc(88svh - 73px);
  padding: clamp(34px, 5.8vw, 76px) clamp(18px, 3vw, 42px) clamp(24px, 4vw, 44px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background-image: url("assets/skyline-white-hero.png");
  background-position: right 64%;
  background-size: cover;
  filter: saturate(0.96) contrast(0.98);
  opacity: 0.96;
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(243, 240, 232, 0.98) 0%, rgba(243, 240, 232, 0.9) 32%, rgba(243, 240, 232, 0.34) 62%, rgba(243, 240, 232, 0.08) 100%),
    linear-gradient(180deg, rgba(243, 240, 232, 0.54) 0%, rgba(243, 240, 232, 0.08) 34%, rgba(243, 240, 232, 0.12) 68%, rgba(243, 240, 232, 0.58) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  max-width: 830px;
}

.kicker,
.section-label,
.entry-type {
  color: var(--moss);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 8.2ch;
  font-size: clamp(70px, 8.5vw, 138px);
  line-height: 0.82;
}

.lede {
  max-width: 650px;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: clamp(25px, 3.35vw, 48px);
  line-height: 1.02;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: rgba(243, 240, 232, 0.5);
}

.research-plate {
  align-self: center;
  display: none;
  align-content: start;
  gap: 10px;
  min-width: 0;
  justify-items: start;
}

.civilisation-image {
  position: relative;
  overflow: hidden;
  width: min(100%, 620px);
  height: clamp(500px, 39vw, 640px);
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

.civilisation-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 58%, rgba(0, 0, 0, 0.78) 72%, rgba(0, 0, 0, 0.25) 88%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 0 58%, rgba(0, 0, 0, 0.78) 72%, rgba(0, 0, 0, 0.25) 88%, transparent 100%);
}

.research-plate figcaption {
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.ticker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-block: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(229, 223, 210, 0.58);
}

.ticker span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  text-align: center;
  border-right: 1px solid rgba(17, 17, 17, 0.1);
}

.ticker span:last-child {
  border-right: 0;
}

.section {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 82px);
  padding: clamp(58px, 8vw, 112px) clamp(18px, 3vw, 42px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.section h2 {
  max-width: 780px;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 0.95;
}

.intro-copy {
  columns: 2 280px;
  column-gap: clamp(28px, 3.5vw, 54px);
  max-width: 980px;
  padding-top: 0;
  color: var(--charcoal);
  font-family: var(--font-institution);
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.24;
}

.intro-copy p {
  break-inside: avoid;
  margin: 0 0 1.08em;
}

.workroom {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(320px, 0.74fr) minmax(340px, 0.72fr);
  align-items: center;
  background: rgba(229, 223, 210, 0.34);
}

.workroom::before,
.workroom::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.workroom::before {
  z-index: -2;
  background-image: url("assets/office-desk-bg.png");
  background-position: right 48% center;
  background-size: cover;
  filter: saturate(0.92) contrast(0.96);
  opacity: 0.8;
}

.workroom::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(243, 240, 232, 0.98) 0%, rgba(243, 240, 232, 0.9) 34%, rgba(243, 240, 232, 0.34) 60%, rgba(243, 240, 232, 0.08) 100%),
    linear-gradient(180deg, rgba(243, 240, 232, 0.64) 0%, rgba(243, 240, 232, 0.08) 34%, rgba(243, 240, 232, 0.12) 68%, rgba(243, 240, 232, 0.58) 100%);
}

.workroom-image {
  display: none;
  margin: 0;
}

.workroom-image img {
  display: block;
  width: min(100%, 560px);
  aspect-ratio: 1792 / 2340;
  object-fit: cover;
  object-position: center center;
  border-radius: 18px;
  filter: saturate(0.92) contrast(0.96);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 56%, rgba(0, 0, 0, 0.82) 70%, rgba(0, 0, 0, 0.34) 88%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 0 56%, rgba(0, 0, 0, 0.82) 70%, rgba(0, 0, 0, 0.34) 88%, transparent 100%);
}

.workroom-copy {
  position: relative;
  z-index: 1;
  grid-column: 1;
  display: grid;
  gap: 18px;
  max-width: 680px;
}

.workroom-copy p:last-child {
  max-width: 560px;
  color: var(--charcoal);
  font-family: var(--font-institution);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.22;
}

.section-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 6px;
  background: rgba(243, 240, 232, 0.56);
  color: var(--muted);
  cursor: pointer;
}

.filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.index-section {
  display: block;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
  background: transparent;
}

.entry {
  display: grid;
  min-height: 250px;
  align-content: start;
  gap: 14px;
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: rgba(247, 244, 236, 0.62);
}

.entry.is-hidden {
  display: none;
}

.entry h3 {
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1;
}

.entry p:not(.entry-type) {
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.45;
}

.entry a {
  align-self: end;
  color: var(--moss);
  font-size: 13px;
  font-weight: 700;
}

.theses {
  background: var(--charcoal);
  color: var(--paper);
}

.theses .section-label {
  color: #aebfb3;
}

.thesis-list {
  display: grid;
  gap: 0;
  background: transparent;
  border-top: 1px solid rgba(243, 240, 232, 0.2);
}

.thesis-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px 28px;
  padding: clamp(24px, 2.7vw, 38px) 0;
  border: 0;
  border-bottom: 1px solid rgba(243, 240, 232, 0.2);
  border-radius: 0;
  background: transparent;
}

.thesis-list span {
  color: #aebfb3;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}

.thesis-list h3 {
  font-size: clamp(27px, 3.15vw, 50px);
  line-height: 0.98;
}

.thesis-list p {
  grid-column: 2;
  color: rgba(243, 240, 232, 0.78);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.42;
}

.briefings {
  align-items: start;
  grid-template-columns: minmax(360px, 0.58fr) minmax(0, 1fr);
}

.briefing-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.briefing-copy p:last-child {
  max-width: 620px;
  color: var(--charcoal);
  font-size: 18px;
  line-height: 1.4;
}

.briefing-note {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.briefing-table {
  display: grid;
  align-self: start;
  margin-top: clamp(190px, 12vw, 232px);
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: rgba(247, 244, 236, 0.42);
}

.briefing-table div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 90px;
  gap: 18px;
  padding: 17px 18px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.briefing-table span:nth-child(2) {
  color: var(--charcoal);
  text-transform: none;
}

.briefing-table span:last-child {
  color: var(--moss);
  text-align: right;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 22px clamp(18px, 3vw, 42px);
  color: var(--muted);
}

.footer p {
  max-width: 760px;
}

@media (max-width: 980px) {
  .hero,
  .section,
  .workroom {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .civilisation-image {
    min-height: 320px;
    width: min(100%, 620px);
    height: auto;
    max-height: none;
    aspect-ratio: 1178 / 1118;
  }

  .briefings {
    grid-template-columns: 1fr;
  }

  .briefing-table {
    margin-top: 0;
  }

  .intro-copy {
    columns: 1;
    padding-top: 0;
  }

  .ticker,
  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticker span:nth-child(2n) {
    border-right: 0;
  }

  .ticker span:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .site-header,
  .footer,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(58px, 17vw, 92px);
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy {
    gap: 14px;
  }

  .research-plate {
    gap: 8px;
  }

  .civilisation-image {
    min-height: 0;
    width: min(100%, 354px);
    height: auto;
    aspect-ratio: 1178 / 1118;
  }

  .research-plate figcaption {
    font-size: 12px;
  }

  .ticker,
  .index-grid {
    grid-template-columns: 1fr;
  }

  .ticker span,
  .ticker span:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ticker span:last-child {
    border-bottom: 0;
  }

  .briefing-table div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .briefing-table span:last-child {
    text-align: left;
  }

  .thesis-list article {
    grid-template-columns: 1fr;
  }

  .thesis-list p {
    grid-column: 1;
  }
}
