/* ==========================================================================
   GnamSpace — flat site design system (2026 pastel refresh)
   Fonts: Outfit (body) via Google Fonts + Gambarino (display serif).
   Shared by the home and every layout.php page.
   ========================================================================== */

:root {
  /* Ink / text */
  --ink:        #22302a;   /* headings, primary text */
  --ink-faded:  #47544e;   /* softened black for de-emphasised heading words */
  --ink-soft:   #566259;   /* body text */
  --ink-mute:   #8a938c;   /* captions, meta */

  /* Surfaces */
  --paper:      #fbfaf6;   /* page background (soft warm white) */
  --surface:    #ffffff;   /* cards */
  --line:       #ebe8df;   /* hairline borders */
  --line-soft:  #f1efe8;

  /* Brand accent (GnamSpace terracotta red) */
  --accent:     #c3492e;
  --accent-ink: #9e3820;   /* hover / pressed */
  --accent-soft:#fbe8e1;   /* pastel red tint */

  /* Pastel decoratives (section washes + chips) */
  --mint:   #e6f2ea;
  --peach:  #fbe8db;
  --sky:    #e5edf6;
  --butter: #f8f0da;
  --lilac:  #ece6f5;
  --blush:  #f8e7e7;

  /* Shape + depth */
  --radius:    16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(34,48,42,.05);
  --shadow:    0 8px 30px -12px rgba(34,48,42,.16);
  --shadow-lg: 0 24px 60px -24px rgba(34,48,42,.22);

  /* Type pairing: Nunito (headings + UI) + Lora (body copy). */
  --serif: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans:  'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body:  'Lora', Georgia, 'Times New Roman', serif;

  /* Aliases so the shared navbar CSS (from style.css) resolves on the home too. */
  --terracotta:      var(--accent);
  --terracotta-deep: var(--accent-ink);
  --cream:           #f6f2ea;
  --cream-deep:      var(--line);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* — Headings: Gambarino serif — */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(40px, 6vw, 74px); line-height: 1.0; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
h3 { font-size: clamp(21px, 2.4vw, 28px); }
em, .italic { font-style: normal; color: var(--ink-faded); }

p { margin: 0 0 1em; }

/* — Layout — */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section-sm { padding: 60px 0; }
.center { text-align: center; }

/* — Eyebrow / tags — */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
}

/* — Buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 500; font-size: 16px;
  padding: 15px 26px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; transition: all .16s ease;
  line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 18px 32px; font-size: 17px; }

/* — Cards — */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* — Pastel section washes — */
.bg-mint   { background: var(--mint); }
.bg-peach  { background: var(--peach); }
.bg-sky    { background: var(--sky); }
.bg-butter { background: var(--butter); }
.bg-lilac  { background: var(--lilac); }
.bg-surface{ background: var(--surface); }

/* — Reveal on scroll — */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
