:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #5c6970;
  --line: #d9e1e4;
  --paper: #f7f9f8;
  --white: #ffffff;
  --accent: #1f7a68;
  --accent-dark: #145447;
  --warm: #c78c45;
  --deep: #0f171a;
  --shadow: 0 18px 50px rgba(23, 33, 38, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(247, 249, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(760px, calc(100vh - 68px));
  display: grid;
  align-items: center;
  padding: clamp(48px, 9vw, 104px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(247, 249, 248, 0.98), rgba(232, 238, 236, 0.88)),
    radial-gradient(circle at 18% 24%, rgba(31, 122, 104, 0.1), transparent 28%),
    repeating-linear-gradient(90deg, rgba(23, 33, 38, 0.055) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(23, 33, 38, 0.045) 0 1px, transparent 1px 88px);
}

.hero::after {
  position: absolute;
  right: clamp(20px, 7vw, 110px);
  bottom: clamp(20px, 7vw, 90px);
  width: min(32vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(20, 84, 71, 0.16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-content,
.section,
footer {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.1rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-line {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--accent-dark);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 750;
  line-height: 1.25;
}

.lede {
  max-width: 780px;
  margin: 26px 0 0;
  color: #334047;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: var(--white);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--line);
  color: var(--ink);
}

.section {
  padding: clamp(56px, 9vw, 104px) clamp(20px, 5vw, 64px);
}

.section-heading {
  max-width: 720px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.grid,
.theme-grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

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

.theme-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

article {
  min-height: 220px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

article p,
.copy p,
.contact p {
  margin: 0;
  color: var(--muted);
}

.papers {
  border-top: 1px solid var(--line);
}

.themes,
.featured,
.about {
  border-top: 1px solid var(--line);
}

.paper-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.paper-list article {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  box-shadow: none;
}

.paper-list h3 {
  margin-bottom: 8px;
}

.paper-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.paper-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent);
}

.status {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  white-space: nowrap;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.copy {
  display: grid;
  gap: 18px;
  font-size: 1.08rem;
}

.copy.wide {
  max-width: 820px;
  margin-top: 28px;
}

.note {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) clamp(20px, 5vw, 64px);
}

.note-header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent-dark);
}

.note-subtitle {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--accent-dark);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 750;
  line-height: 1.35;
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin: 28px 0 0;
}

.note-meta div {
  display: grid;
  gap: 2px;
}

.note-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.note-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.note-body {
  padding-top: 36px;
  color: #27343a;
  font-size: clamp(1.04rem, 1.6vw, 1.18rem);
  line-height: 1.78;
}

.note-body p {
  margin: 0 0 1.35em;
}

.note-body h2 {
  margin: 2.2em 0 0.7em;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.note-body h3 {
  margin: 1.7em 0 0.55em;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.note-body ol {
  margin: 0 0 1.5em;
  padding-left: 1.35em;
}

.note-body li {
  margin-bottom: 0.85em;
  padding-left: 0.2em;
}

.related-note {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-note .eyebrow {
  margin-bottom: 8px;
}

.related-note a {
  color: var(--accent-dark);
  font-size: 1.08rem;
  font-weight: 750;
  text-decoration: none;
}

.related-note a:hover {
  color: var(--accent);
}

.related-note ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2em;
}

.note-index h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.contact {
  background: var(--deep);
  color: var(--white);
  border-radius: 8px;
  margin-bottom: 44px;
}

.contact .eyebrow,
.contact p {
  color: #d8e8e3;
}

.contact a {
  color: var(--white);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 750;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 64px) 44px;
  color: var(--muted);
  font-size: 0.92rem;
}

footer a {
  color: inherit;
}

.footer-separator {
  color: var(--line);
  padding: 0 0.25em;
}

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

  .hero {
    min-height: auto;
  }

  .grid,
  .theme-grid,
  .split,
  .paper-list article {
    grid-template-columns: 1fr;
  }

  .paper-link,
  .status {
    justify-self: start;
  }

  article {
    min-height: auto;
  }
}
