:root {
  color-scheme: light;
  --paper: #f7f0e3;
  --paper-high: #fffaf0;
  --paper-low: #eae0d1;
  --ink: #221e18;
  --muted: #6f655a;
  --line: #c8bba8;
  --accent: #b8321e;
  --focus: #006c84;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(34, 30, 24, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 30, 24, 0.018) 1px, transparent 1px);
  background-size: 6px 6px, 8px 8px;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.page-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 1600px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
}

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-inline: clamp(22px, 5vw, 78px);
}

.site-header {
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.site-header p,
footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 29px;
  height: 29px;
  transform: rotate(-8deg);
}

.brand-mark i {
  position: absolute;
  width: 18px;
  height: 25px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.brand-mark i:first-child {
  top: 0;
  left: 1px;
}

.brand-mark i:last-child {
  right: 0;
  bottom: 0;
  border-color: var(--accent);
}

main {
  display: grid;
  min-height: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(24px, 5vw, 96px);
  min-height: 580px;
  padding: clamp(60px, 9vh, 130px) clamp(22px, 7vw, 112px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  animation: arrive 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 6.4vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -0.058em;
  line-height: 0.88;
}

.intro {
  max-width: 470px;
  margin: clamp(28px, 4vw, 46px) 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.55;
}

.play-table {
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 1.12;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 48% 48% 42% 46%;
  background:
    radial-gradient(circle at 54% 46%, rgba(184, 50, 30, 0.08), transparent 39%),
    var(--paper-low);
  box-shadow: inset 0 0 0 14px rgba(255, 250, 240, 0.36);
  transform: rotate(-4deg);
  animation: table-in 900ms 100ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(34, 30, 24, 0.16);
  border-radius: 50%;
}

.orbit-wide {
  inset: 19% 8%;
  transform: rotate(29deg);
}

.orbit-tight {
  inset: 29% 19%;
  border-color: rgba(184, 50, 30, 0.35);
  transform: rotate(-18deg);
}

.piece {
  position: absolute;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 17px 32px rgba(51, 45, 34, 0.18);
}

.piece span {
  width: 30%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.42;
}

.piece-red {
  top: 16%;
  right: 13%;
  width: 29%;
  color: var(--paper-high);
  background: var(--accent);
}

.piece-cream {
  right: 39%;
  bottom: 12%;
  width: 22%;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper-high);
}

.piece-ink {
  top: 25%;
  left: 14%;
  width: 16%;
  color: var(--paper-high);
  background: var(--ink);
}

.table-label {
  position: absolute;
  color: var(--muted);
  font-size: clamp(0.56rem, 0.8vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.2em;
}

.label-one {
  top: 12%;
  left: 43%;
}

.label-two {
  right: 12%;
  bottom: 31%;
  transform: rotate(90deg);
  transform-origin: right center;
}

footer {
  min-height: 72px;
  border-top: 1px solid var(--line);
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

@keyframes table-in {
  from {
    opacity: 0;
    transform: rotate(-9deg) scale(0.94);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 64px;
  }

  .play-table {
    width: min(82vw, 560px);
    justify-self: center;
  }
}

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

  .site-header > p {
    display: none;
  }

  .hero {
    gap: 54px;
    padding-block: 54px 70px;
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 5rem);
  }

  .play-table {
    width: min(94vw, 460px);
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 86px;
  }
}

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