/* ============================================================
   tea.gratis — page-level helpers (header, footer, common)
   Site-level styles shared by all pages. Site components in components.css.
   ============================================================ */

html, body { margin: 0; padding: 0; background: var(--bg, #F5EFE0); color: var(--ink, #14110D); font-family: var(--font-sans); }
body { font-feature-settings: "ss01", "ss02", "kern"; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }

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

/* Tiny utilities used inline frequently */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.align-c { align-items: center; }
.justify-sb { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

/* Header (replaces React Header) */
.g-hdr-static {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
  padding: 14px 24px;
  background: rgba(245, 239, 224, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.g-brand-static { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.g-brand-static__mark { width: 26px; height: 26px; }
.g-brand-static__word { font-family: var(--font-display); font-size: 20px; }
.g-brand-static__word em { color: var(--steep); font-style: italic; }
.g-brand-static__suffix { color: var(--honey-700); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-left: 4px; }
.g-nav-static { display: flex; gap: 22px; font-size: 14px; }
.g-nav-static a { color: var(--graphite); text-decoration: none; padding: 4px 0; }
.g-nav-static a:hover { color: var(--ink); }
.g-nav-static a.is-current { color: var(--ink); border-bottom: 2px solid var(--honey); padding-bottom: 2px; }

/* Constellation bar (top, static) */
.g-const-static {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 12px; background: var(--ink); color: var(--cream-50);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.g-const-static a { color: var(--cream-50); text-decoration: none; opacity: 0.5; transition: opacity 200ms; }
.g-const-static a:hover { opacity: 1; }
.g-const-static .is-here { color: var(--honey); opacity: 1; }
.g-const-static .sep { opacity: 0.3; }

/* Footer */
.g-ftr-static { padding: 60px 24px 40px; background: var(--bg-tonal); border-top: 1px solid var(--border); }
.g-ftr-static__inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.g-ftr-static h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); margin: 0 0 16px; }
.g-ftr-static ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.g-ftr-static a { color: inherit; text-decoration: none; }
.g-ftr-static a:hover { color: var(--link); }
.g-ftr-static__bottom { max-width: 1240px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--stone); display: flex; justify-content: space-between; }

/* Mobile */
@media (max-width: 900px) {
  .g-hdr-static { grid-template-columns: 1fr; gap: 12px; padding: 12px 16px; }
  .g-nav-static { overflow-x: auto; padding-bottom: 4px; }
  .g-nav-static a { white-space: nowrap; }
  .g-ftr-static__inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .g-grid-3 { grid-template-columns: 1fr !important; }
  .g-grid-2 { grid-template-columns: 1fr !important; }
  .g-grid-4 { grid-template-columns: 1fr 1fr !important; }
  .g-home__split { grid-template-columns: 1fr !important; }
}
