/* ============================================
   THE RIDERS GANG - Brand Style System
   Self-contained, no external font dependencies
   ============================================ */

/* --- CSS Custom Properties (Brand Tokens) --- */
:root {
  /* Brand Colors — Old Money Heritage Palette */
  --color-midnight: #121a12;         /* Deep hunter green-black — leather-bound library */
  --color-forest: #1a2e1a;           /* Rich forest green — country estate */
  --color-saddle: #6b3a2a;           /* Warm saddle brown */
  --color-leather: #8b5e3c;          /* Aged leather */
  --color-cream: #f4f0e4;            /* Antique cream — old linen */
  --color-parchment: #f8f5ed;        /* Aged parchment */
  --color-gold: #b8963e;             /* Muted brass — not flashy, inherited */
  --color-gold-light: #d4b86a;       /* Light brass for subtle accents */
  --color-steel: #4a5548;            /* Warm grey-green */
  --color-rust: #8b3a1a;             /* Deep rust — old brick */
  --color-white: #fefcf8;            /* Warm white — never stark */
  --color-ink: #2a2e28;              /* Warm charcoal ink */
  --color-muted: #6b7268;            /* Moss grey */
  --color-burgundy: #4a1a24;         /* Deep burgundy — port wine accent */
  --color-walnut: #3d2b1f;           /* Walnut wood tone */

  /* Typography - System font stacks that look premium */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Textures — layered for depth */
  /* Fine linen grain — for light sections */
  --texture-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  /* Leather grain — for dark sections */
  --texture-grain-dark: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.07'/%3E%3C/svg%3E");
  /* Canvas weave — for card backgrounds */
  --texture-canvas: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='20' height='20' fill='none'/%3E%3Cline x1='0' y1='10' x2='20' y2='10' stroke='%23000' stroke-opacity='0.015' stroke-width='0.5'/%3E%3Cline x1='10' y1='0' x2='10' y2='20' stroke='%23000' stroke-opacity='0.015' stroke-width='0.5'/%3E%3C/svg%3E");
  /* Linen cross-hatch — for mission/community sections */
  --texture-linen: url("data:image/svg+xml,%3Csvg width='16' height='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0L16 16M16 0L0 16' stroke='%23ffffff' stroke-opacity='0.02' stroke-width='0.4'/%3E%3C/svg%3E");
  /* Subtle herringbone — for premium feel */
  --texture-herringbone: url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 12L12 0L24 12M0 24L12 12L24 24' fill='none' stroke='%23000' stroke-opacity='0.018' stroke-width='0.5'/%3E%3C/svg%3E");
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background-color: var(--color-parchment);
  background-image: var(--texture-grain), var(--texture-herringbone);
  background-size: 200px 200px, 24px 24px;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-saddle);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-leather);
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-midnight);
  background-image: var(--texture-grain-dark), var(--texture-linen);
  background-size: 200px 200px, 16px 16px;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-gold);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(184, 150, 62, 0.1);
}

.site-nav__brand {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.site-nav__brand:hover {
  opacity: 0.85;
}

.nav-logo {
  height: 42px;
  width: auto;
  display: block;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gold);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

.site-nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.site-nav__links a {
  color: var(--color-cream) !important;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
}

.site-nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition-smooth);
}

.site-nav__links a:hover {
  color: var(--color-gold) !important;
}

.site-nav__links a:hover::after {
  width: 100%;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, var(--color-midnight) 0%, var(--color-forest) 30%, #1e2a18 50%, var(--color-walnut) 80%, var(--color-saddle) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Warm brass glow — like lamplight in a study */
    radial-gradient(ellipse at 25% 40%, rgba(184, 150, 62, 0.07) 0%, transparent 55%),
    /* Leather warmth from the corner */
    radial-gradient(ellipse at 80% 70%, rgba(107, 58, 42, 0.08) 0%, transparent 45%),
    /* Subtle green ambient — forest canopy light */
    radial-gradient(ellipse at 50% 10%, rgba(26, 46, 26, 0.3) 0%, transparent 60%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Leather tooling lines — subtle diagonal cross-hatch like a saddle */
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(184, 150, 62, 0.012) 40px,
      rgba(184, 150, 62, 0.012) 41px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(184, 150, 62, 0.012) 40px,
      rgba(184, 150, 62, 0.012) 41px
    ),
    /* Vintage vignette — heavy, like looking through an old telescope */
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.45) 100%),
    /* Deep leather grain */
    var(--texture-grain-dark);
  background-size: auto, auto, auto, 200px 200px;
}

.hero__border-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right,
    transparent,
    var(--color-saddle),
    var(--color-gold),
    var(--color-saddle),
    transparent
  );
  opacity: 0.6;
  z-index: 3;
}

/* Stitching line — like saddle stitching, above the border */
.hero__border-fade::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--color-gold) 0px,
    var(--color-gold) 8px,
    transparent 8px,
    transparent 14px
  );
  opacity: 0.2;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 3rem 2rem;
}

.hero__logo {
  width: 220px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.3));
}

.hero__tagline {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  color: var(--color-gold);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
  font-weight: 300;
}

.hero__cta {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  border: 2px solid var(--color-gold);
  color: var(--color-gold) !important;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-gold);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__cta:hover {
  color: var(--color-midnight) !important;
}

.hero__cta:hover::before {
  transform: translateY(0);
}

.hero__cta span {
  position: relative;
  z-index: 1;
}

/* --- Section Layout --- */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__label {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-midnight);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section__divider {
  width: 180px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  margin: 1rem auto 0;
  position: relative;
}

/* Saddle-stitch dots flanking a brass ornament */
.section__divider::before {
  content: '\2726';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  color: var(--color-gold);
  background: var(--color-parchment);
  padding: 0 0.8rem;
  line-height: 1;
}

.section__divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    transparent 0px,
    transparent 4px,
    rgba(184, 150, 62, 0.15) 4px,
    rgba(184, 150, 62, 0.15) 6px
  );
  z-index: -1;
}

/* --- Article Cards Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 2.5rem;
}

.article-card {
  background: var(--color-white);
  background-image: var(--texture-grain), var(--texture-canvas);
  background-size: 200px 200px, 20px 20px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(184, 150, 62, 0.08);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(107, 58, 42, 0.1);
  position: relative;
}

/* Brass-pin top accent — like a pinned notice on a leather board */
.article-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(184, 150, 62, 0.12);
  border-color: rgba(184, 150, 62, 0.2);
}

.article-card:hover::after {
  opacity: 1;
}

.article-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-leather), var(--color-saddle));
  filter: saturate(0.75) contrast(1.05) sepia(0.12);
  transition: filter 0.5s ease;
}

.article-card:hover .article-card__image {
  filter: saturate(0.9) contrast(1.02) sepia(0.04);
}

.article-card__body {
  padding: 1.5rem 1.75rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card__category {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.article-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-midnight);
  margin-bottom: 0.75rem;
  line-height: 1.35;
  font-weight: 700;
}

.article-card__excerpt {
  font-size: 0.92rem;
  color: var(--color-steel);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
}

.article-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(107, 58, 42, 0.08);
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: auto;
}

.article-card__read-more {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-saddle) !important;
  transition: var(--transition-smooth);
}

.article-card__read-more:hover {
  color: var(--color-rust) !important;
  letter-spacing: 0.15em;
}

/* --- Featured Card (first card larger) --- */
.articles-grid .article-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.articles-grid .article-card:first-child .article-card__image {
  height: 100%;
  min-height: 360px;
}

.articles-grid .article-card:first-child .article-card__body {
  padding: 2.5rem;
}

.articles-grid .article-card:first-child .article-card__title {
  font-size: 1.7rem;
}

.articles-grid .article-card:first-child .article-card__excerpt {
  font-size: 1rem;
}

/* --- Split Hero: brand left, Machine of the Moment right --- */
.hero--split {
  text-align: left;
  min-height: 640px;
  padding: 4.5rem 2rem;
}

.hero--split .hero__content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.hero__brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero--split .hero__logo {
  max-width: 340px;
  margin-bottom: 1rem;
}

/* Machine of the Moment — brass-framed showcase card */
.hero__machine {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(184, 150, 62, 0.35);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  position: relative;
}

.hero__machine::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--color-gold), var(--color-gold-light), var(--color-gold), transparent);
  z-index: 2;
}

.hero__machine img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.hero__machine-body {
  padding: 1.4rem 2rem 1.6rem;
}

.hero__machine-label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.4rem;
}

.hero__machine-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-cream);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hero__machine-desc {
  font-size: 0.9rem;
  color: rgba(244, 240, 228, 0.65);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.hero__machine-link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold) !important;
  transition: var(--transition-smooth);
}

.hero__machine-link:hover {
  color: var(--color-gold-light) !important;
  letter-spacing: 0.18em;
}

/* --- Paddock Rail — the rest of the stable, under the hero --- */
.paddock-rail {
  background: var(--color-forest);
  background-image: var(--texture-grain-dark);
  background-size: 200px 200px;
  border-top: 1px solid rgba(184, 150, 62, 0.25);
  border-bottom: 1px solid rgba(184, 150, 62, 0.2);
  padding: 1.6rem 2rem;
}

.paddock-rail__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.paddock-rail__label {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}

.paddock-rail__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.rail-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(184, 150, 62, 0.18);
  border-radius: 4px;
  padding: 0.6rem 0.9rem;
  transition: var(--transition-smooth);
}

.rail-card:hover {
  border-color: rgba(184, 150, 62, 0.45);
  transform: translateY(-2px);
}

.rail-card img {
  width: 76px;
  height: 54px;
  object-fit: cover;
  border-radius: 3px;
  filter: saturate(0.8) sepia(0.1);
}

.rail-card em {
  display: block;
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
}

.rail-card strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--color-cream);
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .hero--split .hero__content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .paddock-rail__cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .paddock-rail__cards {
    grid-template-columns: 1fr;
  }

  .hero__machine img {
    height: 280px;
  }
}

/* --- Mission Section --- */
.mission-section {
  background: var(--color-midnight);
  background-image: var(--texture-grain-dark), var(--texture-linen);
  background-size: 200px 200px, 16px 16px;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(184, 150, 62, 0.12);
  border-bottom: 1px solid rgba(184, 150, 62, 0.12);
}

.mission-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Brass lamp glow in center */
    radial-gradient(ellipse at center, rgba(184, 150, 62, 0.05) 0%, transparent 60%),
    /* Leather chair vignette */
    radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.3) 100%);
}

/* Saddle-stitch top border */
.mission-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    rgba(184, 150, 62, 0.2) 0px,
    rgba(184, 150, 62, 0.2) 6px,
    transparent 6px,
    transparent 12px
  );
}

.mission-section__inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mission-section__label {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.mission-section__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--color-white);
  margin: 1.5rem 0;
  line-height: 1.45;
  font-weight: 400;
  font-style: italic;
  position: relative;
  padding: 0 1.5rem;
}

.mission-section__quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-gold);
  opacity: 0.3;
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  line-height: 1;
}

.mission-section__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
  margin-top: 1.5rem;
}

/* --- Categories Grid --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 1.5rem;
  text-align: center;
}

.category-card {
  padding: 2.5rem 1.5rem;
  background: var(--color-white);
  background-image: var(--texture-grain), var(--texture-canvas);
  background-size: 200px 200px, 20px 20px;
  border-radius: 6px;
  box-shadow:
    0 1px 8px rgba(0,0,0,0.04),
    0 1px 2px rgba(0,0,0,0.06);
  transition: var(--transition-smooth);
  border: 1px solid rgba(107, 58, 42, 0.08);
  position: relative;
}

/* Top brass accent line */
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent 20%, var(--color-gold) 50%, transparent 80%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  border-color: rgba(184, 150, 62, 0.2);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-midnight);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.category-card__desc {
  font-size: 0.82rem;
  color: var(--color-steel);
  line-height: 1.65;
}

/* --- Archive Cards Grid (compact, for previous articles) --- */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 1.5rem;
}

.archive-card {
  background: var(--color-white);
  background-image: var(--texture-grain), var(--texture-canvas);
  background-size: 200px 200px, 20px 20px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(107, 58, 42, 0.06);
}

.archive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(184, 150, 62, 0.18);
}

.archive-card__image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-leather), var(--color-saddle));
  filter: saturate(0.8) sepia(0.12) contrast(1.05);
  transition: filter 0.4s ease;
}

.archive-card:hover .archive-card__image {
  filter: saturate(1) sepia(0) contrast(1);
}

.archive-card__body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.archive-card__category {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: inline-block;
}

.archive-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-midnight);
  margin-bottom: 0.5rem;
  line-height: 1.35;
  font-weight: 700;
  flex: 1;
}

.archive-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(139, 94, 60, 0.15);
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: auto;
}

.archive-card__link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-saddle) !important;
  transition: var(--transition-smooth);
}

.archive-card__link:hover {
  color: var(--color-rust) !important;
}

/* --- Date-Grouped Archive System --- */
.archive-group {
  margin-bottom: 2.5rem;
}

.archive-group__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(107, 58, 42, 0.08);
  margin-bottom: 1.25rem;
  user-select: none;
  transition: var(--transition-smooth);
}

.archive-group__header:hover {
  border-color: rgba(184, 150, 62, 0.2);
}

.archive-group__date {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  color: var(--color-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.archive-group__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(184, 150, 62, 0.15), transparent);
}

.archive-group__count {
  font-size: 0.72rem;
  color: var(--color-muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.archive-group__toggle {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.archive-group__toggle svg {
  width: 100%;
  height: 100%;
}

/* Collapsed state */
.archive-group.collapsed .archive-group__content {
  display: none;
}

.archive-group.collapsed .archive-group__toggle {
  transform: rotate(-90deg);
}

/* Compact archive list (for older dates, no images) */
.archive-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.archive-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: var(--color-white);
  background-image: var(--texture-grain);
  background-size: 200px 200px;
  border-radius: 4px;
  border: 1px solid rgba(107, 58, 42, 0.05);
  transition: var(--transition-smooth);
}

.archive-list__item:hover {
  border-color: rgba(184, 150, 62, 0.15);
  background-color: rgba(184, 150, 62, 0.02);
}

.archive-list__category {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  white-space: nowrap;
  min-width: 100px;
}

.archive-list__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--color-midnight);
  font-weight: 700;
  flex: 1;
  line-height: 1.3;
}

.archive-list__title a {
  color: inherit !important;
  text-decoration: none;
}

.archive-list__title a:hover {
  color: var(--color-saddle) !important;
}

.archive-list__meta {
  font-size: 0.7rem;
  color: var(--color-muted);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .archive-list__item {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }

  .archive-list__category {
    min-width: auto;
  }

  .archive-list__meta {
    width: 100%;
    margin-top: 0.1rem;
  }
}

/* --- Full Article Page --- */
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.article__category {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  display: inline-block;
}

.article__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--color-midnight);
  line-height: 1.15;
  margin: 0.8rem 0 1rem;
  font-weight: 700;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}

.article__hero-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2.5rem;
  background: var(--color-cream);
  overflow: hidden;
  display: block;
  filter: saturate(0.9) contrast(1.03) sepia(0.05);
  box-shadow: 0 4px 20px rgba(107, 58, 42, 0.12);
}

.article__content h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--color-midnight);
  margin: 2.5rem 0 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.article__content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-saddle);
  margin: 2rem 0 0.5rem;
  font-weight: 700;
}

.article__content p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-ink);
}

.article__content blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--color-gold);
  background: rgba(184, 150, 62, 0.04);
  background-image: var(--texture-grain), var(--texture-canvas);
  background-size: 200px 200px, 20px 20px;
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-saddle);
  line-height: 1.75;
  border-radius: 0 6px 6px 0;
  position: relative;
}

.article__content blockquote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-gold);
  opacity: 0.25;
  position: absolute;
  top: 0.2rem;
  left: 0.6rem;
  line-height: 1;
}

.article__content .pull-quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-saddle);
  text-align: center;
  padding: 2rem 1.5rem;
  margin: 2.5rem 0;
  border-top: 1px solid var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
  line-height: 1.5;
  font-weight: 400;
  font-style: italic;
  background: rgba(184, 150, 62, 0.025);
  background-image: var(--texture-grain), var(--texture-canvas);
  background-size: 200px 200px, 20px 20px;
  position: relative;
}

.article__content .pull-quote::before,
.article__content .pull-quote::after {
  font-family: var(--font-display);
  color: var(--color-gold);
  opacity: 0.3;
  font-size: 2rem;
  position: absolute;
}

.article__content .pull-quote::before {
  content: '\201C';
  top: 0.5rem;
  left: 0.5rem;
}

.article__content .pull-quote::after {
  content: '\201D';
  bottom: 0.3rem;
  right: 0.5rem;
}

.article__content figure {
  margin: 2.5rem 0;
}

.article__content figcaption {
  font-size: 0.82rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.6;
}

.article__content .inline-image {
  width: 100%;
  border-radius: 8px;
  background: var(--color-cream);
  object-fit: cover;
  display: block;
  filter: saturate(0.9) sepia(0.06);
  box-shadow: 0 3px 16px rgba(107, 58, 42, 0.1);
  transition: filter 0.4s ease;
}

.article__content .inline-image:hover {
  filter: saturate(1) sepia(0);
}

/* Tags */
.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tag {
  padding: 0.35rem 0.9rem;
  background: rgba(107, 58, 42, 0.06);
  color: var(--color-saddle);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  font-weight: 600;
  transition: var(--transition-smooth);
  border: 1px solid rgba(107, 58, 42, 0.08);
}

.tag:hover {
  background: rgba(107, 58, 42, 0.12);
  border-color: rgba(184, 150, 62, 0.25);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-midnight);
  background-image: var(--texture-grain-dark), var(--texture-linen);
  background-size: 200px 200px, 16px 16px;
  color: var(--color-cream);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
  border-top: 2px solid var(--color-gold);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    rgba(184, 150, 62, 0.15) 0px,
    rgba(184, 150, 62, 0.15) 6px,
    transparent 6px,
    transparent 12px
  );
}

.footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  margin-bottom: 1rem;
}

.footer__logo {
  height: 80px;
  width: auto;
  display: block;
}

.footer__desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.footer__links a:hover {
  color: var(--color-gold) !important;
  padding-left: 4px;
}

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Social Share Bar --- */
.social-share {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.social-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 100px;
  color: var(--color-white) !important;
  letter-spacing: 0.04em;
  transition: var(--transition-smooth);
}

.social-share__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.social-share__btn--twitter { background: #1da1f2; }
.social-share__btn--instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-share__btn--facebook { background: #1877f2; }

/* --- Responsive --- */

/* Tablet landscape */
@media (max-width: 900px) {
  .articles-grid .article-card:first-child {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .articles-grid .article-card:first-child .article-card__image {
    min-height: 220px;
    height: 220px;
  }

  .articles-grid .article-card:first-child .article-card__title {
    font-size: 1.4rem;
  }

  .articles-grid .article-card:first-child .article-card__body {
    padding: 1.5rem 1.75rem 1.75rem;
  }

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

/* Tablet portrait & large phones */
@media (max-width: 768px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.8rem 1.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .site-nav__links.active {
    display: flex;
  }

  .site-nav__links li {
    text-align: center;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .articles-grid .article-card:first-child {
    grid-column: auto;
  }

  .nav-logo {
    height: 36px;
  }

  .hero {
    min-height: 70vh;
  }

  .hero__logo {
    width: 170px;
  }

  .hero__content {
    padding: 2rem 1.25rem;
  }

  .hero__subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero__cta {
    padding: 0.8rem 2rem;
  }

  .article {
    padding: 2rem 1.25rem 3rem;
  }

  .article__content blockquote {
    padding: 1rem 1.25rem;
  }

  .article__content .pull-quote {
    font-size: 1.15rem;
    padding: 1.5rem 0.75rem;
  }

  .article__content p {
    font-size: 1rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .section__header {
    margin-bottom: 2.5rem;
  }

  .archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
    gap: 1rem;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .category-card {
    padding: 1.75rem 1.25rem;
  }

  .mission-section {
    padding: 3.5rem 1.25rem;
  }

  .mission-section__quote {
    font-size: 1.3rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .site-footer {
    padding: 3rem 1.25rem 1.5rem;
  }

  .social-share {
    justify-content: center;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero {
    min-height: 60vh;
  }

  .hero__logo {
    width: 140px;
    margin-bottom: 1.5rem;
  }

  .hero__tagline {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
  }

  .hero__subtitle {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .hero__cta {
    padding: 0.75rem 1.8rem;
    font-size: 0.75rem;
  }

  .article__title {
    font-size: 1.75rem;
  }

  .article__meta {
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .article__content h2 {
    font-size: 1.3rem;
  }

  .article__content h3 {
    font-size: 1.05rem;
  }

  .article__content blockquote {
    font-size: 1.05rem;
    margin: 1.5rem 0;
  }

  .article-card__title {
    font-size: 1.15rem;
  }

  .article-card__excerpt {
    font-size: 0.88rem;
  }

  .article-card__image {
    height: 180px;
  }

  .articles-grid .article-card:first-child .article-card__image {
    height: 200px;
    min-height: 200px;
  }

  .articles-grid .article-card:first-child .article-card__body {
    padding: 1.25rem;
  }

  .articles-grid .article-card:first-child .article-card__title {
    font-size: 1.2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__logo {
    height: 60px;
  }

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

  .section__title {
    font-size: 1.6rem;
  }

  .social-share__btn {
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .site-nav {
    padding: 0.7rem 1rem;
  }

  .nav-logo {
    height: 32px;
  }

  .hero__logo {
    width: 120px;
  }

  .hero__content {
    padding: 1.5rem 1rem;
  }

  .article {
    padding: 1.5rem 1rem 2.5rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .article-card__body {
    padding: 1.25rem;
  }

  .article-card__image {
    height: 160px;
  }

  .mission-section {
    padding: 2.5rem 1rem;
  }

  .site-footer {
    padding: 2.5rem 1rem 1.5rem;
  }
}

/* --- Community Section --- */
.community {
  background: var(--color-midnight);
  background-image: var(--texture-grain-dark), var(--texture-linen);
  background-size: 200px 200px, 16px 16px;
  color: var(--color-white);
  padding: 6rem 2rem;
  border-top: 1px solid rgba(184, 150, 62, 0.12);
  position: relative;
}

/* Saddle-stitch top border */
.community::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    rgba(184, 150, 62, 0.18) 0px,
    rgba(184, 150, 62, 0.18) 6px,
    transparent 6px,
    transparent 12px
  );
}

.community__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.community__label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 1rem;
}

.community__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.community__subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 680px;
  margin: 0 auto 3.5rem;
  line-height: 1.8;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
  text-align: left;
}

.community-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.community-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.community-card--featured {
  background: rgba(184, 150, 62, 0.06);
  border-color: rgba(184, 150, 62, 0.2);
}

.community-card--featured:hover {
  background: rgba(184, 150, 62, 0.1);
  border-color: rgba(184, 150, 62, 0.35);
}

.community-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

.community-card__icon svg {
  width: 100%;
  height: 100%;
}

.community-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.community-card__desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  flex: 1;
}

.community-card__btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--color-white) !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-smooth);
  text-align: center;
  align-self: flex-start;
}

.community-card__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

.community-card__btn--primary {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-midnight) !important;
}

.community-card__btn--primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
}

/* Community stats */
.community__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.community__stat {
  text-align: center;
}

.community__stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.2;
}

.community__stat-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.3rem;
}

/* Community responsive */
@media (max-width: 768px) {
  .community {
    padding: 4rem 1.5rem;
  }

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

  .community__stats {
    gap: 2rem;
  }

  .community__stat-number {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .community {
    padding: 3rem 1rem;
  }

  .community__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* --- Smooth page load --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card {
  animation: fadeInUp 0.6s ease both;
}

.article-card:nth-child(1) { animation-delay: 0s; }
.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.2s; }
.article-card:nth-child(4) { animation-delay: 0.3s; }
.article-card:nth-child(5) { animation-delay: 0.4s; }

/* --- Selection color --- */
::selection {
  background: rgba(184, 150, 62, 0.25);
  color: var(--color-midnight);
}

/* --- Scrollbar styling (webkit) --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-parchment);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-leather);
}

/* ============================================
   THE PADDOCK — machines.html + machine articles
   ============================================ */

/* --- Paddock Masthead (machines.html header) --- */
.paddock-masthead {
  /* Textures first, gradient last — all in ONE background-image declaration, or a
     later background-image would silently wipe out the gradient. */
  background-color: var(--color-midnight);
  background-image:
    var(--texture-grain-dark),
    var(--texture-linen),
    linear-gradient(145deg, var(--color-midnight) 0%, var(--color-forest) 35%, #1e2a18 55%, var(--color-walnut) 85%, var(--color-saddle) 100%);
  background-size: 200px 200px, 16px 16px, cover;
  padding: 4.5rem 2rem 4rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(184, 150, 62, 0.25);
}

.paddock-masthead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--color-gold), var(--color-gold-light), var(--color-gold), transparent);
}

.paddock-masthead__inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.paddock-masthead__label {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.75rem;
}

.paddock-masthead__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--color-cream);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.paddock-masthead__divider {
  width: 180px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  margin: 1.25rem auto;
  position: relative;
}

.paddock-masthead__divider::before {
  content: '\2726';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  color: var(--color-gold);
  background: #1b2718;
  padding: 0 0.75rem;
  line-height: 1;
}

.paddock-masthead__desc {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(244, 240, 228, 0.72);
  line-height: 1.75;
}

/* --- Machines Grid --- */
.machines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 2.5rem;
}

.machine-card {
  background: var(--color-white);
  background-image: var(--texture-grain), var(--texture-canvas);
  background-size: 200px 200px, 20px 20px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(107, 58, 42, 0.1);
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(184, 150, 62, 0.08);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.machine-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.machine-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 150, 62, 0.22);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(184, 150, 62, 0.12);
}

.machine-card:hover::after {
  opacity: 1;
}

.machine-card__image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-leather), var(--color-saddle));
  filter: saturate(0.8) contrast(1.04) sepia(0.1);
  transition: filter 0.5s ease;
}

.machine-card:hover .machine-card__image {
  filter: saturate(0.95) contrast(1.02) sepia(0.02);
}

.machine-card__body {
  padding: 1.5rem 1.75rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.machine-card__origin {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.machine-card__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-midnight);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

/* Spec list inside the card — reads like a lot listing at auction */
.machine-card__specs {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(107, 58, 42, 0.1);
  border-bottom: 1px solid rgba(107, 58, 42, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.machine-card__specs li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--color-ink);
  line-height: 1.5;
}

.machine-card__specs li span {
  flex: 0 0 4.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 700;
  padding-top: 0.15rem;
}

.machine-card__desc {
  font-size: 0.9rem;
  color: var(--color-steel);
  line-height: 1.7;
  margin-bottom: 1.1rem;
  flex: 1;
}

.machine-card__link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-saddle) !important;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(107, 58, 42, 0.08);
  margin-top: auto;
  transition: var(--transition-smooth);
}

.machine-card__link:hover {
  color: var(--color-rust) !important;
  letter-spacing: 0.16em;
}

/* Featured machine spans the full grid width on wide screens */
.machine-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.machine-card--featured .machine-card__image {
  height: 100%;
  min-height: 340px;
}

.machine-card--featured .machine-card__body {
  padding: 2.25rem 2.5rem;
}

.machine-card--featured .machine-card__name {
  font-size: 1.75rem;
}

.machine-card--featured .machine-card__desc {
  font-size: 1rem;
}

/* --- Pricing disclaimer --- */
.price-disclaimer {
  max-width: 780px;
  margin: 3rem auto 0;
  padding: 1.1rem 1.5rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--color-muted);
  font-style: italic;
  text-align: center;
  border: 1px dashed rgba(107, 58, 42, 0.22);
  border-radius: 4px;
  background: rgba(184, 150, 62, 0.04);
}

/* --- Spec Plate (top of every machine article) --- */
.spec-plate {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 2rem 0 2.5rem;
  border: 1px solid rgba(184, 150, 62, 0.3);
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-midnight);
  background-image: var(--texture-grain-dark);
  background-size: 200px 200px;
}

.spec-plate__item {
  padding: 1.1rem 1.35rem;
  border-right: 1px solid rgba(184, 150, 62, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.spec-plate__item:last-child {
  border-right: none;
}

.spec-plate__label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
}

.spec-plate__value {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--color-cream);
  line-height: 1.35;
}

/* --- Sourcing Table (where to find one) --- */
.table-scroll {
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid rgba(107, 58, 42, 0.14);
  border-radius: 4px;
}

.sourcing-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--color-white);
  table-layout: fixed;
}

/* Availability is prose and needs the most room; market names the least. */
.sourcing-table th:nth-child(1),
.sourcing-table td:nth-child(1) { width: 17%; }

.sourcing-table th:nth-child(2),
.sourcing-table td:nth-child(2) { width: 47%; }

.sourcing-table th:nth-child(3),
.sourcing-table td:nth-child(3) { width: 36%; }

.sourcing-table caption {
  caption-side: bottom;
  padding: 0.75rem 1rem;
  font-size: 0.76rem;
  font-style: italic;
  color: var(--color-muted);
  text-align: left;
  line-height: 1.6;
}

.sourcing-table th {
  background: var(--color-midnight);
  background-image: var(--texture-grain-dark);
  background-size: 200px 200px;
  color: var(--color-gold);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1.1rem;
  white-space: nowrap;
}

.sourcing-table td {
  padding: 0.85rem 1.1rem;
  border-top: 1px solid rgba(107, 58, 42, 0.1);
  color: var(--color-ink);
  line-height: 1.6;
  vertical-align: top;
}

.sourcing-table tbody tr:nth-child(even) {
  background: rgba(184, 150, 62, 0.035);
}

.sourcing-table td:first-child {
  font-weight: 600;
  color: var(--color-midnight);
  hyphens: auto;
}

.sourcing-table td:last-child {
  font-variant-numeric: tabular-nums;
  white-space: normal;
}

/* --- Back to The Paddock link --- */
.article__back {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(107, 58, 42, 0.12);
  text-align: center;
}

.article__back-link {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-saddle) !important;
  transition: var(--transition-smooth);
}

.article__back-link:hover {
  color: var(--color-rust) !important;
  letter-spacing: 0.18em;
}

/* --- Paddock responsive --- */
@media (max-width: 900px) {
  .machine-card--featured {
    grid-template-columns: 1fr;
  }

  .machine-card--featured .machine-card__image {
    min-height: 0;
    height: 240px;
  }

  .machine-card--featured .machine-card__body {
    padding: 1.5rem 1.75rem 1.75rem;
  }

  .machine-card--featured .machine-card__name {
    font-size: 1.35rem;
  }

  .spec-plate__item {
    border-right: none;
    border-bottom: 1px solid rgba(184, 150, 62, 0.18);
  }

  .spec-plate__item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .paddock-masthead {
    padding: 3rem 1.25rem 2.75rem;
  }

  .paddock-masthead__desc {
    font-size: 1rem;
  }

  .machines-grid {
    gap: 1.75rem;
  }
}

/* Paddock rail label is now a link through to machines.html */
a.paddock-rail__label {
  color: var(--color-gold) !important;
  transition: var(--transition-smooth);
}

a.paddock-rail__label:hover {
  color: var(--color-gold-light) !important;
  letter-spacing: 0.32em;
}
