@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Manrope:wght@400;500;700;800&display=swap");

:root {
  --bg: #f7efe5;
  --bg-2: #f0e4d6;
  --panel: #fff9f2;
  --panel-strong: #fff2e4;
  --ink: #25160f;
  --ink-soft: #684f41;
  --line: #d4b59a;
  --brand: #b77756;
  --brand-deep: #8f5a3f;
  --focus: #3a8dff;
  --shadow: 0 18px 40px rgba(90, 48, 23, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.75;
  background:
    radial-gradient(1300px 700px at 90% -15%, #e3cbb5 0%, transparent 58%),
    radial-gradient(900px 600px at 10% 115%, #e7d2bd 0%, transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #ffffff;
  color: #000;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  z-index: 9999;
}

.skip-link:focus {
  left: 8px;
}

.site-header {
  position: relative;
  top: auto;
  z-index: 120;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff8ef, #f8e9d8);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 18px 14px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: clamp(200px, 22vw, 320px);
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(85, 45, 20, 0.16));
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 4px 12px rgba(60, 29, 12, 0.12);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  position: relative;
}

.nav-toggle-label span::before {
  position: absolute;
  left: 0;
  top: -6px;
}

.nav-toggle-label span::after {
  position: absolute;
  left: 0;
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-1px);
}

.age-banner {
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand));
  padding: 11px 12px;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 18px 56px;
  display: block;
}

.page-hero {
  position: relative;
  top: 0;
  background: linear-gradient(170deg, #fffaf4, #ffeedd);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-family: "Archivo Black", "Manrope", sans-serif;
  font-size: clamp(1.7rem, 2.5vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: #2a1308;
}

.lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.prose {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3.2vw, 38px);
}

.prose p,
.prose li {
  color: #3e2a1e;
}

.prose h2 {
  margin: 2rem 0 0.7rem;
  font-family: "Archivo Black", "Manrope", sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  line-height: 1.2;
  color: #2a1308;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  margin: 1.25rem 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.prose a {
  color: #6d2f10;
  text-decoration-color: #b77756;
  font-weight: 700;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
}

.prose th,
.prose td {
  border: 1px solid #dec4ad;
  text-align: left;
  vertical-align: top;
  padding: 10px;
}

.prose th {
  background: #f4dfca;
  color: #26150c;
}

.callout {
  margin: 18px 0;
  border: 1px solid #d5ab85;
  border-left: 5px solid var(--brand);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff2e5;
}

.site-footer {
  margin-top: 4px;
  background: linear-gradient(180deg, #fff3e6, #f5e1cc);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  color: #503a2e;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.site-footer nav a {
  text-decoration: none;
  color: #3f2618;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #cfac8f;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
}

.site-footer nav a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .nav-toggle-label {
    display: inline-flex;
    align-self: flex-end;
  }

  .site-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 142px;
    background: #fff6ed;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.2s ease;
  }

  .site-nav a {
    text-align: center;
    padding: 10px;
  }

  .nav-toggle-input:checked ~ .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .page-hero {
    position: relative;
    top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
