/* danimal.css - Danimal's Adventures */
:root {
  --navy:         #07087a;
  --deep-navy:    #03043d;
  --accent:       #6b7fff;
  --accent-light: #a0aaff;
  --gold:         #c8a84b;
  --text:         #e8e8ff;
  --text-dim:     #9090c8;
}

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

body {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 20% 0%,  rgba(20,20,160,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(5,5,80,0.6)   0%, transparent 60%);
  color: var(--text);
  font-family: 'Crimson Text', Georgia, serif;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: var(--deep-navy);
  border-bottom: 2px solid var(--accent);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  position: relative;
}
header::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 2px;
  background: var(--gold);
}
header h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 2.6rem; font-weight: 700; color: #fff; letter-spacing: .02em; text-shadow: 0 0 40px rgba(107,127,255,.4); }
header h1 a { color: inherit; text-decoration: none; }
header .tagline { font-family: 'Raleway', sans-serif; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); margin-top: .5rem; }

/* ── Main nav ── */
nav.main-nav { background: var(--deep-navy); border-bottom: 1px solid rgba(107,127,255,.25); }
.menu-toggle { display: none; width: 100%; background: none; border: none; border-bottom: 1px solid rgba(107,127,255,.15); color: var(--accent-light); font-family: 'Raleway', sans-serif; font-size: .82rem; letter-spacing: .15em; text-transform: uppercase; padding: .8rem 1.5rem; text-align: left; cursor: pointer; }
.nav-inner { max-width: 900px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem; padding: .6rem 1rem; }
.nav-inner a { font-family: 'Raleway', sans-serif; font-size: .76rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-light); text-decoration: none; padding: .4rem .9rem; border-radius: 20px; border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s; }
.nav-inner a:hover, .nav-inner a.active { background: rgba(107,127,255,.15); border-color: var(--accent); color: #fff; }

/* ── Sub-nav ── */
nav.sub-nav { background: rgba(3,4,61,.6); border-bottom: 1px solid rgba(107,127,255,.15); }
.sub-nav-inner { max-width: 900px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; padding: .5rem 1rem; }
.sub-nav-inner .section-label { font-family: 'Raleway', sans-serif; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-right: .5rem; white-space: nowrap; }
.sub-nav-inner a { font-family: 'Raleway', sans-serif; font-size: .72rem; letter-spacing: .08em; color: var(--text-dim); text-decoration: none; padding: .3rem .7rem; border-radius: 14px; border: 1px solid transparent; transition: all .2s; }
.sub-nav-inner a:hover, .sub-nav-inner a.current { background: rgba(107,127,255,.12); border-color: rgba(107,127,255,.4); color: var(--accent-light); }

/* ── Main content ── */
main { max-width: 800px; margin: 2.5rem auto; padding: 0 1.5rem 3rem; }
.content-card { background: rgba(3,4,61,.55); border: 1px solid rgba(107,127,255,.2); border-radius: 8px; padding: 2.5rem; }
.content-card h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--accent-light); margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(107,127,255,.2); }
.content-card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--accent-light); margin: 1.5rem 0 .75rem; }
.content-card p { font-size: 1.1rem; line-height: 1.78; color: var(--text); margin-bottom: 1rem; }
.content-card p:last-child { margin-bottom: 0; }
.content-card ul, .content-card ol { margin: 1rem 0 1rem 1.5rem; line-height: 1.7; font-size: 1.05rem; }
.content-card li { margin-bottom: .4rem; }
.content-card a { color: var(--accent-light); text-decoration: none; border-bottom: 1px solid rgba(107,127,255,.3); transition: color .2s, border-color .2s; }
.content-card a:hover { color: #fff; border-bottom-color: var(--accent); }

/* Facts block */
.facts { background: rgba(107,127,255,.08); border-left: 3px solid var(--gold); padding: 1rem 1.25rem; margin: 1.25rem 0; border-radius: 0 6px 6px 0; font-size: 1rem; line-height: 1.7; }
.facts ul { margin: .5rem 0 0 1.25rem; }
.facts li { margin-bottom: .25rem; }

/* Photo links */
.photo-link { display: inline-block; margin: .25rem .25rem .25rem 0; padding: .2rem .55rem; background: rgba(200,168,75,.08); border: 1px solid rgba(200,168,75,.25); border-bottom: 1px solid rgba(200,168,75,.25) !important; border-radius: 4px; color: var(--gold) !important; font-size: .82rem; font-style: italic; text-decoration: none !important; transition: all .2s; }
.photo-link:hover { background: rgba(200,168,75,.18); border-color: var(--gold) !important; color: #fff !important; }
.photos { margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .3rem; }

/* Image grid (skydiving) */
.img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1.5rem 0; }
.img-grid a { display: block; border: none !important; }
.img-grid img { width: 100%; height: 160px; object-fit: cover; border-radius: 4px; border: 1px solid rgba(107,127,255,.25); transition: border-color .2s, opacity .2s; }
.img-grid img:hover { border-color: var(--accent); opacity: .9; }

/* Section links */
.section-links { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; }
.section-links a { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: rgba(107,127,255,.06); border: 1px solid rgba(107,127,255,.15) !important; border-radius: 6px; color: var(--accent-light) !important; text-decoration: none !important; font-size: 1rem; transition: background .2s, border-color .2s; }
.section-links a::before { content: '→'; color: var(--gold); font-size: 1rem; flex-shrink: 0; }
.section-links a:hover { background: rgba(107,127,255,.12); border-color: rgba(107,127,255,.4) !important; color: #fff !important; }

/* Page nav */
.page-nav { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(107,127,255,.2); gap: 1rem; }
.page-nav a { font-family: 'Raleway', sans-serif; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-light) !important; text-decoration: none !important; padding: .5rem 1rem; border: 1px solid rgba(107,127,255,.3) !important; border-radius: 20px; transition: all .2s; }
.page-nav a:hover { background: rgba(107,127,255,.15); border-color: var(--accent) !important; color: #fff !important; }
.page-nav .spacer { flex: 1; }

/* Responsive */
@media (max-width: 580px) {
  .menu-toggle { display: block; }
  .nav-inner { flex-direction: column; gap: 0; padding: 0; display: none; }
  .nav-inner.open { display: flex; }
  .nav-inner a { border-radius: 0; border: none; border-top: 1px solid rgba(107,127,255,.15); padding: .8rem 1.5rem; }
  header h1 { font-size: 1.9rem; }
  .content-card { padding: 1.5rem; }
  .img-grid { grid-template-columns: repeat(2,1fr); }
}

/* Story images */
figure.si-r { float:right; margin:.25rem 0 .75rem 1.25rem; max-width:220px; }
figure.si-l { float:left;  margin:.25rem 1.25rem .75rem 0; max-width:220px; }
figure.si-r img, figure.si-l img { width:100%; border-radius:4px; border:1px solid rgba(107,127,255,.2); display:block; }
figure.si-r figcaption, figure.si-l figcaption { font-size:.75rem; font-style:italic; color:var(--text-dim); text-align:center; margin-top:.3rem; }
.clr { clear:both; }
@media(max-width:580px){figure.si-r,figure.si-l{float:none;max-width:100%;margin:.5rem 0 1rem;}}
