/* ============================================================
   paracord.css — Moondog Mechanica · Paracord subdomain
   Fonts: Cinzel (headings) · Crimson Pro (body) · Share Tech Mono (labels)
   Palette: warm taupe / grey-green / amber-brown — distinct from main MM site
   ============================================================ */

:root {
  /* ── Base tones ── */
  --ground:      #1a1714;       /* warm near-black, not blue-black */
  --deep-ground: #242018;       /* slightly lighter warm dark */
  --mid-ground:  #2e2a22;       /* card/panel backgrounds */

  /* ── Grey-green (replaces teal) ── */
  --sage:        #4a5c4e;       /* muted grey-green */
  --sage-light:  #7a9c82;       /* lighter sage for labels/accents */
  --sage-glow:   #96b89e;       /* hover/active sage */

  /* ── Amber-brown (replaces brass) ── */
  --amber:       #b8822a;       /* main accent, warmer and darker than brass */
  --amber-dim:   #7a5518;       /* subdued amber */
  --amber-pale:  #d4a85a;       /* light amber for headings */

  /* ── Text tones ── */
  --linen:       #ede6d4;       /* warm off-white body text */
  --linen-dim:   #c8bfa8;       /* secondary text */
  --stone:       #8a8070;       /* muted grey-brown for labels */

  /* ── Cord accent colors ── */
  --cord-yellow: #c8b828;
  --cord-purple: #5a3a7a;
  --cord-burgundy: #622030;
  --cord-sage:   #4a7a58;
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── BASE + FABRIC TEXTURE BACKGROUND ── */
body {
  background-color: #2e2c2e;
  background-image: url('images/fabric-bg.jpg');
  background-repeat: repeat;
  background-size: 300px 300px;
  background-attachment: fixed;
  color: var(--linen);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.8;
  overflow-x: hidden;
}

/* Dark overlay so fabric recedes and text stays readable */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(28,26,24,0.78);
  pointer-events: none;
  z-index: 0;
}

/* ── SITE NAV ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 3rem;
  background: rgba(26,23,20,0.92);
  border-bottom: 1px solid rgba(184,130,42,0.2);
  backdrop-filter: blur(8px);
  gap: 2rem;
}

.nav-home {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  color: var(--sage-light);
  text-decoration: none;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-home:hover { color: var(--amber-pale); }

.nav-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber-pale); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 0 4rem 3rem;
  margin-top: 56px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 18px,
      rgba(184,130,42,0.025) 18px,
      rgba(184,130,42,0.025) 19px
    ),
    linear-gradient(
      to bottom,
      rgba(26,23,20,0.25) 0%,
      rgba(26,23,20,0.78) 100%
    );
  z-index: 1;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 2rem;
  left: 3rem;
  right: 3rem;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(184,130,42,0.5) 20%,
    rgba(184,130,42,0.5) 80%,
    transparent
  );
  z-index: 2;
}

.hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 3;
  animation: fadeUp 0.9s ease both;
  flex-shrink: 0;
  max-width: 50%;
}

/* ── HERO IMAGE PANEL ── */
.hero-image-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  z-index: 0;
  overflow: hidden;
}

.hero-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.15) 18%,
    rgba(0,0,0,0.6) 35%,
    black 60%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0,0,0,0.15) 18%,
    rgba(0,0,0,0.6) 35%,
    black 60%
  );
}

.hero-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  color: var(--sage-light);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--amber-pale);
  text-shadow: 0 0 60px rgba(184,130,42,0.3), 0 2px 12px rgba(0,0,0,0.9);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.hero-tagline {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--linen-dim);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SECTIONS ── */
.section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

.section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--sage-light);
  letter-spacing: 0.2em;
  margin-bottom: 0.6rem;
}

.section h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--amber-pale);
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
}

/* ── PROSE LINKS ── */
.prose-block a {
  color: var(--amber-pale);
  text-decoration: underline;
  text-decoration-color: rgba(184,130,42,0.4);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.prose-block a:hover {
  color: var(--amber);
  text-decoration-color: var(--amber);
}

/* ── PROSE ── */
.prose-block {
  max-width: 780px;
}
.prose-block p + p { margin-top: 1.2rem; }

/* ── GEAR DIVIDER ── */
.gear-divider {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  color: rgba(184,130,42,0.3);
  letter-spacing: 0.6em;
  padding: 0.5rem 0;
}

/* ── SUBSECTIONS ── */
.subsection {
  margin-bottom: 5rem;
}
.subsection:last-child { margin-bottom: 0; }

.subsection-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  color: rgba(184,130,42,0.5);
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(184,130,42,0.12);
}

/* ── SPLIT LAYOUT ── */
.split-block {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.split-left  { grid-template-columns: 1fr 1fr; }
.split-right { grid-template-columns: 1fr 1fr; }

.split-right .text-side  { order: 1; }
.split-right .collage-side { order: 2; }

.text-side h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.text-side p + p { margin-top: 1rem; }

.design-aka {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: var(--sage-light);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem !important;
}

/* ── COLLAGE ── */
.collage-side {
  position: sticky;
  top: 80px;
}

.collage {
  display: grid;
  gap: 6px;
}

.collage-5 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
}

.collage-5 .collage-slot:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

.collage-slot {
  aspect-ratio: 4/3;
  background: var(--mid-ground);
  border: 1px solid rgba(184,130,42,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.collage-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-placeholder {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: rgba(184,130,42,0.25);
  letter-spacing: 0.15em;
}

/* ══════════════════════════════════════════════
   LESSONS LEARNED — Timeline / Logbook layout
   ══════════════════════════════════════════════ */

/* Section gets its own contained logbook treatment */
#lessons {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

#lessons .section-label,
#lessons h2 {
  position: relative;
  z-index: 2;
}

/* Graph paper background contained to this section */
#lessons::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background-image:
    linear-gradient(rgba(100,130,110,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,130,110,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  background-color: rgba(224,216,196,0.14);
  z-index: 0;
}

/* Timeline container */
.timeline {
  position: relative;
  padding-left: 3.5rem;
  z-index: 2;
}

/* The vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 0.85rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(184,130,42,0.5) 6%,
    rgba(184,130,42,0.5) 94%,
    transparent
  );
}

/* Individual timeline entry */
.timeline-entry {
  position: relative;
  margin-bottom: 3.2rem;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

/* Node on the timeline line */
.timeline-entry::before {
  content: '';
  position: absolute;
  left: -2.72rem;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px rgba(184,130,42,0.4);
}

/* Entry number */
.timeline-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: var(--amber-dim);
  letter-spacing: 0.25em;
  display: block;
  margin-bottom: 0.3rem;
  opacity: 0.8;
}

/* Entry heading */
.timeline-entry h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--amber-pale);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

/* Entry body */
.timeline-entry p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--linen);
  max-width: 780px;
}

/* Image within a timeline entry */
.timeline-entry-img {
  margin-top: 1.2rem;
  max-width: 480px;
  border: 1px solid rgba(184,130,42,0.15);
  overflow: hidden;
}

.timeline-entry-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Three small color sample images in a row */
.color-trio {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
  max-width: 480px;
}

.color-trio-slot {
  flex: 1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(184,130,42,0.15);
  background: var(--mid-ground);
}

.color-trio-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── SAFETY CALLOUT ── */
.safety-callout {
  margin-top: 1.8rem;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--sage-light);
  background: rgba(74,92,78,0.18);
  position: relative;
}

.safety-callout-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: var(--sage-glow);
  letter-spacing: 0.22em;
  margin-bottom: 0.7rem;
}

.safety-callout p {
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--linen-dim);
}

.safety-callout p + p {
  margin-top: 0.9rem;
}
.final-prose {
  max-width: 820px;
}
.final-prose p + p { margin-top: 1.2rem; }

.final-coda {
  margin-top: 2.5rem !important;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-style: normal !important;
  color: var(--amber);
  letter-spacing: 0.15em;
}

.cord-word {
  color: var(--amber-pale);
  font-style: italic;
}

/* ── CONTACT ── */
.contact-section {
  text-align: center;
  padding: 3rem 3rem;
}

.contact-section h2 {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  margin-bottom: 1rem;
}

.contact-body {
  color: var(--linen-dim);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.contact-link {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.88rem;
  color: var(--amber-pale);
  text-decoration: none;
  letter-spacing: 0.08em;
  padding: 0.7rem 2rem;
  border: 1px solid rgba(184,130,42,0.35);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.contact-link:hover {
  background: rgba(184,130,42,0.1);
  border-color: var(--amber);
  color: var(--amber-pale);
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.8rem 2rem;
  border-top: 1px solid rgba(184,130,42,0.15);
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--amber-pale);
  letter-spacing: 0.15em;
  margin-bottom: 0.2rem;
}

.footer-tagline {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  color: var(--linen-dim);
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.footer-sigil {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.55;
  border-radius: 50%;
  flex-shrink: 0;
}

footer .license {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  color: rgba(138,128,112,0.5);
  letter-spacing: 0.07em;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .site-nav { padding: 0.8rem 1.5rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.6rem; }

  .hero {
    padding: 4rem 1.5rem 3rem;
    align-items: center;
    justify-content: center;
    min-height: 36vh;
  }
  .hero-content {
    max-width: 80%;
    text-align: center;
  }

  /* Switch image panel to full bleed background on tablet */
  .hero-image-panel {
    width: 100%;
    left: 0;
    right: 0;
    opacity: 0.45;
  }
  .hero-image-panel img {
    mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 60%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 60%,
      transparent 100%
    );
  }

  .section { padding: 3.5rem 1.5rem; }
  #lessons { padding: 3.5rem 1.5rem; }

  .split-left,
  .split-right { grid-template-columns: 1fr; }

  .split-left .text-side    { order: 1; }
  .split-left .collage-side  { order: 2; }
  .split-right .text-side   { order: 1; }
  .split-right .collage-side { order: 2; }

  .collage-side { position: static; }

  .timeline { padding-left: 2.5rem; }
}

@media (max-width: 560px) {
  .nav-hamburger { display: flex; }

  .hero {
    padding: 5rem 1.5rem 3rem;
    align-items: flex-start;
    min-height: 38vh;
  }
  .hero-content {
    max-width: 100%;
    text-align: left;
  }

  /* Full bleed background on mobile, slightly more opaque overlay */
  .hero-image-panel {
    display: block;
    width: 100%;
    left: 0;
    right: 0;
    opacity: 0.4;
  }
  .hero-image-panel img {
    object-position: center center;
    mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 50%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 50%,
      transparent 100%
    );
  }
  .hero::after { left: 1.5rem; right: 1.5rem; }

  .hero h1 { font-size: 2.2rem; letter-spacing: 0.06em; }
  .hero-tagline { font-size: 1rem; }

  .collage-5 { grid-template-columns: 1fr; }
  .collage-5 .collage-slot:first-child { aspect-ratio: 4/3; }

  .color-trio { max-width: 100%; }

  .safety-callout,
  .use-callout { padding: 1rem 1.2rem; }

  .timeline { padding-left: 2rem; }
  .timeline-entry::before { left: -1.72rem; }

  .contact-section { padding: 2rem 1.5rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(26,23,20,0.97);
    border-bottom: 1px solid rgba(184,130,42,0.18);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0;
  }

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

  .nav-links a {
    padding: 0.85rem 1.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    border-bottom: 1px solid rgba(184,130,42,0.07);
  }

  .nav-links a:last-child { border-bottom: none; }
}
