/*
 * styles.css — Underpants Unlimited Co. LLC
 * Design tokens applied as custom properties. Full build.
 */

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --color-primary: #4A6741;
  --color-primary-dark: #2D3F28;
  --color-primary-light: #7A9E6D;
  --color-secondary: #8B6F47;
  --color-accent: #C27E8E;
  --color-accent-dark: #B06E7E;
  --color-bg: #F5EDE0;
  --color-surface: #EBE1D1;
  --color-text: #2C2418;
  --color-text-secondary: #6B5D4E;
  --color-border: #D4C8B5;
  --font-primary: 'Cormorant Garamond', Georgia, serif;
  --font-secondary: 'Vollkorn', Georgia, serif;
  --font-size-base: 17px;
  --spacing-base: 8px;
  --max-content: 1200px;
  --max-text: 680px;
}

/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base, 16px);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary, Georgia, serif);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  padding-bottom: 42px;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--color-accent);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============================================================
   Typography Hierarchy
   ============================================================ */
.display {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 72px;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

h1, .h1 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

h2, .h2 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.15;
  color: var(--color-primary);
}

h3, .h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  color: var(--color-primary);
}

h4, .h4 {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.lead {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
}

p {
  margin-bottom: 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

.small-text {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.caption {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
}

.small-caps {
  font-family: var(--font-primary);
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.08em;
}

/* Literary first-line indent for content pages */
.literary-text p + p {
  text-indent: 1.5em;
}
.literary-text p + p {
  margin-top: 0;
  margin-bottom: 0;
}

/* ============================================================
   Navigation — Book Running Header
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: transparent;
  border-bottom: 1px solid var(--color-secondary);
  transition: padding 0.3s ease, background-color 0.3s ease;
}

.site-nav.scrolled {
  padding: 12px 40px;
  background: rgba(245, 237, 224, 0.95);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.nav-brand {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 22px;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-brand:hover {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--color-text);
}

/* Fabric-swatch torn-edge active indicator */
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -2px;
  right: -2px;
  height: 3px;
  background: var(--color-accent);
  clip-path: polygon(
    0% 40%, 4% 100%, 8% 20%, 13% 85%, 17% 30%,
    22% 95%, 27% 15%, 32% 80%, 37% 25%, 42% 100%,
    47% 10%, 52% 70%, 57% 35%, 62% 90%, 67% 20%,
    72% 75%, 77% 40%, 82% 100%, 87% 15%, 92% 65%,
    97% 30%, 100% 80%
  );
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  font-size: 18px;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============================================================
   Chapter Watermark
   ============================================================ */
.chapter-watermark {
  position: absolute;
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 240px;
  line-height: 1;
  color: var(--color-secondary);
  opacity: 0.15;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ============================================================
   Homepage Hero — Split Composition
   ============================================================ */
.hero-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-parchment-strip {
  position: fixed;
  top: 0;
  left: 0;
  width: 40%;
  height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 60px 60px;
  z-index: 2;
  transition: opacity 0.5s ease;
}

.hero-parchment-strip .chapter-watermark {
  top: -40px;
  left: 20px;
  font-size: 280px;
}

.hero-parchment-strip h1 {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 64px;
  line-height: 1.0;
  color: var(--color-text);
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 28px;
  color: var(--color-accent);
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}

.hero-tagline {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  color: var(--color-text-secondary);
  position: relative;
  z-index: 1;
}

.hero-image-panel {
  margin-left: 40%;
  width: 60%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.hero-image-panel img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center 30%;
}

/* Spacer to push content below hero after the fixed strip */
.hero-home-spacer {
  height: 0;
}

/* ============================================================
   Section Layouts
   ============================================================ */
.section-parchment {
  background: var(--color-bg);
  padding: 100px 40px;
}

.section-vellum {
  background: var(--color-surface);
  padding: 100px 40px;
}

.section-dark {
  background: var(--color-primary-dark);
  padding: 100px 40px;
  color: var(--color-bg);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-bg);
}

.section-dark a {
  color: var(--color-accent);
}

.section-center {
  max-width: var(--max-content);
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.text-column {
  max-width: var(--max-text);
  margin: 0 auto;
}

/* Decorative Hearth Brown rules */
.rule-hearth {
  border: none;
  border-top: 1px solid var(--color-secondary);
  margin: 0;
}

/* ============================================================
   Welcome Introduction — Drop Cap
   ============================================================ */
.welcome-intro {
  position: relative;
}

.welcome-intro .decorative-rule-top,
.welcome-intro .decorative-rule-bottom {
  border: none;
  border-top: 1px solid var(--color-secondary);
  width: 120px;
  margin: 0 auto 48px auto;
}

.welcome-intro .decorative-rule-bottom {
  margin: 48px auto 0 auto;
}

.drop-cap::first-letter {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 4.5em;
  float: left;
  line-height: 0.8;
  margin-right: 12px;
  margin-top: 6px;
  color: var(--color-primary);
}

/* ============================================================
   Two-Column Asymmetric Layouts
   ============================================================ */
.two-col {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  max-width: var(--max-content);
  margin: 0 auto;
}

.two-col--reversed {
  flex-direction: row-reverse;
}

.two-col__text {
  flex: 1 1 55%;
  min-width: 0;
}

.two-col__image {
  flex: 0 0 45%;
  max-width: 45%;
}

.two-col__image img {
  border-radius: 12px;
  width: 100%;
}

.two-col__image--bordered img {
  border: 1px solid var(--color-secondary);
  border-radius: 16px;
}

/* Image bleeds off bottom */
.two-col__image--bleed-bottom {
  overflow: visible;
}

.two-col__image--bleed-bottom img {
  border-radius: 16px 16px 0 0;
  margin-bottom: -100px;
}

/* ============================================================
   Quest Preview (Homepage) — Dark Section
   ============================================================ */
.quest-preview .two-col__text {
  flex: 1 1 55%;
}

.quest-preview .two-col__image {
  flex: 0 0 45%;
  max-width: 45%;
  align-self: flex-start;
  margin-top: 60px;
}

.quest-preview .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  margin-top: 24px;
  font-size: 17px;
}

.quest-preview .cta-link .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.quest-preview .cta-link:hover .arrow {
  transform: translateX(4px);
}

/* ============================================================
   Shire Vista — Full-Bleed Divider
   ============================================================ */
.shire-vista {
  position: relative;
  height: 30vh;
  min-height: 240px;
  border-top: 1px solid var(--color-secondary);
  border-bottom: 1px solid var(--color-secondary);
}

.shire-vista img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   Pull Quote
   ============================================================ */
.pull-quote {
  position: relative;
  padding-left: 32px;
  margin: 40px 0;
  border-left: 2px solid var(--color-secondary);
}

.pull-quote::before,
.pull-quote::after {
  content: '';
  position: absolute;
  left: -1px;
  width: 2px;
  height: 24px;
  background: var(--color-secondary);
}

.pull-quote::before {
  top: -24px;
}

.pull-quote::after {
  bottom: -24px;
}

.pull-quote p {
  font-family: var(--font-primary);
  font-weight: 300;
  font-style: italic;
  font-size: 28px;
  line-height: 1.4;
  color: var(--color-text);
  margin: 0;
}

/* ============================================================
   Second Breakfast — Staggered Cards
   ============================================================ */
.staggered-cards {
  display: flex;
  gap: 32px;
  max-width: var(--max-content);
  margin: 48px auto 0 auto;
  align-items: flex-start;
}

.staggered-card {
  flex: 1;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staggered-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44, 36, 24, 0.1);
}

.staggered-card:nth-child(1) {
  margin-top: 0;
}

.staggered-card:nth-child(2) {
  margin-top: 40px;
  transform: scale(1.05);
}

.staggered-card:nth-child(2):hover {
  transform: scale(1.05) translateY(-4px);
}

.staggered-card:nth-child(3) {
  margin-top: 80px;
}

.staggered-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.staggered-card__content {
  padding: 24px;
}

.staggered-card__title {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.staggered-card__desc {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.5;
}

/* ============================================================
   Fellowship Footer CTA
   ============================================================ */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section .subtext {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 17px;
  color: var(--color-bg);
  opacity: 0.8;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-accent);
  border: none;
  padding: 16px 40px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.cta-button:hover {
  background: var(--color-accent-dark);
  color: var(--color-text);
  transform: translateY(-1px);
}

/* Torn-edge bottom border — fabric-swatch motif */
.cta-button::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent-dark);
  clip-path: polygon(
    0% 30%, 3% 100%, 8% 10%, 14% 80%, 19% 25%,
    25% 95%, 30% 15%, 36% 70%, 41% 35%, 47% 100%,
    52% 20%, 58% 85%, 63% 30%, 69% 75%, 74% 10%,
    80% 90%, 85% 25%, 91% 100%, 96% 40%, 100% 70%
  );
}

/* ============================================================
   About Page — Hero Overlay Panel
   ============================================================ */
.hero-about {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

.hero-about__image {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  object-position: center 40%;
}

.hero-about__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  max-width: 560px;
  background: rgba(245, 237, 224, 0.92);
  padding: 48px 48px 48px 40px;
  border-radius: 0 16px 0 0;
}

.hero-about .chapter-watermark {
  top: -20px;
  right: 40px;
}

.hero-about__panel h1 {
  margin-bottom: 12px;
}

.hero-about__panel .lead {
  color: var(--color-text-secondary);
  margin: 0;
}

/* ============================================================
   About — Origin Story with Circular Image
   ============================================================ */
.circular-image-float {
  float: right;
  width: 40%;
  margin: 0 0 24px 24px;
  shape-outside: circle(50%);
}

.circular-image-float img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

/* ============================================================
   About — Two Passions Converging Columns
   ============================================================ */
.converging-columns {
  max-width: var(--max-content);
  margin: 0 auto;
}

.converging-columns__split {
  display: flex;
  gap: 0;
  position: relative;
}

.converging-columns__left,
.converging-columns__right {
  flex: 1;
  padding: 0 40px;
  min-width: 0;
}

.converging-columns__divider {
  width: 1px;
  background: var(--color-secondary);
  flex-shrink: 0;
}

.converging-columns__merged {
  padding: 40px 40px 0 40px;
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================================
   About — Shire Principle Dark Section
   ============================================================ */
.shire-principle-dark {
  position: relative;
  overflow: hidden;
}

.shire-principle-dark__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  mix-blend-mode: soft-light;
}

.shire-principle-dark__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.shire-principle-dark .accent-phrase {
  font-family: var(--font-primary);
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

/* ============================================================
   Quest Page — Vignette Hero
   ============================================================ */
.hero-quest {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-quest__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-quest__vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(44, 36, 24, 0.6) 100%
  );
}

.hero-quest__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 40px;
}

.hero-quest .chapter-watermark {
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-bg);
  opacity: 0.12;
}

.hero-quest h1 {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 72px;
  color: var(--color-bg);
  margin-bottom: 16px;
}

.hero-quest .subtitle {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 18px;
  color: var(--color-bg);
  opacity: 0.85;
}

/* ============================================================
   Quest — Book-Style Figure
   ============================================================ */
.book-figure {
  margin: 40px auto;
  max-width: 50%;
  text-align: center;
}

.book-figure img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}

.book-figure figcaption {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ============================================================
   Quest — Timeline
   ============================================================ */
.quest-stages {
  position: relative;
  overflow: hidden;
}

.quest-stages__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
  pointer-events: none;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 80px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-secondary);
}

.timeline__item {
  position: relative;
  padding: 0 0 48px 0;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -58px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid var(--color-surface);
  z-index: 1;
}

.timeline__label {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.timeline__content {
  font-family: var(--font-secondary);
  font-size: 17px;
  line-height: 1.7;
}

/* ============================================================
   Quest — What Makes Worthy (Roman numeral criteria)
   ============================================================ */
.criteria-list {
  list-style: none;
  padding: 0;
}

.criteria-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: baseline;
}

.criteria-numeral {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 28px;
  color: var(--color-secondary);
  flex-shrink: 0;
  min-width: 40px;
}

.criteria-text {
  font-family: var(--font-secondary);
  font-size: 17px;
  line-height: 1.7;
}

/* ============================================================
   Comfort Picks — Gallery Hero
   ============================================================ */
.hero-comfort {
  padding: 80px 40px 60px 40px;
  text-align: center;
  position: relative;
  background: var(--color-bg);
}

.hero-comfort .chapter-watermark {
  top: -20px;
  right: 60px;
}

.hero-comfort h1 {
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.hero-comfort__image-wrap {
  max-width: 70%;
  margin: 0 auto 24px auto;
  position: relative;
  z-index: 1;
}

.hero-comfort__image-wrap img {
  width: 100%;
  border-radius: 8px;
}

.hero-comfort .descriptor {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  color: var(--color-text-secondary);
  position: relative;
  z-index: 1;
}

/* ============================================================
   Comfort Picks — Horizontal List Items (Bibliography Style)
   ============================================================ */
.picks-section {
  position: relative;
  overflow: hidden;
}

.picks-section__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
  pointer-events: none;
}

.pick-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--color-surface);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 4px 4px 0;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  transition: border-color 0.25s ease;
}

.pick-item:hover {
  border-left-color: var(--color-primary);
}

.pick-item:last-child {
  margin-bottom: 0;
}

.pick-item__category {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-primary);
  font-variant: small-caps;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.pick-item__title {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 24px;
  color: var(--color-text);
  margin-bottom: 4px;
  flex: 0 0 auto;
  min-width: 200px;
}

.pick-item__desc {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text-secondary);
  flex: 1;
  min-width: 0;
}

.pick-item__link {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   Fellowship Seal — CSS Double Circle
   ============================================================ */
.fellowship-seal {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px auto;
  position: relative;
}

.fellowship-seal::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border-radius: 50%;
  border: 2px solid var(--color-secondary);
}

.fellowship-seal__text {
  font-family: var(--font-primary);
  font-weight: 600;
  font-variant: small-caps;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.2;
  z-index: 1;
}

/* ============================================================
   Journal — Shorter Hero
   ============================================================ */
.hero-journal {
  position: relative;
  height: 50vh;
  min-height: 320px;
  overflow: hidden;
}

.hero-journal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-journal__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 480px;
  background: rgba(245, 237, 224, 0.92);
  padding: 36px 40px 36px 40px;
  border-radius: 0 16px 0 0;
}

.hero-journal .chapter-watermark {
  top: -20px;
  right: 40px;
  color: var(--color-bg);
  opacity: 0.15;
}

.hero-journal__panel h1 {
  margin-bottom: 8px;
}

.hero-journal__panel .subtitle {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ============================================================
   Journal — Category Grid (Staggered Columns)
   ============================================================ */
.category-grid {
  display: flex;
  gap: 48px;
  max-width: var(--max-content);
  margin: 0 auto;
}

.category-column {
  flex: 1;
  padding-top: 0;
  border-top: 4px solid var(--color-secondary);
  padding: 32px 0 0 0;
  min-width: 0;
}

.category-column:nth-child(2) {
  margin-top: 8px;
}

.category-column:nth-child(3) {
  margin-top: 16px;
}

.category-column__name {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.category-column__desc {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 24px;
}

.category-column__link {
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--color-accent);
}

/* ============================================================
   Contact — Contained Hero
   ============================================================ */
.hero-contact {
  padding: 80px 40px 60px 40px;
  text-align: center;
  position: relative;
  background: var(--color-bg);
}

.hero-contact .chapter-watermark {
  top: -20px;
  right: 60px;
}

.hero-contact h1 {
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.hero-contact .subtitle {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.hero-contact__image-wrap {
  max-width: 80%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-contact__image-wrap img {
  width: 100%;
  border-radius: 12px;
}

/* ============================================================
   Contact Form — Parchment Writing Lines
   ============================================================ */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 32px;
}

.form-group label {
  display: block;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-secondary);
  font-variant: small-caps;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 17px;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-secondary);
  padding: 12px 0;
  outline: none;
  transition: border-color 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  border: none;
  border-bottom: 2px solid var(--color-secondary);
}

.form-submit {
  text-align: center;
  margin-top: 40px;
}

/* ============================================================
   Footer — Deep Forest
   ============================================================ */
.site-footer {
  background: var(--color-primary-dark);
  color: var(--color-bg);
  padding: 60px 40px 40px 40px;
}

.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-brand {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 24px;
  color: var(--color-bg);
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-style: italic;
  font-size: 15px;
  color: rgba(245, 237, 224, 0.7);
  max-width: 300px;
}

.footer-nav {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-secondary);
  font-size: 14px;
  color: rgba(245, 237, 224, 0.7);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--color-bg);
}

.footer-bottom {
  max-width: var(--max-content);
  margin: 40px auto 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 237, 224, 0.15);
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-secondary);
  font-size: 13px;
  color: rgba(245, 237, 224, 0.5);
  margin: 0;
}

/* ============================================================
   404 Page
   ============================================================ */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 80px 40px;
}

.page-404 .display {
  color: var(--color-secondary);
  opacity: 0.3;
  font-size: 160px;
  margin-bottom: 24px;
}

.page-404 h1 {
  margin-bottom: 16px;
}

.page-404 p {
  font-family: var(--font-secondary);
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

/* ============================================================
   Utility
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============================================================
   Scroll-Triggered Fade-In
   ============================================================ */
.fade-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-ready.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Mobile Nav Overlay
   ============================================================ */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(245, 237, 224, 0.98);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay a {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 28px;
  color: var(--color-text);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}

.nav-overlay a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -4px;
  right: -4px;
  height: 3px;
  background: var(--color-accent);
  clip-path: polygon(
    0% 40%, 4% 100%, 8% 20%, 13% 85%, 17% 30%,
    22% 95%, 27% 15%, 32% 80%, 37% 25%, 42% 100%,
    47% 10%, 52% 70%, 57% 35%, 62% 90%, 67% 20%,
    72% 75%, 77% 40%, 82% 100%, 87% 15%, 92% 65%,
    97% 30%, 100% 80%
  );
}

.nav-close {
  position: absolute;
  top: 20px;
  right: 40px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-text);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Responsive — Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-parchment-strip h1 {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .two-col {
    gap: 32px;
  }

  .staggered-cards {
    gap: 24px;
  }

  .staggered-card:nth-child(2) {
    transform: scale(1.03);
  }

  .category-grid {
    gap: 32px;
  }

  .pick-item {
    flex-wrap: wrap;
  }

  .pick-item__title {
    min-width: 160px;
  }
}

/* ============================================================
   Responsive — Tablet/Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Navigation — mobile */
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    padding: 16px 24px;
  }

  /* Homepage Hero — stacked */
  .hero-home {
    flex-direction: column;
    min-height: auto;
  }

  .hero-parchment-strip {
    position: relative;
    width: 100%;
    height: auto;
    padding: 80px 24px 48px 24px;
  }

  .hero-parchment-strip h1 {
    font-weight: 600;
    font-size: 42px;
  }

  .hero-parchment-strip .chapter-watermark {
    font-size: 180px;
  }

  .hero-image-panel {
    margin-left: 0;
    width: 100%;
    min-height: 50vh;
  }

  .hero-image-panel img {
    height: 50vh;
  }

  /* Sections */
  .section-parchment,
  .section-vellum,
  .section-dark {
    padding: 60px 24px;
  }

  /* Two-column — stack with asymmetric image */
  .two-col,
  .two-col--reversed {
    flex-direction: column;
    gap: 32px;
  }

  .two-col__image {
    flex: none;
    max-width: 80%;
    width: 80%;
  }

  .two-col--reversed .two-col__image {
    align-self: flex-start;
  }

  .two-col .two-col__image {
    align-self: flex-end;
  }

  .two-col__image--bleed-bottom img {
    margin-bottom: 0;
    border-radius: 16px;
  }

  /* Staggered cards — single column with left borders */
  .staggered-cards {
    flex-direction: column;
    gap: 24px;
  }

  .staggered-card {
    margin-top: 0 !important;
    transform: none !important;
  }

  .staggered-card:hover {
    transform: translateY(-4px) !important;
  }

  .staggered-card:nth-child(1) {
    border-left: 4px solid var(--color-primary);
  }

  .staggered-card:nth-child(2) {
    border-left: 4px solid var(--color-secondary);
    min-height: 320px;
  }

  .staggered-card:nth-child(3) {
    border-left: 4px solid var(--color-accent);
  }

  /* About hero */
  .hero-about__panel {
    width: 100%;
    max-width: none;
    position: relative;
    border-radius: 0;
  }

  .hero-about {
    min-height: auto;
  }

  .hero-about__image {
    height: 40vh;
  }

  /* Circular image */
  .circular-image-float {
    float: none;
    width: 60%;
    margin: 0 auto 24px auto;
    shape-outside: none;
  }

  /* Converging columns */
  .converging-columns__split {
    flex-direction: column;
  }

  .converging-columns__divider {
    width: 100%;
    height: 1px;
    margin: 24px 0;
  }

  .converging-columns__left,
  .converging-columns__right {
    padding: 0;
  }

  /* Quest hero */
  .hero-quest {
    min-height: 60vh;
  }

  .hero-quest h1 {
    font-size: 48px;
  }

  /* Timeline */
  .timeline {
    padding-left: 50px;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline__marker {
    left: -42px;
  }

  /* Pick items — stack */
  .pick-item {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .pick-item__title {
    min-width: auto;
  }

  /* Comfort hero */
  .hero-comfort__image-wrap {
    max-width: 90%;
  }

  /* Journal categories */
  .category-grid {
    flex-direction: column;
    gap: 32px;
  }

  .category-column:nth-child(2),
  .category-column:nth-child(3) {
    margin-top: 0;
  }

  /* Contact hero */
  .hero-contact__image-wrap {
    max-width: 95%;
  }

  /* Journal hero */
  .hero-journal {
    height: 40vh;
  }

  .hero-journal__panel {
    max-width: 100%;
    border-radius: 0;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-nav {
    gap: 16px;
  }

  /* Typography scale down */
  h1, .h1 {
    font-size: 36px;
  }

  h2, .h2 {
    font-size: 28px;
  }

  .display {
    font-size: 48px;
  }

  .pull-quote p {
    font-size: 22px;
  }

  .book-figure {
    max-width: 70%;
  }
}

/* ============================================================
   Responsive — Small Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-parchment-strip h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-parchment-strip .chapter-watermark {
    font-size: 120px;
  }

  .chapter-watermark {
    font-size: 160px;
  }

  h1, .h1 {
    font-size: 30px;
  }

  h2, .h2 {
    font-size: 24px;
  }

  .hero-quest h1 {
    font-size: 36px;
  }

  .staggered-card__content {
    padding: 16px;
  }

  .category-column__name {
    font-size: 24px;
  }

  .two-col__image {
    max-width: 90%;
    width: 90%;
  }

  .book-figure {
    max-width: 85%;
  }
}
