:root {
  color-scheme: dark;
  --cream: #fff9ea;
  --gold: #d6a658;
  --gold-light: #f7e7bd;
  --brown: #6f4d24;
  --ink: #21170e;
  --muted: rgba(255, 249, 234, 0.78);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #171009;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
}

button,
a {
  font: inherit;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 24px 110px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(21, 14, 8, 0.3), rgba(21, 14, 8, 0.84)),
    radial-gradient(circle at 50% 10%, rgba(247, 231, 189, 0.3), transparent 28%),
    linear-gradient(135deg, #352719 0%, #8c6a3b 45%, #24180e 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.hero::before {
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(115deg, transparent 0 68px, rgba(255,255,255,0.025) 69px 70px),
    repeating-linear-gradient(25deg, transparent 0 88px, rgba(0,0,0,0.03) 89px 90px);
}

.hero::after {
  background: linear-gradient(90deg, rgba(0,0,0,0.4), transparent 26%, transparent 74%, rgba(0,0,0,0.4));
}

.light {
  position: absolute;
  top: -10vh;
  left: 50%;
  width: min(54vw, 640px);
  height: 72vh;
  transform: translateX(-50%);
  z-index: -1;
  opacity: 0.55;
  background: linear-gradient(180deg, rgba(255, 245, 207, 0.48), rgba(255, 234, 180, 0.05) 72%, transparent);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(16px);
}

.hero__inner {
  width: min(920px, 100%);
  text-align: center;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--gold-light);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}

h1 {
  max-width: 850px;
  margin: 0 auto;
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero h2 {
  max-width: 760px;
  margin: 30px auto 0;
  color: rgba(255, 249, 234, 0.93);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 500;
  line-height: 1.45;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin: 36px auto 24px;
  padding: 16px 28px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, #e1b76d, #ad7b32);
  box-shadow: 0 14px 34px rgba(0,0,0,0.34), inset 0 1px rgba(255,255,255,0.45);
  color: #1f150b;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-shadow: none;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 38px rgba(0,0,0,0.4), inset 0 1px rgba(255,255,255,0.5);
}

.cta-button:focus-visible,
.legal-links button:focus-visible,
.legal-modal__close:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}

.disclosure {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}

.legal-links {
  position: fixed;
  z-index: 5;
  bottom: 0;
  left: 0;
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 10px 22px;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent, rgba(12,8,4,0.82));
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.legal-links button {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  font-size: 0.82rem;
  text-decoration: none;
}

.legal-links button:hover {
  color: #fff;
  text-decoration: underline;
}

.legal-modal {
  width: min(700px, calc(100vw - 28px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3d352e;
}

.legal-modal::backdrop {
  background: rgba(13, 9, 5, 0.78);
  backdrop-filter: blur(3px);
}

.legal-modal__panel {
  display: flex;
  max-height: min(86vh, 860px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(111,77,36,0.24);
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
}

.legal-modal__head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #e8dfd0;
}

.legal-modal__head h2 {
  color: var(--brown);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1.25;
}

.legal-modal__head h2 span {
  display: block;
  margin-top: 5px;
  color: #756c62;
  font-size: 0.74rem;
  font-weight: 600;
}

.legal-modal__close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #e2d8c9;
  border-radius: 8px;
  background: #f7f1e7;
  color: #5d5146;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1.25rem;
  line-height: 1;
}

.legal-modal__close:hover {
  background: #ede3d3;
}

.legal-modal__body {
  overflow-y: auto;
  padding: 21px 24px 28px;
  color: #514a43;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  text-align: left;
}

.legal-modal__body h3 {
  margin: 22px 0 6px;
  color: var(--brown);
  font-size: 0.92rem;
  font-weight: 850;
}

.legal-modal__body h3:first-child {
  margin-top: 0;
}

.legal-modal__body p,
.legal-modal__body ul {
  margin: 0 0 12px;
}

.legal-modal__body ul {
  padding-left: 20px;
}

.legal-modal__body li {
  margin-bottom: 6px;
}

html:has(.legal-modal[open]) {
  overflow: hidden;
}

@media (max-width: 600px) {
  .hero {
    padding: 44px 20px 126px;
  }

  .eyebrow {
    letter-spacing: 0.18em;
  }

  .cta-button {
    width: min(100%, 390px);
    padding-inline: 18px;
  }

  .legal-links {
    gap: 8px 17px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .legal-modal__head,
  .legal-modal__body {
    padding-left: 19px;
    padding-right: 19px;
  }
}

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