:root {
  --paper: #ede5d8;
  --paper-deep: #dbcdb7;
  --ink: #16221d;
  --ink-soft: rgba(22, 34, 29, 0.72);
  --teal: #1d5f58;
  --teal-soft: rgba(29, 95, 88, 0.16);
  --brass: #b9862d;
  --brass-soft: rgba(185, 134, 45, 0.18);
  --line: rgba(22, 34, 29, 0.12);
  --card: rgba(255, 252, 246, 0.56);
  --shadow: 0 24px 80px rgba(31, 30, 25, 0.12);
  --radius: 28px;
  --content-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  background:
    radial-gradient(circle at 15% 18%, rgba(29, 95, 88, 0.22) 0, transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(185, 134, 45, 0.24) 0, transparent 20%),
    linear-gradient(180deg, #f3ede3 0%, #e5d7c4 48%, #d8c7ae 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.38;
  background:
    repeating-radial-gradient(circle at 22% 32%, rgba(20, 39, 34, 0.14) 0 1px, transparent 1px 18px),
    repeating-radial-gradient(circle at 79% 72%, rgba(20, 39, 34, 0.1) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 12px);
  mix-blend-mode: multiply;
}

body::after {
  opacity: 0.2;
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 160px 160px;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0 1.4rem;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0.24em;
}

.brand-copy small,
.site-nav a {
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.nav-link-accent {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(16, 33, 28, 0.92);
  color: #f8f4ec !important;
}

.hero,
.signals,
.about,
.site-footer {
  padding-bottom: 4.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
  padding-top: 2.2rem;
  align-items: start;
}

.eyebrow,
.panel-label,
.signal-index {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.77rem;
}

.eyebrow {
  color: var(--teal);
  margin-bottom: 0.95rem;
}

.hero h1,
.section-heading h2,
.about h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.hero-text,
.signal-card p,
.panel-card p,
.about p,
.note-card li,
.hero-metrics span {
  line-height: 1.7;
  color: var(--ink-soft);
  font-size: 1rem;
}

.hero-text {
  max-width: 60ch;
  margin: 1.5rem 0 0;
}

.hero-text span {
  color: var(--ink);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.site-nav a:hover,
.site-nav a:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: #f7f2e9;
}

.button-secondary {
  border-color: rgba(22, 34, 29, 0.22);
  background: rgba(255, 252, 246, 0.42);
}

.hero-metrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-metrics li,
.panel-card,
.signal-card,
.note-card {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-metrics li {
  padding: 1.2rem;
  border-radius: 24px;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1rem;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.panel-card {
  border-radius: var(--radius);
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
}

.panel-card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 78%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 34, 29, 0.3), transparent);
}

.panel-intro {
  min-height: 290px;
  background:
    radial-gradient(circle at 82% 20%, rgba(185, 134, 45, 0.18) 0, transparent 26%),
    linear-gradient(145deg, rgba(255, 251, 244, 0.8), rgba(237, 229, 216, 0.52));
}

.panel-intro h2 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 0.98;
}

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

.panel-grid div {
  padding: 0.2rem 0;
}

.panel-grid strong {
  display: block;
  margin-top: 0.45rem;
  line-height: 1.45;
}

.section-heading,
.about {
  display: grid;
  gap: 1.4rem;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading h2,
.about h2 {
  font-size: clamp(2.35rem, 5vw, 4rem);
  max-width: 12ch;
}

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

.signal-card {
  border-radius: 26px;
  padding: 1.5rem;
}

.signal-card h3 {
  margin: 1rem 0 0.85rem;
  font-size: 1.4rem;
}

.signal-index {
  color: var(--brass);
}

.about {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: start;
  gap: 2rem;
}

.about-copy p:last-child {
  max-width: 60ch;
}

.about-notes {
  display: grid;
  gap: 1rem;
}

.note-card {
  border-radius: 26px;
  padding: 1.4rem;
}

.note-card ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.note-card li + li {
  margin-top: 0.45rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(22, 34, 29, 0.14);
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 780ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-delay {
  animation-delay: 120ms;
}

.reveal-delay-long {
  animation-delay: 220ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .site-header {
    position: static;
    padding-bottom: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .signal-grid,
  .about,
  .hero {
    display: grid;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 1.15rem), var(--content-width));
  }

  .hero,
  .signals,
  .about,
  .site-footer {
    padding-bottom: 3.25rem;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.7rem 1rem;
  }

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

  .panel-intro {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .button,
  .site-nav a {
    transition: none;
  }
}
