/* JazzSAMBA demo — mid-century Jazz Samba / Olga Albizu inspired theme */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  /* Design tokens (1962 Jazz Samba cover) */
  --bg-main: #faf8f5;
  --bg-card: #ffffff;
  --text-primary: #1c1315;
  --text-muted: #524548;
  --brand-primary: #e54133;
  --brand-deep: #c81d1a;
  --accent-gold: #efa838;
  --border-subtle: #ebe6df;

  /* Soft fills for chips / hovers */
  --gold-soft: #f8e9c8;
  --vermilion-soft: #f8ddd8;

  /* Legacy aliases used across page CSS */
  --bg: var(--bg-main);
  --bg-elevated: var(--bg-card);
  --ink: var(--text-primary);
  --ink-muted: var(--text-muted);
  --accent: var(--brand-primary);
  --accent-hover: var(--brand-deep);
  --sea: var(--brand-primary);
  --sea-soft: var(--vermilion-soft);
  --sand: var(--border-subtle);
  --rule: var(--border-subtle);
  --async: #8a5a12;
  --sync: var(--brand-deep);

  --radius: 7px;
  --font-display: "Playfair Display", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --max: 1080px;
  --nav-h: 4rem;
  --shadow: 0 6px 18px rgba(28, 19, 21, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 70% 45% at 8% -8%, rgba(239, 168, 56, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(229, 65, 51, 0.1), transparent 50%),
    var(--bg-main);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

h1,
h2,
h3,
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.15rem);
  margin: 0 0 0.55rem;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.muted {
  color: var(--text-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(250, 248, 245, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.3rem;
  color: var(--text-primary);
  text-decoration: none;
}

.brand span {
  color: var(--brand-primary);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--brand-primary);
  color: var(--brand-deep);
  background: var(--vermilion-soft);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text-primary);
  border-bottom-color: var(--brand-primary);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.35rem 0 0.15rem;
    border-top: 1px solid var(--border-subtle);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.35rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav a[aria-current="page"] {
    border-bottom-color: var(--brand-primary);
  }

  .site-header-inner {
    flex-direction: row;
    align-items: center;
  }
}

.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer-line {
  margin: 0;
}

.site-footer-note {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--bg-main);
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: var(--bg-main);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-ghost {
  background: var(--gold-soft);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--accent-gold);
  color: var(--text-primary);
}

.chip {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.chip-async {
  background: var(--accent-gold);
  color: var(--text-primary);
}

.chip-sync {
  background: var(--vermilion-soft);
  color: var(--brand-deep);
  border: 1px solid rgba(200, 29, 26, 0.18);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--text-primary);
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 2rem;
}

.section {
  margin: 2.75rem 0;
}

.section-rule {
  height: 1px;
  background: var(--border-subtle);
  border: 0;
  margin: 2.5rem 0;
}

.placeholder-box {
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg-card);
  color: var(--text-muted);
}
