/* ============================================================
   RetroGameDev — "Sunny Cream" warm nostalgia theme
   Plain CSS, no build step. Warm red + cream + aqua + golden light.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700&display=swap');

:root {
  --red:      #d83a2f;
  --red-dk:   #b5271d;
  --cream:    #f7efdb;
  --ink:      #3a2b22;
  --ink-soft: #6b5546;
  --teal:     #1f9b91;
  --teal-dk:  #147068;
  --gold:     #f0a23e;
  --coral:    #f0795a;
  --leaf:     #5fae5f;
  --card:     #fffaf0;
  --line:     rgba(180,120,60,.28);

  --font-pixel: 'Silkscreen', monospace;
  --font-head:  'Fredoka', sans-serif;
  --font-body:  'Nunito', sans-serif;

  --maxw: 1000px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 70% at 50% -10%, #fff4d6 0%, #fdeccb 30%, transparent 70%),
    linear-gradient(180deg, #fdf3e3 0%, #fbe9cf 100%);
  background-attachment: fixed;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
main { flex: 1 0 auto; }
section { padding: 56px 0; }
/* offset in-page anchor jumps so the sticky header doesn't cover the target */
:target, #products { scroll-margin-top: 42px; }
.center { text-align: center; }
.dim { color: var(--ink-soft); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 18px; }
h1 { font-weight: 700; font-size: clamp(30px, 5vw, 52px); text-shadow: 0 2px 0 #fff; }
h2 { font-weight: 600; font-size: clamp(22px, 3vw, 32px); }
h3 { font-weight: 600; font-size: 19px; margin-bottom: 10px; }
p { margin: 0 0 16px; }
a { color: var(--teal-dk); text-decoration-color: var(--teal); }
a:hover { color: var(--red); }

/* ---------- logo wordmark (stand-in for logo.png) ---------- */
.logo-fallback {
  display: inline-block; background: var(--red); color: var(--cream);
  font-family: var(--font-pixel); font-weight: 700; letter-spacing: 1px;
  padding: 8px 11px 6px; border-radius: 9px; border: 2px solid #fff;
  box-shadow: 3px 3px rgba(150,40,30,.3); text-shadow: 1px 1px rgba(0,0,0,.2);
}

/* big hero version of the wordmark */
.logo-hero {
  display: inline-block; background: var(--red); border-radius: 18px;
  padding: 18px 28px 14px; border: 4px solid #fff;
  box-shadow: 8px 8px rgba(150,40,30,.32); margin-bottom: 30px;
}
.logo-hero span { display: block; font-family: var(--font-head); font-weight: 700;
  color: var(--cream); line-height: 1.05; text-shadow: 2px 2px rgba(0,0,0,.2); }
.logo-hero .l1 { font-size: clamp(30px, 6vw, 56px); }
.logo-hero .l2 { font-size: clamp(22px, 4.4vw, 40px); margin-top: 8px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,243,227,.85); backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: flex-end; padding: 12px 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--ink); }
.brand:hover { color: var(--red); }
.nav { display: flex; gap: 24px; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: 17px; text-decoration: none; color: var(--ink-soft); }
.nav a:hover, .nav a.active { color: var(--red); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 42px 0 52px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: conic-gradient(from 200deg at 62% -5%,
    rgba(255,221,150,0) 0deg, rgba(255,221,150,.4) 18deg, rgba(255,221,150,0) 36deg,
    rgba(255,221,150,.3) 54deg, rgba(255,221,150,0) 72deg); }
.hero > .wrap { position: relative; z-index: 1; }
.hero .tagline { font-weight: 600; font-size: clamp(17px, 2.3vw, 22px); color: var(--ink-soft);
  max-width: 600px; margin: 0 auto 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 17px;
  text-decoration: none; padding: 13px 26px; border-radius: 14px;
  border: 3px solid var(--red-dk); background: var(--red); color: var(--cream);
  box-shadow: 5px 5px rgba(150,40,30,.32); margin: 6px;
  transition: transform .06s ease, box-shadow .06s ease;
}
.btn:hover { color: var(--cream); transform: translate(2px,2px); box-shadow: 3px 3px rgba(150,40,30,.32); }
.btn.alt, .btn.teal { background: var(--teal); border-color: var(--teal-dk); box-shadow: 5px 5px rgba(20,112,104,.32); }
.btn.alt:hover, .btn.teal:hover { box-shadow: 3px 3px rgba(20,112,104,.32); }
.btn.ghost { background: transparent; color: var(--red-dk); box-shadow: none; }
.btn.ghost:hover { background: rgba(216,58,47,.1); color: var(--red-dk); transform: none; }

/* ---------- panels / cards ---------- */
.panel { background: var(--card); border: 3px solid #fff; border-radius: 18px;
  padding: 22px; box-shadow: 6px 6px rgba(180,120,60,.2); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card { display: flex; flex-direction: column; text-align: center; }
.card .cover {
  aspect-ratio: 600 / 931; width: 100%; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; padding: 0; overflow: hidden;
  background: var(--card);
}
.card .cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card h3 { min-height: 2.4em; }
.card p { font-size: 16px; color: var(--ink-soft); flex: 1; }
.card .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; align-items: stretch; }
.card .actions .btn { margin: 0; text-align: center; }

.tag { display: inline-block; font-family: var(--font-pixel); font-size: 11px; letter-spacing: 1px;
  color: var(--teal-dk); margin-bottom: 10px; align-self: center; }

/* ---------- testimonials ---------- */
.quotes { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.quote { font-family: var(--font-head); font-weight: 500; font-size: 19px; color: var(--ink);
  background: var(--card); border: 3px solid #fff; border-radius: 16px; padding: 18px;
  box-shadow: 5px 5px rgba(180,120,60,.18); }
.quote::before { content: "\201C"; color: var(--red); font-weight: 700; }
.quote::after  { content: "\201D"; color: var(--red); font-weight: 700; }

/* ---------- download rows ---------- */
.dl-list { display: grid; gap: 16px; }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dl-row .meta h3 { margin-bottom: 2px; }
.dl-row .meta p { margin: 0; font-size: 16px; color: var(--ink-soft); }

/* ---------- book footer link ---------- */
.book-foot { border-top: 3px dashed var(--line); margin-top: 40px; padding-top: 24px;
  text-align: center; font-size: 18px; color: var(--ink-soft); }

/* ---------- site footer ---------- */
.site-footer { border-top: 2px solid var(--line); background: rgba(255,250,240,.5);
  padding: 16px 0; margin-top: 0; font-size: 16px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer a { text-decoration: none; }

/* footer email signup (EmailOctopus embed) — unscoped overrides: EO injects outside our div */
.eo-embed { width: 100%; max-width: 330px; }
.emailoctopus-form-wrapper, .emailoctopus-form, .emailoctopus-form .main-form,
.inline-container, .form-container { margin: 0 !important; padding: 0 !important; background: transparent !important; }
.form-container { margin-top: 12px !important; }
[eo-block-container] { margin: 0 !important; padding: 0 !important; min-height: 0 !important; }
.emailoctopus-success-message, .emailoctopus-error-message { margin: 0 !important; }
.emailoctopus-form .emailoctopus-form-row, .emailoctopus-form .form-group,
.emailoctopus-form input[type="submit"] { margin-bottom: 0 !important; }
.emailoctopus-form input.form-control, .emailoctopus-form input[type="email"] {
  font-family: var(--font-body) !important; border-radius: 10px !important;
  border: 2px solid var(--line) !important; color: var(--ink) !important;
  padding: 7px 11px !important; height: auto !important; line-height: 1.2 !important; }
.emailoctopus-form input[type="submit"], .emailoctopus-form .btn-primary, .emailoctopus-form button {
  background: var(--red) !important; border: 2px solid var(--red-dk) !important; color: #fff !important;
  border-radius: 10px !important; font-family: var(--font-head) !important;
  padding: 7px 16px !important; height: auto !important; box-shadow: 3px 3px rgba(150,40,30,.3) !important; }
.mastfoot, [eo-block="powered-by"] { margin: 2px 0 0 !important; font-size: 11px !important; }
.mastfoot p { margin: 0 !important; }
/* line the input + button up: one row, every wrapper layer locked to 44px, centered */
.emailoctopus-form .main-form { display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: nowrap !important; }
.emailoctopus-form [eo-form-fields-container],
.emailoctopus-form .emailoctopus-form-row,
.emailoctopus-form .form-group {
  flex: 1 1 auto !important; width: 100% !important; height: 44px !important;
  display: flex !important; align-items: center !important; margin: 0 !important; padding: 0 !important; }
.emailoctopus-form input.form-control, .emailoctopus-form input[type="email"],
.emailoctopus-form input[type="submit"], .emailoctopus-form .btn-primary {
  height: 44px !important; box-sizing: border-box !important; margin: 0 !important; vertical-align: middle !important; }
.emailoctopus-form input.form-control, .emailoctopus-form input[type="email"] { width: 100% !important; }

/* ---------- 404 ---------- */
.bigcode { font-family: var(--font-pixel); font-weight: 700; font-size: clamp(28px, 6vw, 52px);
  color: var(--red); text-shadow: 3px 3px rgba(150,40,30,.25); margin: 0 0 18px; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .grid-3, .quotes { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .nav a { font-size: 15px; }
  .brand { font-size: 17px; }
  .site-footer .wrap { justify-content: center; text-align: center; }
}
