/* Cozy Games Corner — public site styles.
   Tokens mirror frontend/src/styles/base.css so these pages feel like the
   app. Fonts are system stacks on purpose: the whole folder is embedded in
   cosygames.exe and must not reach out to a font CDN — a privacy policy
   that phones home to Google Fonts is not a great look. */
:root {
  --paper: #f7efe0;
  --card: #efe3cd;
  --card-deep: #e4d6bc;
  --ink: #3a2e26;
  --ink-70: rgba(58, 46, 38, 0.7);
  --ink-55: rgba(58, 46, 38, 0.55);
  --ink-22: rgba(58, 46, 38, 0.22);
  --accent: #b5623f;
  --accent-deep: #8f4a2e;
  --hero-from: #e0a659;
  --hero-to: #d4913f;
  --sage: #7a876c;
  --cream-text: #f7efe0;

  --font-sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'Space Mono', ui-monospace, 'Cascadia Mono', monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(90% 60% at 50% 0%, #f3e7cf 0%, #e7dcc7 55%, #ddd1ba 100%);
  background-attachment: fixed;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* ── Header ───────────────────────────────────────────────────────── */

.masthead {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.5rem;
}

.masthead img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(58, 46, 38, 0.18);
}

.masthead .name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
}

.masthead .tag {
  font-size: 0.87rem;
  color: var(--ink-55);
}

/* ── Cards & type ─────────────────────────────────────────────────── */

.card {
  background: var(--card);
  border: 1px solid var(--ink-22);
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 2px 14px rgba(58, 46, 38, 0.07);
}

.card + .card {
  margin-top: 1.1rem;
}

h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.4rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.9rem 0 0.5rem;
}

h2:first-of-type {
  margin-top: 0.6rem;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.3rem 0 0.3rem;
}

p {
  margin: 0 0 0.85rem;
}

ul {
  margin: 0 0 0.9rem;
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-deep);
}

strong {
  font-weight: 700;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--card-deep);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

.lede {
  font-size: 1.05rem;
  color: var(--ink-70);
  margin-bottom: 1.4rem;
}

.updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-55);
  margin-bottom: 1.6rem;
}

/* Pull-out for the one thing we most want people to read. */
.note {
  background: var(--card-deep);
  border-left: 3px solid var(--sage);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.2rem;
  color: var(--ink-70);
  font-size: 0.95rem;
}

.note p:last-child {
  margin-bottom: 0;
}

/* ── Home ─────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(150deg, var(--hero-from), var(--hero-to));
  border: none;
  color: #5a3c1c;
  text-align: center;
  padding: 2.4rem 1.5rem;
}

.hero h1 {
  color: #2c1e0e;
  font-size: 2.3rem;
}

.hero p {
  margin: 0;
  color: #5a3c1c;
  font-size: 1.05rem;
}

.games {
  list-style: none;
  margin: 0;
  padding: 0;
}

.games li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ink-22);
  margin: 0;
}

.games li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.games .title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.games .tagline {
  font-size: 0.92rem;
  color: var(--ink-55);
}

.pill {
  display: inline-block;
  background: var(--sage);
  color: var(--cream-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  vertical-align: 2px;
  margin-left: 0.4rem;
}

/* ── Footer ───────────────────────────────────────────────────────── */

.footer {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ink-22);
  font-size: 0.87rem;
  color: var(--ink-55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  align-items: center;
}

.footer a {
  color: var(--ink-70);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer .spacer {
  margin-left: auto;
}

@media (max-width: 30rem) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 1.4rem 1rem 2.5rem;
  }
  .card {
    padding: 1.25rem 1.1rem;
  }
  h1 {
    font-size: 1.6rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .footer .spacer {
    margin-left: 0;
  }
}
