:root {
  --ochre: #df7c30;
  --ochre-dark: #b85f1e;
  --ochre-soft: #f4dccb;
  --ink: #161413;
  --muted: #6b625b;
  --paper: #f6f1ea;
  --paper-2: #fbf8f4;
  --card: #fffdf9;
  --line: #ddd1c5;
  --line-soft: rgba(221, 209, 197, 0.72);
  --shadow: 0 18px 50px rgba(17, 10, 6, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1240px;
  --header-height: 82px;
}

html[data-theme="dark"] {
  --ink: #eee8e1;
  --muted: #b0a7a0;
  --paper: #121110;
  --paper-2: #171514;
  --card: #1b1816;
  --line: #312b28;
  --line-soft: rgba(49, 43, 40, 0.92);
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 100% 0%, rgba(223,124,48,0.11), transparent 22%), linear-gradient(180deg, var(--paper-2), var(--paper));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.serif,
.article-content,
.article-title,
h1, h2, h3 { font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--ochre);
  transform: skewX(-32deg);
}
.meta {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  font-size: 0.94rem;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: var(--ochre-soft);
  color: #8b4716;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
html[data-theme="dark"] .badge {
  background: rgba(223, 124, 48, 0.16);
  color: #f3b27e;
}
.language-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 92%, transparent);
}
.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-group { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark,
.brand-mark .custom-logo-link,
.brand-mark img { display: block; }
.brand-mark img,
.brand-mark .custom-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.brand-title {
  font-size: 1rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.brand-fallback { font-weight: 800; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.primary-menu,
.footer-menu,
.footer-socials {
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.primary-menu a {
  display: inline-flex;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-cat > a {
  background: color-mix(in srgb, var(--ochre) 10%, transparent);
  color: var(--ink);
}
.mobile-nav-toggle { display: none; }
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 0.45rem 0.68rem;
  cursor: pointer;
}
.theme-toggle-track {
  width: 42px;
  height: 24px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 999px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
}
.theme-toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ochre);
  transform: translateX(0);
  transition: transform 0.2s ease;
}
html[data-theme="dark"] .theme-toggle-thumb { transform: translateX(18px); }
.theme-toggle-label { font-size: 0.9rem; font-weight: 700; }
.hero-section,
.section-block { padding: 34px 0 42px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 26px;
  align-items: stretch;
}
.feature-card,
.panel,
.story-card,
.lane-card,
.article-shell,
.archive-header {
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
}
.feature-media,
.feature-media a {
  display: block;
  height: 100%;
}
.feature-image,
.story-thumb,
.card-thumb-placeholder,
.article-cover {
  width: 100%;
  object-fit: cover;
  display: block;
}
.feature-image,
.card-thumb-placeholder { aspect-ratio: 16 / 9; }
.feature-card .feature-media {
  flex: 1 1 auto;
  min-height: 340px;
}
.feature-card .feature-image {
  height: 100%;
  aspect-ratio: auto;
}
.card-thumb-placeholder {
  background: linear-gradient(135deg, rgba(223,124,48,0.18), rgba(0,0,0,0) 60%), linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0));
}
.feature-content {
  padding: 28px;
}
.feature-content > .kicker {
  margin-bottom: 8px;
}
.feature-content h1 {
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 14px;
}
.feature-content p { margin: 0 0 16px; color: var(--muted); }
.read-link,
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  color: var(--ochre-dark);
}
.home-rail { display: grid; gap: 18px; }
.panel {
  border-radius: var(--radius);
  padding: 24px;
}
.home-rail .panel > .kicker {
  margin-bottom: 14px;
}
.panel h2,
.panel h3 { margin: 10px 0 10px; font-size: clamp(1.35rem, 2vw, 1.9rem); }
.panel p { margin: 0; color: var(--muted); }
.about-portrait-wrap {
  margin-bottom: 18px;
}
.about-portrait {
  width: 111px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}
.playlist-panel iframe {
  width: 100%;
  min-height: 352px;
  border: 0;
  border-radius: 18px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.6rem, 2.1vw, 2.6rem);
}
.section-head p { margin: 0; color: var(--muted); max-width: 58ch; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.chip.active,
.chip:hover {
  background: var(--ochre);
  border-color: var(--ochre);
  color: white;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.story-card {
  border-radius: var(--radius);
  overflow: hidden;
}
.story-thumb { aspect-ratio: 4 / 3; }
.story-body { padding: 18px 20px 22px; }
.story-body h2,
.story-body h3 { margin: 8px 0 10px; font-size: 1.35rem; line-height: 1.15; }
.story-body p { margin: 0 0 12px; color: var(--muted); }
.story-thumb-link { display: block; }
.lanes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lane-card { border-radius: var(--radius); padding: 22px; }
.lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.lane-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lane-list a { display: grid; gap: 4px; }
.lane-list strong { font-size: 1rem; }
.lane-list span { color: var(--muted); font-size: 0.94rem; }
.single-shell { padding: 34px 0 46px; }
.article-shell {
  border-radius: 32px;
  padding: 28px clamp(22px, 4vw, 56px);
  max-width: 960px;
}
.article-header { margin-bottom: 22px; }
.article-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.article-meta-top .language-badges {
  margin-bottom: 0;
  gap: 10px;
}
.article-title {
  margin: 12px 0 10px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.02;
}
.article-cover-wrap { margin-top: 22px; }
.article-cover { border-radius: 26px; max-height: 520px; }
.article-content {
  font-size: clamp(1.08rem, 1.2vw, 1.22rem);
  line-height: 1.82;
}
.article-content > * { max-width: 72ch; }
.article-content > figure,
.article-content > .wp-block-image,
.article-content > .wp-block-embed,
.article-content > .wp-block-gallery { max-width: 100%; }
.article-content a { color: var(--ochre-dark); text-decoration: underline; text-underline-offset: 2px; }
.article-content blockquote {
  margin: 32px 0;
  padding: 16px 0 16px 20px;
  border-left: 3px solid var(--ochre);
  color: var(--muted);
}
.article-content figcaption,
.article-content .wp-element-caption,
.article-content .blocks-gallery-caption {
  margin-top: 8px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--muted);
}
.about-photo-credit {
  margin: 8px 0 22px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
}
.related-block { padding-top: 8px; }
.archive-header {
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
}
.archive-header h1 { margin: 10px 0 0; font-size: clamp(2rem, 3vw, 3rem); }
.site-footer {
  margin-top: 56px;
  padding: 14px 0 10px;
  border-top: 2px solid var(--line);
  background: color-mix(in srgb, var(--paper-2) 94%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 4px 0 8px;
  align-items: start;
}
.footer-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
  padding: 6px 16px;
}
.footer-panel > .kicker {
  margin-bottom: 10px;
}
.footer-panel:first-child {
  padding-left: 0;
}
.footer-panel:last-child {
  padding-right: 0;
}
.footer-panel + .footer-panel {
  border-left: 1px solid var(--line-soft);
}
.footer-nav .menu,
.footer-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 6px;
  width: 100%;
}
.footer-socials {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
}
.footer-socials li {
  min-width: 0;
  flex: 0 0 auto;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}
.footer-socials svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}
.footer-search,
.footer-nav,
.footer-socials {
  width: 100%;
}
.footer-socials a,
.footer-menu a { color: var(--muted); font-weight: 700; }
.footer-bottom {
  padding-top: 8px;
  padding-bottom: 2px;
  margin-top: 8px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}
.footer-bottom p {
  margin: 0;
  line-height: 1.35;
  font-size: 0.92rem;
}
.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.search-field {
  min-width: 0;
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0.72rem 0.9rem;
}
.search-submit {
  border: 0;
  border-radius: 999px;
  background: var(--ochre);
  color: #fff;
  font-weight: 800;
  padding: 0.72rem 0.95rem;
  cursor: pointer;
}
.pagination-wrap { margin-top: 24px; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1100px) {
  .hero-grid,
  .footer-grid,
  .story-grid,
  .lanes-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .header-inner { align-items: flex-start; padding: 14px 0; flex-wrap: wrap; }
  .mobile-nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    color: var(--ink);
    cursor: pointer;
  }
  .header-actions {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 6px;
  }
  .header-actions.is-open { display: flex; }
  .primary-menu { display: grid; gap: 6px; }
  .primary-menu a { width: 100%; border: 1px solid var(--line); }
  .story-grid,
  .lanes-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .footer-panel + .footer-panel {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding-left: 0;
    padding-top: 14px;
  }
  .footer-menu {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 8px;
  }
  .footer-socials {
    flex-wrap: wrap;
    gap: 12px;
  }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .hero-section,
  .section-block,
  .single-shell { padding: 22px 0 28px; }
  .feature-content,
  .panel,
  .lane-card,
  .footer-panel { padding: 18px; }
  .feature-content h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .article-shell { padding: 18px 16px 20px; border-radius: 22px; }
  .article-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .article-content { font-size: 1.06rem; }
  .search-form { grid-template-columns: 1fr; }
  .search-field, .search-submit { width: 100%; }
}
