/* ==========================================================================
   MUSHROOM RYE BAG — Dark Craft Workshop Notebook
   A passionate specialist's lab journal on rye grain substrate
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  /* Core palette */
  --bg:              #1C1814;
  --bg-secondary:    #2A2420;
  --surface:         #332C24;
  --text:            #E8DFD0;
  --heading:         #D4A855;
  --accent:          #C67B30;
  --text-muted:      #A89B8C;
  --border:          #4A3F34;
  --success:         #7D8B3E;
  --warning:         #A3493E;
  --code-bg:         #252019;

  /* Derived */
  --glow-amber:      rgba(198, 123, 48, 0.25);
  --glow-amber-strong: rgba(198, 123, 48, 0.45);
  --shadow-inset:    inset 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-card:     0 2px 12px rgba(0, 0, 0, 0.35);

  /* Typography */
  --font-display:    'Fraunces', Georgia, serif;
  --font-body:       'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono:       'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  /* Layout */
  --max-width:       72rem;
  --radius:          6px;
  --reading-width:   42rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: 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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ---------- Reading Progress Bar ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--heading));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1, h2, h3 { text-wrap: balance; }

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-top: var(--space-3xl); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); margin-top: var(--space-2xl); }
h4 { font-size: 1.25rem; margin-top: var(--space-xl); }

p { margin-top: var(--space-md); }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(198, 123, 48, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover {
  color: var(--heading);
  text-decoration-color: var(--heading);
}

strong { color: var(--text); font-weight: 700; }
em { font-style: italic; }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--heading);
}

pre {
  background: var(--code-bg);
  padding: var(--space-lg);
  border-radius: var(--radius);
  overflow-x: auto;
  border: 1px solid var(--border);
  margin-top: var(--space-lg);
}
pre code {
  background: none;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-2xl) 0;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.reading-column {
  max-width: var(--reading-width);
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 24, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

/* CSS grain icon removed — using logo image now */

.site-logo:hover { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--heading); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-xs);
}

@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-md);
  }
  .site-nav.open { display: flex; }
}

/* ---------- Hero Section ---------- */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Hero with background image */
.hero--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 24, 20, 0.82) 0%,
    rgba(28, 24, 20, 0.72) 40%,
    rgba(28, 24, 20, 0.88) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
}

/* Subtle radial glow behind hero text */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212, 168, 85, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-top: var(--space-lg);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: var(--space-xl);
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---------- CTA Button ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #B06B25);
  color: #fff;
  box-shadow: 0 2px 12px var(--glow-amber);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 4px 24px var(--glow-amber-strong);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--heading);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px var(--glow-amber);
}

/* ---------- Rye Bible CTA ---------- */
.rye-bible-cta {
  padding: var(--space-3xl) 0;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.rye-bible-cta h2 {
  margin-top: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.rye-bible-cta p {
  color: var(--text-muted);
  max-width: 32rem;
  margin: var(--space-md) auto 0;
}

.bible-chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.bible-chapter {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-inset);
}
.bible-chapter:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-inset), 0 0 12px var(--glow-amber);
  color: var(--text);
}

.bible-chapter .chapter-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 1.5rem;
}

.bible-chapter .chapter-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading);
}

/* ---------- Section ---------- */
.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 { margin-top: 0; }

.section-header p {
  color: var(--text-muted);
  max-width: 34rem;
  margin: var(--space-sm) auto 0;
}

/* ---------- Experiment Log Cards ---------- */
.experiment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.experiment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-inset);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.experiment-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

/* Card content padding when images are present */
.experiment-card__tag,
.experiment-card__date,
.experiment-card__title,
.experiment-card__finding,
.experiment-card__metric {
  margin-left: var(--space-lg);
  margin-right: var(--space-lg);
}

.experiment-card__tag {
  margin-top: var(--space-lg);
}

.experiment-card__metric {
  margin-bottom: var(--space-lg);
}

.experiment-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-inset), 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.experiment-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15em 0.6em;
  border-radius: 3px;
  font-weight: 600;
}

.tag-hydration  { background: rgba(125, 139, 62, 0.2); color: var(--success); }
.tag-sterilization { background: rgba(163, 73, 62, 0.2); color: var(--warning); }
.tag-colonization { background: rgba(198, 123, 48, 0.2); color: var(--accent); }
.tag-sourcing   { background: rgba(212, 168, 85, 0.2); color: var(--heading); }
.tag-comparison { background: rgba(168, 155, 140, 0.2); color: var(--text-muted); }
.tag-transfer   { background: rgba(125, 139, 62, 0.2); color: var(--success); }

.experiment-card__date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.experiment-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-top: var(--space-sm);
  line-height: 1.35;
}

.experiment-card__finding {
  margin-top: var(--space-sm);
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.experiment-card__finding strong {
  color: var(--accent);
  font-weight: 700;
}

.experiment-card__metric {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.metric {
  text-align: center;
}

.metric__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
}

.metric__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Data Callout ---------- */
.data-callout {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--heading);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.data-callout__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--heading);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-callout__body {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

/* ---------- Warning / Contamination Card ---------- */
.warning-card {
  background: rgba(163, 73, 62, 0.08);
  border: 1px solid rgba(163, 73, 62, 0.3);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.warning-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--warning);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.warning-card__body {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Success / Tip Card ---------- */
.tip-card {
  background: rgba(125, 139, 62, 0.08);
  border: 1px solid rgba(125, 139, 62, 0.3);
  border-left: 3px solid var(--success);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.tip-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--success);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.tip-card__body {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Technique Section ---------- */
.technique-list {
  counter-reset: technique;
  list-style: none;
  padding: 0;
}

.technique-list li {
  counter-increment: technique;
  position: relative;
  padding-left: 3.5rem;
  margin-top: var(--space-xl);
}

.technique-list li::before {
  content: counter(technique, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
}

.technique-list li h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

/* ---------- Article Layout ---------- */
.article-header {
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-2xl);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: var(--space-sm);
  color: var(--border);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--accent); }

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

.article-meta time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.reading-time {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Article body */
.article-body h2 { margin-top: var(--space-3xl); }
.article-body h3 { margin-top: var(--space-2xl); }
.article-body p  { margin-top: var(--space-md); }

.article-body ul,
.article-body ol {
  margin-top: var(--space-md);
  padding-left: var(--space-xl);
}

.article-body li { margin-top: var(--space-sm); }

.article-body li::marker {
  color: var(--accent);
}

/* Anchor sidebar nav for articles */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr 220px;
  }
}

.anchor-nav {
  position: sticky;
  top: 5rem;
  align-self: start;
  display: none;
}

@media (min-width: 1024px) {
  .anchor-nav { display: block; }
}

.anchor-nav__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.anchor-nav ul {
  list-style: none;
  padding: 0;
  border-left: 1px solid var(--border);
}

.anchor-nav li { margin-top: var(--space-sm); }

.anchor-nav a {
  display: block;
  padding: var(--space-xs) var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.anchor-nav a:hover,
.anchor-nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

/* ---------- Image Placeholder ---------- */
.image-placeholder {
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: var(--space-xl) 0;
}

.image-placeholder + figcaption,
figure figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  font-style: italic;
}

/* ---------- Latest Articles ---------- */
.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.article-preview {
  display: block;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-inset);
  overflow: hidden;
}

.article-preview__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.article-preview__body {
  padding: var(--space-lg);
}

.article-preview:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-inset), 0 0 16px var(--glow-amber);
  color: var(--text);
}

.article-preview__category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.article-preview__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--heading);
  margin-top: var(--space-xs);
}

.article-preview__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  line-height: 1.55;
}

@media (min-width: 640px) {
  .article-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--space-3xl);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.back-to-top {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.back-to-top:hover { color: var(--heading); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- Article Hero ---------- */
.article-hero {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: var(--space-lg, 2rem);
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* ---------- Utilities ---------- */
.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;
}

.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .experiment-grid {
    grid-template-columns: 1fr;
  }
  .bible-chapters {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: var(--space-2xl) 0;
  }
  .hero--bg {
    min-height: 360px;
  }
  .experiment-card__metric {
    flex-wrap: wrap;
  }
  .experiment-card__img {
    height: 150px;
  }
  .article-preview__img {
    height: 130px;
  }
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(198, 123, 48, 0.3);
  color: var(--text);
}

/* ---------- Scrollbar (webkit) ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ---------- Focus Styles ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--glow-amber);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  box-shadow: 0 0 0 3px var(--glow-amber);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.bible-chapter:focus-visible,
.experiment-card:focus-visible,
.article-preview:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--glow-amber);
}

.back-to-top:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.share-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--glow-amber);
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 10001;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ---------- Share Buttons ---------- */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.share-bar__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: var(--space-sm);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.share-btn:hover {
  background: var(--bg-secondary);
  color: var(--heading);
  border-color: var(--accent);
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #222; }
  .site-header, .site-footer, .reading-progress, .back-to-top, .share-bar { display: none; }
  a { color: #222; text-decoration: underline; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Logo icon in header */




@media (max-width: 480px) {
  
}


/* Site logo in header */


@media (min-width: 768px) {
  
}

/* Header logo */
.site-logo { display: flex; align-items: center; }
.site-logo__img { height: 48px; width: auto; }
@media (min-width: 768px) { .site-logo__img { height: 60px; } }
