:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-2: #0c121c;
  --ink: #f3efe4;
  --muted: #b7c0c8;
  --line: rgba(242, 212, 138, 0.16);
  --gold: #f2d48a;
  --gold-deep: #c9922e;
  --ember: #ff7a1a;
  --panel: rgba(10, 16, 24, 0.62);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  --serif: "Syne", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

html:has(body.home) {
  scroll-snap-type: y mandatory;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html:has(body.home) {
    scroll-snap-type: none;
  }

  .hero-scroll,
  .card {
    transition: none;
  }
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--mono);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

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

a {
  color: var(--gold);
}

a:hover {
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--gold);
  color: #141108;
  font-size: 0.8rem;
}

.skip:focus {
  top: 12px;
}

.hero {
  position: relative;
  isolation: isolate;
  height: 100svh;
  height: 100dvh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  background: #05070c;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero picture {
  display: contents;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 11, 18, 0.92) 0%, rgba(7, 11, 18, 0.12) 38%, transparent 58%),
    linear-gradient(to bottom, rgba(7, 11, 18, 0.28), transparent 22%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 20px max(28px, env(safe-area-inset-bottom));
  text-align: center;
}

.hero-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
}

.hero-scroll {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
}

.hero-scroll:hover {
  color: var(--gold);
}

.hero-scroll svg {
  width: 16px;
  height: 16px;
}

.page {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(1200px 400px at 50% 0, rgba(255, 122, 26, 0.08), transparent 55%),
    var(--bg);
  scroll-snap-align: start;
}

.page main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(1200px 400px at 50% 0, rgba(255, 122, 26, 0.08), transparent 55%),
    var(--bg);
}

.wrap {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.about {
  padding: 48px 0 28px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.about h2,
.legal h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.about p,
.legal p,
.legal li {
  color: var(--muted);
  font-size: 0.98rem;
}

.about p + p {
  margin-top: 1rem;
}

.links {
  padding: 12px 0 36px;
}

.cards {
  display: grid;
  gap: 14px;
}

.card {
  display: grid;
  gap: 8px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(10px);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.card:hover,
.card:hover {
  border-color: rgba(242, 212, 138, 0.45);
  transform: translateY(-2px);
  color: inherit;
}

.card-kicker {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}


.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 max(28px, env(safe-area-inset-bottom));
  background: var(--bg-2);
}

.page .site-footer {
  margin-top: auto;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 8px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--gold);
}

.legal {
  padding: 12px 0 72px;
}

.legal h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.2rem;
}

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

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

@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
