/* ------------------------------------------------------------------
   Jared Muenks — personal site v2
   Hardened / tactical aesthetic with spiritual depth.
   Palette: near-black olive, bone, sage-olive accent, sand highlight
------------------------------------------------------------------ */

:root {
  --bg: #0b0c0a;
  --panel: #11130e;
  --bone: #e7e2d3;
  --muted: #8b8678;
  --line: #24261f;
  --accent: #93a273;        /* sage-olive */
  --accent-dim: #5c6649;
  --sand: #c9a86a;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", monospace;

  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  /* layered static depth under the animated aurora */
  background-image:
    radial-gradient(ellipse 70% 45% at 20% -5%, rgba(30, 62, 44, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 15%, rgba(20, 56, 64, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(58, 48, 24, 0.3) 0%, transparent 65%);
  color: var(--bone);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

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

.mono {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.08em;
}

main { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; }

/* ---------- Aurora — drifting depth layers ---------- */

.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora__blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.aurora__blob--1 {
  top: -25vmax;
  left: -15vmax;
  background: radial-gradient(circle, rgba(46, 94, 66, 0.5) 0%, transparent 65%);
  animation: drift-1 38s ease-in-out infinite alternate;
}

.aurora__blob--2 {
  top: 10vmax;
  right: -25vmax;
  background: radial-gradient(circle, rgba(24, 78, 88, 0.42) 0%, transparent 65%);
  animation: drift-2 46s ease-in-out infinite alternate;
}

.aurora__blob--3 {
  bottom: -30vmax;
  left: 25vmax;
  background: radial-gradient(circle, rgba(140, 110, 56, 0.28) 0%, transparent 65%);
  animation: drift-3 54s ease-in-out infinite alternate;
}

@keyframes drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(14vmax, 10vmax) scale(1.25); }
}

@keyframes drift-2 {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(-12vmax, 14vmax) scale(0.9); }
}

@keyframes drift-3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-16vmax, -10vmax) scale(1.3); }
}

/* ---------- Tactical grid overlay ---------- */

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(147, 162, 115, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(147, 162, 115, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 0%, transparent 80%);
}

/* ---------- Nav ---------- */

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.nav__mark {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.nav__mark-tick { animation: blink 1.2s steps(1) infinite; }

@keyframes blink { 50% { opacity: 0; } }

.nav__links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav__links a { color: var(--muted); transition: color 0.25s ease; }
.nav__links a span { color: var(--accent-dim); margin-right: 4px; }
.nav__links a:hover { color: var(--bone); }

/* ---------- Hero ---------- */

.hero {
  padding: 13vh 0 15vh;
  position: relative;
  z-index: 1;
}

.hero__status {
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero__sub {
  max-width: 580px;
  margin-top: 30px;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero__cta {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__coords {
  margin-top: 72px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 0.68rem;
  color: var(--accent-dim);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.btn--primary:hover {
  background: var(--sand);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Section heads ---------- */

section { padding: 9vh 0; position: relative; z-index: 1; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-head__num {
  font-size: 0.72rem;
  color: var(--accent);
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
}

.section-head__tag {
  margin-left: auto;
  font-size: 0.62rem;
  color: var(--accent-dim);
}

/* ---------- Ethos ---------- */

.ethos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tenet {
  background: rgba(11, 12, 10, 0.82);
  padding: 40px 36px;
  transition: background 0.3s ease;
}

.tenet:hover { background: rgba(17, 19, 14, 0.92); }

.tenet__num {
  font-size: 0.68rem;
  color: var(--accent-dim);
  display: block;
  margin-bottom: 18px;
}

.tenet h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--bone);
}

.tenet p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Interlude ---------- */

.interlude {
  padding: 12vh 0;
  text-align: center;
}

.interlude blockquote p {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.45;
  color: var(--bone);
  max-width: 760px;
  margin: 0 auto;
}

.interlude blockquote em { color: var(--accent); }

/* ---------- Field Notes ---------- */

.notes__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.note {
  border-left: 1px solid var(--accent-dim);
  padding-left: 24px;
}

.note__meta {
  display: block;
  font-size: 0.62rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.note p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Ventures ---------- */

.ventures__list { display: flex; flex-direction: column; }

.venture {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  align-items: center;
  gap: 24px;
  padding: 40px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, padding 0.3s ease;
}

.venture:first-child { border-top: 1px solid var(--line); }

.venture:hover {
  background: rgba(17, 19, 14, 0.85);
  padding-left: 28px;
}

.venture__index {
  font-size: 0.68rem;
  color: var(--accent-dim);
}

.venture__body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.venture__body p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 540px;
}

.venture__arrow {
  font-size: 1.3rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.venture:hover .venture__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Train / BSA Skool ---------- */

.train__panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(147, 162, 115, 0.06) 0%, transparent 50%),
    var(--panel);
  padding: 64px 56px;
  position: relative;
}

.train__panel::before,
.train__panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  border-style: solid;
}

.train__panel::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.train__panel::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.train__badge {
  display: inline-block;
  font-size: 0.62rem;
  color: var(--sand);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
}

.train__panel h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 18px;
}

.train__lead {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.train__list {
  list-style: none;
  font-size: 0.72rem;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

/* ---------- Comms ---------- */

.comms__lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  max-width: 640px;
  margin-bottom: 48px;
}

.comms__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.comms__link {
  padding: 12px 26px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.72rem;
  color: var(--muted);
  transition: all 0.3s ease;
}

.comms__link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--accent-dim);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .nav__mark-tick { animation: none; }
  .aurora__blob { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .notes__list { grid-template-columns: 1fr; gap: 32px; }
  .ethos__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__links a span { display: none; }
  .nav__links { gap: 18px; }

  .venture {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 32px 8px;
  }

  .venture__arrow { display: none; }

  .hero { padding: 9vh 0 11vh; }

  .hero__coords { gap: 20px; }

  .train__panel { padding: 44px 28px; }

  .section-head__tag { display: none; }
}
