:root {
  --ink: #122021;
  --muted: #5c6c6d;
  --line: #d8e0de;
  --paper: #f7f7f2;
  --surface: #ffffff;
  --navy: #0e2a2e;
  --green: #2e6f60;
  --gold: #b58a36;
  --sky: #dceeed;
  --shadow: 0 16px 40px rgba(14, 42, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration-color: rgba(46, 111, 96, 0.45);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--green);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-150%);
  padding: 8px 10px;
  background: var(--surface);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 247, 242, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--navy);
  color: white;
  font-family: Georgia, serif;
}

.brand-text {
  max-width: 22ch;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
}

.search-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
}

.search-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 72px 0;
  background:
    linear-gradient(135deg, rgba(14, 42, 46, 0.95), rgba(46, 111, 96, 0.82)),
    url("/images/research-desk.png");
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 56px;
  align-items: center;
}

.hero h1,
.page-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.95;
  font-weight: 500;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  max-width: 660px;
  margin: 22px 0 0;
  color: inherit;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #111;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: white;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-panel span {
  min-height: 116px;
  display: flex;
  align-items: end;
  padding: 18px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.content-band,
.page {
  padding: 76px 0;
}

.content-band.muted {
  background: var(--sky);
}

.page-header {
  margin-bottom: 42px;
}

.page-header .lede {
  color: var(--muted);
}

.prose {
  max-width: 780px;
  font-size: 1.05rem;
  line-height: 1.78;
}

.prose h2 {
  margin: 38px 0 12px;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
}

.prose p,
.prose ul {
  margin: 0 0 20px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-weight: 500;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card,
.article-row {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-card {
  min-height: 220px;
  padding: 22px;
}

.article-card time,
.article-row time {
  color: var(--muted);
  font-size: 0.85rem;
}

.article-card h3,
.article-row h2 {
  margin: 12px 0;
  font-family: Georgia, serif;
  font-weight: 500;
}

.article-card p,
.article-row p {
  color: var(--muted);
}

.article-list {
  display: grid;
  gap: 18px;
}

.article-row {
  padding: 26px;
}

.site-footer {
  padding: 34px 0;
  background: var(--navy);
  color: white;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: white;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: min(420px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie-banner button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  background: var(--green);
  color: white;
  font-weight: 700;
}

#search {
  min-height: 300px;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .search-link {
    width: 42px;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 34px;
  }

  .hero-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-panel span {
    min-height: 92px;
  }

  .content-band,
  .page {
    padding: 54px 0;
  }

  .footer-inner,
  .cookie-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .brand-text {
    max-width: 15ch;
    font-size: 0.92rem;
  }

  .hero h1,
  .page-header h1 {
    font-size: 2.65rem;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }
}
