/* playaduet.com — the house page.
   Shares Lock & Letter's ink/paper/brass tokens so the two read as family,
   but stays self-contained: nothing here loads the game's 86kb stylesheet. */

:root {
  color-scheme: light;
  --ink: #19242b;
  --ink-deep: #0f171c;
  --muted: #5c6970;
  --paper: #fbf7ef;
  --paper-strong: #fffdf7;
  --line: #cfd8d7;
  --teal: #1f685b;
  --brass: #b46f2a;
  --coral: #b95248;
  --shadow: 0 18px 60px rgba(25, 36, 43, 0.13);
  --soft-shadow: 0 10px 28px rgba(25, 36, 43, 0.1);
  --radius: 8px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper-strong);
  z-index: 10;
}
.skip-link:focus {
  left: 0;
}

/* ---------- masthead ---------- */

.masthead {
  padding: clamp(1.4rem, 3vw, 2.2rem) var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark svg {
  width: 44px;
  height: 26px;
}

.ring {
  fill: none;
  stroke-width: 2;
}
.ring-ink {
  stroke: var(--ink);
}
.ring-brass {
  stroke: var(--brass);
}

.brand-word {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  margin: 0 var(--gutter);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-deep);
  box-shadow: var(--shadow);
  min-height: clamp(24rem, 52vw, 34rem);
  display: grid;
  place-items: center;
}

.hero-art {
  position: absolute;
  inset: 0;
}

.hero-art svg {
  width: 100%;
  height: 100%;
}

/* Scrim so the headline never depends on the art's luminance. */
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  color: var(--paper-strong);
  background: radial-gradient(
    ellipse at center,
    rgba(15, 23, 28, 0.72) 0%,
    rgba(15, 23, 28, 0.45) 60%,
    rgba(15, 23, 28, 0) 100%
  );
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.lede {
  margin: 1rem auto 1.9rem;
  max-width: 26rem;
  color: #d6dde1;
  font-size: 1.02rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: var(--soft-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.cta-arrow {
  transition: transform 0.18s ease;
}
.cta:hover .cta-arrow {
  transform: translateX(3px);
}

/* ---------- the facts ---------- */

/* Capped and padded in the same order as .shelf below — max-width on the
   section, gutter inside it — so the facts share a left edge with "The games"
   and the cards. Capping the <ul> instead insets it by one gutter less. */
.facts {
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 0;
  max-width: 66rem;
  margin: 0 auto;
}

.facts ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-art svg {
  width: 48px;
  height: 32px;
  margin-bottom: 0.9rem;
}

.fact-art .stroke {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.facts h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.22rem;
}

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

/* ---------- the shelf ---------- */

.shelf {
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) 0;
  max-width: 66rem;
  margin: 0 auto;
}

.shelf-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.75rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.shelf-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.game {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 1.9rem);
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

a.game:hover {
  transform: translateY(-3px);
  border-color: #b9c5c4;
  box-shadow: var(--soft-shadow);
}

.game-art svg {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.game-body {
  display: block;
}

.game-kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.45rem;
}

.game-name {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.game-blurb {
  display: block;
  color: var(--muted);
  max-width: 34rem;
}

.game-meta {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.game-go {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--teal);
}

a.game:hover .game-go span {
  display: inline-block;
  transform: translateX(3px);
}

.game.is-empty {
  background: transparent;
  border-style: dashed;
  opacity: 0.72;
}

.game.is-empty .game-kicker {
  color: var(--muted);
}

/* ---------- colophon ---------- */

.colophon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  color: var(--muted);
}

.colophon-mark svg {
  width: 36px;
  height: 22px;
  opacity: 0.65;
}

.colophon p {
  margin: 0;
  font-family: var(--display);
  font-size: 0.95rem;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .facts ul {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 30rem;
  }

  .game,
  .game.is-empty {
    grid-template-columns: 1fr;
  }
}

/* Below this width the hero splits: art band on top, copy on solid ink.
   Legibility stops depending on where the art happens to be bright. */
@media (max-width: 760px) {
  .hero {
    display: block;
    min-height: 0;
  }

  .hero-art {
    position: relative;
    height: 15rem;
  }

  .hero-copy {
    max-width: none;
    background: var(--ink-deep);
    text-align: left;
    padding: 1.75rem var(--gutter) 2.25rem;
  }

  .lede {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
