:root {
  --bg: #FBF3E6;
  --alt: #F3E6D4;
  --text: #2A1B12;
  --muted: #5C4636;
  --accent: #A65A16;
  --accent-hover: #985516;
  --ring: #A65A16;
  --fill: #F0D2B0;
  --header-bg: rgba(251, 243, 230, 0.92);
  --serif: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tap-min: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem / 1.6 var(--sans);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 100;
  background: var(--bg);
  color: var(--text);
  padding: 0.75rem 1rem;
  min-height: var(--tap-min);
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.5rem;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.5rem clamp(1rem, 4vw, 2.5rem);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 27, 18, 0.06);
}

.site-header__brand-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-height: var(--tap-min);
}

.site-header__brand {
  font: 600 1.35rem var(--sans);
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.site-header__slogan {
  margin: 0;
  font: 400 0.85rem / 1.25 var(--sans);
  color: var(--muted);
  max-width: 18rem;
}

.site-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  background: var(--alt);
  padding: 0.15rem;
  gap: 0.1rem;
}

.lang-switch button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  background: transparent;
  color: var(--muted);
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  padding: 0 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--fill);
  color: var(--text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.site-nav button {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--muted);
  min-height: var(--tap-min);
  padding: 0 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.site-nav button[aria-selected="true"] {
  color: var(--text);
  background: rgba(240, 210, 176, 0.55);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  background: var(--accent);
  color: #FFFFFF;
  padding: 0.8rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  font: 600 1rem / 1.2 var(--sans);
}

.btn:hover {
  background: var(--accent-hover);
}

.btn--header {
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.snap-section {
  min-height: 100svh;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 5.5rem clamp(1.25rem, 7vw, 7rem) 4rem;
}

.snap-section:nth-of-type(even) {
  background: var(--alt);
}

.snap-section:nth-of-type(even) .snap-section__art {
  order: -1;
}

.snap-section__copy h1,
.snap-section__copy h2 {
  font: 600 clamp(2.1rem, 5.5vw, 4.5rem) / 1.08 var(--serif);
  margin: 0 0 1rem;
}

.snap-section__copy p {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.snap-section__art {
  width: 100%;
  max-width: 28rem;
  justify-self: center;
}

.slot-img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 1rem;
  background: var(--fill);
  box-shadow: 0 12px 40px rgba(42, 27, 18, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.site-footer {
  padding: 2rem clamp(1rem, 4vw, 2rem) 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  background: var(--bg);
  border-top: 1px solid rgba(42, 27, 18, 0.08);
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0.25rem 0.5rem;
}

.site-footer p {
  margin: 0.5rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header__actions {
    justify-content: space-between;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
  }

  .snap-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 8.5rem;
  }

  .snap-section:nth-of-type(even) .snap-section__art {
    order: 0;
  }

  .snap-section__copy p {
    margin-inline: auto;
  }

  .snap-section__art {
    max-width: 18rem;
  }
}
