/* Spanish My Way — shared stylesheet
   Same layout system as the ScoreIt / GrillIt / BookIt / PrayIt / RememberIt sites; colors from
   the Spanish My Way icon (green "¿Qué?" bubble, red "¡Sí!" bubble, warm cream). Token names
   (--ember, --flame) are kept from the GrillIt stylesheet so page styles copy across. */

@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,500;0,700;0,800;1,500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
  --ink:         #1C1A17;
  --ink-muted:   #645E57;
  --char-deep:   #0E3D27;   /* deep green */
  --ember:       #157A48;   /* accent green (the ¿Qué? bubble) */
  --ember-pale:  #E2F2E8;
  --flame:       #D22B3B;   /* red (the ¡Sí! bubble) */
  --flame-light: #FBE5E6;
  --ground:      #FBF6EE;   /* warm cream, like the icon */
  --surface:     #FFFFFF;
  --border:      #E9E1D4;
  --nav-bg:      #0E3D27;
  --nav-text:    #C3D8CB;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(14,61,39,.10);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:         #F1EEE9;
    --ink-muted:   #B0A89D;
    --char-deep:   #0A2C1C;
    --ember:       #5CC28A;
    --ember-pale:  #17301F;
    --flame:       #F0636F;
    --flame-light: #3A1A1D;
    --ground:      #121510;
    --surface:     #1B201A;
    --border:      #2E352B;
    --nav-bg:      #08190F;
    --nav-text:    #9CB2A4;
    --shadow:      0 2px 16px rgba(0,0,0,.45);
  }
}

:root[data-theme="dark"] {
  --ink:         #F1EEE9;
  --ink-muted:   #B0A89D;
  --char-deep:   #0A2C1C;
  --ember:       #5CC28A;
  --ember-pale:  #17301F;
  --flame:       #F0636F;
  --flame-light: #3A1A1D;
  --ground:      #121510;
  --surface:     #1B201A;
  --border:      #2E352B;
  --nav-bg:      #08190F;
  --nav-text:    #9CB2A4;
  --shadow:      0 2px 16px rgba(0,0,0,.45);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Bitter', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--ink);
}

a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 2px; }

p { max-width: 62ch; }
p + p { margin-top: .9em; }

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: 'Bitter', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }

.nav-logo-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: var(--nav-text);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #FFFFFF;
  background: rgba(255,255,255,.08);
}

.nav-cta {
  background: var(--ember) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 7px 16px !important;
}
.nav-cta:hover { background: #10603A !important; }

/* ── Page wrapper ── */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.18); text-decoration: none; }
.btn:active { transform: none; }

.btn-primary {
  background: var(--ember);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--ember-pale); }

/* ── Footer ── */
.site-footer {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 40px 28px;
  margin-top: 80px;
  font-size: .88rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  flex-wrap: wrap;
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer-links a {
  color: var(--nav-text);
  font-size: .88rem;
}
.footer-links a:hover { color: #fff; }

/* ── Utilities ── */
.eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ember);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: .4em;
  margin-bottom: 1.1em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* ── Responsive nav ── */
@media (max-width: 640px) {
  .nav-links li:not(:last-child) { display: none; }
  .nav-inner { padding: 0 16px; }
  .page-content { padding: 0 16px 60px; }
}
