/*
 * House of Stories Project — Canonical Web Style Sheet
 * Codex implementation baseline
 * Parent brand: House of Stories Project
 * Product brand: ParablePath
 */

600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Core brand */
  --hos-cream: #F7F1E7;
  --hos-cream-soft: #FBF8F2;
  --hos-paper: #FFFDF9;
  --hos-navy: #062C66;
  --hos-navy-deep: #001D46;
  --hos-ink: #101820;
  --hos-gold: #C99A2D;
  --hos-gold-soft: #EAD7A8;
  --hos-line: #DFD6C7;
  --hos-muted: #626A71;
  --hos-white: #FFFFFF;

  /* Story pattern colors — keep mapped to the canonical terms */
  --story-exclusion: #6F7F2C;
  --story-division: #168795;
  --story-control: #1769C2;
  --story-hesitation: #0E3A73;
  --story-settling: #6A42A5;
  --story-scarcity: #8E1538;
  --story-procrastination: #ED6B19;
  --story-distraction: #D39A21;

  /* Atmospherics */
  --hos-glow-gold: rgba(234, 180, 65, 0.22);
  --hos-glow-lavender: rgba(172, 134, 255, 0.16);
  --hos-shadow-sm: 0 8px 24px rgba(13, 33, 62, 0.08);
  --hos-shadow-lg: 0 22px 60px rgba(13, 33, 62, 0.10);

  /* Typography */
  --font-display: 'Anton', sans-serif;
  --font-ui: 'Plus Jakarta Sans', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.75rem, 2.5vw, 2.5rem);
  --text-3xl: clamp(2.5rem, 4vw, 4rem);
  --text-hero: clamp(3.5rem, 7vw, 7.25rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Shape */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--hos-cream);
  color: var(--hos-ink);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { }

/* Layout */
.hos-container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin-inline: auto;
}
.hos-section { padding-block: clamp(4.5rem, 8vw, 8rem); }
.hos-section--paper { background: var(--hos-paper); }
.hos-section--navy { background: var(--hos-navy-deep); color: var(--hos-white); }
.hos-grid { display: grid; gap: var(--space-5); }

/* Type */
.hos-display {
  margin: 0;
  color: var(--hos-navy);
}
.hos-statement {
  margin: 0;
  color: var(--hos-navy);
}
.hos-heading {
  margin: 0;
  color: var(--hos-navy);
}
.hos-subheading {
  margin: 0;
  color: var(--hos-navy);
}
.hos-body-lg { color: #45505B; }
.hos-muted { color: var(--hos-muted); }
.hos-accent { color: var(--hos-gold); }
.hos-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1rem;
  color: var(--hos-gold);
}
.hos-eyebrow::after {
  content: '';
  width: min(11rem, 28vw);
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

/* Brand mark treatment */
.hos-mark-stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hos-mark-stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--hos-glow-gold) 0 18%, var(--hos-glow-lavender) 40%, transparent 70%);
  filter: blur(18px);
}
.hos-mark-stage img { width: min(42rem, 90vw); }

/* Navigation */
.hos-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--hos-cream) 90%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(6, 44, 102, 0.08);
}
.hos-nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.hos-nav__brand { display: flex; align-items: center; gap: 0.8rem; color: var(--hos-navy); }
.hos-nav__brand img { width: 46px; height: 46px; object-fit: contain; }
.hos-nav__links { display: flex; align-items: center; gap: 1.6rem; }
.hos-nav__links a:hover { color: var(--hos-navy); }

/* Buttons */
.hos-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.hos-button:hover { transform: translateY(-2px); }
.hos-button--primary { background: var(--hos-navy); color: var(--hos-white); box-shadow: var(--hos-shadow-sm); }
.hos-button--gold { background: var(--hos-gold-soft); color: var(--hos-navy); }
.hos-button--outline { border: 1px solid rgba(6,44,102,.18); background: transparent; color: var(--hos-navy); }
.hos-button--text { min-height: auto; padding-inline: 0; background: transparent; color: var(--hos-navy); }

/* Cards */
.hos-card {
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(6,44,102,.08);
  border-radius: var(--radius-md);
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.hos-card:hover { transform: translateY(-3px); box-shadow: var(--hos-shadow-sm); }
.hos-card--quiet { padding: clamp(1.35rem, 2.5vw, 2rem); }
.hos-card--dark { background: var(--hos-navy); color: var(--hos-white); }

/* Journey cards */
.hos-journey-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hos-journey-card { min-height: 18rem; padding: 1.75rem; display: flex; flex-direction: column; }
.hos-journey-card__number { color: var(--hos-gold); }
.hos-journey-card h3 { margin: auto 0 0.4rem; color: var(--hos-navy); }

/* Story pattern grid */
.hos-story-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hos-story-card { padding: 1.5rem; min-height: 13.5rem; }
.hos-story-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
}
.hos-story-card__false { margin-top: 1rem; color: var(--hos-navy); }
.hos-story-card__question { margin: 0.35rem 0; color: var(--hos-muted); }
.hos-story-card__redemptive { color: var(--hos-navy); }

.story-exclusion { --story-color: var(--story-exclusion); }
.story-division { --story-color: var(--story-division); }
.story-control { --story-color: var(--story-control); }
.story-hesitation { --story-color: var(--story-hesitation); }
.story-settling { --story-color: var(--story-settling); }
.story-scarcity { --story-color: var(--story-scarcity); }
.story-procrastination { --story-color: var(--story-procrastination); }
.story-distraction { --story-color: var(--story-distraction); }
.story-exclusion .hos-story-card__icon,
.story-division .hos-story-card__icon,
.story-control .hos-story-card__icon,
.story-hesitation .hos-story-card__icon,
.story-settling .hos-story-card__icon,
.story-scarcity .hos-story-card__icon,
.story-procrastination .hos-story-card__icon,
.story-distraction .hos-story-card__icon { background: var(--story-color); }

/* Hero */
.hos-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 42%, var(--hos-glow-lavender), transparent 24%),
    radial-gradient(circle at 77% 52%, var(--hos-glow-gold), transparent 32%),
    linear-gradient(180deg, var(--hos-cream-soft), var(--hos-cream));
}
.hos-hero__inner {
  min-height: 44rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}
.hos-hero__copy { max-width: 44rem; }
.hos-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* Utility */
.hos-center { text-align: center; }
.hos-stack > * + * { margin-top: var(--space-4); }
.hos-cluster { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

@media (max-width: 1000px) {
  .hos-nav__links { display: none; }
  .hos-hero__inner { grid-template-columns: 1fr; }
  .hos-journey-grid, .hos-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .hos-container { width: min(calc(100% - 1.5rem), var(--container)); }
  .hos-section { padding-block: 4.5rem; }
  .hos-nav { min-height: 70px; }
  .hos-display { }
  .hos-journey-grid, .hos-story-grid { grid-template-columns: 1fr; }
  .hos-hero__inner { min-height: auto; padding-block: 3.5rem 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
