:root {
  color-scheme: light;
  --ink: #12241d;
  --ink-soft: #4e5d56;
  --paper: #f4f0e7;
  --paper-deep: #e9e3d6;
  --surface: #fffdf8;
  --forest: #10261e;
  --forest-soft: #17392d;
  --acid: #d8ff72;
  --acid-dark: #b9df55;
  --coral: #ea6a57;
  --line: rgba(18, 36, 29, 0.16);
  --shadow: 0 28px 70px rgba(20, 35, 29, 0.14);
  --radius-lg: 32px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(216, 255, 114, 0.34), transparent 28rem),
    linear-gradient(180deg, #faf7f0 0%, var(--paper) 60%, var(--paper-deep) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  color: white;
  background: var(--forest);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.hero {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px 11px 11px 3px;
  color: var(--acid);
  background: var(--forest);
  font-size: 0.92rem;
  font-weight: 850;
  transform: rotate(-3deg);
}

.header-action,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.header-action {
  padding: 0 18px;
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.64);
}

.hero {
  display: grid;
  gap: 52px;
  padding-block: clamp(54px, 10vw, 112px) 76px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.availability,
.error-code {
  margin: 0;
  color: #3d594c;
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 18px 0 20px;
  font-size: clamp(2.75rem, 10vw, 6.7rem);
  font-weight: 760;
  letter-spacing: -0.067em;
  line-height: 0.94;
  text-wrap: balance;
}

.hero-lede {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 3.6vw, 1.28rem);
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin-top: 24px;
  color: #274b3b;
  font-size: 0.92rem;
  font-weight: 760;
  text-underline-offset: 5px;
}

.game-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(15, 47, 36, 0.15);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.table-art {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 55%, rgba(216, 255, 114, 0.13), transparent 40%),
    linear-gradient(145deg, #183c30 0%, var(--forest) 72%);
  isolation: isolate;
}

.table-art::before,
.table-art::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(216, 255, 114, 0.18);
  border-radius: 50%;
}

.table-art::before {
  inset: 16% -18% -65%;
}

.table-art::after {
  inset: 28% -8% -48%;
}

.table-line {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 54px;
  height: 8px;
  border-radius: 99px;
  background: var(--acid);
}

.playing-card {
  position: absolute;
  top: 49%;
  left: 50%;
  display: flex;
  width: 112px;
  aspect-ratio: 0.7;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.card-front {
  color: #17251f;
  background: #fffdf8;
}

.card-back {
  align-items: center;
  justify-content: center;
  color: var(--acid);
  background:
    linear-gradient(135deg, transparent 45%, rgba(216, 255, 114, 0.22) 45% 55%, transparent 55%) 0 0 / 20px 20px,
    #285d4a;
  font-size: 1.7rem;
  font-weight: 850;
  transform: translate(-128%, -44%) rotate(-17deg);
}

.card-front .card-rank {
  font-size: 1.7rem;
  font-weight: 820;
  line-height: 1;
}

.card-front .card-suit {
  align-self: flex-end;
  font-size: 2.35rem;
  line-height: 1;
}

.card-front .red {
  color: var(--coral);
}

.card-ace {
  z-index: 2;
  transform: translate(-55%, -56%) rotate(-4deg);
}

.card-eight {
  z-index: 3;
  transform: translate(22%, -41%) rotate(10deg);
}

.table-caption {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.game-card-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 30px 26px 28px;
}

.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #37604d;
  letter-spacing: 0.1em;
}

.availability span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6e9d35;
  box-shadow: 0 0 0 4px rgba(110, 157, 53, 0.14);
}

.game-card h2 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 8vw, 3.35rem);
  font-weight: 760;
  letter-spacing: -0.05em;
  line-height: 1;
}

.game-card-content > p:not(.availability, .privacy-note) {
  max-width: 520px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.primary-action {
  gap: 16px;
  min-height: 54px;
  margin-top: 24px;
  padding: 0 22px;
  color: var(--acid);
  background: var(--forest);
  box-shadow: 0 12px 28px rgba(16, 38, 30, 0.2);
}

.primary-action span {
  font-size: 1.15em;
}

.privacy-note {
  margin: 15px 0 0;
  color: #6a756f;
  font-size: 0.76rem;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 25px 32px;
  border-top: 1px solid var(--line);
  color: #5b6761;
  font-size: 0.78rem;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 760;
}

.header-action:hover,
.primary-action:hover {
  transform: translateY(-2px);
}

.header-action:hover {
  background: var(--surface);
  box-shadow: 0 10px 25px rgba(20, 35, 29, 0.09);
}

.primary-action:hover {
  background: var(--forest-soft);
  box-shadow: 0 15px 32px rgba(16, 38, 30, 0.27);
}

a:focus-visible {
  outline: 3px solid #6d9130;
  outline-offset: 4px;
}

.error-page {
  display: flex;
  flex-direction: column;
}

.error-main {
  display: flex;
  width: min(100% - 32px, 680px);
  min-height: calc(100dvh - 112px);
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding-block: 48px 88px;
}

.error-code {
  color: #557064;
}

.error-main h1 {
  margin: 16px 0;
  font-size: clamp(2.6rem, 11vw, 5.8rem);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 0.96;
  text-wrap: balance;
}

.error-main > p:not(.error-code) {
  max-width: 520px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (min-width: 760px) {
  .site-header,
  .site-footer,
  .hero {
    width: min(100% - 64px, 1120px);
  }

  .site-header {
    min-height: 104px;
  }

  .game-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  }

  .table-art {
    min-height: 500px;
  }

  .game-card-content {
    justify-content: center;
    padding: 52px 44px;
  }

  .playing-card {
    width: 130px;
  }
}

@media (max-width: 420px) {
  .site-header,
  .site-footer,
  .hero {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    min-height: 76px;
  }

  .header-action {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 0.78rem;
  }

  .wordmark {
    gap: 8px;
    font-size: 1rem;
  }

  .wordmark-mark {
    width: 31px;
    height: 31px;
  }

  .hero {
    gap: 40px;
    padding-block: 42px 58px;
  }

  .table-art {
    min-height: 286px;
  }

  .playing-card {
    width: 94px;
    padding: 12px;
  }

  .game-card-content {
    padding: 26px 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
