/* WILDLOGS - Base CSS | Raw & Rugged Field Journal Aesthetic */

/* ========================================
   IMPORTS & FONT DEFINITIONS
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ========================================
   CSS CUSTOM PROPERTIES (COLOR PALETTE)
   ======================================== */

:root {
  --deep: #0D0D0D;
  --charcoal: #1A1A1A;
  --graphite: #2A2A2A;
  --stone: #6B6B6B;
  --ash: #999999;
  --bone: #E0DDD6;
  --off-white: #F2EFE8;
  --ember: #D4622A;
  --ember-dim: rgba(212, 98, 42, 0.15);

  /* Typography vars */
  --serif: 'Libre Baskerville', serif;
  --mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;

  /* Transitions */
  --transition: 0.2s ease-in-out;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--deep);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Noise/grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" result="noise"/></filter><rect width="400" height="400" fill="rgb(13, 13, 13)"/><rect width="400" height="400" fill="rgb(13, 13, 13)" filter="url(%23noise)" opacity="0.04"/></svg>');
  background-size: 400px 400px;
  pointer-events: none;
  z-index: -1;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--off-white);
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--ember-dim);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

/* Paragraph & text elements */
p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  color: var(--bone);
}

strong,
b {
  font-weight: 700;
  color: var(--off-white);
}

em,
i {
  font-style: italic;
}

small {
  font-size: 0.875rem;
  color: var(--stone);
}

/* Links */
a {
  color: var(--ember);
  text-decoration: none;
  transition: all var(--transition);
}

a:hover {
  text-decoration: underline;
  color: var(--off-white);
}

a:visited {
  color: #c0522a;
}

/* Lists */
ul,
ol {
  margin-bottom: var(--spacing-md);
  margin-left: 1.5rem;
}

li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

ul > li::marker {
  color: var(--ember);
}

ol > li::marker {
  color: var(--ember);
}

/* Blockquotes */
blockquote {
  border-left: 3px solid var(--ember);
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  color: var(--ash);
  font-style: italic;
}

/* Code & preformatted text */
code {
  font-family: var(--mono);
  background-color: var(--charcoal);
  color: var(--bone);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

pre {
  background-color: var(--charcoal);
  border: 1px solid var(--graphite);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  overflow-x: auto;
  margin-bottom: var(--spacing-md);
  font-family: var(--mono);
  color: var(--bone);
  line-height: 1.5;
}

pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--graphite);
  margin: var(--spacing-lg) 0;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
  background-color: var(--charcoal);
  border-bottom: 1px solid var(--graphite);
  padding: var(--spacing-md) var(--spacing-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bone);
}

.logo .wild {
  color: var(--ember);
}

nav {
  display: flex;
  gap: var(--spacing-lg);
}

nav a {
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bone);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--ember);
  transition: width var(--transition);
}

nav a:hover {
  color: var(--off-white);
}

nav a:hover::after {
  width: 100%;
}

/* Mobile nav toggle hidden by default, shown at mobile breakpoint */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--bone);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========================================
   HOMEPAGE HERO SECTION
   ======================================== */

.hero {
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
}

.hero h1 .italic-ember {
  font-style: italic;
  color: var(--ember);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--ash);
  margin-bottom: var(--spacing-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: var(--spacing-2xl);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-2xl);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--stone);
  margin-bottom: var(--spacing-xs);
}

.stat-value {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ember);
}

/* ========================================
   CARD GRID & LAYOUT
   ======================================== */

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

.section-heading {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.card {
  background-color: var(--charcoal);
  border: 1px solid var(--graphite);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--ember);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(212, 98, 42, 0.1);
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-entry-number {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ember);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  letter-spacing: 1px;
}

.card-region {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--stone);
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
}

.card-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.card-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ash);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-sm);
}

.card-tagline::before {
  content: '"';
}

.card-tagline::after {
  content: '"';
}

.card-description {
  color: var(--bone);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: auto;
}

.tag {
  display: inline-block;
  background-color: var(--ember-dim);
  color: var(--ember);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   BLOG/CONTENT PAGE STYLES (LEGACY)
   Kept for backward compatibility.
   New pages use .article container below.
   ======================================== */

.content-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.content-wrapper h2 {
  font-size: 2rem;
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-lg);
}

.content-wrapper h3 {
  font-size: 1.5rem;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.content-wrapper p {
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.content-wrapper ul,
.content-wrapper ol {
  margin-left: 2rem;
  margin-bottom: var(--spacing-md);
}

.content-wrapper li {
  margin-bottom: var(--spacing-sm);
}

/* Tables (shared by both old and new layouts) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-lg);
  background-color: var(--charcoal);
  border: 1px solid var(--graphite);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

table th {
  background-color: var(--graphite);
  color: var(--off-white);
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  border-bottom: 2px solid var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--graphite);
  color: var(--bone);
  font-size: 0.95rem;
}

table tr:last-child td {
  border-bottom: none;
}

table tr:hover {
  background-color: rgba(212, 98, 42, 0.03);
}

table tr.highlight td {
  color: var(--ember);
  font-weight: 700;
  font-family: var(--mono);
  font-size: 0.9rem;
}

/* Images (legacy) */
.content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--spacing-lg) 0;
  display: block;
}

/* Photo blocks with captions (legacy) */
.photo-block {
  margin: var(--spacing-lg) 0;
  text-align: center;
}

.photo-block img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.photo-block figcaption {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--stone);
  font-style: italic;
  margin-top: var(--spacing-sm);
}

/* ========================================
   READING PROGRESS BAR
   ======================================== */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--ember);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}

/* ========================================
   PAGE HERO - Full-bleed image with overlay
   Used on all blog subpages. Flexible stats.
   ======================================== */

.page-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,13,13,0.95) 0%,
    rgba(13,13,13,0.6) 40%,
    rgba(13,13,13,0.2) 70%,
    rgba(13,13,13,0.05) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 3rem 2rem 2.5rem;
  margin: 0 auto;
  width: 100%;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.hero-entry {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ember);
  letter-spacing: 0.15em;
  background: var(--ember-dim);
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(212,98,42,0.3);
}

.hero-region {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ash);
}

.hero-title {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--off-white);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ash);
  margin-bottom: 1.5rem;
}

/* Adventure summary strip - flexible label/value pairs */
.hero-summary {
  display: flex;
  gap: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.hero-summary-item {
  padding: 0 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.hero-summary-item:first-child { padding-left: 0; }
.hero-summary-item:last-child { border-right: none; }

.hero-summary-value {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--off-white);
}

.hero-summary-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stone);
  margin-top: 0.15rem;
}

/* ========================================
   LOCATION NAV - Horizontal sub-page tabs
   ======================================== */

.location-nav {
  background: var(--charcoal);
  border-bottom: 1px solid var(--graphite);
  position: sticky;
  top: 0;
  z-index: 100;
}

.location-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  list-style: none;
  gap: 0;
}

.location-nav li {
  margin-bottom: 0;
}

.location-nav a,
.location-nav-link {
  display: block;
  padding: 0.9rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.location-nav a:hover,
.location-nav-link:hover {
  color: var(--bone);
  background: rgba(255,255,255,0.02);
  text-decoration: none;
}

.location-nav a.active,
.location-nav-link.active {
  color: var(--ember);
  border-bottom-color: var(--ember);
}

/* ========================================
   ARTICLE CONTAINER - New blog page layout
   Max 800px with padding. All content inside.
   ======================================== */

.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.article-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ember);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.article-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--ember);
}

.article-updated {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--stone);
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}

/* Article headings */
.article h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--off-white);
  line-height: 1.25;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ember-dim);
}

.article h2:first-of-type {
  margin-top: 0;
}

.article h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--off-white);
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article h4 {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ember);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Article paragraphs */
.article p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--bone);
  margin-bottom: 1.5rem;
}

.article strong { color: var(--off-white); }

.article .lead {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--ash);
}

/* Article lists */
.article ul, .article ol {
  margin: 0 0 1.5rem 1.5rem;
}

.article li {
  margin-bottom: 0.75rem;
  line-height: 1.75;
  font-size: 1.05rem;
}

.article ul > li::marker { color: var(--ember); }
.article ol > li::marker { color: var(--ember); font-family: var(--mono); font-weight: 600; }

/* Article blockquotes - voice log quotes */
.article blockquote {
  border-left: 3px solid var(--ember);
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: rgba(212,98,42,0.04);
}

.article blockquote p {
  font-style: italic;
  color: var(--ash);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.article blockquote footer {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.75rem;
  border: none;
  background: none;
  padding: 0;
}

/* ========================================
   PHOTO LAYOUTS - Single, grid, full-bleed
   ======================================== */

/* Single photo with caption */
.photo {
  margin: 2.5rem 0;
}

.photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.photo figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--stone);
  margin-top: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

/* Two photos side by side */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 2.5rem 0;
}

.photo-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.photo-grid figcaption {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--stone);
  margin-top: 0.25rem;
}

/* Full-bleed photo - breaks out of article column */
.photo-full {
  margin: 3rem -4rem;
  position: relative;
}

.photo-full img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.photo-full figcaption {
  max-width: 720px;
  margin: 0.75rem auto 0;
  padding: 0 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--stone);
}

/* ========================================
   CALLOUT BOXES - Tips, warnings, gear picks
   ======================================== */

.callout {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--graphite);
  border-left: 3px solid var(--ember);
  background: var(--charcoal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.callout-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ember);
  margin-bottom: 0.5rem;
}

.callout p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--bone);
  line-height: 1.7;
}

/* Warning variant */
.callout.warning {
  border-left-color: #C4443A;
}

.callout.warning .callout-label {
  color: #C4443A;
}

/* Gear/product callout */
.callout.gear {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.callout.gear .gear-info { flex: 1; }

.callout.gear .gear-verdict {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone);
  margin-top: 0.5rem;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */

.faq-item {
  border-bottom: 1px solid var(--graphite);
  padding: 1.5rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--off-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
}

.faq-question:hover { color: var(--ember); }

.faq-toggle {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--ember);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding-top: 1rem;
}

.faq-item.open .faq-answer { display: block; }

.faq-answer p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--bone);
}

/* ========================================
   AFFILIATE LINKS & DISCLOSURE
   ======================================== */

.affiliate-link {
  color: var(--ember);
  position: relative;
}

.affiliate-link::after {
  content: ' \2197';
  font-size: 0.85em;
  margin-left: 2px;
}

.affiliate-disclosure {
  font-size: 0.8rem;
  color: var(--stone);
  margin-top: var(--spacing-sm);
  font-style: italic;
}

/* ========================================
   FAQ PAGE
   ======================================== */

.faq-section {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--graphite);
}

.faq-section:last-child {
  border-bottom: none;
}

.faq-question {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: var(--spacing-md);
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--ember);
}

.faq-answer {
  color: var(--bone);
  line-height: 1.8;
}

/* ========================================
   404 PAGE
   ======================================== */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.error-code {
  font-family: var(--mono);
  font-size: 4rem;
  font-weight: 600;
  color: var(--ember);
  margin-bottom: var(--spacing-md);
}

.error-heading {
  font-size: 2.5rem;
  color: var(--off-white);
  margin-bottom: var(--spacing-md);
}

.error-message {
  color: var(--ash);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
}

.error-page a {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--ember);
  color: var(--off-white);
  border-radius: var(--radius-md);
  display: inline-block;
  text-decoration: none;
  transition: all var(--transition);
}

.error-page a:hover {
  background-color: #c0522a;
  text-decoration: none;
}

/* ========================================
   CROSS-LINKS SECTION (Legacy)
   ======================================== */

.crosslinks-section {
  margin: var(--spacing-2xl) 0;
}

.crosslinks-heading {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
}

.crosslinks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.crosslinks-card {
  background-color: var(--charcoal);
  border: 1px solid var(--graphite);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.crosslinks-card:hover {
  border-color: var(--ember);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(212, 98, 42, 0.08);
}

.crosslinks-card h3 {
  color: var(--off-white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
}

.crosslinks-card p {
  color: var(--ash);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ========================================
   CROSS-LINKS (New - inside .article)
   ======================================== */

.crosslinks {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--graphite);
}

.crosslinks-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--stone);
  margin-bottom: 1.5rem;
}

.crosslink-card {
  background: var(--charcoal);
  border: 1px solid var(--graphite);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
}

.crosslink-card:hover {
  border-color: var(--ember);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,98,42,0.08);
  text-decoration: none;
}

.crosslink-entry {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--ember);
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.crosslink-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.crosslink-region {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stone);
  margin-bottom: 0.5rem;
}

.crosslink-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.crosslink-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--ember);
  background: var(--ember-dim);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

/* ========================================
   SUBSCRIBE / MAILERLITE SIGNUP SECTION
   ======================================== */

/* --- Container styling --- */
.subscribe-section {
  background-color: var(--charcoal);
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
}

.subscribe-content {
  max-width: 520px;
  margin: 0 auto;
}

.subscribe-content h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--off-white);
  margin-bottom: var(--spacing-xs);
}

.subscribe-content p {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-lg);
}

/* --- MailerLite embedded form overrides --- */
.ml-embedded {
  background: transparent !important;
}

.ml-form-embedWrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: 420px !important;
  margin: 0 auto !important;
}

.ml-form-embedBody {
  background: transparent !important;
  padding: 0 !important;
}

.ml-form-embedBody .ml-form-embedContent {
  display: none !important;
}

.ml-form-formContent {
  padding: 0 !important;
}

/* Email input field */
.ml-form-embedBody .ml-form-fieldRow input[type="email"],
.ml-form-embedBody .ml-form-fieldRow input[type="text"],
.ml-form-embedBody input {
  background-color: var(--deep) !important;
  border: 1px solid var(--graphite) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--bone) !important;
  font-family: var(--serif) !important;
  font-size: 0.95rem !important;
  padding: 0.75rem 1rem !important;
  height: auto !important;
  line-height: 1.4 !important;
}

.ml-form-embedBody input::placeholder {
  color: var(--stone) !important;
  font-family: var(--serif) !important;
}

.ml-form-embedBody input:focus {
  outline: none !important;
  border-color: var(--ember) !important;
  box-shadow: 0 0 0 2px rgba(212, 98, 42, 0.15) !important;
}

/* Subscribe button */
.ml-form-embedSubmit button,
.ml-form-embedBody .ml-form-embedSubmit button {
  background-color: var(--ember) !important;
  color: var(--off-white) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--mono) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 0.75rem 1.5rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  height: auto !important;
  line-height: 1.4 !important;
}

.ml-form-embedSubmit button:hover {
  background-color: #c0522a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(212, 98, 42, 0.3) !important;
}

/* Success message */
.ml-form-successBody {
  background: transparent !important;
  padding: var(--spacing-md) !important;
}

.ml-form-successBody .ml-form-successContent h4,
.ml-form-successBody .ml-form-successContent p {
  color: var(--bone) !important;
  font-family: var(--serif) !important;
}

/* Hide MailerLite branding */
.ml-form-embedWrapper .ml-form-align-center,
.ml-form-embedWrapper .ml-form-embedPermissions,
.ml-form-embedWrapper .ml-form-embedPermissions .ml-form-embedPermissionsContent {
  color: var(--stone) !important;
  font-family: var(--mono) !important;
  font-size: 0.7rem !important;
}

.ml-form-embedWrapper a {
  color: var(--ember) !important;
}

/* Label text */
.ml-form-embedBody label {
  color: var(--ash) !important;
  font-family: var(--mono) !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* ========================================
   SUBSCRIBE CARD (New - inside .article)
   ======================================== */

.subscribe {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--charcoal);
  border: 1px solid var(--graphite);
  border-radius: var(--radius-sm);
  text-align: center;
}

.subscribe h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--off-white);
  margin-bottom: 0.4rem;
}

.subscribe .sub-desc {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.subscribe-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: var(--deep);
  border: 1px solid var(--graphite);
  border-radius: var(--radius-sm);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.subscribe-form input::placeholder { color: var(--stone); }
.subscribe-form input:focus { outline: none; border-color: var(--ember); }

.subscribe-form button {
  padding: 0.7rem 1.5rem;
  background: var(--ember);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--off-white);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.subscribe-form button:hover { background-color: #B8531F; }

/* ========================================
   FOOTER
   ======================================== */

footer {
  background-color: var(--charcoal);
  border-top: 1px solid var(--graphite);
  padding: var(--spacing-xl) var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--stone);
}

.footer-nav a:hover {
  color: var(--ember);
}

.footer-copyright {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ash);
  letter-spacing: 0.5px;
}

/* ========================================
   BUTTONS & FORMS
   ======================================== */

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: var(--ember);
  color: var(--off-white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn:hover {
  background-color: #c0522a;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(212, 98, 42, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--charcoal);
  border: 1px solid var(--graphite);
  color: var(--bone);
}

.btn-secondary:hover {
  border-color: var(--ember);
  background-color: rgba(212, 98, 42, 0.1);
}

/* Form inputs */
input[type='text'],
input[type='email'],
input[type='password'],
textarea,
select {
  width: 100%;
  padding: var(--spacing-sm);
  background-color: var(--charcoal);
  border: 1px solid var(--graphite);
  border-radius: var(--radius-sm);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 1rem;
  transition: all var(--transition);
  margin-bottom: var(--spacing-sm);
}

input[type='text']:focus,
input[type='email']:focus,
input[type='password']:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 2px rgba(212, 98, 42, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.text-muted {
  color: var(--stone);
}

.text-secondary {
  color: var(--ash);
}

.text-accent {
  color: var(--ember);
}

.mt-xs {
  margin-top: var(--spacing-xs);
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

.mb-xs {
  margin-bottom: var(--spacing-xs);
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.pt-lg {
  padding-top: var(--spacing-lg);
}

.pb-lg {
  padding-bottom: var(--spacing-lg);
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .stats-row {
    gap: var(--spacing-lg);
  }

  nav {
    gap: var(--spacing-md);
  }

  .crosslinks-grid {
    grid-template-columns: 1fr;
  }

  /* New components tablet */
  .hero-title {
    font-size: 2.2rem;
  }

  .page-hero {
    min-height: 400px;
  }

  .photo-full {
    margin-left: -2rem;
    margin-right: -2rem;
  }

}

/* Mobile (under 768px) */
@media (max-width: 767px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  header {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .header-container {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .site-header nav {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    background-color: var(--deep);
    padding: var(--spacing-md);
    border-top: 1px solid var(--graphite);
    display: none;
  }

  .site-header nav.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .content-wrapper {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .error-code {
    font-size: 3rem;
  }

  .error-heading {
    font-size: 1.8rem;
  }

  .crosslinks-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    gap: var(--spacing-md);
  }

  .footer-nav {
    gap: var(--spacing-md);
  }

  table {
    font-size: 0.9rem;
  }

  table th,
  table td {
    padding: var(--spacing-sm);
  }

  /* New components mobile */
  .hero-title {
    font-size: 1.8rem;
  }

  .page-hero {
    min-height: 380px;
  }

  .hero-content {
    padding: 2rem 1.25rem;
  }

  .hero-summary-item {
    padding: 0.4rem 1rem 0.4rem 0;
    border-right: none;
  }

  .hero-summary-item:first-child {
    padding-left: 0;
  }

  .article {
    padding: 2rem 1.25rem;
  }

  .article h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
  }

  .article h3 {
    font-size: 1.2rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid img {
    height: 220px;
  }

  .photo-full {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }

  .photo-full img {
    height: 260px;
  }

  .location-nav ul {
    padding: 0 0.5rem;
    justify-content: center;
  }

  .location-nav a,
  .location-nav-link {
    padding: 0.6rem 0.7rem;
    font-size: 0.6rem;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .callout.gear {
    flex-direction: column;
  }
}

/* Large desktop (1024px+) */
@media (min-width: 1024px) {
  .container {
    padding: 0 var(--spacing-lg);
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ultra-wide displays (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .content-wrapper {
    max-width: 800px;
  }
}

/* ========================================
   ANIMATIONS - Subtle entrance effects
   ======================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.article > * {
  animation: fadeUp 0.5s ease-out both;
}

.article > *:nth-child(1) { animation-delay: 0.05s; }
.article > *:nth-child(2) { animation-delay: 0.1s; }
.article > *:nth-child(3) { animation-delay: 0.15s; }
.article > *:nth-child(4) { animation-delay: 0.2s; }
.article > *:nth-child(5) { animation-delay: 0.25s; }

/* Print styles */
@media print {
  body {
    background-color: white;
    color: black;
  }

  header,
  footer,
  .subscribe-section {
    display: none;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100%;
  }
}
