:root {
  --paper: #fffdf1;
  --white: #ffffff;
  --ink: #1f1d16;
  --muted: #766b4d;
  --yellow: #ffcc2b;
  --yellow-soft: #fff3a8;
  --green: #2f7250;
  --line: #e8dfc4;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

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

a {
  color: var(--green);
  text-underline-offset: 3px;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px max(24px, calc((100% - var(--max)) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 750;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--green);
}

.hero {
  background: var(--yellow);
  min-height: 560px;
  display: grid;
  align-items: center;
}

.hero-inner {
  align-items: center;
  display: grid;
  gap: clamp(36px, 8vw, 104px);
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: 72px 24px;
  width: 100%;
}

.hero-icon {
  border: 8px solid rgba(255, 255, 255, 0.7);
  border-radius: 38px;
  box-shadow: 0 22px 44px rgba(63, 46, 0, 0.18);
  height: auto;
  width: min(100%, 220px);
}

.eyebrow {
  color: #6f5100;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0;
  margin-bottom: 22px;
  max-width: 760px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: 0;
  margin-bottom: 22px;
}

.lead {
  color: #4d431f;
  font-size: clamp(1.12rem, 2.1vw, 1.42rem);
  margin: 0 0 30px;
  max-width: 650px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 50px;
  padding: 10px 20px;
  text-decoration: none;
}

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

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover {
  box-shadow: 4px 4px 0 var(--green);
  transform: translate(-2px, -2px);
}

.link-band,
.content-section {
  background: var(--white);
}

.section-inner,
.narrow {
  margin: 0 auto;
  width: 100%;
}

.section-inner {
  max-width: var(--max);
  padding: 86px 24px;
}

.narrow {
  max-width: 800px;
}

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

.resource-link {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 20px;
  grid-template-columns: 52px 1fr 32px;
  padding: 28px 4px;
  text-decoration: none;
}

.resource-link:hover {
  background: var(--yellow-soft);
}

.resource-number {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.resource-link strong,
.resource-link small {
  display: block;
}

.resource-link strong {
  font-size: 1.16rem;
}

.resource-link small {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2px;
}

.arrow {
  color: var(--green);
  font-size: 1.5rem;
}

.page-heading {
  background: var(--yellow);
  padding: 84px 24px 74px;
}

.page-heading h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.content-section {
  padding: 74px 24px 96px;
}

.prose h2 {
  border-top: 1px solid var(--line);
  font-size: 1.55rem;
  margin: 48px 0 14px;
  padding-top: 36px;
}

.prose h2:first-of-type {
  border-top: 0;
  margin-top: 24px;
  padding-top: 0;
}

.prose li {
  margin-bottom: 10px;
  padding-left: 8px;
}

details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 750;
}

details p {
  color: var(--muted);
  margin-bottom: 0;
}

footer {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  min-height: 100px;
  padding: 24px max(24px, calc((100% - var(--max)) / 2));
}

footer p {
  margin: 0;
}

footer a {
  color: var(--yellow);
}

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
  }

  .brand span {
    display: none;
  }

  nav {
    gap: 18px;
  }

  .hero {
    min-height: calc(100svh - 124px);
  }

  .hero-inner {
    align-content: center;
    gap: 32px;
    grid-template-columns: 1fr;
    padding-bottom: 56px;
    padding-top: 56px;
  }

  .hero-icon {
    border-radius: 28px;
    width: 132px;
  }

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

  .actions,
  .button {
    width: 100%;
  }

  .resource-link {
    gap: 12px;
    grid-template-columns: 36px 1fr 24px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

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

  .button:hover {
    transform: none;
  }
}
