:root {
  color-scheme: light;
  --ink: #171b19;
  --muted: #58625c;
  --paper: #fbfaf4;
  --linen: #efeadf;
  --leaf: #2f5b42;
  --leaf-dark: #173525;
  --gold: #d19b24;
  --clay: #9b4e3f;
  --sky: #dbe9e3;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(23, 27, 25, 0.18);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
}

.site-header::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(16, 24, 20, 0.72), rgba(16, 24, 20, 0));
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffe4a1;
}

.hero {
  position: relative;
  display: grid;
  min-height: 560px;
  height: min(760px, 82svh);
  align-items: center;
  overflow: hidden;
  padding: 96px clamp(20px, 5vw, 72px) 64px;
  background: url("./assets/apiary-hero.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 22, 18, 0.78) 0%, rgba(13, 22, 18, 0.58) 34%, rgba(13, 22, 18, 0.12) 70%),
    linear-gradient(180deg, rgba(13, 22, 18, 0.36) 0%, rgba(13, 22, 18, 0.08) 45%, rgba(13, 22, 18, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(4rem, 11vw, 8.7rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 0.95rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button-primary {
  background: var(--gold);
  color: #1b1308;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #edb444;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.18);
}

.section {
  padding: clamp(54px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.game-summary {
  display: block;
}

.game-title-row {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 24px);
}

.game-title-icon {
  display: block;
  width: clamp(64px, 9vw, 104px);
  height: clamp(64px, 9vw, 104px);
  flex: 0 0 auto;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(23, 27, 25, 0.16);
}

.section h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  line-height: 1.12;
}

.section p {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.section-games {
  background:
    linear-gradient(180deg, var(--paper), var(--linen));
}

.text-link {
  color: var(--leaf-dark);
  font-weight: 850;
  text-decoration-color: rgba(47, 91, 66, 0.34);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--clay);
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 26px clamp(20px, 5vw, 72px);
}

.footer-inner {
  display: flex;
  width: min(1120px, 100%);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  gap: 18px;
}

.footer-inner a {
  text-decoration-color: rgba(255, 255, 255, 0.26);
  text-underline-offset: 4px;
}

.legal-main {
  min-height: 100svh;
  padding: 118px clamp(20px, 5vw, 72px) 72px;
  background: var(--paper);
}

.legal-page {
  width: min(840px, 100%);
  margin: 0 auto;
}

.legal-page h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.legal-page h2 {
  margin: 42px 0 0;
  font-size: 1.35rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-page ul {
  padding-left: 1.2rem;
}

.legal-page .updated {
  margin-top: 16px;
  color: var(--leaf);
  font-weight: 850;
}

.legal-header {
  color: var(--ink);
}

.legal-header::before {
  background: rgba(251, 250, 244, 0.86);
  box-shadow: 0 1px 0 rgba(23, 27, 25, 0.08);
  backdrop-filter: blur(18px);
}

.legal-header .nav-links {
  color: var(--ink);
}

.legal-header .nav-links a {
  text-shadow: none;
}

.legal-header .nav-links a:hover,
.legal-header .nav-links a:focus-visible {
  color: var(--leaf);
}

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.86rem;
  }

  .hero {
    height: min(720px, 82svh);
    padding-top: 88px;
    background-position: 58% center;
  }

}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
    padding-inline: 14px;
  }

  .nav-links {
    gap: 10px;
  }

  .hero {
    min-height: 530px;
    padding-inline: 18px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 18vw, 5.6rem);
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
