:root {
  --paper: #eef3f1;
  --ink: #132820;
  --muted: #345044;
  --rule: #c9d7d0;
  --felt: #16352c;
  --felt-ink: #f3f6f4;
  --card: #f7f6f2;
  --suit-red: #8e1e24;
  --focus: #0c5c48;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121a16;
    --ink: #e6f0ea;
    --muted: #c5d5cc;
    --rule: #2c4036;
    --felt: #10261f;
    --felt-ink: #f3f6f4;
    --card: #f7f6f2;
    --suit-red: #8e1e24;
    --focus: #9ed4be;
    color-scheme: dark;
  }
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 2;
}

.skip:focus {
  transform: none;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.1rem 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.top a {
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.wordmark {
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.hero {
  background: var(--felt);
  color: var(--felt-ink);
}

.hero-inner {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.75rem;
  display: grid;
  gap: 2rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.subtitle {
  margin: 0.45rem 0 0;
  font-size: 1.35rem;
  line-height: 1.3;
}

.platform {
  margin: 0.35rem 0 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: #d5e4dc;
}

.promo {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.25rem, 2.4vw, 1.45rem);
  line-height: 1.4;
}

.deal {
  margin: 0;
  background: var(--card);
  color: #1a2420;
  padding: 1.15rem 1.2rem 1rem;
  overflow: hidden;
}

.deal figcaption {
  margin: 0.85rem 0 0;
  color: #345044;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

.hands {
  display: grid;
  gap: 0.85rem;
}

.hand {
  width: max-content;
  max-width: 100%;
}

.hand p {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.seat {
  margin-bottom: 0.2rem;
  font-weight: 600;
  white-space: nowrap;
}

.seat span {
  font-weight: 500;
  color: #345044;
}

.red {
  color: var(--suit-red);
}

.visually {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.void {
  display: none;
}

.sheet {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.25rem 0 2.5rem;
}

.sheet h2,
.sheet p,
.sheet li,
.note {
  max-width: 38rem;
}

.sheet h2 {
  margin: 2.1rem 0 0.55rem;
  font-size: 1.4rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sheet h2:first-child {
  margin-top: 0;
}

.sheet p,
.sheet li {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.sheet ul {
  margin: 0.2rem 0 0.75rem;
  padding-left: 1.2rem;
}

.sheet li {
  margin: 0.35rem 0;
}

.note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1rem;
}

.site-footer {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.95fr);
    align-items: end;
  }

  .hands {
    grid-template-columns: max-content max-content max-content;
    justify-content: center;
    column-gap: 1.35rem;
    grid-template-areas:
      ". north ."
      "west void east"
      ". south .";
    align-items: center;
  }

  .north { grid-area: north; justify-self: center; }
  .west { grid-area: west; justify-self: end; }
  .east { grid-area: east; justify-self: start; }
  .south { grid-area: south; justify-self: center; }

  .void {
    display: block;
    grid-area: void;
    width: 1.5rem;
  }
}

@media (max-width: 40rem) {
  .top,
  .hero-inner,
  .sheet,
  .site-footer {
    width: min(68rem, calc(100% - 2rem));
  }
}

@media print {
  .skip,
  .top {
    display: none;
  }

  .hero {
    background: white;
    color: black;
  }

  .deal {
    border: 1px solid #ccc;
  }
}
