/* ============================================================
   Aloha Mom — design tokens (from DESIGN.md)
   ============================================================ */

:root {
  /* Colors */
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;

  --ink: #1d1d1f;
  --body: #1d1d1f;
  --body-on-dark: #ffffff;
  --body-muted: #cccccc;
  --ink-muted-80: #333333;
  --ink-muted-48: #7a7a7a;

  --divider-soft: #f0f0f0;
  --hairline: #e0e0e0;

  --canvas: #ffffff;
  --canvas-parchment: #f5f5f7;
  --surface-pearl: #fafafc;
  --surface-tile-1: #272729;
  --surface-tile-2: #2a2a2c;
  --surface-tile-3: #252527;
  --surface-black: #000000;
  --surface-chip: rgba(210, 210, 215, 0.64);

  --on-primary: #ffffff;
  --on-dark: #ffffff;

  /* Radii */
  --r-none: 0px;
  --r-xs: 5px;
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 18px;
  --r-pill: 9999px;
  --r-full: 9999px;

  /* Spacing */
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 17px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-xxl: 48px;
  --s-section: 80px;

  /* The single product shadow */
  --product-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;

  /* Type stacks */
  --font-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-text: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================
   Reset
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, p { margin: 0; }

button {
  font: inherit;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: inherit;
}

/* ============================================================
   Typography tokens
   ============================================================ */

.hero-display {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
  color: var(--ink);
}

.display-lg {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.10;
  letter-spacing: 0;
  color: var(--ink);
}

.display-lg--on-dark { color: var(--on-dark); }

.display-md {
  font-family: var(--font-text);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.374px;
  color: var(--ink);
}

.lead {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.196px;
  color: var(--ink);
}

.lead--on-dark { color: var(--on-dark); }

.body {
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
}

.body-strong {
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.374px;
}

.caption {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.224px;
  color: var(--ink-muted-80);
}

.caption--on-dark { color: var(--body-muted); }

.caption-strong {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
}

.fine-print {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.12px;
}

.micro-legal {
  font-family: var(--font-text);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.08px;
  color: var(--ink-muted-48);
}

/* The eyebrow — small uppercase label above a tile headline.
   Reads as a section tag, in the single accent color. */
.eyebrow {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: 0.4px;
  color: var(--primary);
  text-transform: none;
  margin-bottom: var(--s-sm);
}

.eyebrow--on-dark { color: var(--primary-on-dark); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.374px;
  line-height: 1;
  border-radius: var(--r-pill);
  padding: 11px 22px;
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.95);
}

.btn:focus-visible {
  outline: 2px solid var(--primary-focus);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover { background: var(--primary-focus); }

/* Inline text link in Action Blue / Sky Link Blue */
.link {
  color: var(--primary);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.374px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.link:hover { text-decoration: underline; }

.link--on-dark { color: var(--primary-on-dark); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-lg);
  align-items: baseline;
  margin-top: var(--s-xl);
}

.cta-row--centered { justify-content: center; }

/* ============================================================
   Global Nav
   ============================================================ */

.global-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-black);
  color: var(--on-dark);
  height: 44px;
}

.global-nav__inner {
  max-width: 1024px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-xl);
  padding: 0 var(--s-lg);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
}

.global-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-dark);
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.global-nav__logo:hover { opacity: 1; }

.global-nav__mark {
  display: block;
}

.global-nav__wordmark {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.05px;
  line-height: 1;
  color: var(--on-dark);
  /* hairline-like spacing keeps it quiet next to the mark */
}

@media (max-width: 419px) {
  .global-nav__wordmark { display: none; }
}

.global-nav__links {
  display: flex;
  gap: 22px;
  flex: 1;
}

.global-nav__links a {
  color: var(--on-dark);
  opacity: 0.88;
  transition: opacity 0.15s ease;
}

.global-nav__links a:hover { opacity: 1; }

.global-nav__utility {
  display: flex;
  gap: 16px;
}

.global-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--on-dark);
  opacity: 0.88;
}

.global-nav__icon:hover { opacity: 1; }

@media (max-width: 833px) {
  .global-nav__links { display: none; }
  .global-nav__inner { justify-content: space-between; }
}

/* ============================================================
   Sub Nav (frosted parchment)
   ============================================================ */

.sub-nav {
  position: sticky;
  top: 44px;
  z-index: 90;
  height: 52px;
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sub-nav__inner {
  max-width: 1024px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-xl);
  padding: 0 var(--s-lg);
}

.sub-nav__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
  color: var(--ink);
}

.sub-nav__links {
  display: flex;
  gap: var(--s-lg);
  flex: 1;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.224px;
  color: var(--ink-muted-80);
}

.sub-nav__links a:hover { color: var(--ink); }

.sub-nav__cta {
  font-size: 14px;
  padding: 7px 16px;
}

@media (max-width: 833px) {
  .sub-nav__links { display: none; }
}

/* ============================================================
   Tile (full-bleed section)
   ============================================================ */

.tile {
  padding: var(--s-section) var(--s-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tile--light { background: var(--canvas); color: var(--ink); }
.tile--parchment { background: var(--canvas-parchment); color: var(--ink); }
.tile--dark { background: var(--surface-tile-1); color: var(--on-dark); }
.tile--dark-2 { background: var(--surface-tile-2); color: var(--on-dark); }
.tile--dark-3 { background: var(--surface-tile-3); color: var(--on-dark); }

.tile__stack {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tile__stack--centered { text-align: center; align-items: center; }

.tile__stack > * + * { margin-top: var(--s-md); }

/* Tile media — archival plate treatment for vintage Hawaiian artworks.
   Cream mat + hairline border + small uppercase caption.
   Reads as a framed painting on the gallery wall (especially on dark tiles). */
.tile__media {
  margin: var(--s-xl) auto 0;
  width: 100%;
  max-width: 760px;
  background: #efe6d3;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 22px 22px 14px;
}

.tile__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  /* No drop-shadow — paintings don't float. */
}

.tile__media figcaption {
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-muted-48);
  text-align: center;
  margin-top: 12px;
}

.tile__media figcaption em {
  font-style: italic;
  letter-spacing: 0.4px;
}

/* HERO specific */
.tile--hero {
  padding-top: var(--s-xxl);
  padding-bottom: 0;
}

.tile--hero .hero-display {
  margin-top: var(--s-sm);
}

.tile--hero .lead {
  margin-top: var(--s-lg);
  color: var(--ink-muted-80);
}

/* Hero figure — archival plate treatment for the c.1920 Bartlett painting.
   Cream parchment mat + hairline border + small caption.
   Matches the About section's 1881 chart so vintage materials share one register. */
.hero-figure {
  margin: var(--s-xxl) auto 0;
  width: 100%;
  max-width: 760px;
  background: #efe6d3;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 22px 22px 14px;
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  /* No drop-shadow on archival artworks — paintings don't float. */
}

.hero-figure figcaption {
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-muted-48);
  text-align: center;
  margin-top: 12px;
}

.hero-figure figcaption em {
  font-style: italic;
  letter-spacing: 0.4px;
}

/* Quote tile */
.tile--quote {
  padding-top: 120px;
  padding-bottom: 120px;
  background-image: linear-gradient(
      rgba(37, 37, 39, 0.62),
      rgba(37, 37, 39, 0.78)
    ),
    url("images/hanai-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* Split tile (growth section: hero stack + grid) */
.tile--split .growth-grid {
  margin-top: var(--s-xxl);
}

/* ============================================================
   Growth grid
   ============================================================ */

.growth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-lg);
  width: 100%;
  max-width: 1280px;
  text-align: left;
}

.growth-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}

.growth-card__media {
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: var(--s-xs);
  aspect-ratio: 4 / 3;
}

.growth-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(var(--product-shadow));
}

.growth-card .body { color: var(--ink-muted-80); }

@media (max-width: 1068px) {
  .growth-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 833px) {
  .growth-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .growth-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Utility tile (stories + resources)
   ============================================================ */

.tile--utility {
  padding-top: var(--s-section);
  padding-bottom: var(--s-section);
  align-items: stretch;
}

.utility-header {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto var(--s-xxl);
  text-align: left;
  padding: 0 0;
}

.utility-grid {
  display: grid;
  gap: var(--s-lg);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  text-align: left;
}

.utility-grid--3 { grid-template-columns: repeat(3, 1fr); }
.utility-grid--4 { grid-template-columns: repeat(4, 1fr); }

.utility-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}

.utility-card__media {
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--s-xs);
}

.utility-card__media--square { aspect-ratio: 1 / 1; }

.utility-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.utility-card .body { color: var(--ink-muted-80); }

@media (max-width: 1068px) {
  .utility-grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 833px) {
  .utility-grid--3,
  .utility-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .utility-grid--3,
  .utility-grid--4 { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--canvas-parchment);
  color: var(--ink-muted-80);
  padding: 64px var(--s-lg);
}

.footer__inner {
  max-width: 1024px;
  margin: 0 auto;
}

.footer__lede {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.224px;
  color: var(--ink-muted-80);
  max-width: 720px;
  margin-bottom: var(--s-xxl);
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-xl);
  margin-bottom: var(--s-xxl);
}

.footer__columns h4 {
  margin-bottom: var(--s-sm);
  color: var(--ink);
}

.footer__columns a {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  line-height: 2.41;
  color: var(--ink-muted-80);
}

.footer__columns a:hover { color: var(--ink); text-decoration: underline; }

.footer__rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: var(--s-lg) 0;
}

.footer__legal { display: flex; flex-direction: column; gap: var(--s-sm); }

.footer__legal a { color: var(--ink-muted-48); }
.footer__legal a:hover { color: var(--ink-muted-80); }

.footer__legal-sep { color: var(--ink-muted-48); margin: 0 4px; }

@media (max-width: 833px) {
  .footer__columns { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   About tile (the studio behind Aloha Mom)
   ============================================================ */

.tile--about {
  padding-top: var(--s-section);
  padding-bottom: var(--s-section);
}

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-xxl);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
  text-align: left;
}

/* Archival "map plate": parchment frame, hairline border, no drop-shadow.
   Treats the 1881 chart as an editorial artefact rather than a photo. */
.about-grid__media {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #efe6d3;
  border: 1px solid var(--hairline);
  padding: 18px 18px 12px;
}

.about-grid__media img {
  width: 100%;
  height: auto;
  display: block;
  /* no drop-shadow — a chart on parchment doesn't need lift */
}

.about-grid__media figcaption {
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-muted-48);
  text-align: center;
  margin-top: 10px;
}

.about-grid__copy {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.about-grid__copy .lead { color: var(--ink-muted-80); }
.about-grid__body { color: var(--ink-muted-80); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--s-xl);
  margin: var(--s-sm) 0 0;
  padding: var(--s-lg) 0 0;
  border-top: 1px solid var(--hairline);
}

.about-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-stats dt {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  color: var(--ink-muted-48);
  margin: 0;
}

.about-stats dd {
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.374px;
  color: var(--ink);
  margin: 0;
}

.about-grid__copy .cta-row { margin-top: var(--s-sm); }

@media (max-width: 1068px) {
  .about-grid { gap: var(--s-xl); }
}

@media (max-width: 833px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--s-xl);
  }
  .about-stats { grid-template-columns: 1fr 1fr; gap: var(--s-md) var(--s-xl); }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; gap: var(--s-md); }
}

/* ============================================================
   Subscribe tile (inline newsletter form)
   ============================================================ */

.tile--subscribe {
  padding-top: var(--s-section);
  padding-bottom: var(--s-section);
}

.subscribe-form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 460px;
  margin-top: var(--s-xl);
  background: var(--canvas);
  border-radius: var(--r-pill);
  padding: 6px;
  transition: box-shadow 0.18s ease;
}

.subscribe-form:focus-within {
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.4);
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  letter-spacing: -0.374px;
  outline: none;
}

.subscribe-form input[type="email"]::placeholder {
  color: var(--ink-muted-48);
}

.subscribe-form .btn {
  flex-shrink: 0;
  font-size: 15px;
  padding: 11px 22px;
}

.subscribe-form__hint {
  margin-top: var(--s-md);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  align-items: baseline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .subscribe-form .btn { padding: 11px 16px; }
  .subscribe-form input[type="email"] { padding: 0 14px; font-size: 15px; }
}

/* ============================================================
   Responsive type (per DESIGN.md breakpoints)
   ============================================================ */

@media (max-width: 1068px) {
  .hero-display { font-size: 48px; letter-spacing: -0.24px; }
  .display-lg { font-size: 36px; }
  .display-md { font-size: 30px; }
}

@media (max-width: 833px) {
  .tile { padding: 64px var(--s-lg); }
  .hero-display { font-size: 40px; }
  .display-lg { font-size: 32px; }
  .lead { font-size: 22px; line-height: 1.32; }
  .display-md { font-size: 26px; }
}

@media (max-width: 640px) {
  .tile { padding: 56px var(--s-md); }
  .hero-display { font-size: 34px; line-height: 1.1; }
  .display-lg { font-size: 28px; }
  .lead { font-size: 19px; }
  .display-md { font-size: 22px; }
  .hero-figure img { aspect-ratio: 4 / 5; }
}

@media (max-width: 419px) {
  .hero-display { font-size: 28px; }
  .display-lg { font-size: 24px; }
}

/* ============================================================
   Story page — long-form bilingual reading view
   ============================================================ */

/* Language visibility — driven by data-lang on <html> */
[data-lang="en"] [data-lang-only="haw"],
[data-lang="haw"] [data-lang-only="en"] { display: none !important; }
[data-lang="en"]  [data-lang-only="en"],
[data-lang="haw"] [data-lang-only="haw"] { display: revert; }

/* Sub-nav variant for story pages: back link · title · language toggle */
.sub-nav__back {
  font-family: var(--font-text);
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--ink-muted-80);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sub-nav__back:hover { color: var(--ink); }

/* Language toggle — iOS-style segmented pill.
   The active option sits on a soft white pill inside a translucent grey track.
   We avoid Action Blue for the active state so it doesn't conflict with the
   site-wide "click me" signal. */
.sub-nav__lang {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--r-pill);
  padding: 3px;
}

.sub-nav__lang button {
  font: inherit;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.224px;
  color: var(--ink-muted-80);
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.sub-nav__lang button:hover { color: var(--ink); }

.sub-nav__lang button.is-active {
  background: var(--canvas);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

.sub-nav__lang-sep { display: none; }

@media (max-width: 640px) {
  .sub-nav .sub-nav__title { display: none; }
}

/* Story article */
.story-article {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-section) var(--s-lg);
}

.story-header { margin-bottom: var(--s-xxl); }

.story-header .eyebrow { margin-bottom: var(--s-sm); }

.story-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
  color: var(--ink);
  margin: 0 0 var(--s-md);
}

.story-dek {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--ink-muted-80);
  margin: 0 0 var(--s-xl);
}

.story-byline {
  font-family: var(--font-text);
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--ink-muted-48);
  border-top: 1px solid var(--hairline);
  padding-top: var(--s-md);
  margin: 0;
}

.story-byline strong {
  color: var(--ink);
  font-weight: 600;
}

.story-body p {
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.374px;
  color: var(--ink);
  margin: 0 0 var(--s-md);
}

.story-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.9;
  font-weight: 600;
  float: left;
  margin: 4px 8px 0 0;
  color: var(--ink);
}

.story-body blockquote {
  margin: var(--s-xl) 0;
  padding: 0 0 0 var(--s-lg);
  border-left: 3px solid var(--primary);
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}

.story-body em { font-style: italic; }
.story-body strong { font-weight: 600; }

/* "Pending review" notice for the Hawaiian draft */
.draft-notice {
  margin: 0 0 var(--s-xl);
  padding: 12px 16px;
  background: #efe6d3;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  font-family: var(--font-text);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.224px;
  color: var(--ink-muted-80);
}

.draft-notice strong { color: var(--ink); font-weight: 600; }

/* Story footer (continue reading) */
.story-end {
  margin-top: var(--s-xxl);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-lg);
  justify-content: space-between;
  align-items: baseline;
}

@media (max-width: 640px) {
  .story-article { padding: 56px var(--s-md); }
  .story-title { font-size: 36px; }
  .story-dek { font-size: 20px; }
  .story-body p { font-size: 17px; }
  .story-body p:first-child::first-letter { font-size: 52px; }
}

/* ============================================================
   Search overlay (local, in-browser)
   ============================================================ */

body.search-open { overflow: hidden; }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(245, 245, 247, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.search-overlay.is-open { opacity: 1; }

.search-overlay__bar {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  height: 76px;
  padding: 0 var(--s-xl);
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  flex: 0 0 auto;
}

.search-overlay__icon {
  color: var(--ink-muted-48);
  flex: 0 0 auto;
}

.search-overlay__input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.28px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  padding: 0;
  /* Hide the WebKit search cancel button so we can use our own Esc kbd */
  -webkit-appearance: none;
  appearance: none;
}

.search-overlay__input::placeholder { color: var(--ink-muted-48); }
.search-overlay__input::-webkit-search-cancel-button { display: none; }

.search-overlay__esc {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  color: var(--ink-muted-80);
  background: rgba(0, 0, 0, 0.06);
  border: 0;
  border-radius: var(--r-sm);
  padding: 4px 10px;
  flex: 0 0 auto;
  cursor: pointer;
  user-select: none;
}

.search-overlay__esc:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--ink);
}

.search-overlay__results {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--s-lg) var(--s-xl) var(--s-section);
}

.search-overlay__hint {
  max-width: 720px;
  margin: var(--s-xxl) auto 0;
  font-family: var(--font-text);
  font-size: 17px;
  letter-spacing: -0.374px;
  line-height: 1.6;
  color: var(--ink-muted-80);
  text-align: center;
}

.search-overlay__hint em {
  font-style: normal;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 8px;
  border-radius: var(--r-xs);
  margin: 0 2px;
  font-family: var(--font-text);
}

.search-overlay__empty {
  max-width: 720px;
  margin: var(--s-xxl) auto 0;
  font-family: var(--font-text);
  font-size: 17px;
  color: var(--ink-muted-80);
  text-align: center;
}

.search-overlay__list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.search-result {
  border-bottom: 1px solid var(--divider-soft);
}

.search-result a {
  display: block;
  padding: var(--s-md) var(--s-sm);
  color: inherit;
  text-decoration: none;
  border-radius: var(--r-sm);
}

.search-result.is-active a,
.search-result a:hover {
  background: rgba(0, 102, 204, 0.06);
}

.search-result__section {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 4px;
}

.search-result__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.224px;
  color: var(--ink);
  margin: 0 0 4px;
}

.search-result__excerpt {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.224px;
  color: var(--ink-muted-80);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result mark {
  background: rgba(255, 222, 102, 0.55);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .search-overlay__bar { height: 64px; padding: 0 var(--s-md); }
  .search-overlay__input { font-size: 22px; }
  .search-overlay__results { padding: var(--s-md); }
  .search-overlay__hint, .search-overlay__empty { margin-top: var(--s-xl); }
}
