:root {
  --paper: #f7f2ea;
  --paper-strong: #fffaf1;
  --ink: #171512;
  --muted: #615d55;
  --line: #d9d0c3;
  --teal: #0b7774;
  --blue: #315c9a;
  --coral: #d84b36;
  --lemon: #d5a71f;
  --mint: #d8eadc;
  --shadow: 0 24px 70px rgba(23, 21, 18, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

button,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1rem;
  border-radius: 6px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(247, 242, 234, 0.82);
  border-bottom: 1px solid rgba(23, 21, 18, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--ink);
  color: var(--paper-strong);
  border-radius: 8px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.35rem;
}

.nav-links {
  gap: clamp(0.75rem, 2vw, 1.4rem);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

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

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

.hero {
  position: relative;
  display: grid;
  min-height: 94svh;
  overflow: hidden;
  padding: 8rem clamp(1rem, 5vw, 5rem) 4rem;
  isolation: isolate;
}

#data-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(130deg, rgba(255, 250, 241, 0.95), rgba(247, 242, 234, 0.64) 42%, rgba(216, 234, 220, 0.72)),
    radial-gradient(circle at 78% 20%, rgba(216, 75, 54, 0.16), transparent 28%);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  content: "";
  background: linear-gradient(to top, var(--paper), rgba(247, 242, 234, 0));
}

.hero-content {
  align-self: center;
  max-width: 820px;
}

.eyebrow,
.section-kicker,
.card-label,
.post-type,
.panel-label {
  display: inline-flex;
  align-items: center;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  line-height: 0.95;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.2rem;
  font-size: clamp(4rem, 12vw, 10rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 5rem);
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
}

.hero-copy {
  max-width: 640px;
  color: #3f3a33;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.05rem;
  border: 1px solid var(--ink);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

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

.button.ghost {
  background: rgba(255, 250, 241, 0.62);
}

.signal-panel {
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  bottom: clamp(2rem, 7vw, 6rem);
  width: min(300px, calc(100% - 2rem));
  padding: 1rem;
  background: rgba(255, 250, 241, 0.84);
  border: 1px solid rgba(23, 21, 18, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.signal-panel strong {
  display: block;
  margin: 0.2rem 0;
  color: var(--teal);
  font-size: 3.8rem;
  line-height: 1;
}

.signal-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
}

.intro-grid,
.enjoy,
.notes {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.intro-grid p,
.enjoy p,
.notes-copy p {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.fact-board {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.75fr);
  gap: 1rem;
}

.featured-fact,
.mini-card,
.post-card,
.note-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.featured-fact {
  position: relative;
  display: grid;
  min-height: 430px;
  padding: clamp(1.2rem, 3vw, 2rem);
  overflow: hidden;
  align-content: end;
  box-shadow: var(--shadow);
}

.fact-meter {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  display: flex;
  align-items: end;
  gap: 0.45rem;
  width: 190px;
  height: 128px;
  padding: 0.8rem;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.fact-meter span {
  flex: 1;
  height: var(--height);
  background: var(--teal);
  border-radius: 6px 6px 0 0;
}

.fact-meter span:nth-child(2) {
  background: var(--blue);
}

.fact-meter span:nth-child(3) {
  background: var(--lemon);
}

.fact-meter span:nth-child(4) {
  background: var(--coral);
}

.featured-fact h3 {
  max-width: 660px;
  margin-right: 210px;
  font-size: clamp(2rem, 4vw, 4.8rem);
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
}

.featured-fact p:not(.card-label) {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.icon-button {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mini-card {
  display: grid;
  min-height: 207px;
  padding: 1.2rem;
  align-content: end;
}

.mini-card.accent {
  background: var(--mint);
}

.mini-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  line-height: 1.1;
}

.mini-card p,
.post-card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.post-card {
  display: grid;
  min-height: 330px;
  padding: 1.2rem;
  align-content: space-between;
}

.post-card:nth-child(2) {
  background: #edf4fb;
}

.post-card:nth-child(3) {
  background: #f9efdc;
}

.post-card a {
  width: fit-content;
  margin-top: 1.5rem;
  color: var(--blue);
  font-weight: 800;
}

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

.enjoy-list {
  display: grid;
  gap: 0.75rem;
}

.enjoy-list span {
  display: block;
  padding: 1rem;
  border-left: 6px solid var(--teal);
  background: rgba(255, 250, 241, 0.64);
  font-weight: 800;
}

.enjoy-list span:nth-child(2) {
  border-color: var(--blue);
}

.enjoy-list span:nth-child(3) {
  border-color: var(--lemon);
}

.enjoy-list span:nth-child(4) {
  border-color: var(--coral);
}

.notes {
  align-items: stretch;
}

.note-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem;
}

.note-form label {
  font-weight: 800;
}

.note-form textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.85rem;
  color: var(--ink);
}

.note-form textarea:focus,
.button:focus,
.icon-button:focus,
a:focus {
  outline: 3px solid rgba(11, 119, 116, 0.36);
  outline-offset: 3px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 900px;
    padding-top: 5rem;
  }

  .signal-panel {
    left: 1rem;
    right: 1rem;
    bottom: 2rem;
  }

  .intro-grid,
  .section-heading,
  .enjoy,
  .notes,
  .fact-board,
  .explainer-grid {
    grid-template-columns: 1fr;
  }

  .featured-fact {
    min-height: 500px;
  }

  .featured-fact h3 {
    margin-right: 0;
  }

  .fact-meter {
    left: 1.2rem;
    right: auto;
    width: min(240px, calc(100% - 2.4rem));
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 4.15rem;
  }

  .brand span:last-child {
    max-width: 170px;
    line-height: 1.05;
  }

  .hero {
    min-height: 860px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    display: grid;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
