:root{
  /* Orange-forward palette */
  --bg: #1a0f08;
  --bg-2: #120a06;
  --card: rgba(255,255,255,.06);
  --card-2: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --faint: rgba(255,255,255,.55);
  --accent: #ff8a2a;   /* primary orange */
  --accent-2:#ffbf6b;  /* soft amber */
  --shadow: 0 18px 45px rgba(0,0,0,.45);
  --shadow-2: 0 10px 25px rgba(0,0,0,.35);
  --radius: 18px;
  --radius-2: 26px;
  --max: 1160px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.55;
  /* Monotone background to avoid any banding/overlap */
  background: var(--bg);
}

a{color:inherit}
img{max-width:100%; display:block}

.container{max-width:var(--max); margin:0 auto; padding:0 20px}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.skip-link{
  position:absolute; left:-999px; top:12px;
  padding:10px 12px; border:1px solid var(--stroke); border-radius:12px;
  background:rgba(0,0,0,.7);
}
.skip-link:focus{left:12px; z-index:999}

/* Header */
.site-header{
  position:sticky; top:0; z-index:30;
  backdrop-filter: blur(14px);
  background: rgba(26, 15, 8, .7);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 0}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.brand-mark{
  width:38px; height:38px; border-radius:14px;
  background:
    radial-gradient(12px 10px at 30% 30%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(18px 14px at 70% 70%, rgba(255,138,42,.82), transparent 62%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow-2);
}
.brand-logo{
  width:54px; height:54px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  border:1px solid rgba(0,0,0,.10);
  box-shadow:
    0 0 0 2px rgba(255,138,42,.28),
    var(--shadow-2);
}
.brand-title{display:block; font-weight:760; letter-spacing:.2px; font-size:18px}
.brand-subtitle{display:block; font-size:12.5px; color:var(--muted); margin-top:2px}
.site-nav{
  display:flex; align-items:center; gap:10px;
}
.site-nav > a{
  text-decoration:none;
  padding:10px 10px;
  border-radius:12px;
  color:var(--muted);
}
.site-nav > a:hover{color:var(--text); background:rgba(255,255,255,.06)}

.nav-toggle{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
}
.nav-toggle-lines{
  display:block; width:18px; height:12px; margin:0 auto;
  background:
    linear-gradient(var(--text), var(--text)) 0 0/100% 2px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 50%/100% 2px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 100%/100% 2px no-repeat;
  opacity:.9;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:11px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  text-decoration:none;
  font-weight:650;
  letter-spacing:.2px;
  box-shadow: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:focus-visible{outline:3px solid rgba(255,138,42,.6); outline-offset:2px}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0)}
.btn[disabled]{
  opacity:.6;
  pointer-events:none;
  filter: grayscale(.2);
}
.btn-primary{
  background: linear-gradient(135deg, rgba(255,138,42,.95), rgba(255,191,107,.70));
  border-color: rgba(255,138,42,.55);
  color:#1a0f08;
}
.btn-primary:hover{background: linear-gradient(135deg, rgba(255,138,42,.98), rgba(255,191,107,.74))}
.btn-soft{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: var(--text);
}
.btn-full{width:100%}

/* Hero */
.hero{position:relative; padding:56px 0 24px; overflow:hidden}
.hero-bg{
  position:absolute; inset:-60px -30px auto -30px;
  opacity:.95;
  pointer-events:none;
  filter: drop-shadow(0 30px 70px rgba(0,0,0,.45));
}
.hero-bg img{width:100%; height:clamp(340px,58vw,520px); object-fit:cover; border-radius: 34px}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.35fr .85fr;
  gap:22px;
  align-items:stretch;
  padding-top:8px;
}
.hero-copy{
  padding:26px 6px 6px;
}
.eyebrow{
  font-family: var(--mono);
  color: rgba(255,255,255,.75);
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin:0 0 10px;
}
h1{
  font-size: clamp(32px, 4.2vw, 54px);
  line-height:1.05;
  margin:0 0 14px;
  letter-spacing:-.02em;
}
.lede{
  margin:0;
  max-width: 62ch;
  color: rgba(255,255,255,.80);
  font-size:17px;
  line-height:1.7;
}
.hero-actions{margin-top:18px; display:flex; gap:10px; flex-wrap:wrap}
.hero-chips{margin-top:16px; display:flex; gap:10px; flex-wrap:wrap}
.chip{
  display:inline-flex; align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  text-decoration:none;
  color: rgba(255,255,255,.78);
}
.chip:hover{color:var(--text); border-color: rgba(255,138,42,.36)}

.card{
  border-radius: var(--radius-2);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  box-shadow: var(--shadow);
}
.card-glass{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  backdrop-filter: blur(16px);
}
.hero-card{align-self:stretch}
.card-head{padding:18px 18px 10px}
.card-head h2{margin:0; font-size:16px}
.card-head p{margin:6px 0 0; color:var(--muted); font-size:13.5px; line-height:1.45}
.plan-form{padding:0 18px 18px; display:grid; gap:12px}
.field{display:grid; gap:6px}
.field-label{font-size:12px; color:var(--faint); letter-spacing:.02em}
.field-control{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
.field-control:focus{border-color: rgba(255,138,42,.62); box-shadow: 0 0 0 4px rgba(255,138,42,.14)}
.fineprint{margin:0; font-size:12px; line-height:1.45; color: rgba(255,255,255,.62)}

/* Sections */
.section{padding:54px 0}
.section-muted{
  background: rgba(255,255,255,.02);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:18px}
.section-head h2{margin:0; font-size:30px; letter-spacing:-.01em}
.section-head p{margin:0; color:var(--muted); max-width: 58ch; line-height:1.6}

.grid{display:grid; gap:14px}
.grid-3{grid-template-columns: repeat(3, minmax(0,1fr))}
.feature{
  padding:18px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  box-shadow: var(--shadow-2);
}
.feature-icon{font-size:18px}
.feature h3{margin:10px 0 8px}
.feature p{margin:0; color:var(--muted); line-height:1.6}
.feature-link{display:inline-block; margin-top:10px; color: rgba(255,138,42,.95); text-decoration:none; font-weight:650}
.feature-link:hover{text-decoration:underline}

.callout{
  margin-top:16px;
  padding:18px;
  border-radius: var(--radius-2);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.callout h3{margin:0 0 6px}
.callout p{margin:0; color:var(--muted); line-height:1.6}
.callout-actions{display:flex; gap:10px; flex-wrap:wrap}

/* News */
.news-grid{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:14px}
.news-card{
  padding:18px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  box-shadow: var(--shadow-2);
}
.news-meta{display:flex; align-items:center; gap:10px; color:rgba(255,255,255,.65); font-size:12px; letter-spacing:.02em}
.tag{
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.dot{width:3px; height:3px; border-radius:999px; background:rgba(255,255,255,.35)}
.news-card h3{margin:12px 0 10px; font-size:16px; line-height:1.35}
.news-card p{margin:0; color:var(--muted); line-height:1.6}
.news-link{display:inline-block; margin-top:10px; text-decoration:none; color:rgba(255,208,138,.95); font-weight:650}
.news-link{display:inline-block; margin-top:10px; text-decoration:none; color:rgba(255,191,107,.95); font-weight:650}
.news-link:hover{text-decoration:underline}
.fine-row{margin-top:12px}

/* Masonry */
.masonry{
  columns: 3 280px;
  column-gap: 16px;
}
.shot{
  break-inside: avoid;
  margin:0 0 16px;
  border-radius: var(--radius-2);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow-2);
}
.shot img{width:100%; height:auto}
.shot figcaption{
  padding:12px 14px 14px;
  color: rgba(255,255,255,.78);
  font-size:13px;
}

/* Subscribe */
.subscribe{
  padding:22px;
  border-radius: var(--radius-2);
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(255,208,138,.10), rgba(255,255,255,.03));
  box-shadow: var(--shadow-2);
}
.subscribe h2{margin:0 0 6px}
.subscribe p{margin:0; color:var(--muted); line-height:1.6}
.subscribe-form{
  margin-top:14px;
  display:flex; gap:10px; flex-wrap:wrap;
}
.subscribe-input{
  flex: 1 1 260px;
  min-width: 220px;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
.subscribe-input:focus{border-color: rgba(255,208,138,.6); box-shadow: 0 0 0 4px rgba(255,208,138,.12)}
.subscribe-input:focus{border-color: rgba(255,191,107,.65); box-shadow: 0 0 0 4px rgba(255,191,107,.14)}

/* Donate */
.donate{
  padding:18px;
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:14px;
  align-items:center;
}
.donate h2{margin:0 0 8px}
.donate p{margin:0; color:var(--muted); line-height:1.6}
.donate-actions{margin-top:12px; display:flex; gap:10px; flex-wrap:wrap}
.donate-side{
  display:flex; justify-content:flex-end;
  opacity:.95;
}
.donate-side img{width:140px; height:auto}

/* Footer */
.site-footer{
  padding:26px 0 34px;
  border-top:1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.16);
}
.footer-inner{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:16px;
  align-items:center;
}
.footer-brand{display:flex; align-items:center; gap:12px}
.footer-title{font-weight:760}
.footer-subtitle{color:var(--muted); font-size:12px; margin-top:2px}
.footer-links{display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-end}
.footer-links a{color:var(--muted); text-decoration:none; padding:8px 10px; border-radius:12px}
.footer-links a:hover{color:var(--text); background:rgba(255,255,255,.06)}
.footer-fine{grid-column: 1 / -1; display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; color:rgba(255,255,255,.68); font-size:12px}
.footer-fine a{color:rgba(255,138,42,.92)}

/* Page hero (non-home) */
.page-hero{
  position:relative;
  padding: 12px 0 0;
}
.page-hero .page-hero-inner{
  position:relative;
}
.page-hero img{
  width:100%;
  height: clamp(200px, 36vw, 320px);
  object-fit: cover;
  border-radius: 28px;
  display:block;
  filter: saturate(1.02) contrast(1.04);
  box-shadow: var(--shadow);
}

/* Toast */
.toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform: translateX(-50%);
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.72);
  color: rgba(255,255,255,.92);
  box-shadow: var(--shadow-2);
  opacity:0;
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
  max-width: min(720px, calc(100vw - 24px));
}
.toast.show{opacity:1; transform: translateX(-50%) translateY(-4px)}

/* Cookie */
.cookie{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display:none;
}
.cookie.open{display:block}
.cookie-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(10,7,5,.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:space-between;
}
.cookie h3{margin:0 0 6px; font-size:14px}
.cookie p{margin:0; color: rgba(255,255,255,.74); font-size:12.5px; line-height:1.5}
.cookie-actions{display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:flex-end}

/* Watermark overlay for gallery shots */
.shot{position:relative}
.shot::after{
  content:"AZW • arizonatrailway";
  position:absolute;
  right:10px;
  bottom:38px;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 12px;
  color: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.16);
  padding: 6px 9px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events:none;
}

/* Responsive */
@media (max-width: 980px){
  .brand-logo{width:42px; height:42px}
  .brand-title{font-size:16px}
  .hero-inner{grid-template-columns: 1fr; }
  .hero-copy{padding: 16px 2px 8px}
  .news-grid{grid-template-columns: 1fr}
  .grid-3{grid-template-columns: 1fr}
  .donate{grid-template-columns: 1fr}
  .donate-side{justify-content:flex-start}
  .site-nav{
    position:fixed;
    top:64px;
    right:16px;
    left:16px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    padding:12px;
    border-radius: 18px;
    border:1px solid rgba(255,255,255,.14);
    background: rgba(26, 15, 8, .9);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
  }
  .site-nav.open{display:flex}
  .site-nav > a{padding:12px 12px}
  .nav-toggle{display:inline-flex; align-items:center; justify-content:center}
  .footer-inner{grid-template-columns: 1fr}
  .footer-links{justify-content:flex-start}
  .footer-fine{justify-content:flex-start}
  .cookie-inner{flex-direction:column}
  .cookie-actions{justify-content:flex-start}
}

