@import url("./palette.css");

:root {
  color-scheme: dark;
  font: 100%/1.55 system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

body {
  margin: 0;
  padding: clamp(1.25rem, 5vw, 4rem);
  background: radial-gradient(ellipse at 65% 0%, var(--panel-raised), transparent 68%);
}

.home-shell {
  max-width: 75rem;
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  min-height: 32rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 1.5rem;
  background: var(--panel);
}

.hero-copy {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.75rem, 5vw, 4.5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
.wordmark {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(3.25rem, 7.5vw, 7.5rem);
  font-size: clamp(2.6rem, 19cqw, 7.5rem);
  letter-spacing: -0.075em;
  line-height: 1;
}

.hero h1 span,
.wordmark span {
  color: var(--accent);
}

.intro {
  max-width: 27ch;
  margin: 1.35rem 0 1.75rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
}

.primary-action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.7rem 1.65rem;
  border: 0;
  border-radius: 0.55rem;
  background: var(--primary);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.primary-action:hover {
  background: var(--primary-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.guest-note {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 1.04;
  object-fit: cover;
  object-position: center 54%;
  background: var(--panel);
}

.how-to-play {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3.8vw, 3rem);
  margin-block-start: 1.75rem;
  padding: 1.5rem 0.5rem 0;
  border-top: 1px solid var(--rule);
}

.how-to-play h2,
.how-to-play h3,
.how-to-play p {
  margin: 0;
}

.how-to-play h2 {
  color: var(--accent);
  font: 1.5rem/1.25 Georgia, serif;
}

.how-to-play h3 {
  font-size: 1rem;
}

.how-to-play p {
  margin-block-start: 0.35rem;
  color: var(--muted);
}

.setup-shell {
  box-sizing: border-box;
  max-width: 30rem;
  margin: clamp(1rem, 5vh, 3rem) auto;
  padding: clamp(1.5rem, 7vw, 2.75rem);
  border: 1px solid var(--rule);
  border-radius: 1.5rem;
  background: var(--panel);
}

.wordmark {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.2em;
}

.setup-shell h1 {
  font-size: clamp(2.2rem, 6vw, 3rem);
  line-height: 1.1;
}

.setup-shell p {
  margin: 0.65rem 0 1.25rem;
  color: var(--muted);
}

.mode-options {
  min-width: 0;
  margin: 0 0 1.35rem;
  padding: 0;
  border: 0;
}

.mode-options legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-weight: 650;
}

.mode-options label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.35rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  cursor: pointer;
}

.mode-options label:has(input:checked) {
  border-color: var(--accent);
  background: var(--canvas);
}

.mode-options input {
  margin: 0;
  accent-color: var(--accent);
}

.errorlist {
  color: var(--lie);
}

@media (max-width: 46rem) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding-block: 2.2rem;
  }

  .hero-image {
    height: clamp(13rem, 52vw, 22rem);
    aspect-ratio: auto;
  }

  .how-to-play {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 22rem) {
  .hero h1 {
    font-size: 2.6rem;
  }
}
