:root {
  --bg: #f7efe6;
  --bg-soft: #fffaf5;
  --surface: #fff8f1;
  --surface-strong: #6a3328;
  --surface-strong-2: #8c4434;
  --text: #42221b;
  --text-soft: #735246;
  --text-on-dark: #fff6ef;
  --muted-on-dark: #f2d2c5;
  --line: rgba(84, 39, 30, 0.12);
  --brand: #ef7d4e;
  --brand-strong: #ffd36b;
  --accent: #2f5d50;
  --accent-soft: #dceae4;
  --shadow: 0 26px 70px rgba(119, 67, 51, 0.14);
  --radius: 30px;
  --radius-sm: 22px;
  --container: min(1180px, calc(100% - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(239, 125, 78, 0.2), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(47, 93, 80, 0.14), transparent 22%),
    linear-gradient(180deg, #f7efe6 0%, #fbf5ee 52%, #fffaf5 100%);
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

main {
  display: block;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 244, 236, 0.9);
  backdrop-filter: blur(16px);
}

.header-row,
.hero-grid,
.feature-grid,
.story-grid,
.quote-grid,
.two-col,
.footer-grid {
  display: grid;
  gap: 24px;
}

.header-row {
  min-height: 84px;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.brand img {
  width: 58px;
  height: auto;
  flex: 0 0 auto;
}

.brand--dynamic {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.brand__domain,
.brand__zone {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brand__domain {
  color: #4b241d;
}

.brand__zone {
  color: #d86f43;
}

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

.site-nav a,
.stack-links a,
.footer-links a {
  transition: 0.2s ease;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(239, 125, 78, 0.12);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: rgba(239, 125, 78, 0.12);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero,
.page-hero {
  padding: 70px 0 32px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  min-height: calc(100svh - 130px);
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.story-copy h2,
.panel h2,
.feature-card h3,
.quote-card blockquote {
  margin: 0;
}

.hero-copy h1,
.page-hero h1 {
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.story-copy p {
  color: var(--text-soft);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.72;
  font-size: 1rem;
}

.feature-card p,
.panel p,
.quote-card p,
.footer-copy,
.compliance-box p,
.prose p,
.footer-meta,
.footer-links--plain span,
.footer-links--plain a {
  color: var(--muted-on-dark);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.72;
  font-size: 1rem;
}

.footer-panel h3,
.footer-panel .brand__domain,
.footer-panel .brand__zone {
  color: #fff6ef;
}

.footer-panel h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.hero-actions,
.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #492117;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(239, 125, 78, 0.24);
}

.button:hover {
  transform: translateY(-1px);
}

.button--ghost {
  color: #7a351f;
  border-color: rgba(122, 53, 31, 0.22);
  background: rgba(255, 244, 236, 0.92);
  box-shadow: none;
}

.button--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.pill {
  padding: 8px 14px;
  background: rgba(47, 93, 80, 0.1);
  color: #2f5d50;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag {
  padding: 7px 12px;
  background: rgba(255, 211, 107, 0.14);
  color: #ffe5ba;
  font-size: 0.78rem;
}

.hero-points,
.stack-links,
.footer-links {
  display: grid;
  gap: 12px;
}

.hero-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--brand));
}

.hero-stage {
  position: relative;
  display: grid;
  gap: 22px;
}

.hero-card,
.feature-card,
.panel,
.quote-card,
.footer-panel,
.prose {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
  background: var(--surface);
}

.hero-card--image img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
}

.hero-card--glass {
  position: absolute;
  right: -10px;
  bottom: 24px;
  max-width: 320px;
  padding: 24px;
  background: rgba(47, 93, 80, 0.92);
  color: var(--text-on-dark);
  backdrop-filter: blur(18px);
}

.hero-card--glass p {
  color: #deefe8;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.hero-card--glass h2,
.quote-card blockquote,
.feature-card h3,
.panel h2,
.story-copy h2,
.prose h2 {
  margin-top: 14px;
  line-height: 1.1;
}

.hero-card--glass h2,
.feature-card h3,
.panel h2,
.quote-card blockquote {
  color: var(--text-on-dark);
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.story-copy h2 {
  color: var(--text);
  font-size: clamp(2rem, 3vw, 3rem);
}

.section {
  padding: 32px 0 36px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 1.02;
}

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

.feature-card,
.panel,
.footer-panel,
.prose {
  padding: 28px;
  background: linear-gradient(180deg, var(--surface-strong-2), var(--surface-strong));
}

.section--visual {
  padding-top: 48px;
}

.story-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  align-items: center;
}

.story-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stack-links a {
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.footer-links a {
  color: var(--text-on-dark);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.stack-links a:hover,
.footer-links a:hover {
  color: var(--brand);
}

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

.quote-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 28px;
  background: linear-gradient(180deg, #2f5d50, #25483e);
}

.quote-card blockquote {
  font-style: italic;
}

.avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
}

.panel--warm,
.prose {
  background: linear-gradient(180deg, #a2513d, #733228);
}

.page-hero--compact {
  padding-bottom: 12px;
}

.prose {
  display: grid;
  gap: 6px;
}

.prose h2 {
  margin-bottom: 0;
  color: var(--text-on-dark);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.site-footer {
  padding: 34px 0 42px;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
}

.compliance-box,
.footer-meta {
  margin-top: 18px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #5f2f26, #47211b);
}

.age-gate,
.cookie-banner {
  position: fixed;
}

.age-gate {
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(49, 24, 20, 0.48);
}

.age-gate__dialog,
.cookie-banner__inner {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.age-gate__dialog {
  width: min(560px, 100%);
  padding: 28px;
  background: linear-gradient(180deg, #703528, #5d2a21);
  color: var(--text-on-dark);
}

.age-gate__dialog p {
  color: var(--muted-on-dark);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.72;
}

.age-gate__dialog .pill {
  background: rgba(255, 211, 107, 0.14);
  color: #ffd36b;
}

.cookie-banner {
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.cookie-banner__inner {
  width: min(760px, 100%);
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(180deg, #6d3328, #57271f);
  color: var(--text-on-dark);
}

.cookie-banner__inner p,
.cookie-banner__inner strong {
  color: var(--text-on-dark);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

@media (max-width: 980px) {
  .hero-grid,
  .feature-grid,
  .story-grid,
  .quote-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-row {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    padding-bottom: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-card--glass {
    position: static;
    max-width: none;
  }

  .hero-card--image img {
    min-height: 320px;
  }

  .story-media img {
    min-height: 300px;
  }

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

@media (max-width: 640px) {
  .hero,
  .page-hero,
  .section,
  .site-footer {
    padding-top: 24px;
  }

  .feature-card,
  .panel,
  .footer-panel,
  .prose,
  .quote-card,
  .hero-card--glass,
  .age-gate__dialog,
  .cookie-banner__inner,
  .compliance-box,
  .footer-meta {
    padding: 22px;
  }

  .quote-card {
    grid-template-columns: 1fr;
  }
}
