* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f3efe5;
  color: #24382d;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid #b35f3d;
  outline-offset: 5px;
}

.site-header,
main,
.site-footer {
  width: min(1160px, calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #788b76;
  border-radius: 50%;
  color: #536d59;
  font-family: Arial, sans-serif;
  font-size: 0.65rem;
  letter-spacing: -0.08em;
}

nav {
  display: flex;
  gap: 1.8rem;
}

nav a {
  color: #53675a;
  text-decoration: none;
}

nav a:hover {
  color: #b35f3d;
}

.hero {
  display: grid;
  min-height: min(730px, calc(100vh - 5rem));
  grid-template-columns: minmax(280px, 0.85fr) minmax(400px, 1.15fr);
  align-items: center;
  gap: 3rem;
  padding: 4rem 0 6rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
}

.eyebrow,
.section-label {
  color: #b35f3d;
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: bold;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1.4rem;
}

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

h1,
h2 {
  font-weight: normal;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 9ch;
  margin-bottom: 1.6rem;
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  line-height: 0.98;
}

.hero-intro {
  max-width: 30rem;
  margin-bottom: 2.2rem;
  color: #53675a;
  font-size: 1.1rem;
}

.button-link {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 1.1rem;
  border: 1px solid #536d59;
  border-radius: 2rem;
  color: #38523e;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.button-link:hover {
  background: #38523e;
  color: #f3efe5;
}

.tree-scene {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 50% 50% 0 0 / 35% 35% 0 0;
  background: #dce6d6;
}

.sun {
  position: absolute;
  top: 13%;
  right: 17%;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background: #e9c887;
  opacity: 0.9;
}

.hill {
  position: absolute;
  right: -10%;
  bottom: -22%;
  left: -10%;
  height: 58%;
  border-radius: 50% 50% 0 0;
}

.hill-back {
  bottom: -28%;
  background: #a7bba0;
  transform: rotate(4deg);
}

.hill-front {
  z-index: 1;
  bottom: -34%;
  background: #7e9b7b;
  transform: rotate(-3deg);
}

.tree {
  position: absolute;
  z-index: 2;
  bottom: 10%;
  left: 50%;
  width: min(72%, 360px);
  height: auto;
  transform: translateX(-50%);
}

.tree-shadow {
  fill: #5d7a62;
  opacity: 0.28;
}

.trunk,
.branch {
  fill: none;
  stroke: #624d3a;
  stroke-linecap: round;
  stroke-width: 15;
}

.branch {
  stroke-width: 8;
}

.branch-fine {
  stroke-width: 4;
}

.canopy {
  fill: #587c5b;
}

.canopy circle:nth-child(3n) {
  fill: #6f9369;
}

.blossoms {
  fill: #e7b69b;
}

.scene-note {
  position: absolute;
  z-index: 3;
  right: 1.5rem;
  bottom: 1.3rem;
  margin: 0;
  color: #f3efe5;
  font-size: 0.85rem;
  font-style: italic;
}

.section-rule {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  padding: 7rem 0;
  border-top: 1px solid #cbd4c5;
}

.section-label {
  padding-top: 0.7rem;
  color: #71836f;
}

h2 {
  max-width: 12ch;
  margin-bottom: 2.5rem;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.04;
}

.prose-columns {
  display: grid;
  max-width: 720px;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  color: #53675a;
  font-size: 1.05rem;
}

.prose-columns em {
  color: #24382d;
}

.vocabulary-content {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) 1.2fr;
  gap: 4rem;
}

.vocabulary-list {
  border-top: 1px solid #cbd4c5;
}

.vocabulary-list p {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  margin: 0;
  padding: 1.2rem 0;
  border-bottom: 1px solid #cbd4c5;
  color: #53675a;
}

.vocabulary-list strong {
  color: #24382d;
  font-weight: normal;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0 3rem;
  color: #71836f;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a,
.settings-button {
  color: #53675a;
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
}

.footer-links a:hover,
.settings-button:hover {
  color: #b35f3d;
}

.settings-button,
.consent-button {
  border: 1px solid #9aaa98;
  border-radius: 2rem;
  background: transparent;
  color: #38523e;
  cursor: pointer;
  font: inherit;
  padding: 0.7rem 1rem;
}

.consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  width: min(38rem, calc(100% - 2rem));
  padding: 1.25rem;
  border: 1px solid #b7c5b2;
  border-radius: 1rem;
  background: #f9fbf6;
  box-shadow: 0 1rem 3rem rgba(36, 56, 45, 0.18);
  color: #24382d;
}

.consent-banner[hidden] {
  display: none;
}

.consent-title {
  margin-bottom: 0.5rem;
  color: #24382d;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.consent-copy,
.consent-status {
  margin-bottom: 0;
  color: #53675a;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
}

.consent-copy a {
  color: #38523e;
  font-weight: bold;
}

.consent-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.consent-button {
  min-width: 9rem;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: bold;
}

.consent-button.accept {
  background: #38523e;
  color: #f9fbf6;
}

.consent-button:hover,
.settings-button:hover {
  background: #e6eee2;
}

.consent-button.accept:hover {
  background: #24382d;
  color: #f9fbf6;
}

body.banner-visible {
  padding-bottom: 10rem;
}

.policy-page {
  min-height: 100vh;
}

.policy-main {
  max-width: 800px;
  padding: 4rem 0 5rem;
}

.policy-main h1 {
  max-width: none;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.policy-main h2 {
  max-width: none;
  margin: 3rem 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.policy-main p,
.policy-main li {
  max-width: 45rem;
  color: #53675a;
}

.policy-main ul {
  max-width: 42rem;
  padding-left: 1.5rem;
}

.policy-main code {
  overflow-wrap: anywhere;
  color: #38523e;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

.policy-back {
  display: inline-block;
  margin-top: 3rem;
  color: #38523e;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 2rem, 560px);
  }

  .site-header {
    align-items: flex-start;
    padding: 1.5rem 0;
  }

  nav {
    gap: 0.9rem;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.8rem;
  }

  .hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 3.5rem 0 4rem;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3.4rem, 16vw, 5.4rem);
  }

  .hero-copy {
    padding-bottom: 3rem;
  }

  .tree-scene {
    min-height: 480px;
  }

  .section-rule {
    display: block;
    padding: 4.5rem 0;
  }

  .section-label {
    margin-bottom: 1.8rem;
  }

  .prose-columns,
  .vocabulary-content {
    display: block;
  }

  .prose-columns p {
    margin-bottom: 1.3rem;
  }

  .vocabulary-content h2 {
    margin-bottom: 2rem;
  }

  .site-footer {
    display: block;
    padding-bottom: 2rem;
  }

  .footer-links {
    display: grid;
    justify-content: start;
    margin-top: 1rem;
  }

  .site-footer p + p {
    margin-top: 0.5rem;
  }

  .consent-banner {
    right: 0.5rem;
    bottom: 0.5rem;
    width: calc(100% - 1rem);
  }

  .consent-actions {
    display: grid;
  }

  .consent-button {
    width: 100%;
  }
}

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

  .button-link {
    transition: none;
  }
}
