@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #f3ecdf;
  --paper-strong: #ece2d0;
  --panel: rgba(255, 252, 247, 0.78);
  --panel-strong: rgba(255, 250, 244, 0.9);
  --ink: #17130f;
  --muted: #534a43;
  --wine: #6f342f;
  --wine-soft: rgba(111, 52, 47, 0.1);
  --sage: #6d7b6b;
  --sage-soft: rgba(109, 123, 107, 0.16);
  --brass: #b6905c;
  --border: rgba(72, 49, 29, 0.15);
  --shadow: 0 24px 54px rgba(42, 23, 12, 0.1);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --content-width: min(1160px, calc(100vw - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(182, 144, 92, 0.1), transparent 26%),
    radial-gradient(circle at top right, rgba(109, 123, 107, 0.12), transparent 24%),
    linear-gradient(180deg, #f6efe6 0%, #f2e8dc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(100, 73, 41, 0.03) 0,
      rgba(100, 73, 41, 0.03) 1px,
      transparent 1px,
      transparent 13px
    );
  opacity: 0.3;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.page-shell {
  width: var(--content-width);
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
}

.topbar,
.hero,
.featured-grid,
.coverage-grid,
.resource-grid,
.faq-grid,
.two-column,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0 1.4rem;
}

.brand {
  display: inline-flex;
  width: clamp(240px, 34vw, 410px);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.96rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.section {
  margin-top: 1.4rem;
  padding: 2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--wine);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3.6rem, 7vw, 6.6rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2.1rem, 4.3vw, 3.2rem);
  max-width: 15ch;
}

h3 {
  font-size: 1.55rem;
}

.hero-dek,
.section-heading p,
.summary-copy,
.note-text,
.faq-card p,
.resource-card p,
.footer-copy,
.story-summary {
  color: var(--muted);
  line-height: 1.7;
}

.hero-dek {
  margin: 1.2rem 0 0;
  max-width: 58ch;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 0.95rem;
}

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

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

.hero-note {
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.7;
}

.hero-panel {
  min-width: 0;
}

.hero-card {
  height: 100%;
  padding: 1.6rem;
  background:
    linear-gradient(145deg, rgba(255, 251, 246, 0.94), rgba(240, 230, 216, 0.94));
  border: 1px solid rgba(77, 50, 29, 0.15);
  border-radius: calc(var(--radius-lg) - 8px);
}

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

.stats-grid div {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(77, 50, 29, 0.12);
}

.stats-grid dt {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
}

.stats-grid dd {
  margin: 0.35rem 0 0;
  font-family: "Instrument Serif", serif;
  font-size: 1.3rem;
}

.hero-divider {
  height: 1px;
  margin: 1.35rem 0 1rem;
  background: linear-gradient(90deg, var(--brass), rgba(182, 144, 92, 0));
}

.summary-label,
.note-label,
.resource-type,
.story-source {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-label,
.resource-type,
.story-source {
  color: var(--wine);
}

.summary-copy {
  margin: 0.65rem 0 0;
}

.section-heading {
  display: grid;
  gap: 0.5rem;
}

.section-heading.narrow p {
  max-width: 66ch;
}

.featured-grid,
.coverage-grid,
.resource-grid,
.faq-grid,
.about-notes {
  display: grid;
  gap: 1rem;
}

.featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.4rem;
}

.coverage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.story-card {
  display: grid;
  gap: 1.1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel-strong);
  min-width: 0;
}

.story-card.featured {
  background:
    linear-gradient(140deg, rgba(255, 250, 244, 0.98), rgba(236, 226, 208, 0.92));
}

.story-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.84rem;
  color: var(--muted);
}

.story-date {
  font-variant-numeric: tabular-nums;
}

.story-tag {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--wine-soft);
  color: var(--wine);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.story-summary {
  margin: 0;
}

.story-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.story-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration-thickness: 1px;
}

.story-link.secondary {
  color: var(--sage);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.filter-chip {
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}

.results-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.results-bar p {
  margin: 0;
}

.two-column {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  align-items: start;
}

.about-notes {
  grid-template-columns: 1fr;
}

.note-card,
.resource-card,
.faq-card {
  padding: 1.25rem;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.note-label {
  color: var(--sage);
}

.note-text {
  margin: 0.55rem 0 0;
}

.resource-grid,
.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.4rem;
}

.resource-card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--wine);
  font-weight: 600;
}

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

.faq-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.footer {
  margin-top: 1.4rem;
  padding: 1.6rem 0 0.4rem;
  border-top: 1px solid var(--border);
}

.footer-title {
  margin: 0 0 0.35rem;
  font-family: "Instrument Serif", serif;
  font-size: 1.55rem;
}

.footer-copy {
  margin: 0.2rem 0;
}

.is-hidden {
  display: none;
}

@media (max-width: 960px) {
  .hero,
  .two-column,
  .featured-grid,
  .coverage-grid,
  .resource-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 1rem, 100%);
  }

  .section {
    padding: 1.3rem;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }

  h2 {
    font-size: clamp(1.9rem, 11vw, 2.4rem);
  }

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

  .brand {
    width: min(100%, 320px);
  }
}

