/*
Theme Name: Back Road Modern
Theme URI: https://backroadjournal.com
Author: Migration
Description: Editorial magazine theme for Back Road Journal. Fraunces display serif + Inter humanist sans, warm neutral palette with terracotta accent, asymmetric grid, full-bleed post heroes, dark mode toggle, no-sidebar reading view.
Version: 1.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: backroad-modern
*/

/* ========== Design tokens ========== */
:root {
  /* Colors — light mode */
  --bg:          #f7f4ee;
  --bg-alt:      #efeae0;
  --bg-elev:    #ffffff;
  --ink:         #1a1a1a;
  --ink-2:       #3a3a3a;
  --muted:       #7a7368;
  --line:        #e1dbcf;
  --accent:      #c05621;  /* terracotta */
  --accent-2:    #87956d;  /* sage */
  --highlight:   #f9e9d7;

  /* Type */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Consolas, monospace;

  /* Rhythm */
  --gutter: clamp(16px, 3vw, 32px);
  --wrap:   1440px;
  --wrap-narrow: 720px;
  --radius: 4px;

  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg:          #131313;
  --bg-alt:      #1e1c19;
  --bg-elev:    #1e1c19;
  --ink:         #f0ebe0;
  --ink-2:       #cfc9bd;
  --muted:       #8a8272;
  --line:        #2a2724;
  --accent:      #e0a54c;   /* warm ochre */
  --accent-2:    #a0b085;   /* muted sage */
  --highlight:   #2b241a;

  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #131313;
    --bg-alt:      #1e1c19;
    --bg-elev:    #1e1c19;
    --ink:         #f0ebe0;
    --ink-2:       #cfc9bd;
    --muted:       #8a8272;
    --line:        #2a2724;
    --accent:      #e0a54c;
    --accent-2:    #a0b085;
    --highlight:   #2b241a;
    color-scheme: dark;
  }
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--muted) var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
  font-variation-settings: 'SOFT' 30, 'WONK' 0;
}
p { margin: 0 0 1.25em; }
::selection { background: var(--accent); color: var(--bg); }

/* ========== Utility ========== */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: all .2s ease;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill--accent { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.divider { height: 1px; background: var(--line); margin: 60px 0; border: 0; }

.skip-link {
  position: absolute; top: -100px; left: 20px;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { top: 20px; }

/* ========== Sticky header ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(247, 244, 238, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
:root[data-theme="dark"] .site-header.is-scrolled { background: rgba(19,19,19,0.85); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header.is-scrolled { background: rgba(19,19,19,0.85); }
}

.site-header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gutter);
}
.site-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.site-brand:hover { color: var(--ink); }
.header-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 24px;
  justify-content: center;
}
.header-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.header-nav a:hover { color: var(--accent); }
.header-nav .current-menu-item > a,
.header-nav .current_page_item > a { color: var(--accent); }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.icon-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .only-dark, .icon-btn .only-light { display: inline-flex; }
:root[data-theme="dark"] .icon-btn .only-light { display: none; }
:root[data-theme="dark"] .icon-btn .only-dark { display: inline-flex; }
:root:not([data-theme]) .icon-btn .only-dark[hidden] { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .only-light { display: none; }
  :root:not([data-theme="light"]) .icon-btn .only-dark { display: inline-flex; }
}

@media (max-width: 800px) {
  .site-header-inner { grid-template-columns: 1fr auto; }
  .header-nav { display: none; }
}

/* ========== Homepage hero ========== */
.editorial-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.editorial-hero .eyebrow { margin-bottom: 20px; }
.editorial-hero h1 {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  margin: 0 0 20px;
}
.editorial-hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  font-variation-settings: 'SOFT' 100;
  max-width: 620px;
  margin: 0 auto;
}

/* ========== Feature strip (first three posts) ========== */
.feature-strip {
  padding: 60px 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gutter);
}
@media (max-width: 900px) { .feature-strip { grid-template-columns: 1fr; } }

.feature-primary {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: var(--bg-alt);
}
.feature-primary img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.feature-primary:hover img { transform: scale(1.03); }
.feature-primary .card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.15) 60%, transparent);
  color: #fff;
}
.feature-primary .card-body .pill { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(0,0,0,.2); }
.feature-primary .card-body h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  margin: 12px 0 8px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.feature-primary .card-body h2 a { color: #fff; }
.feature-primary .card-body .meta {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.85; color: #fff;
}

.feature-secondary {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--gutter);
}
.feature-secondary .mini-card {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  overflow: hidden;
}
.feature-secondary .mini-card .thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-alt);
}
.feature-secondary .mini-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.feature-secondary .mini-card:hover .thumb img { transform: scale(1.03); }
.feature-secondary .mini-card h3 {
  font-size: 22px; margin: 8px 0;
  font-weight: 500;
}
.feature-secondary .mini-card .meta {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

/* ========== Newsletter signup CTA ========== */
.newsletter-cta {
  margin: 40px auto 0;
  padding: 60px var(--gutter);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.newsletter-cta .inner {
  max-width: 640px;
  margin: 0 auto;
}
.newsletter-cta .eyebrow { margin-bottom: 14px; }
.newsletter-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.015em;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  margin: 0 0 12px;
}
.newsletter-cta p {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 24px;
}
.newsletter-cta .newsletter-widget,
.newsletter-cta form {
  max-width: 480px; margin: 0 auto;
}
.newsletter-cta input[type="email"],
.newsletter-cta input[type="text"] {
  width: 100%; padding: 12px 18px; margin-bottom: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  font-family: var(--font-body); font-size: 16px;
  border-radius: 999px;
}
.newsletter-cta input[type="email"]:focus,
.newsletter-cta input[type="text"]:focus { outline: none; border-color: var(--accent); }
.newsletter-cta input[type="submit"],
.newsletter-cta button[type="submit"] {
  padding: 12px 28px;
  background: var(--accent); color: #fff; border: none;
  font-family: var(--font-body); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  border-radius: 999px; cursor: pointer;
  transition: transform .15s ease;
}
.newsletter-cta input[type="submit"]:hover,
.newsletter-cta button[type="submit"]:hover { transform: translateY(-1px); }
.newsletter-cta label { display: block; text-align: left; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.newsletter-cta .tnp-field { margin-bottom: 10px; }

/* ========== Card grid (remaining posts) ========== */
.section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 40px 0 30px;
  border-top: 1px solid var(--line);
}
.section-title h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  margin: 0;
}
.section-title .all-link {
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.section-title .all-link:hover { color: var(--accent); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px var(--gutter);
  padding: 0 0 60px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.post-card { display: grid; grid-template-rows: auto auto auto auto; gap: 12px; }
.post-card .thumb {
  aspect-ratio: 5/4;
  overflow: hidden;
  background: var(--bg-alt);
}
.post-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .thumb img.fallback-thumb {
  filter: saturate(0.85) brightness(0.9);
  opacity: 0.85;
}
.post-card .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.post-card h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 4px 0 6px;
  letter-spacing: -0.01em;
}
.post-card .excerpt {
  font-size: 15px; color: var(--ink-2); line-height: 1.55;
  margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card .meta {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

/* ========== Pagination ========== */
.pagination {
  padding: 40px 0 80px;
  display: flex; justify-content: center; align-items: center; gap: 6px;
  font-family: var(--font-body);
  font-size: 13px; letter-spacing: 0.06em;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 999px;
  color: var(--ink-2);
}
.pagination .page-numbers:hover { border-color: var(--line); color: var(--accent); }
.pagination .page-numbers.current { border-color: var(--accent); color: var(--accent); }

/* ========== Single post (full-bleed hero + narrow reading column) ========== */
.single-hero {
  position: relative;
  min-height: 60vh;
  display: flex; align-items: flex-end;
  background: var(--bg-alt);
  overflow: hidden;
}
.single-hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.single-hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 50%, transparent);
}
.single-hero .content {
  position: relative;
  color: #fff;
  padding: 80px var(--gutter) 60px;
  max-width: var(--wrap);
  margin: 0 auto;
  width: 100%;
}
.single-hero .content .eyebrow { color: rgba(255,255,255,.9); margin-bottom: 16px; }
.single-hero .content h1 {
  color: #fff;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 900px;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
  margin: 0 0 20px;
}
.single-hero .content .meta {
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.9);
}
.single-hero .content .meta > * + *::before {
  content: "·";
  margin: 0 10px;
  opacity: 0.5;
}
.single-hero.no-image {
  min-height: auto;
  background: var(--bg-alt);
}
.single-hero.no-image .overlay { display: none; }
.single-hero.no-image .content { color: var(--ink); padding: 100px var(--gutter) 60px; }
.single-hero.no-image .content h1 { color: var(--ink); }
.single-hero.no-image .content .eyebrow,
.single-hero.no-image .content .meta { color: var(--muted); }

.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--accent);
  z-index: 60;
  width: 0;
  transition: width 0.1s linear;
}

.single-body {
  max-width: var(--wrap-narrow);
  margin: 60px auto 40px;
  padding: 0 var(--gutter);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}
.single-body p { margin: 0 0 1.5em; }
.single-body h2, .single-body h3, .single-body h4 {
  margin-top: 2em;
  font-weight: 500;
}
.single-body h2 { font-size: 32px; }
.single-body h3 { font-size: 24px; }
.single-body a {
  color: var(--accent);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 3px;
}
.single-body a:hover { text-decoration-color: var(--accent); }
.single-body img, .single-body figure {
  margin: 2em auto;
}
.single-body figure figcaption {
  text-align: center; font-size: 14px; color: var(--muted); margin-top: 10px; font-style: italic;
}
.single-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 2em 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--ink-2);
  font-variation-settings: 'SOFT' 100;
}
.single-body ul, .single-body ol { padding-left: 1.5em; }
.single-body li { margin-bottom: 0.5em; }
.single-body pre {
  background: var(--bg-alt);
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
}
.single-body code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Full-bleed images inside content */
.single-body .alignwide,
.single-body .wp-block-image.alignwide {
  max-width: 1000px;
  margin-left: calc(50% - 500px);
  margin-right: 0;
}
.single-body .alignfull,
.single-body .wp-block-image.alignfull {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
@media (max-width: 1080px) {
  .single-body .alignwide, .single-body .wp-block-image.alignwide {
    max-width: 100%; margin-left: 0; margin-right: 0;
  }
}

.single-footer {
  max-width: var(--wrap-narrow);
  margin: 40px auto;
  padding: 30px var(--gutter);
  border-top: 1px solid var(--line);
}
.single-footer .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.single-footer .label {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Related posts */
.related-posts {
  background: var(--bg-alt);
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.related-posts h2 {
  font-size: 28px;
  margin: 0 0 30px;
  text-align: center;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr; } }

/* ========== Archive / category ========== */
.archive-hero {
  padding: 80px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.archive-hero .eyebrow { margin-bottom: 16px; }
.archive-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  margin: 0 0 12px;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.archive-hero .description {
  max-width: 620px; margin: 12px auto 0;
  color: var(--muted); font-size: 16px;
}
.archive-body { padding: 60px 0; }
.archive-body .card-grid { padding-top: 0; }

/* Category tag cloud on archive */
.tax-cloud {
  padding: 30px 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  border-bottom: 1px solid var(--line);
}
.tax-cloud a { text-transform: lowercase; }

/* ========== Search / 404 ========== */
.plain-page {
  max-width: var(--wrap-narrow);
  margin: 80px auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.plain-page h1 { font-size: clamp(36px, 5vw, 56px); }
.plain-page .search-form { max-width: 440px; margin: 30px auto; }
.plain-page .search-form input[type="search"] {
  width: 100%; padding: 12px 18px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  font-family: var(--font-body); font-size: 16px;
  border-radius: 999px;
}
.plain-page .search-form input[type="search"]:focus {
  outline: none; border-color: var(--accent);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--bg) 80%, transparent);
  padding: 70px 0 30px;
  margin-top: 80px;
}
:root[data-theme="dark"] .site-footer { background: #0a0a0a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-footer { background: #0a0a0a; }
}
.site-footer .wrap { padding: 0 var(--gutter); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand h3 {
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 12px;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.footer-brand p { color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.6; }

.site-footer .widget-title {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bg);
  margin: 0 0 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: rgba(255,255,255,.75); font-size: 14px; }
.site-footer a:hover { color: var(--accent); }

.footer-bottom {
  padding: 25px 0 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom .links a + a { margin-left: 16px; }

/* ========== Comments ========== */
.comments-area {
  max-width: var(--wrap-narrow);
  margin: 40px auto;
  padding: 30px var(--gutter);
  border-top: 1px solid var(--line);
}
.comments-area .comments-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 24px;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list > li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-author { font-weight: 600; font-size: 14px; }
.comment-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.comment-body p { font-size: 15px; }
.comment-form label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--ink);
  font-family: var(--font-body); font-size: 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.comment-form .submit {
  background: var(--accent); color: #fff; border: none;
  padding: 12px 28px;
  font-family: var(--font-body); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease;
  width: auto;
}
.comment-form .submit:hover { transform: translateY(-1px); }

/* ========== Motion preference ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
