@charset "UTF-8";

/* @font-face declarations live in fonts.css */

/* ─── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
  margin: 0;
  padding: 0;
}
img, picture, video, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* ─── Body / typography ─────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-base);
  color: var(--fg-default);
  background: var(--bg-page);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-tight); }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

p + p { margin-top: var(--sp-4); }

em.hawaiian { font-style: italic; }

/* ─── Layout primitives ─────────────────────────────────────────────── */
.page {
  max-width: var(--maxw-page);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.prose {
  max-width: var(--maxw-prose);
  margin-inline: auto;
}

/* ─── Skip link (accessibility) ─────────────────────────────────────── */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--pohaku-black);
  color: var(--pulu-white);
  padding: var(--sp-2) var(--sp-4);
  z-index: 1000;
}
.skip-link:focus { inset-inline-start: 0; }

/* ─── Concept-preview badge ─────────────────────────────────────────── */
.preview-badge {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-badge);
  color: var(--pulu-white);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--sp-2) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}

.preview-badge__msg::before {
  content: "● ";
  color: var(--sun-gold);
}

.preview-badge__dismiss {
  background: transparent;
  color: var(--pulu-white);
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: var(--fs-xs);
}

.preview-badge[hidden] { display: none; }

/* ─── Site header / nav ─────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--pohaku-black) 12%, transparent);
  padding-block: var(--sp-4);
  background: var(--bg-page);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}
.site-brand {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.site-brand__shield {
  height: 36px;
  width: auto;
  display: block;
}
.site-nav { display: flex; gap: var(--sp-6); font-size: var(--fs-sm); }
.site-nav a { text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.site-nav a:hover { border-bottom-color: var(--sun-gold); }

/* ─── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: var(--sp-24);
  padding-block: var(--sp-12);
  border-top: 1px solid color-mix(in srgb, var(--pohaku-black) 12%, transparent);
  font-size: var(--fs-sm);
}
.site-footer p + p { margin-top: var(--sp-2); }
.site-footer a { color: var(--ocean-deep); }

/* ─── Chapter scaffolding ───────────────────────────────────────────── */
.chapter__lede {
  font-size: var(--fs-sm);
  color: color-mix(in srgb, var(--fg-default) 65%, transparent);
  margin-bottom: var(--sp-4);
}
