/* 7 Hearts Games — shared site styles */

:root {
  --cream: #FAF6F0;
  --cream-2: #F1E9DE;
  --coral: #D63A44;
  --coral-deep: #B02E37;
  --ink: #1C1A22;
  --ink-soft: #5A5560;
  --line: #E6DED3;
  --card: #FFFFFF;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #17151C;
    --cream-2: #221F29;
    --coral: #FF6B74;
    --coral-deep: #FF8A91;
    --ink: #F4EFE8;
    --ink-soft: #B5AEBE;
    --line: #332F3B;
    --card: #1E1B24;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--coral-deep); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 960px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 680px; }

/* header */
.site-header { padding-block: 20px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: block; line-height: 0; }
.brand img { width: 138px; height: 56px; image-rendering: pixelated; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--coral-deep); }

/* type */
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-family: var(--pixel); font-weight: 400; font-size: 24px; line-height: 1.5; }
@media (min-width: 760px) { h1 { font-size: 40px; } }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
.section-title { font-family: var(--pixel); font-weight: 400; font-size: 16px; line-height: 1.5; }

/* hero */
.hero { padding-block: 56px 40px; }
.hero p { font-size: 20px; color: var(--ink-soft); max-width: 48ch; margin: 20px 0 0; }

section { padding-block: 40px; }
.section-title { margin-bottom: 20px; }

/* games */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.game { background: var(--card); border: 2px solid var(--line); border-radius: 4px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.game p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.game .links { margin-top: auto; display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.badge { align-self: flex-start; font-family: var(--pixel); font-size: 8px; line-height: 1.6; letter-spacing: .04em; text-transform: uppercase; background: var(--cream-2); color: var(--coral-deep); border-radius: 2px; padding: 6px 10px; }


/* documents (privacy, support) */
.doc { padding-block: 32px 48px; }
.doc h1 { font-size: 24px; margin-bottom: 14px; }
.doc .updated { color: var(--ink-soft); margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc li { margin-block: 4px; }
.callout { background: var(--card); border: 2px solid var(--line); border-left: 6px solid var(--coral); border-radius: 4px; padding: 16px 20px; }
.callout p { margin: 0; }

.email { font-weight: 700; user-select: all; }

/* footer */
.site-footer { border-top: 2px solid var(--line); margin-top: 24px; padding-block: 28px; color: var(--ink-soft); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }
