/* Ignite base stylesheet — reset + baseline elements + core components.
   Built entirely on the official tokens in tokens.css. Load tokens.css first. */

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ── Base elements ──────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  color: var(--bc-text);
  background: var(--bc-light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p  { color: var(--bc-text); }

/* ── Layout ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: 72px; }
.section--navy { background: var(--bc-dark); color: var(--bc-white); }
.section--navy h2, .section--navy h3 { color: var(--bc-white); }
.section--navy p { color: rgba(255, 255, 255, .72); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .7em 1.4em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: .45em 1em; font-size: .875rem; }
.btn--lg { padding: .95em 2em; font-size: 1.05rem; }

.btn--primary { background: var(--bc-primary); color: var(--bc-white); }
.btn--primary:hover { background: var(--bc-primary-hover); }

/* Navy hover shade derived from --bc-dark (lightened ~12%) — keeps the
   palette official rather than introducing a second dark hex. */
.btn--navy { background: var(--bc-dark); color: var(--bc-white); }
.btn--navy:hover { background: color-mix(in srgb, var(--bc-dark) 88%, white); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--bc-primary-light); border-color: var(--bc-primary); color: var(--bc-primary); }

/* On navy surfaces, the ghost button flips to light outlines. */
.section--navy .btn--ghost { color: var(--bc-white); border-color: rgba(255, 255, 255, .4); }
.section--navy .btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--bc-white); }

/* ── Chip ───────────────────────────────────────────────────────────── */
.chip {
  display: inline-block;
  padding: .3em .7em;
  border-radius: var(--radius-sm);
  background: var(--bc-primary-light);
  color: var(--bc-primary);
  font-size: .8rem;
  font-weight: 600;
}

/* ── Card ── liquid glass (see tokens.css --glass-card-*) ─────────────── */
.card {
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-lg);
  padding: 28px;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-card-shadow);
  transition: border-color .15s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .card { background: var(--surface); } }
.card:hover { border-color: var(--bc-gray); }
.card h3 { margin-bottom: 8px; }

/* ── Header / nav ───────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bc-dark);
  color: var(--bc-white);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 34px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { font-size: .95rem; color: rgba(255, 255, 255, .82); }
.site-nav a:hover { color: var(--bc-white); }
.site-nav a.btn--primary { color: var(--bc-white); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: color-mix(in srgb, var(--bc-dark) 85%, black);
  color: rgba(255, 255, 255, .65);
  padding-block: 32px;
  font-size: .9rem;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { background: var(--bc-dark); color: var(--bc-white); padding-block: 96px; }
.hero h1 { color: var(--bc-white); max-width: 14ch; }
.hero p { color: rgba(255, 255, 255, .75); font-size: 1.15rem; max-width: 52ch; margin-top: 16px; }
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ── Utility grid + style-guide helpers ─────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.eyebrow { color: var(--bc-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.stack > * + * { margin-top: 16px; }

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.swatch { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--bc-light-gray); background: var(--surface); }
.swatch__chip { height: 72px; }
.swatch__meta { padding: 10px 12px; font-size: .8rem; }
.swatch__name { font-weight: 600; color: var(--bc-text); }
.swatch__hex { color: var(--bc-gray); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
