:root {
  --ink: #173f3b;
  --ink-deep: #0c2927;
  --sand: #f4eddf;
  --sand-deep: #e8dcc5;
  --paper: #fffdf8;
  --clay: #c76443;
  --clay-dark: #9e432e;
  --olive: #70843e;
  --muted: #58706c;
  --line: #d9d6ca;
  --shadow: 0 18px 50px rgb(20 55 51 / 12%);
  --radius: 1.5rem;
  --content-width: 72rem;
  --narrow-width: 48rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.8;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 4px;
}

img {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 3rem), var(--content-width));
  margin-inline: auto;
}

.narrow-content {
  width: min(calc(100% - 3rem), var(--narrow-width));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: -5rem;
  right: 1rem;
  padding: 0.55rem 1rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: 0 0 0.5rem 0.5rem;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgb(217 214 202 / 75%);
  background: rgb(255 253 248 / 94%);
  backdrop-filter: blur(12px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.25rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1.1;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: var(--paper);
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--clay);
  border-radius: 0.75rem 0.75rem 0.75rem 0.1rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.25rem;
}

.brand small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.67rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.5rem 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: 0.55rem;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: var(--sand);
}

.menu-button {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0.55rem;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.menu-button > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0.25rem 0;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-button[aria-expanded="true"] > span:nth-of-type(2) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] > span:nth-of-type(3) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] > span:nth-of-type(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7.25rem) 0 clamp(4rem, 8vw, 6.5rem);
  background:
    radial-gradient(circle at 85% 18%, rgb(199 100 67 / 12%), transparent 25rem),
    linear-gradient(125deg, var(--sand) 0%, var(--paper) 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--clay-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(2.5rem, 5.4vw, 5.1rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 39rem;
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  font-size: 0.93rem;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--paper);
  background: var(--ink);
}

.button-primary:hover {
  background: var(--ink-deep);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--ink);
}

.button-secondary:hover {
  background: rgb(23 63 59 / 8%);
}

.button-light {
  color: var(--ink-deep);
  background: var(--paper);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin: 2.8rem 0 0;
}

.hero-stats div {
  display: grid;
  gap: 0.05rem;
}

.hero-stats dt {
  color: var(--clay);
  font-size: 1.25rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-art {
  position: relative;
  min-height: 31rem;
  overflow: hidden;
  background: #d5ded1;
  border-radius: 5rem 5rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  width: 12rem;
  height: 12rem;
  content: "";
  border: 1px solid rgb(255 253 248 / 36%);
  border-radius: 50%;
}

.hero-art::before {
  top: 3.2rem;
  right: 2.8rem;
}

.hero-art::after {
  bottom: -5rem;
  left: -3rem;
}

.sun {
  position: absolute;
  top: 15%;
  right: 28%;
  width: 5.2rem;
  height: 5.2rem;
  background: #efa46f;
  border-radius: 50%;
}

.mountain {
  position: absolute;
  bottom: 0;
  left: -6%;
  width: 120%;
  clip-path: polygon(0 100%, 0 65%, 22% 38%, 35% 55%, 52% 17%, 74% 49%, 86% 31%, 100% 55%, 100% 100%);
}

.mountain-back {
  height: 65%;
  background: #8ba086;
}

.mountain-front {
  height: 47%;
  background: #4f745f;
  clip-path: polygon(0 100%, 0 72%, 16% 49%, 33% 70%, 49% 25%, 65% 56%, 78% 38%, 100% 75%, 100% 100%);
}

.home {
  position: absolute;
  bottom: 18%;
  width: 3.8rem;
  height: 3rem;
  background: #e9d1a4;
  box-shadow: 0 -0.45rem 0 #a44f39;
}

.home::before {
  position: absolute;
  top: -1.65rem;
  right: -0.15rem;
  width: 0;
  height: 0;
  content: "";
  border-right: 2.05rem solid transparent;
  border-bottom: 1.75rem solid #a44f39;
  border-left: 2.05rem solid transparent;
}

.home span,
.home i {
  position: absolute;
  bottom: 0;
  display: block;
  width: 0.62rem;
  height: 1.05rem;
  background: #385c53;
}

.home span {
  right: 0.7rem;
}

.home i {
  left: 0.7rem;
}

.home-one {
  right: 20%;
  transform: scale(0.78);
}

.home-two {
  right: 43%;
  bottom: 24%;
}

.home-three {
  right: 65%;
  bottom: 16%;
  transform: scale(0.65);
}

.hero-art p {
  position: absolute;
  z-index: 1;
  top: 8%;
  left: 9%;
  margin: 0;
  color: var(--ink-deep);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.35;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-intro {
  background: var(--paper);
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.archive-card h2,
.timeline-layout h2,
.journal-heading h2,
.contribute-content h2,
.article-content h2,
.contact-section h2,
.process-layout h2 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(1.85rem, 3.3vw, 3.05rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.section-heading > p:last-child,
.section-lead,
.archive-card > p,
.contribute-content > div > p {
  color: var(--muted);
}

.feature-grid,
.article-grid,
.principles-grid,
.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  min-height: 17rem;
  padding: 1.65rem;
  background: var(--sand);
  border: 1px solid rgb(217 214 202 / 80%);
  border-radius: var(--radius);
}

.feature-card:nth-child(2) {
  background: #e7ede0;
}

.feature-card:nth-child(3) {
  background: #f2ddd2;
}

.feature-number {
  display: block;
  color: var(--clay-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.feature-card h3,
.article-card h3,
.archive-notes h3,
.timeline h3,
.checklist h3,
.principles-grid h3,
.memory-grid h3,
.contact-card h3 {
  margin: 1.5rem 0 0.6rem;
  color: var(--ink-deep);
  font-size: 1.22rem;
  line-height: 1.4;
}

.feature-card p,
.article-card p,
.archive-notes p,
.timeline p,
.checklist p,
.principles-grid p,
.memory-grid p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-card a,
.article-card a,
.text-link {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin-top: 1.4rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.feature-card a:hover,
.article-card a:hover,
.text-link:hover {
  color: var(--clay-dark);
}

.section-timeline {
  color: var(--paper);
  background: var(--ink);
}

.section-timeline h2 {
  color: var(--paper);
}

.section-timeline .eyebrow {
  color: #f3bb8f;
}

.section-timeline .section-lead {
  color: #bed0c5;
}

.timeline-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
  gap: clamp(2rem, 7vw, 7rem);
}

.timeline {
  display: grid;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 3.3rem 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgb(255 253 248 / 20%);
}

.timeline li:first-child {
  padding-top: 0;
}

.timeline span {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: var(--ink);
  background: #f3bb8f;
  border-radius: 50%;
}

.timeline h3 {
  margin-top: 0;
  color: var(--paper);
}

.timeline p {
  color: #bed0c5;
}

.archive-section {
  background: #e7ede0;
}

.archive-layout {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: clamp(2rem, 8vw, 8rem);
  align-items: center;
}

.archive-notes {
  display: grid;
  gap: 0.7rem;
}

.archive-notes article {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.9rem;
  padding: 1.15rem;
  background: rgb(255 253 248 / 70%);
  border-radius: 0.9rem;
}

.archive-notes > article > span {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--olive);
  border-radius: 50%;
}

.archive-notes h3 {
  margin-top: 0;
}

.journal-section {
  background: var(--paper);
}

.journal-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.journal-heading .text-link {
  flex: 0 0 auto;
}

.article-card {
  min-height: 20rem;
  padding: 1.75rem;
  border-radius: var(--radius);
}

.article-card > p:first-child {
  color: var(--clay-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.article-card h3 {
  margin-top: 1rem;
}

.article-card a {
  margin-top: 1.8rem;
}

.article-card-sand {
  background: var(--sand);
}

.article-card-green {
  background: #d7e3d8;
}

.article-card-clay {
  background: #f1d9cf;
}

.contribute-section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  color: var(--paper);
  background: var(--clay);
}

.contribute-section.compact {
  padding: 3.5rem 0;
}

.contribute-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contribute-content > div {
  max-width: 47rem;
}

.contribute-content .eyebrow,
.contribute-content h2,
.contribute-content > div > p {
  color: var(--paper);
}

.contribute-content .button {
  flex: 0 0 auto;
}

.ad-region {
  width: min(calc(100% - 3rem), var(--content-width));
  min-height: 0;
  margin: 0 auto;
}

.ad-region:not([hidden]) {
  min-height: 6rem;
  margin-bottom: 1.5rem;
}

.page-hero {
  padding: clamp(4rem, 9vw, 8.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background: var(--sand);
}

.page-hero-history {
  background:
    radial-gradient(circle at 80% 20%, rgb(199 100 67 / 17%), transparent 19rem),
    var(--sand);
}

.page-hero-families {
  background:
    radial-gradient(circle at 75% 5%, rgb(112 132 62 / 22%), transparent 21rem),
    #e7ede0;
}

.page-hero-heritage {
  background:
    radial-gradient(circle at 75% 15%, rgb(199 100 67 / 16%), transparent 22rem),
    #f2ddd2;
}

.page-hero-about {
  background:
    radial-gradient(circle at 80% 15%, rgb(112 132 62 / 20%), transparent 21rem),
    #e7ede0;
}

.page-hero-privacy {
  background:
    radial-gradient(circle at 80% 15%, rgb(199 100 67 / 14%), transparent 21rem),
    var(--sand);
}

.page-intro {
  max-width: 41rem;
  margin: 1.55rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.article-content {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.article-content h2 {
  margin: 2.8rem 0 1.1rem;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
}

.article-content h2:first-of-type {
  margin-top: 1.3rem;
}

.article-content p {
  color: #315652;
  font-size: 1.03rem;
}

.article-content a {
  color: var(--clay-dark);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.article-meta span {
  padding: 0.25rem 0.65rem;
  background: var(--sand);
  border-radius: 99rem;
}

blockquote {
  margin: 2.5rem 0;
  padding: 1.7rem 1.8rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: 0 1.2rem 1.2rem 1.2rem;
}

blockquote p {
  margin: 0;
  color: var(--paper) !important;
  font-size: 1.3rem !important;
  font-weight: 700;
  line-height: 1.7;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.6rem 0 2.5rem;
}

.checklist > div {
  padding: 1.2rem;
  background: #e7ede0;
  border-radius: 1rem;
}

.checklist span {
  color: var(--clay-dark);
  font-weight: 800;
}

.checklist h3 {
  margin-top: 0.75rem;
}

.family-principles {
  background: #f2ddd2;
}

.section-soft {
  background: #e7ede0;
}

.process-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 7vw, 6rem);
}

.process-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgb(23 63 59 / 20%);
}

.process-list strong {
  color: var(--ink-deep);
}

.process-list span {
  color: var(--muted);
  font-size: 0.93rem;
}

.memory-grid {
  grid-template-columns: repeat(4, 1fr);
}

.memory-grid article,
.principles-grid article {
  padding: 1.4rem;
  background: rgb(255 253 248 / 70%);
  border-radius: 1rem;
}

.memory-grid span {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--paper);
  font-size: 0.85rem;
  background: var(--clay);
  border-radius: 50%;
}

.memory-grid h3,
.principles-grid h3 {
  margin-top: 1rem;
}

.principles-grid {
  grid-template-columns: repeat(4, 1fr);
}

.contact-section {
  background: var(--sand);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2rem, 8vw, 8rem);
  align-items: center;
}

.contact-layout > div:first-child > p:last-child {
  color: var(--muted);
}

.contact-card {
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-top: 0;
}

.contact-card a {
  display: inline-block;
  margin: 1rem 0;
  color: var(--clay-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.contact-note {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.site-footer {
  color: #dce8df;
  background: var(--ink-deep);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  padding: 3.5rem 0 2.2rem;
}

.brand-footer strong {
  color: var(--paper);
}

.brand-footer small {
  color: #a8c0b3;
}

.footer-main > div:first-child > p {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: #a8c0b3;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.footer-links h2 {
  margin: 0 0 0.8rem;
  color: var(--paper);
  font-size: 0.9rem;
}

.footer-links a {
  display: block;
  margin-top: 0.4rem;
  color: #a8c0b3;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: #8ba99a;
  font-size: 0.75rem;
  border-top: 1px solid rgb(220 232 223 / 14%);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 52rem) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 0.6rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 0.7rem;
  }

  .hero-grid,
  .timeline-layout,
  .archive-layout,
  .process-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 25rem;
  }

  .feature-grid,
  .article-grid,
  .checklist {
    grid-template-columns: repeat(2, 1fr);
  }

  .memory-grid,
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-layout {
    gap: 2.5rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 36rem) {
  .container,
  .narrow-content {
    width: min(calc(100% - 2rem), var(--content-width));
  }

  .header-content {
    min-height: 4.7rem;
  }

  .brand small {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .hero-actions,
  .contribute-content {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-grid,
  .article-grid,
  .checklist,
  .memory-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .journal-heading,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .process-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
