@font-face {
  font-family: Geist;
  src: url(/assets/geist.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #14100e;
  --ink: #fff2e7;
  --muted: #d6bbae;
  --peach: #ffd0b6;
  --line: #ffffff29;
  font-family: Geist, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); }
a { color: inherit; text-underline-offset: .3em; }
a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 3px solid #ac581d; outline-offset: 4px; }
.masthead, main { width: min(100% - 3rem, 65rem); margin-inline: auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.home-link { text-decoration: none; font-weight: 640; }
.home-link span { margin-right: .4rem; color: var(--peach); }
.home-link:hover { color: var(--peach); }
.eyebrow, .masthead-label { margin: 0; font: 650 .75rem/1.5 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.masthead-label { color: var(--muted); }
.opening { position: relative; display: grid; align-items: end; min-height: 22rem; margin: 1.3rem 0; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: 1rem; background: #291911; }
.opening img, .opening::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.opening img { object-fit: cover; object-position: center 46%; z-index: -2; }
.opening::after { content: ""; z-index: -1; background: linear-gradient(90deg, #160d0bed 0%, #160d0b91 36%, #160d0b10 72%), linear-gradient(0deg, #160d0b85 0%, transparent 60%); }
.intro { padding: clamp(1.4rem, 4vw, 3.25rem); }
.intro .eyebrow, h1 span { color: var(--peach); }
h1 { margin: .55rem 0 .9rem; font-size: clamp(3.4rem, 7.6vw, 6.7rem); font-weight: 670; letter-spacing: -.075em; line-height: .87; }
.deck { margin: 0; max-width: 26ch; color: var(--ink); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.4; }

.game { background: #fff5e9; color: #2d1b15; color-scheme: light; border-radius: 1rem; padding: clamp(1.35rem, 4vw, 3rem); }
.game .eyebrow { color: #83452d; }
.game h2 { margin: .65rem 0 .55rem; font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 620; letter-spacing: -.055em; line-height: 1.06; }
.game h2:focus { outline: none; }
.game p { line-height: 1.52; }
.game form { margin-top: .9rem; }
.game label { display: block; margin-bottom: .45rem; font-weight: 650; }
.game textarea { display: block; min-height: 5.25rem; width: min(100%, 40rem); resize: vertical; border: 1px solid #a88474; border-radius: .55rem; background: #fffcf7; color: inherit; padding: .7rem .8rem; font: inherit; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
button { border: 1px solid #2d1b15; border-radius: 2rem; background: #2d1b15; color: #fff9f3; cursor: pointer; font: inherit; font-weight: 630; padding: .65rem .9rem; min-height: 44px; }
button:hover { background: #533125; }
button.secondary { background: transparent; color: #2d1b15; border-color: #a88474; }
button.secondary:hover { background: #f5e0cf; }
button.exit { margin-top: .85rem; padding: .2rem 0; border: 0; border-radius: .25rem; background: none; color: #754632; text-decoration: underline; text-underline-offset: .2em; font-size: .9rem; }
.answer { margin: 1rem 0 0; padding-left: .9rem; border-left: 2px solid #b87250; max-width: 38rem; }
.answer figcaption { font-weight: 650; }
.answer blockquote { margin: .25rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
footer { display: flex; justify-content: space-between; align-items: start; gap: .8rem 2rem; margin: 1.1rem 0 2rem; color: var(--muted); font-size: .9rem; line-height: 1.5; }
footer p { max-width: 55ch; margin: 0; }
footer a { flex: none; }
footer a:hover { color: var(--peach); }
@media (max-width: 610px) {
  .masthead, main { width: min(100% - 1.5rem, 65rem); }
  .opening { min-height: 19rem; }
  .opening img { object-position: 61% center; }
  .opening::after { background: linear-gradient(90deg, #160d0be0 0%, #160d0b55 76%), linear-gradient(0deg, #160d0ba9 0%, transparent 80%); }
  footer { flex-direction: column; }
}
