/*
Theme Name: Donkey Lady Bridge
Theme URI: https://donkeyladybridge.com/
Author: Mike Price Jr. / OpenAI
Description: An atmospheric, accessible digital folklore museum theme for DonkeyLadyBridge.com.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: donkey-lady-bridge
License: GPL-2.0-or-later
*/

:root {
  --dlb-ink: #111312;
  --dlb-ink-soft: #1a1f1c;
  --dlb-forest: #1f3028;
  --dlb-moss: #82917a;
  --dlb-fog: #d9ded6;
  --dlb-paper: #f3efe5;
  --dlb-rust: #9a533b;
  --dlb-gold: #c1a36c;
  --dlb-line: rgba(243, 239, 229, 0.18);
  --dlb-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --dlb-radius: 20px;
  --dlb-serif: Georgia, 'Times New Roman', serif;
  --dlb-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--dlb-ink);
  background: var(--dlb-paper);
  font-family: var(--dlb-sans);
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--dlb-rust); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: #6f3727; }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto !important; width: auto; height: auto; margin: 0;
  top: 8px; left: 8px; z-index: 100000; padding: 12px 16px;
  color: #fff; background: #000;
}

.dlb-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.dlb-narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.dlb-section { padding: clamp(72px, 9vw, 128px) 0; }
.dlb-section--dark { color: var(--dlb-paper); background: var(--dlb-ink); }
.dlb-section--forest { color: var(--dlb-paper); background: var(--dlb-forest); }
.dlb-section--fog { background: #e5e8e0; }
.dlb-kicker {
  display: inline-flex; gap: 9px; align-items: center; margin: 0 0 16px;
  color: var(--dlb-rust); font-size: .76rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.dlb-section--dark .dlb-kicker, .dlb-section--forest .dlb-kicker { color: #e1bd85; }
.dlb-kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3, h4 { font-family: var(--dlb-serif); line-height: 1.1; letter-spacing: -.025em; }
h1 { font-size: clamp(3rem, 7vw, 6.4rem); }
h2 { margin: 0 0 20px; font-size: clamp(2.25rem, 4.5vw, 4.5rem); }
h3 { font-size: clamp(1.45rem, 2.1vw, 2rem); }
p { margin: 0 0 1.25em; }
.dlb-lede { max-width: 770px; font-family: var(--dlb-serif); font-size: clamp(1.25rem, 2.2vw, 1.72rem); line-height: 1.45; }
.dlb-muted { color: #666c67; }
.dlb-section--dark .dlb-muted, .dlb-section--forest .dlb-muted { color: #bcc4bd; }

.dlb-site-header {
  position: absolute; inset: 0 0 auto; z-index: 50;
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.14);
}
body:not(.home) .dlb-site-header { position: relative; color: var(--dlb-paper); background: var(--dlb-ink); }
.dlb-header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.dlb-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.dlb-brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.dlb-brand-text { display: grid; line-height: 1; }
.dlb-brand-text strong { font-family: var(--dlb-serif); font-size: 1.15rem; letter-spacing: .02em; }
.dlb-brand-text small { margin-top: 6px; opacity: .68; font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.dlb-menu-toggle {
  display: none; min-height: 44px; padding: 8px 12px; color: inherit;
  background: transparent; border: 1px solid currentColor; border-radius: 999px;
}
.dlb-primary-menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.dlb-primary-menu a { color: inherit; font-size: .78rem; font-weight: 760; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.dlb-primary-menu a:hover, .dlb-primary-menu a:focus { opacity: .72; }

.dlb-hero {
  position: relative; min-height: 780px; display: grid; align-items: end;
  color: #fff; overflow: hidden; background: #111713;
}
.dlb-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,11,.08) 0%, rgba(10,13,11,.1) 30%, rgba(10,13,11,.78) 77%, #111713 100%);
  z-index: 2;
}
.dlb-hero-art { position: absolute; inset: 0; background: #1a241e; }
.dlb-hero-art svg { width: 100%; height: 100%; object-fit: cover; }
.dlb-hero-content { position: relative; z-index: 3; padding: 190px 0 82px; }
.dlb-hero h1 { max-width: 980px; margin: 0 0 26px; }
.dlb-hero h1 span { color: #d7bd8d; }
.dlb-hero .dlb-lede { max-width: 720px; color: rgba(255,255,255,.8); }
.dlb-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.dlb-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 21px;
  border: 1px solid transparent; border-radius: 999px; color: #fff; background: var(--dlb-rust);
  font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-decoration: none; text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.dlb-button:hover, .dlb-button:focus { color: #fff; background: #7f422f; transform: translateY(-2px); }
.dlb-button--ghost { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); backdrop-filter: blur(8px); }
.dlb-button--ghost:hover, .dlb-button--ghost:focus { background: rgba(255,255,255,.14); }
.dlb-hero-note { margin-top: 48px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.64); font-size: .78rem; }
.dlb-hero-note::before { content: ''; width: 36px; height: 1px; background: rgba(255,255,255,.35); }

.dlb-grid { display: grid; gap: 24px; }
.dlb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dlb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dlb-intro-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr); gap: clamp(46px, 8vw, 110px); align-items: start; }
.dlb-fact-panel { padding: 30px; color: var(--dlb-paper); background: var(--dlb-ink-soft); border-radius: var(--dlb-radius); box-shadow: var(--dlb-shadow); }
.dlb-fact-list { margin: 0; padding: 0; list-style: none; }
.dlb-fact-list li { display: grid; grid-template-columns: 95px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--dlb-line); }
.dlb-fact-list li:last-child { border-bottom: 0; }
.dlb-fact-list strong { color: #d7bd8d; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

.dlb-card {
  position: relative; padding: 30px; border: 1px solid rgba(17,19,18,.12); border-radius: var(--dlb-radius);
  background: rgba(255,255,255,.46); box-shadow: 0 10px 35px rgba(22,25,23,.06);
}
.dlb-section--dark .dlb-card, .dlb-section--forest .dlb-card { border-color: var(--dlb-line); background: rgba(255,255,255,.045); box-shadow: none; }
.dlb-card-number { display: block; margin-bottom: 34px; color: var(--dlb-rust); font-family: var(--dlb-serif); font-size: 2.8rem; line-height: 1; }
.dlb-section--dark .dlb-card-number { color: #d7bd8d; }
.dlb-card h3 { margin: 0 0 13px; }
.dlb-card p:last-child { margin-bottom: 0; }
.dlb-card-link { display: inline-flex; margin-top: 15px; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dlb-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dlb-chip { padding: 5px 9px; border: 1px solid rgba(17,19,18,.15); border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dlb-section--dark .dlb-chip { border-color: var(--dlb-line); }

.dlb-story-band { position: relative; overflow: hidden; }
.dlb-story-band::after {
  content: '“'; position: absolute; right: 4vw; top: -100px;
  color: rgba(255,255,255,.04); font-family: var(--dlb-serif); font-size: 32rem; line-height: 1;
}
.dlb-quote { max-width: 880px; margin: 0; font-family: var(--dlb-serif); font-size: clamp(1.7rem, 3.7vw, 3.25rem); line-height: 1.25; }
.dlb-quote cite { display: block; margin-top: 24px; font-family: var(--dlb-sans); font-size: .72rem; font-style: normal; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; opacity: .65; }

.dlb-timeline { position: relative; margin-top: 52px; }
.dlb-timeline::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 128px; width: 1px; background: rgba(17,19,18,.18); }
.dlb-timeline-item { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 55px; padding: 0 0 45px; }
.dlb-timeline-year { color: var(--dlb-rust); font-family: var(--dlb-serif); font-size: 1.25rem; font-weight: 700; text-align: right; }
.dlb-timeline-item::before { content: ''; position: absolute; top: 8px; left: 122px; width: 13px; height: 13px; border: 3px solid var(--dlb-paper); border-radius: 50%; background: var(--dlb-rust); box-shadow: 0 0 0 1px var(--dlb-rust); }
.dlb-timeline-item h3 { margin: 0 0 8px; }

.dlb-map-shell { overflow: hidden; border-radius: var(--dlb-radius); background: #cfd5ca; box-shadow: var(--dlb-shadow); }
.dlb-map-shell iframe { display: block; width: 100%; min-height: 500px; border: 0; filter: grayscale(.75) contrast(1.05); }
.dlb-map-caption { padding: 18px 22px; color: var(--dlb-paper); background: var(--dlb-ink); font-size: .82rem; }
.dlb-notice { padding: 25px 27px; border-left: 4px solid var(--dlb-rust); background: #ece4d4; }
.dlb-notice strong { display: block; margin-bottom: 4px; font-family: var(--dlb-serif); font-size: 1.15rem; }

.dlb-page-hero { padding: clamp(80px, 11vw, 150px) 0 70px; color: var(--dlb-paper); background: linear-gradient(135deg, var(--dlb-ink), var(--dlb-forest)); }
.dlb-page-hero h1 { max-width: 900px; margin: 0; font-size: clamp(2.7rem, 6vw, 5.8rem); }
.dlb-page-hero p { max-width: 700px; margin: 22px 0 0; color: #c6cec6; font-family: var(--dlb-serif); font-size: 1.25rem; }
.dlb-content { padding: 70px 0 110px; }
.dlb-content > *:first-child { margin-top: 0; }
.dlb-content h2 { margin-top: 2em; font-size: clamp(1.9rem, 3.7vw, 3rem); }
.dlb-content h3 { margin-top: 1.8em; }
.dlb-content blockquote { margin: 2em 0; padding: 2px 0 2px 28px; border-left: 3px solid var(--dlb-rust); font-family: var(--dlb-serif); font-size: 1.35rem; }
.dlb-content ul, .dlb-content ol { padding-left: 1.25em; }
.dlb-content .wp-block-image { margin: 2em 0; }

.dlb-archive-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
.dlb-archive-card { display: flex; flex-direction: column; min-height: 100%; }
.dlb-archive-card .dlb-card-link { margin-top: auto; padding-top: 15px; }
.dlb-pagination { margin-top: 50px; }
.dlb-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.dlb-pagination a, .dlb-pagination span { padding: 9px 13px; border: 1px solid rgba(17,19,18,.15); border-radius: 999px; text-decoration: none; }

.dlb-site-footer { padding: 70px 0 30px; color: #c5cbc5; background: #0b0d0c; }
.dlb-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 60px; padding-bottom: 55px; }
.dlb-footer-grid h2 { color: #fff; font-size: 2.2rem; }
.dlb-footer-grid h3 { color: #fff; font-family: var(--dlb-sans); font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }
.dlb-footer-menu { margin: 0; padding: 0; list-style: none; }
.dlb-footer-menu li { margin-bottom: 9px; }
.dlb-footer-menu a { color: #c5cbc5; text-decoration: none; }
.dlb-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .74rem; }

@media (max-width: 900px) {
  .dlb-grid--3 { grid-template-columns: 1fr; }
  .dlb-grid--2, .dlb-intro-grid, .dlb-footer-grid { grid-template-columns: 1fr; }
  .dlb-menu-toggle { display: inline-flex; }
  .dlb-nav { position: absolute; top: 88px; left: 20px; right: 20px; display: none; padding: 20px; color: #fff; background: rgba(12,15,13,.97); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; box-shadow: var(--dlb-shadow); }
  .dlb-nav.is-open { display: block; }
  .dlb-primary-menu { display: grid; gap: 5px; }
  .dlb-primary-menu a { display: block; padding: 10px 5px; }
  .dlb-hero { min-height: 720px; }
  .dlb-timeline::before { left: 14px; }
  .dlb-timeline-item { grid-template-columns: 1fr; gap: 4px; padding-left: 43px; }
  .dlb-timeline-year { text-align: left; }
  .dlb-timeline-item::before { left: 8px; }
  .dlb-footer-grid { gap: 24px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .dlb-container, .dlb-narrow { width: min(100% - 28px, 1180px); }
  .dlb-header-inner { min-height: 76px; }
  .dlb-nav { top: 76px; left: 14px; right: 14px; }
  .dlb-brand-text small { display: none; }
  .dlb-hero { min-height: 690px; }
  .dlb-hero-content { padding: 145px 0 58px; }
  .dlb-hero h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .dlb-card { padding: 23px; }
  .dlb-fact-panel { padding: 22px; }
  .dlb-fact-list li { grid-template-columns: 1fr; gap: 4px; }
  .dlb-footer-bottom { display: grid; }
}

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