/* dauntlessleague.com — consolidated styles */

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

/* PALETTE */
:root {
  --shield-gray:   #4B4B4B;
  --parchment-tan: #D8CBB3;
  --sepia-ink:     #6E5849;
  --iron-black:    #1E1E1E;
  --ash-white:     #F5F3EF;
  --blood-red:     #7A2E2E;
  --bronze-edge:   #A67C52;
  --olive:         #5C5C3D;
}

/* DARK MODE (default) */
[data-theme="dark"] {
  --bg:       #0c0b10;
  --text:     #D8CBB3;
  --text-dim: rgba(216,203,179,0.42);
  --accent:   #6E5849;
  --accent2:  #A67C52;
  --rule:     rgba(110,88,73,0.22);
  --faint:    rgba(110,88,73,0.06);
  --header-bg: rgba(12,11,16,0.92);
}

/* LIGHT MODE */
[data-theme="light"] {
  --bg:       #F5F3EF;
  --text:     #1E1E1E;
  --text-dim: rgba(30,30,30,0.52);
  --accent:   #6E5849;
  --accent2:  #A67C52;
  --rule:     rgba(110,88,73,0.2);
  --faint:    rgba(110,88,73,0.07);
  --header-bg: rgba(245,243,239,0.92);
}

html { font-size: 16px; }

body {
  background-color: var(--bg);
  background-image: url('parchment-speckle-dark.jpg');
  background-repeat: repeat;
  background-size: 512px 512px;
  color: var(--text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
[data-theme="light"] body {
  background-image: url('parchment-speckle-light.jpg');
}

/* HEADER */
header {
  padding: 1.8rem 2.5rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
}
.wordmark {
  font-family: 'Spectral', serif;
  font-size: 1rem;
  font-weight: 200;
  letter-spacing: 0.18em;
  color: var(--text);
  opacity: 0.65;
}
.theme-btn {
  background: none;
  border: 1px solid var(--rule);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  opacity: 0.55;
}
.theme-btn:hover { opacity: 1; border-color: var(--accent2); }

/* HERO */
.hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.hero-image {
  position: absolute;
  inset: 0;
  background: url('assets/hero.png') center 40% / cover no-repeat;
}
[data-theme="light"] .hero-image {
  filter: saturate(0.5) brightness(0.9);
}
[data-theme="light"] .hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #F5F3EF;
  opacity: 0.35;
  mix-blend-mode: color;
  pointer-events: none;
}
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(0,0,0,0) 60%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 2.5rem 5rem;
  max-width: 760px;
}

h1 {
  font-family: 'Spectral', serif;
  font-weight: 200;
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  line-height: 1.08;
  color: #F5F3EF;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
h1 em { font-style: italic; color: #F5F3EF; }

/* Hero sub — base (dark mode) */
.hero-sub {
  font-size: 3rem;
  line-height: 1.9;
  color: rgba(245,243,239,0.6);
  font-style: italic;
  font-weight: 300;
  max-width: 520px;
}

/* TEXT READABILITY ON HERO IMAGE */
/* h1: dark shadow — carves light text out of image */
[data-theme="light"] h1 {
  text-shadow:
    0 0 0 rgba(0,0,0,1),
    0 0 1px rgba(0,0,0,1),
    0 0 16px rgba(0,0,0,1),
    0 0 32px rgba(0,0,0,1),
    0 0 64px rgba(0,0,0,0.8),
    0 0 112px rgba(0,0,0,0.5);
}
[data-theme="dark"] h1 {
  text-shadow:
    0 0 0 rgba(12,11,16,1),
    0 0 1px rgba(12,11,16,1),
    0 0 16px rgba(12,11,16,1),
    0 0 32px rgba(12,11,16,1),
    0 0 64px rgba(12,11,16,0.8),
    0 0 112px rgba(12,11,16,0.5);
}

/* hero-sub: page-color outline — solid only, no blur (testing) */
[data-theme="light"] .hero-sub {
  color: #000000;
  font-weight: 400;
  text-shadow:
    0 -1px 0 rgb(251,251,251),
    0 1px 0 rgb(251,251,251),
    -1px 0 0 rgb(251,251,251),
    1px 0 0 rgb(251,251,251),
    -1px -1px 0 rgb(251,251,251),
    1px -1px 0 rgb(251,251,251),
    -1px 1px 0 rgb(251,251,251),
    1px 1px 0 rgb(251,251,251),
    0 -2px 0 rgba(251,251,251,0.75),
    0 2px 0 rgba(251,251,251,0.75),
    -2px 0 0 rgba(251,251,251,0.75),
    2px 0 0 rgba(251,251,251,0.75),
    -2px -2px 0 rgba(245,243,239,0.75),
    2px -2px 0 rgba(245,243,239,0.75),
    -2px 2px 0 rgba(245,243,239,0.75),
    2px 2px 0 rgba(245,243,239,0.75);
}
[data-theme="dark"] .hero-sub {
  text-shadow:
    0 0 0 rgba(12,11,16,1),
    0 0 1px rgba(12,11,16,1),
    0 0 8px rgba(12,11,16,1),
    0 0 16px rgba(12,11,16,1),
    0 0 32px rgba(12,11,16,0.9),
    0 0 48px rgba(12,11,16,0.7);
}

/* SLOGAN STRIP */
.slogan-strip {
  border-bottom: 1px solid var(--rule);
  padding: 2.2rem 2.5rem;
  display: flex;
  gap: 0;
  align-items: stretch;
  background: var(--faint);
}
.slogan-beat {
  flex: 1;
  padding: 1.2rem 1.8rem;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.slogan-beat:last-child { border-right: none; }
.slogan-beat .label {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--accent2);
  opacity: 0.65;
  text-transform: uppercase;
}
.slogan-beat .word {
  font-family: 'Spectral', serif;
  font-weight: 200;
  font-size: 2rem;
  color: var(--text);
  letter-spacing: 0.04em;
}
.slogan-beat .sub {
  font-size: 2.1rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.6;
  margin-top: 0.3rem;
}

/* BODY COPY */
.body-copy { padding: 5rem 2.5rem 6rem; flex: 1; }
.content-col { max-width: 680px; }
.drop-cap { font-size: 2.2rem; line-height: 1.85; color: var(--text); margin-bottom: 1.8rem; font-weight: 300; }
.body-copy p { font-size: 2rem; line-height: 1.95; color: var(--text-dim); margin-bottom: 1.6rem; font-weight: 300; }
.body-copy p em { font-style: italic; color: var(--text); }

/* CREED */
.creed { margin: 4rem 0; padding: 2.8rem 3rem; border-left: 3px solid var(--accent); background: var(--faint); }
.creed-heading { font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.16em; color: var(--accent2); opacity: 0.65; margin-bottom: 1.8rem; }
.creed-section { margin-bottom: 1.8rem; }
.creed-section:last-of-type { margin-bottom: 0; }
.creed-beat { font-family: 'Spectral', serif; font-weight: 200; font-size: 1.8rem; color: var(--text); letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.creed-body { font-size: 1.3rem; line-height: 1.8; color: var(--text-dim); font-style: italic; font-weight: 300; }
.creed-footer { margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid var(--rule); }
.creed-footer p { font-size: 1.25rem; line-height: 1.9; color: var(--text-dim); margin-bottom: 0.6rem; }
.creed-close { font-family: 'Spectral', serif; font-weight: 200; font-size: 1.5rem; color: var(--text); margin-top: 1.2rem; }
.creed-close em { font-style: italic; color: var(--accent2); }

/* UTILITIES */
.inline-link { color: var(--accent2); text-decoration: none; border-bottom: 1px solid rgba(166,124,82,0.35); }
.inline-link:hover { border-color: var(--accent2); }
.divider { height: 1px; background: var(--rule); margin: 3rem 0; max-width: 4rem; }

/* FOOTER */
footer { padding: 1.8rem 2.5rem; border-top: 1px solid var(--rule); }
.copy { font-family: 'Space Mono', monospace; font-size: 0.65rem; opacity: 0.22; letter-spacing: 0.06em; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .slogan-strip { flex-direction: column; }
  .slogan-beat { border-right: none; border-bottom: 1px solid var(--rule); }
  .slogan-beat:last-child { border-bottom: none; }
}

/* ANIMATION */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hero-inner { animation: fadeUp 0.8s ease both; }
.slogan-strip { animation: fadeUp 0.8s 0.05s ease both; }
.content-col { animation: fadeUp 0.8s 0.1s ease both; }
