@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --ink: #29231f;
  --muted: #62564e;
  --paper: #f9f4e9;
  --accent: #cd593e;
  --wash: #f3c3ad;
  --line: #d5c6b7;
  font: 16px/1.55 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.would-you-rather-couples { --accent: #a83f64; --wash: #efbfd4; }
.truth-or-dare { --accent: #584898; --wash: #d9cdf4; }
.icebreaker-games { --accent: #226652; --wash: #cbe4ce; }
a { color: inherit; text-underline-offset: .22em; }
h1, h2, .brand { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(3.7rem, 8vw, 8.1rem); line-height: .86; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.03; }
.site-header, footer {
  padding: 1rem clamp(1rem, 6vw, 6rem); display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line);
}
.site-header > a:last-child, footer { font-size: .88rem; }
.brand { font-size: 1.45rem; text-decoration: none; }
.brand span { font-style: italic; }
.hero, .guide, .catalog { max-width: 1440px; margin: auto; padding: clamp(1rem, 5.5vw, 5.75rem); }
.hero { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(1.25rem, 6vw, 6rem); }
.intro { display: grid; gap: 1.3rem; }
.edition, .eyebrow { text-transform: uppercase; letter-spacing: .17em; font-weight: 700; font-size: .73rem; }
.edition { color: var(--muted); }
.description { max-width: 33rem; font-size: 1.08rem; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: .45rem; }
.facts span { border: 1px solid var(--line); padding: .25rem .7rem; border-radius: 2rem; font-size: .8rem; }
.rules-link { width: fit-content; }
.table {
  background: var(--wash); border: 1px solid var(--ink); border-radius: 1.6rem;
  padding: clamp(.8rem, 3vw, 1.7rem); box-shadow: .4rem .4rem 0 var(--ink);
}
.table-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .55rem; font-size: .82rem; font-weight: 700; }
.card {
  position: relative; display: grid; place-content: center; gap: .65rem; min-height: 255px;
  text-align: center; padding: 2rem 1.15rem; border: 1px solid var(--ink); border-radius: 1.05rem;
  background: #fffcf5; overflow-wrap: anywhere;
}
.card-mark { color: var(--accent); font-size: 1.65rem; line-height: 1; }
.card h2 { max-width: 32rem; margin-inline: auto; }
.card p:not(.eyebrow) { color: var(--muted); }
#controls, #settings { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .75rem; }
#controls button { flex: 1 0 auto; }
button, select, input { font: inherit; color: inherit; }
button, select {
  background: transparent; cursor: pointer; border: 1px solid var(--ink);
  min-height: 44px; border-radius: .75rem; padding: .45rem .8rem; font-weight: 700;
}
button:hover, select:hover { background: #fff8; }
button.primary { background: var(--ink); color: white; }
button.primary:hover { background: #443934; }
button.quiet { border-color: transparent; padding: .25rem .45rem; }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #174ea6; outline-offset: 3px; }
.message { min-height: 1.4em; margin-top: .4rem; font-size: .86rem; }
#settings details { width: 100%; padding: .55rem 0 0; }
#settings textarea { width: 100%; font: inherit; padding: .5rem; margin-top: .5rem; }
.guide { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.guide h2 { margin-bottom: 1rem; }
.guide ol { padding-inline-start: 1.3rem; }
.guide li { margin-bottom: .7rem; }
details { padding: .55rem 0; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: .5rem; color: var(--muted); }
footer { border-top: 1px solid var(--line); border-bottom: 0; flex-wrap: wrap; }
.catalog > p { margin: 1.5rem 0; max-width: 44rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.catalog-card { display: grid; gap: .55rem; text-decoration: none; background: var(--wash); border: 1px solid var(--ink); padding: 1.5rem; border-radius: 1rem; }
.catalog-card:hover strong { text-decoration: underline; }
@media (max-width: 800px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 1.1rem; }
  .intro { gap: .55rem; }
  .intro h1 { font-size: clamp(2.65rem, 10vw, 4rem); line-height: .98; }
  .intro .description { font-size: .92rem; }
  .intro .rules-link { display: none; }
  .card { min-height: 205px; padding: 1.05rem .85rem; }
  .guide { margin-top: 1.25rem; }
}
@media (max-width: 540px) { .guide, .catalog-grid { grid-template-columns: 1fr; } }
