/*
Theme Name: Hoehli Teufel
Theme URI: https://www.hoehli-teufel.de
Author: Lennox Makelki
Author URI: https://www.hoehli-teufel.de
Description: Höhlen- & Teufel-Theme für die Höhli-Teufel Hasel 1987 e.V. – tiefes Rot, Fels, Glut, Fackelschein, viel Bewegung.
Version: 5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hoehli-teufel
*/

:root{
  --rock-0: #0A0707;
  --rock-1: #170D0C;
  --rock-2: #271210;
  --rock-3: #381512;
  --blood: #8E1410;
  --blood-bright: #D41B14;
  --ember: #FF3B24;
  --gold: #C9472E;
  --chalk: #F2E7DD;
  --muted: #B79A92;
  --line: rgba(212,27,20,.25);
}

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

body{
  font-family: 'Lora', Georgia, serif;
  background: var(--rock-0);
  color: var(--chalk);
  line-height: 1.75;
  overflow-x:hidden;
  position: relative;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(212,27,20,.30), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 30%, rgba(142,20,16,.35), transparent 55%),
    radial-gradient(ellipse 80% 70% at 10% 90%, rgba(142,20,16,.35), transparent 60%),
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255,59,36,.06), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0px, rgba(255,255,255,.015) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(45deg, rgba(0,0,0,.4) 0px, rgba(0,0,0,.4) 1px, transparent 1px, transparent 30px);
  background-color: var(--rock-0);
  animation: cave-breathe 16s ease-in-out infinite alternate;
}
@keyframes cave-breathe{
  0%{ background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  100%{ background-position: 2% -2%, -2% 2%, 1% -1%, 0 0, 0 0, 0 0; }
}

h1,h2,h3{
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--chalk);
}

a{color: var(--ember); text-decoration: none; transition: color .2s ease;}
a:hover{color: var(--chalk);}

/* ===== Embers -> glowing devil sparks (red only) ===== */
.embers{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.embers span{
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px 2px var(--blood-bright);
  opacity: .6;
  will-change: transform, opacity;
  animation: rise linear infinite;
}
@keyframes rise{
  0%{ transform: translate3d(0,0,0) scale(1); opacity: .7; }
  85%{ opacity: .5; }
  100%{ transform: translate3d(var(--drift, 40px), -112vh, 0) scale(.25); opacity: 0; }
}

/* ===== Decorative horn shapes (CSS only) ===== */
.horns{
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 160px;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}
.horns::before, .horns::after{
  content:"";
  position:absolute;
  top: 0;
  width: 14px;
  height: 130px;
  background: linear-gradient(180deg, var(--blood-bright), transparent);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  filter: blur(1px);
  animation: horn-glow 5s ease-in-out infinite alternate;
}
.horns::before{ left: 40px; transform: rotate(-18deg); }
.horns::after{ right: 40px; transform: rotate(18deg); }
@keyframes horn-glow{
  0%{ opacity: .35; }
  100%{ opacity: .8; }
}

/* ===== Header / Hero ===== */
header.site-header{
  position: relative;
  padding: 8rem 1.5rem 6rem;
  text-align: center;
  overflow:hidden;
  isolation: isolate;
  z-index: 1;
}
header.site-header::before{
  content:"";
  position:absolute;
  inset: -35%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 5%, rgba(255,59,36,.40), transparent 60%),
    radial-gradient(ellipse 45% 40% at 78% 65%, rgba(212,27,20,.30), transparent 60%),
    radial-gradient(ellipse 45% 40% at 22% 75%, rgba(142,20,16,.35), transparent 60%);
  filter: blur(55px);
  animation: hero-flicker 6s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes hero-flicker{
  0%{ transform: translate(0,0) scale(1); opacity: .9; }
  50%{ transform: translate(2%, -2%) scale(1.06); opacity: 1; }
  100%{ transform: translate(-2%, 3%) scale(1.12); opacity: .85; }
}
header.site-header .eyebrow{
  display:inline-block;
  font-family:'Oswald',sans-serif;
  text-transform:uppercase;
  letter-spacing: 6px;
  font-size: .78rem;
  color: var(--chalk);
  border: 1px solid var(--line);
  background: rgba(0,0,0,.4);
  border-radius: 999px;
  padding: .6rem 1.8rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  animation: fade-up .7s ease both;
  box-shadow: 0 0 24px rgba(212,27,20,.4);
}
header.site-header h1{
  font-size: clamp(3.4rem, 12vw, 8.5rem);
  font-weight: 700;
  letter-spacing: 10px;
  line-height: .92;
  margin: 0;
  position: relative;
  z-index: 2;
  color: var(--chalk);
  text-shadow:
    0 0 30px rgba(255,59,36,.7),
    0 0 90px rgba(212,27,20,.5),
    0 4px 0 rgba(0,0,0,.6);
  animation: fade-up .9s .05s cubic-bezier(.2,.8,.2,1) both, flame-glow 3.5s ease-in-out infinite;
}
@keyframes flame-glow{
  0%, 100%{ text-shadow: 0 0 30px rgba(255,59,36,.6), 0 0 90px rgba(212,27,20,.45), 0 4px 0 rgba(0,0,0,.6); }
  50%{ text-shadow: 0 0 55px rgba(255,59,36,1), 0 0 130px rgba(212,27,20,.7), 0 4px 0 rgba(0,0,0,.6); }
}
header.site-header h1 a{ color: inherit; }
header.site-header p{
  font-style: italic;
  color: var(--muted);
  margin-top: 1.5rem;
  font-size: 1.15rem;
  letter-spacing: 4px;
  position: relative;
  z-index: 2;
  animation: fade-up .9s .15s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes fade-up{
  from{ opacity:0; transform: translateY(28px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ===== Cave-mouth dividers (jagged arch silhouettes) ===== */
.stalactite-divider{
  height: 60px;
  width: 100%;
  position: relative;
  z-index: 2;
  background: var(--rock-1);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1200,0 L1200,30 C1100,75 1020,15 950,60 C880,95 800,20 720,55 C640,90 560,18 480,58 C400,90 320,22 240,60 C160,92 80,18 0,50 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1200,0 L1200,30 C1100,75 1020,15 950,60 C880,95 800,20 720,55 C640,90 560,18 480,58 C400,90 320,22 240,60 C160,92 80,18 0,50 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,.7);
}
.stalactite-divider.flip{
  transform: scaleY(-1);
  margin-top: 4rem;
  background: var(--rock-1);
}

/* ===== Nav ===== */
nav.main-nav{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,7,7,.85);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 30px rgba(212,27,20,.15);
}
nav.main-nav ul{
  list-style:none;
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  margin:0;
}
nav.main-nav li{list-style:none;}
nav.main-nav a{
  display:block;
  padding: 1.15rem 1.5rem;
  color: var(--muted);
  font-family:'Oswald',sans-serif;
  text-transform:uppercase;
  font-size: .85rem;
  letter-spacing: 3px;
  position: relative;
  transition: color .25s ease, text-shadow .25s ease;
}
nav.main-nav a::after{
  content:"";
  position:absolute;
  left: 50%;
  bottom: 8px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--blood-bright), var(--ember));
  border-radius: 2px;
  box-shadow: 0 0 12px var(--ember);
  transition: width .3s cubic-bezier(.2,.8,.2,1);
  transform: translateX(-50%);
}
nav.main-nav a:hover{ color: var(--chalk); text-shadow: 0 0 14px var(--ember); }
nav.main-nav a:hover::after,
nav.main-nav .current-menu-item a::after{ width: 75%; }
nav.main-nav .current-menu-item a{ color: var(--chalk); text-shadow: 0 0 14px var(--ember); }

/* ===== Main content ===== */
main{
  max-width: 1080px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 7rem;
  position: relative;
  z-index: 1;
}

main h2{
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight:700;
  margin-bottom: .5rem;
  color: var(--chalk);
  letter-spacing: 4px;
  text-shadow: 0 0 30px rgba(212,27,20,.5), 0 4px 0 rgba(0,0,0,.5);
}
main h2::after{
  content:"";
  display:block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--blood-bright), var(--ember));
  margin: 1rem 0 2.4rem;
  box-shadow: 0 0 22px var(--ember);
}

main p, main li{
  margin-bottom: 1.1rem;
}
main p{ color: var(--muted); font-size: 1.05rem; }
main li{ color: var(--muted); }

/* ===== Intro / Hero box — carved blood-stone slab ===== */
.intro-box{
  background: linear-gradient(155deg, var(--rock-3) 0%, var(--rock-1) 100%);
  border: 1px solid var(--line);
  color: var(--chalk);
  padding: 3.2rem;
  border-radius: 6px;
  margin-bottom: 4rem;
  position: relative;
  overflow:hidden;
  box-shadow:
    0 35px 80px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.04),
    inset 0 0 80px rgba(212,27,20,.12);
}
.intro-box::before{
  content:"";
  position:absolute;
  top: 0; left: 0;
  width: 8px; height: 100%;
  background: linear-gradient(180deg, var(--ember), var(--blood));
  box-shadow: 0 0 26px var(--blood-bright);
  animation: bar-pulse 2.5s ease-in-out infinite;
}
@keyframes bar-pulse{
  0%, 100%{ opacity: .8; }
  50%{ opacity: 1; box-shadow: 0 0 40px var(--blood-bright); }
}
.intro-box::after{
  content:"";
  position:absolute;
  right:-100px; top:-100px;
  width:340px; height:340px;
  background: radial-gradient(circle, rgba(255,59,36,.35), transparent 70%);
  filter: blur(25px);
  animation: drift-glow 10s ease-in-out infinite alternate;
}
@keyframes drift-glow{
  0%{ transform: translate(0,0); }
  100%{ transform: translate(-30px, 30px); }
}
.intro-box h2{ color: var(--chalk); text-shadow: 0 0 30px rgba(255,59,36,.5); }
.intro-box p{ color: var(--chalk); }

/* ===== Founder tablets / cards ===== */
.card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 1.8rem;
  margin: 1.8rem 0;
  perspective: 900px;
}
.card{
  background: linear-gradient(160deg, var(--rock-3), var(--rock-1));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem 1.7rem;
  position: relative;
  overflow:hidden;
  text-align: center;
  transition: transform .25s ease, box-shadow .35s ease, border-color .35s ease;
  box-shadow: 0 12px 32px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.03);
  will-change: transform;
}
.card::before{
  content: "";
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto 1.1rem;
  clip-path: var(--icon-shape, polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%));
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.18), transparent 45%),
    linear-gradient(160deg, var(--ember), var(--blood));
  box-shadow: 0 0 0 1px var(--line), 0 8px 22px rgba(212,27,20,.4);
  transition: transform .4s ease, box-shadow .4s ease;
}
.card:hover{
  transform: translateY(-10px);
  box-shadow: 0 26px 60px rgba(212,27,20,.35), inset 0 1px 0 rgba(255,255,255,.06);
  border-color: rgba(255,59,36,.5);
}
.card:hover::before{
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 0 0 1px var(--line), 0 0 30px var(--ember);
}

/* Distinct icon shapes per role/event (cycled) */
.card-grid .card:nth-of-type(7n+1){ --icon-shape: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); } /* pentagon */
.card-grid .card:nth-of-type(7n+2){ --icon-shape: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); } /* hexagon */
.card-grid .card:nth-of-type(7n+3){ --icon-shape: circle(50% at 50% 50%); } /* circle */
.card-grid .card:nth-of-type(7n+4){ --icon-shape: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); } /* star */
.card-grid .card:nth-of-type(7n+5){ --icon-shape: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%); } /* octagon */
.card-grid .card:nth-of-type(7n+6){ --icon-shape: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); } /* diamond */
.card-grid .card:nth-of-type(7n){ --icon-shape: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); } /* shield-hex */
.card h3{
  font-size: 1.05rem;
  color: var(--chalk);
  margin-bottom:.6rem;
  letter-spacing: 3px;
  text-shadow: 0 0 14px rgba(212,27,20,.5);
}
.card p{ color: var(--muted); margin-bottom:0; }

.card-grid .card{ animation: fade-up .6s ease both; }
.card-grid .card:nth-child(1){animation-delay:.02s;}
.card-grid .card:nth-child(2){animation-delay:.05s;}
.card-grid .card:nth-child(3){animation-delay:.08s;}
.card-grid .card:nth-child(4){animation-delay:.11s;}
.card-grid .card:nth-child(5){animation-delay:.14s;}
.card-grid .card:nth-child(6){animation-delay:.17s;}
.card-grid .card:nth-child(7){animation-delay:.2s;}
.card-grid .card:nth-child(8){animation-delay:.23s;}
.card-grid .card:nth-child(9){animation-delay:.26s;}
.card-grid .card:nth-child(10){animation-delay:.29s;}

/* Founders grid: premium sealed plaques */
.founders-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(190px,1fr));
  gap: 1.3rem;
  margin: 2rem 0;
  counter-reset: founder;
  perspective: 900px;
}
.founders-grid .card{
  padding: 2.2rem 1.2rem 1.6rem;
  background:
    linear-gradient(160deg, var(--rock-3) 0%, var(--rock-1) 100%);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow:
    0 14px 36px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(255,59,36,.08),
    inset 0 1px 0 rgba(255,255,255,.05);
  counter-increment: founder;
}
.founders-grid .card::before{
  content: counter(founder, upper-roman);
  display: flex;
  align-items:center;
  justify-content:center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--chalk);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.22), transparent 50%),
    conic-gradient(from var(--seal-rot, 0deg), var(--ember), var(--blood), var(--rock-3), var(--ember));
  clip-path: var(--seal-shape, polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 10px 26px rgba(212,27,20,.45);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.founders-grid .card::after{
  content:"";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.10), transparent);
  transform: skewX(-20deg);
  transition: left .8s ease;
  pointer-events:none;
}
.founders-grid .card:hover::after{ left: 130%; }
.founders-grid .card:hover{
  transform: translateY(-10px) scale(1.03);
  border-color: rgba(255,59,36,.45);
}
.founders-grid .card:hover::before{
  transform: rotate(360deg) scale(1.08);
  box-shadow: 0 0 0 1px rgba(255,59,36,.5), 0 0 34px var(--ember);
}
.founders-grid .card p{
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .85rem;
  color: var(--chalk);
  margin-bottom: 0;
}
.founders-grid .card .founder-role{
  display:block;
  font-family: 'Lora', serif;
  font-style: italic;
  text-transform: none;
  letter-spacing: .5px;
  font-size: .75rem;
  color: var(--muted);
  margin-top: .35rem;
}

/* Vary seal shape & rotation per founder for individuality */
.founders-grid .card:nth-child(6n+1){ --seal-shape: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); --seal-rot: 0deg; }
.founders-grid .card:nth-child(6n+2){ --seal-shape: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); --seal-rot: 60deg; }
.founders-grid .card:nth-child(6n+3){ --seal-shape: circle(50% at 50% 50%); --seal-rot: 120deg; }
.founders-grid .card:nth-child(6n+4){ --seal-shape: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); --seal-rot: 180deg; }
.founders-grid .card:nth-child(6n+5){ --seal-shape: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); --seal-rot: 240deg; }
.founders-grid .card:nth-child(6n){ --seal-shape: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); --seal-rot: 300deg; }

/* ===== Tables ===== */
table{
  width:100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  background: var(--rock-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow:hidden;
}
th, td{
  border-bottom: 1px solid var(--line);
  padding: .9rem 1.2rem;
  text-align:left;
  color: var(--chalk);
}
th{
  background: rgba(212,27,20,.18);
  color: var(--chalk);
  font-family:'Oswald',sans-serif;
  text-transform:uppercase;
  font-weight:400;
  letter-spacing:3px;
  text-shadow: 0 0 14px rgba(212,27,20,.5);
}
tbody tr{transition: background .2s ease;}
tbody tr:hover{background: rgba(212,27,20,.1);}

/* ===== Coming soon ===== */
.coming-soon{
  text-align:center;
  padding: 5.5rem 1.5rem;
  background: linear-gradient(155deg, var(--rock-3), var(--rock-1));
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family:'Oswald',sans-serif;
  text-transform:uppercase;
  letter-spacing: 6px;
  font-size: 1.5rem;
  color: var(--chalk);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-shadow: 0 0 30px rgba(255,59,36,.55);
}
.coming-soon::before{
  content:"";
  position:absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,59,36,.18), transparent 65%);
  animation: cs-glow 3s ease-in-out infinite;
  will-change: opacity;
  z-index: -1;
}
@keyframes cs-glow{
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}
.coming-soon::after{
  content:"";
  position:absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,59,36,.18), transparent);
  transform: skewX(-20deg);
  animation: cs-sweep 4s ease-in-out infinite;
  will-change: transform;
}
@keyframes cs-sweep{
  0% { left: -40%; }
  100% { left: 110%; }
}
.coming-soon span{
  position: relative;
  z-index: 1;
}

/* ===== Footer ===== */
footer.site-footer{
  background: linear-gradient(180deg, var(--rock-1), var(--rock-0));
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 4rem 1.5rem 2.5rem;
  font-size: .9rem;
  letter-spacing: 1.5px;
  position: relative;
  z-index: 1;
  text-align: center;
}
footer.site-footer a{
  color: var(--muted);
  transition: color .25s ease, text-shadow .25s ease;
}
footer.site-footer a:hover{
  color: var(--chalk);
  text-shadow: 0 0 12px var(--ember);
}

.footer-inner{
  max-width: 1080px;
  margin: 0 auto;
}
.footer-brand{
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 6px;
  color: var(--chalk);
  text-transform: uppercase;
  margin-bottom: .5rem;
  text-shadow: 0 0 20px rgba(212,27,20,.5);
}
.footer-tagline{
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2rem;
}
.footer-links{
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  list-style:none;
  margin-bottom: 2rem;
  padding:0;
}
.footer-links li{ margin: 0; }
.footer-links a{
  font-family:'Oswald',sans-serif;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .85rem;
}
.footer-divider{
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blood-bright), transparent);
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 16px var(--ember);
}
.footer-copy{
  font-size: .8rem;
  letter-spacing: 1px;
  color: var(--muted);
}

/* ===== Scroll reveal ===== */
.reveal{
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile ===== */
@media (max-width: 640px){
  header.site-header{ padding: 6rem 1rem 4.5rem; }
  nav.main-nav a{padding:.9rem 1.1rem; font-size:.72rem; letter-spacing:1.5px;}
  .intro-box{padding: 2.2rem;}
  main{padding: 3.5rem 1.2rem 5rem;}
  .footer-links{ gap: 1.1rem; flex-direction: column; }
}

/* ===== Accessibility ===== */
a:focus, button:focus{
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .embers, .horns{ display:none; }
}
