:root {
  --bg: #f7f2e8;
  --paper: #fffaf0;
  --ink: #151c22;
  --muted: #5d665f;
  --line: #dfd5c3;
  --green: #1f7a5b;
  --green-dark: #143d35;
  --gold: #d79d24;
  --red: #b34b44;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(21, 28, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

a {
  color: var(--green);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.site-header {
  align-items: center;
  background: rgba(255, 250, 240, 0.95);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px 5vw;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.top-nav a {
  border-radius: 8px;
  color: var(--ink);
  padding: 8px 10px;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: #efe5d3;
}

.hero {
  background: var(--green-dark);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  min-height: 640px;
  overflow: hidden;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(20, 61, 53, 0.18), rgba(20, 61, 53, 0.84)),
    url("assets/hero.png") left center / cover no-repeat;
  min-height: 360px;
}

.hero-content {
  align-self: center;
  max-width: 720px;
  padding: 84px 7vw 84px 56px;
}

.eyebrow {
  color: #ffd781;
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: 3.5rem;
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero-text {
  color: #f5ead8;
  font-size: 1.18rem;
  margin-bottom: 30px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button-primary {
  background: var(--gold);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  justify-content: center;
  min-width: 150px;
  padding: 12px 18px;
  text-decoration: none;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #efb842;
}

.age-note {
  color: #f5ead8;
  font-size: 0.94rem;
}

.intro-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 28px 5vw;
}

.intro-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.intro-grid article {
  border-left: 4px solid var(--gold);
  padding: 4px 0 4px 16px;
}

.intro-grid strong,
.intro-grid span {
  display: block;
}

.intro-grid strong {
  color: var(--green-dark);
  font-size: 1.02rem;
}

.intro-grid span {
  color: var(--muted);
}

.page-layout {
  display: grid;
  gap: 56px;
  grid-template-columns: 260px minmax(0, 760px);
  justify-content: center;
  padding: 72px 5vw;
}

.toc {
  align-self: start;
  background: #efe5d3;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  position: sticky;
  top: 96px;
}

.toc p {
  color: var(--green-dark);
  font-weight: 800;
  margin-bottom: 14px;
}

.toc a {
  color: var(--ink);
  display: block;
  padding: 8px 0;
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--green);
}

.article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 44px;
}

.article h2 {
  color: var(--green-dark);
  font-size: 1.75rem;
  line-height: 1.22;
  margin: 46px 0 16px;
}

.article h2:first-child {
  margin-top: 0;
}

.article p {
  color: #2a332d;
  font-size: 1.06rem;
  margin-bottom: 22px;
}

.article ul {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
}

.article li {
  background: #f6eddd;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  list-style: none;
  padding: 13px 16px;
}

.site-footer {
  background: var(--ink);
  color: #e9dfcf;
  padding: 26px 5vw;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

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

  .top-nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    min-height: 300px;
    order: 2;
  }

  .hero-content {
    padding: 64px 6vw 44px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .intro-grid,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .page-layout {
    gap: 28px;
    padding: 48px 5vw;
  }

  .toc {
    position: static;
  }

  .article {
    padding: 30px 22px;
  }
}

@media (max-width: 560px) {
  .top-nav a {
    padding: 7px 8px;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-text,
  .article p {
    font-size: 1rem;
  }
}
