
:root {
  --brand: #BB101C;
  --brand-hover: #9C0D17;
  --bg: #FAFAFA;
  --bg-elev: #FFFFFF;
  --bg-alt: #F4F4F5;
  --border: #E4E4E7;
  --border-strong: #D4D4D8;
  --text: #09090B;
  --text-muted: #52525B;
  --text-subtle: #71717A;
  --serif: 'Libre Bodoni', Georgia, serif;
  --sans: 'Public Sans', -apple-system, system-ui, sans-serif;
  --max: 1280px;
  --max-article: 720px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color 200ms ease; }
a:hover { color: var(--brand); }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img, svg { display: block; max-width: 100%; }
.screen-reader-text { position: absolute; left: -9999px; }
.screen-reader-text:focus { background: var(--text); color: #fff; left: 1rem; top: 1rem; width: auto; height: auto; padding: 0.75rem 1rem; z-index: 999; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ========= TOP BAR ========= */
.topbar { border-bottom: 1px solid var(--border); background: var(--bg-elev); font-size: 0.75rem; color: var(--text-muted); }
.topbar-inner { max-width: var(--max); margin: 0 auto; padding: 0.5rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar .date { font-variant: small-caps; letter-spacing: 0.05em; }
.tagline-top { text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; color: var(--brand); font-size: 0.6875rem; }
@media (max-width: 600px) { .tagline-top { display: none; } }

/* ========================================================== */
/* MOBILE HEADER & DRAWER                                       */
/* ========================================================== */
.mobile-header, .mobile-menu { display: none; }
@media (max-width: 768px) {
  .topbar, .site-header, .main-nav { display: none; }

  .mobile-header {
    display: flex; align-items: center; justify-content: space-between;
    height: 56px; padding: 0 1rem;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 60;
  }
  .mobile-header-logo { display: flex; align-items: center; gap: 0.5rem; flex: 1; justify-content: center; }
  .mobile-header-logo .logo-text { font-family: var(--serif); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1; }
  .mobile-header-logo .logo-text span { color: var(--brand); }
  .mobile-icon-btn { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); background: transparent; border: none; flex-shrink: 0; cursor: pointer; }
  .mobile-icon-btn svg { width: 24px; height: 24px; }

  .mobile-menu { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; }
  .mobile-menu[aria-hidden="false"] { pointer-events: auto; }
  .mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(9, 9, 11, 0.55); opacity: 0; transition: opacity 250ms ease; }
  .mobile-menu[aria-hidden="false"] .mobile-menu-backdrop { opacity: 1; }
  .mobile-menu-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86%, 340px); background: var(--bg-elev); transform: translateX(100%); transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1); display: flex; flex-direction: column; overflow-y: auto; box-shadow: -8px 0 24px rgba(0,0,0,0.08); }
  .mobile-menu[aria-hidden="false"] .mobile-menu-panel { transform: translateX(0); }
  .mobile-menu-close { position: absolute; top: 0.5rem; right: 0.5rem; width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); background: transparent; border: none; cursor: pointer; }
  .mobile-menu-close svg { width: 22px; height: 22px; }
  .mobile-menu-brand { padding: 1.5rem 1.5rem 1.25rem; border-bottom: 1px solid var(--border); }
  .mobile-menu-tagline { display: block; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand); font-weight: 700; margin-bottom: 0.5rem; }
  .mobile-menu-brand .logo-text { font-family: var(--serif); font-size: 1.625rem; font-weight: 700; color: var(--text); line-height: 1; }
  .mobile-menu-brand .logo-text span { color: var(--brand); }
  .mobile-menu-list { list-style: none; padding: 0; flex: 1; }
  .mobile-menu-list a { display: flex; align-items: center; padding: 1rem 1.5rem; min-height: 56px; font-family: var(--serif); font-size: 1.1875rem; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); transition: background 150ms ease, color 150ms ease; }
  .mobile-menu-list a:active, .mobile-menu-list a:hover { background: var(--bg-alt); color: var(--brand); }
  .mobile-menu-list a.active { color: var(--brand); background: var(--bg-alt); border-left: 3px solid var(--brand); padding-left: calc(1.5rem - 3px); }
  .mobile-menu-footer { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }
  .mobile-menu-footer .social { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
  .mobile-menu-footer .social a { width: 36px; height: 36px; border: 1px solid var(--border-strong); border-radius: 2px; display: grid; place-items: center; color: var(--text); }
  .mobile-menu-footer .social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
  body.mobile-menu-open { overflow: hidden; }
}

/* ========================================================== */
/* SEARCH OVERLAY                                               */
/* ========================================================== */
.search-overlay { position: fixed; inset: 0; z-index: 250; pointer-events: none; }
.search-overlay[aria-hidden="false"] { pointer-events: auto; }
.search-overlay-backdrop { position: absolute; inset: 0; background: rgba(9, 9, 11, 0.6); opacity: 0; transition: opacity 200ms ease; }
.search-overlay[aria-hidden="false"] .search-overlay-backdrop { opacity: 1; }
.search-overlay-panel { position: absolute; top: 0; left: 0; right: 0; background: var(--bg-elev); border-bottom: 1px solid var(--border); padding: 2rem 1.25rem 1.5rem; transform: translateY(-100%); transition: transform 250ms cubic-bezier(0.32, 0.72, 0, 1); }
.search-overlay[aria-hidden="false"] .search-overlay-panel { transform: translateY(0); }
.search-overlay-form { max-width: var(--max); margin: 0 auto; }
.search-input-row { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--text); }
.search-input-icon { width: 22px; height: 22px; color: var(--text-muted); flex-shrink: 0; }
.search-input-row input[type="search"] { flex: 1; border: none; background: transparent; font-family: var(--serif); font-size: clamp(1.125rem, 3vw, 1.875rem); font-weight: 400; color: var(--text); padding: 0.5rem 0; outline: none; min-width: 0; }
.search-input-row input[type="search"]::placeholder { color: var(--text-subtle); font-style: italic; }
.search-input-row input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-overlay-close { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: none; cursor: pointer; color: var(--text); flex-shrink: 0; }
.search-overlay-close svg { width: 22px; height: 22px; }
.search-hint { margin-top: 0.75rem; font-size: 0.6875rem; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; }
.search-quick { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-quick-label { font-size: 0.6875rem; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; margin-right: 0.25rem; align-self: center; }
.search-quick a { font-size: 0.8125rem; color: var(--text-muted); background: var(--bg-alt); border: 1px solid var(--border); padding: 0.375rem 0.75rem; border-radius: 2px; transition: all 200ms ease; }
.search-quick a:hover { color: var(--text); background: var(--bg-elev); border-color: var(--text); }
body.search-open { overflow: hidden; }

/* ========= MASTHEAD ========= */
.site-header { background: var(--bg-elev); border-bottom: 1px solid var(--border); padding: 1.25rem 0 1rem; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.masthead-pre { font-size: 0.75rem; color: var(--text-subtle); letter-spacing: 0.05em; }
@media (max-width: 800px) { .masthead-pre { display: none; } }
.site-logo { display: flex; align-items: center; gap: 0.75rem; grid-column: 2; justify-self: center; }
.site-logo svg { width: 44px; height: 44px; }
.logo-text { font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--text); }
.logo-text span { color: var(--brand); }
.masthead-action { grid-column: 3; justify-self: end; display: flex; gap: 0.5rem; }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--border); background: var(--bg-elev); border-radius: 2px; display: grid; place-items: center; color: var(--text); transition: all 200ms ease; }
.icon-btn:hover { border-color: var(--text); background: var(--bg); }

/* ========= MAIN NAV ========= */
.main-nav { border-bottom: 1px solid var(--border); background: var(--bg-elev); position: sticky; top: 0; z-index: 50; }
.main-nav .menu { list-style: none; display: flex; align-items: center; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; overflow-x: auto; scrollbar-width: none; }
.main-nav .menu::-webkit-scrollbar { display: none; }
.main-nav .menu li { flex-shrink: 0; }
.main-nav .menu a { display: block; padding: 0.875rem 1rem; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; border-bottom: 2px solid transparent; color: var(--text-muted); }
.main-nav .menu a:hover { color: var(--text); border-bottom-color: var(--brand); }
.main-nav .menu .current-menu-item a { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }

/* ========= BREADCRUMBS ========= */
/* Breadcrumb as eyebrow strip inside hero (small, uppercase, no bar) */
.hero-breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 0; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-subtle); margin-bottom: 0.5rem; }
.hero-breadcrumb li { display: flex; align-items: center; }
.hero-breadcrumb li:not(:last-child)::after { content: "›"; margin: 0 0.5rem; color: var(--border-strong); font-weight: 400; }
.hero-breadcrumb a { color: var(--text-subtle); transition: color 200ms ease; }
.hero-breadcrumb a:hover { color: var(--brand); }
.hero-breadcrumb li:last-child { color: var(--brand); }

/* ========= HERO ========= */
.style-hero { padding: 2.5rem 1.25rem 0; }
.style-hero-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
@media (min-width: 900px) { .style-hero-inner { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.style-hero-content { display: flex; flex-direction: column; gap: 1rem; order: 2; }
@media (min-width: 900px) { .style-hero-content { order: 1; } }
.style-hero-image { aspect-ratio: 4/5; border-radius: 2px; position: relative; overflow: hidden; order: 1; }
@media (min-width: 900px) { .style-hero-image { order: 2; aspect-ratio: 4/5; max-height: 600px; } }
.style-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.style-badge { display: inline-block; background: var(--brand); color: #fff; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.15em; padding: 0.4rem 0.75rem; border-radius: 2px; text-transform: uppercase; align-self: flex-start; }
.style-kicker { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand); }
.style-title { font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; line-height: 1.0; letter-spacing: -0.02em; color: var(--text); }
.style-excerpt { font-size: 1.125rem; color: var(--text-muted); line-height: 1.55; max-width: 50ch; }
.style-meta-row { display: flex; gap: 1.25rem; flex-wrap: wrap; padding-top: 0.75rem; border-top: 1px solid var(--border); margin-top: 0.5rem; font-size: 0.8125rem; color: var(--text-subtle); }
.style-meta-row strong { display: block; color: var(--text); font-weight: 600; font-size: 0.875rem; margin-top: 0.125rem; }

/* ========= CONTENT TWO-COLUMN ========= */
.style-content { padding: 3rem 1.25rem; }
.style-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1000px) { .style-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; } }

/* ========= TOC ========= */
.toc { background: var(--bg-elev); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 2px; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.toc-title { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand); margin-bottom: 0.875rem; }
.toc-list { list-style: none; counter-reset: toc; }
.toc-list li { counter-increment: toc; padding: 0.375rem 0; font-size: 0.9375rem; }
.toc-list li::before { content: counter(toc, decimal-leading-zero); display: inline-block; width: 2rem; color: var(--text-subtle); font-variant-numeric: tabular-nums; font-weight: 600; }
.toc-list a { color: var(--text); }
.toc-list a:hover { color: var(--brand); }

/* ========= ARTICLE BODY ========= */
.article-body { font-size: 1.0625rem; line-height: 1.75; color: var(--text); }
.article-body > p:first-of-type::first-letter { font-family: var(--serif); font-size: 4.5rem; line-height: 0.85; font-weight: 700; float: left; padding: 0.25rem 0.75rem 0 0; color: var(--brand); }
.article-body p { margin-bottom: 1.25rem; }
.article-body p strong { color: var(--text); font-weight: 700; }
.article-body p a, .article-body li a { color: var(--brand); text-decoration: underline; text-decoration-color: rgba(187, 16, 28, 0.3); text-underline-offset: 3px; }
.article-body p a:hover, .article-body li a:hover { text-decoration-color: var(--brand); }
.article-body h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 2.5rem 0 1rem; padding-top: 1.5rem; border-top: 2px solid var(--text); scroll-margin-top: 80px; }
.article-body h3 { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; line-height: 1.2; margin: 1.75rem 0 0.75rem; scroll-margin-top: 80px; }
.article-body figure { margin: 2rem 0; }
.article-body figure img { width: 100%; height: auto; border-radius: 2px; }
.article-body figcaption { font-size: 0.8125rem; color: var(--text-subtle); margin-top: 0.5rem; text-align: center; font-style: italic; }
.article-body ul { margin: 1rem 0 1.5rem; padding-left: 0; list-style: none; }
.article-body ul li { padding: 0.5rem 0 0.5rem 1.75rem; position: relative; }
.article-body ul li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 8px; height: 1px; background: var(--brand); }
.article-body ol { margin: 1rem 0 1.5rem; padding-left: 1.5rem; }
.article-body ol li { padding: 0.25rem 0; }
.article-body blockquote { border-left: 3px solid var(--brand); padding: 0.5rem 0 0.5rem 1.5rem; margin: 2rem 0; font-family: var(--serif); font-size: 1.5rem; font-style: italic; line-height: 1.3; color: var(--text); }
.article-body blockquote cite { display: block; font-size: 0.875rem; font-style: normal; font-family: var(--sans); color: var(--text-subtle); margin-top: 0.75rem; font-weight: 600; }

/* Pull quote / callout box */
.callout { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 2px; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.callout-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand); margin-bottom: 0.5rem; }
.callout p { margin: 0; font-size: 1rem; }

/* FAQ */
.faq-list { margin-top: 1rem; }
.faq-list details { border-top: 1px solid var(--border); padding: 1rem 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary { font-family: var(--serif); font-size: 1.125rem; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: -0.125rem; font-size: 1.5rem; color: var(--brand); font-weight: 300; transition: transform 200ms ease; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] summary { margin-bottom: 0.75rem; }
.faq-list .faq-answer { font-size: 1rem; color: var(--text-muted); line-height: 1.65; }

/* ========= SIDEBAR ========= */
.style-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1000px) { .style-sidebar { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; } }
.sidebar-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 2px; padding: 1.5rem; }
.sidebar-card-title { font-family: var(--serif); font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; padding-bottom: 0.625rem; border-bottom: 2px solid var(--text); margin-bottom: 1.25rem; }
.sidebar-meta-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0.9rem; border: 1px solid var(--border-strong); background: var(--bg-elev); border-radius: 2px; font-size: 0.875rem; margin-bottom: 0.5rem; }
.sidebar-meta-row:last-of-type { margin-bottom: 0; }
.sidebar-meta-row-block { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0.85rem 0.9rem; }
.sidebar-meta-label { color: var(--text-subtle); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.sidebar-meta-value { color: var(--text); font-weight: 600; }
.sidebar-stars { letter-spacing: 0.1em; color: var(--brand); }
.sidebar-meta-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.sidebar-meta-tag { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); background: var(--bg-alt); border: 1px solid var(--border); padding: 0.25rem 0.5rem; border-radius: 2px; }
.sidebar-meta-tag-link:hover { background: var(--text); color: #fff; border-color: var(--text); }
.sidebar-cta { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.25rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 2px; transition: all 200ms ease; cursor: pointer; border: 1px solid transparent; width: 100%; }
.btn-primary { background: var(--text); color: #fff; border-color: var(--text); }
.btn-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--text); color: #fff; border-color: var(--text); }

/* Newsletter sidebar variant */
.sidebar-newsletter { background: var(--text); color: #fff; padding: 1.5rem; border-radius: 2px; }
.sidebar-newsletter .sidebar-card-title { color: #fff; border-bottom-color: var(--brand); }
.sidebar-newsletter p { font-size: 0.875rem; color: #D4D4D8; line-height: 1.5; margin-bottom: 1rem; }
.sidebar-newsletter input { width: 100%; padding: 0.625rem 0.875rem; background: #27272A; border: 1px solid #3F3F46; color: #fff; border-radius: 2px; font: inherit; font-size: 0.875rem; margin-bottom: 0.625rem; }
.sidebar-newsletter input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.sidebar-newsletter button { background: var(--brand); color: #fff; border: none; padding: 0.625rem 1rem; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.05em; text-transform: uppercase; width: 100%; border-radius: 2px; cursor: pointer; transition: background 200ms ease; }
.sidebar-newsletter button:hover { background: #fff; color: var(--text); }

/* ========= RELATED ========= */
.related-section { padding: 3rem 1.25rem; background: var(--bg-elev); border-top: 1px solid var(--border); }
.related-inner { max-width: var(--max); margin: 0 auto; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--text); flex-wrap: wrap; gap: 0.5rem; }
.section-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand); margin-bottom: 0.375rem; }
.section-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.75vw, 2rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.section-title .accent { color: var(--brand); font-style: italic; }
.styles-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px) { .styles-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .styles-grid { grid-template-columns: repeat(4, 1fr); } }
.style-card { background: var(--bg); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; transition: all 250ms ease; display: flex; flex-direction: column; }
.style-card:hover { border-color: var(--text); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.style-card-link { display: flex; flex-direction: column; height: 100%; }
.style-card-image { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-alt); }
.style-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.style-card:hover .style-card-image img { transform: scale(1.04); }
.style-card-badge { position: absolute; top: 0.75rem; left: 0.75rem; background: rgba(255,255,255,0.95); color: var(--text); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; padding: 0.3rem 0.5rem; border-radius: 2px; text-transform: uppercase; }
.style-card-info { padding: 1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.style-card-title { font-family: var(--serif); font-size: 1.0625rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; margin-bottom: 0.5rem; color: var(--text); }
.style-card-desc { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.75rem; flex: 1; }
.style-card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: auto; }
.style-tag { font-size: 0.6875rem; font-weight: 500; color: var(--text-muted); background: var(--bg-alt); border: 1px solid var(--border); padding: 0.2rem 0.4rem; border-radius: 2px; }

/* ========= FOOTER ========= */
.site-footer { background: var(--text); color: #A1A1AA; padding: 3.5rem 1.25rem 1.5rem; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; } }
.footer-brand .logo-text { color: #fff; font-size: 1.75rem; margin-bottom: 0.75rem; }
.footer-brand .logo-text span { color: var(--brand); }
.footer-brand p { font-size: 0.9375rem; line-height: 1.6; max-width: 320px; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 36px; height: 36px; border: 1px solid #3F3F46; border-radius: 2px; display: grid; place-items: center; color: #A1A1AA; transition: all 200ms ease; }
.footer-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-col-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: #fff; margin-bottom: 1rem; padding-bottom: 0.625rem; border-bottom: 1px solid #3F3F46; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.625rem; font-size: 0.875rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--max); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid #3F3F46; font-size: 0.75rem; text-align: center; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p:last-child { font-style: italic; color: #71717A; }

/* Reading progress bar */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--brand); width: 0; z-index: 100; transition: width 50ms linear; }

/* ========================================================== */
/* MOBILE OPTIMIZATIONS                                         */
/* ========================================================== */

/* Phone portrait (≤600px) */
@media (max-width: 600px) {
  body { font-size: 15px; }

  /* Topbar + masthead: tighter */
  .topbar-inner { padding: 0.4rem 1rem; }
  .topbar .date { font-size: 0.7rem; }
  .site-header { padding: 0.875rem 0 0.75rem; }
  .site-logo svg { width: 36px; height: 36px; }
  .logo-text { font-size: 1.625rem; }
  .icon-btn { width: 36px; height: 36px; }

  /* Nav */
  .main-nav .menu { padding: 0 1rem; }
  .main-nav .menu a { padding: 0.75rem 0.6rem; font-size: 0.8125rem; }

  /* Hero: image first, tighter spacing */
  .style-hero { padding: 1.25rem 1rem 0; }
  .style-hero-inner { gap: 1.25rem; }
  .style-hero-image { aspect-ratio: 5/6; }
  .style-hero-content { gap: 0.75rem; }
  .hero-breadcrumb { font-size: 0.625rem; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
  .hero-breadcrumb li:not(:last-child)::after { margin: 0 0.35rem; }
  .style-badge { font-size: 0.625rem; padding: 0.3rem 0.6rem; }
  .style-title { font-size: 2.125rem; line-height: 1.05; }
  .style-excerpt { font-size: 1rem; }
  .style-meta-row { font-size: 0.75rem; gap: 0.5rem 0.875rem; padding-top: 0.875rem; }

  /* Article body */
  .style-content { padding: 2rem 1rem 3rem; }
  .style-grid { gap: 2rem; }
  .article-body p { font-size: 1rem; line-height: 1.7; margin-bottom: 1rem; }
  .article-body > p:first-of-type::first-letter { font-size: 3.25em; margin: 0.2rem 0.4rem 0 0; }
  .article-body h2 { font-size: 1.375rem; margin: 2rem 0 0.75rem; padding-bottom: 0.375rem; }
  .article-body h3 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }
  .article-body ul li { font-size: 1rem; padding: 0.4rem 0 0.4rem 1.25rem; }
  .article-body ul li::before { top: 0.95rem; }

  /* TOC: tighter */
  .toc { padding: 1rem 1rem 0.75rem; margin-bottom: 1.5rem; }
  .toc-title { font-size: 0.625rem; margin-bottom: 0.5rem; }
  .toc li { font-size: 0.875rem; padding: 0.3rem 0; }

  /* Figure / callout / pullquote: tighter */
  .article-body figure { margin: 1.5rem 0; }
  .article-body figure figcaption { font-size: 0.75rem; padding: 0.5rem 0.75rem; }
  .article-body blockquote, .pullquote { padding: 1rem 0 1rem 1rem; margin: 1.5rem 0; font-size: 1.0625rem; }
  .callout { padding: 1rem 1.125rem; margin: 1.5rem 0; }
  .callout-label { font-size: 0.625rem; }
  .callout p { font-size: 0.9375rem; }

  /* FAQ */
  .faq-list summary, details summary { font-size: 1rem; padding: 0.875rem 0; }
  .faq-answer { font-size: 0.9375rem; padding: 0 0 1rem; }

  /* Sidebar: stacks below content already; tighten newsletter form */
  .style-sidebar, .article-sidebar { gap: 1rem; position: static !important; max-height: none; }
  .sidebar-card { padding: 1.25rem; }
  .sidebar-card-title { font-size: 1rem; margin-bottom: 1rem; padding-bottom: 0.5rem; }
  .sidebar-meta-row { padding: 0.65rem 0.75rem; font-size: 0.8125rem; }
  .sidebar-meta-label { font-size: 0.625rem; }
  .sidebar-newsletter input { font-size: 0.9375rem; padding: 0.625rem 0.875rem; min-height: 44px; }
  .sidebar-newsletter button { font-size: 0.8125rem; padding: 0.625rem 1rem; min-height: 44px; }
  .btn { padding: 0.75rem 1.125rem; font-size: 0.75rem; min-height: 44px; }

  /* Related styles: 2 columns on phone portrait (was 1) */
  .related-section { padding: 2rem 1rem; }
  .styles-grid { grid-template-columns: 1fr 1fr !important; gap: 0.875rem; }
  .section-header { margin-bottom: 1.25rem; padding-bottom: 0.625rem; flex-wrap: wrap; gap: 0.5rem; }
  .section-title { font-size: 1.375rem; }
  .section-label { font-size: 0.625rem; letter-spacing: 0.15em; }
  .style-card-info { padding: 0.75rem 0.875rem 1rem; }
  .style-card-title { font-size: 0.9375rem; line-height: 1.25; margin-bottom: 0.375rem; }
  .style-card-desc { font-size: 0.75rem; line-height: 1.45; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .style-card-tags { gap: 0.25rem; }
  .style-tag { font-size: 0.625rem; padding: 0.15rem 0.4rem; }
  .style-card-badge { font-size: 0.625rem; padding: 0.2rem 0.4rem; top: 0.5rem; left: 0.5rem; }

  /* Footer */
  .site-footer { padding: 2.5rem 1rem 1.25rem; }
  .footer-grid { gap: 1.5rem; }
  .footer-brand .logo-text { font-size: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.25rem; text-align: left; }

  /* Reading progress: still visible but thinner */
  .reading-progress { height: 2px; }
}

/* Very small phones (≤380px) */
@media (max-width: 380px) {
  .style-title { font-size: 1.75rem; }
  .article-body > p:first-of-type::first-letter { font-size: 2.75em; }
  .article-body h2 { font-size: 1.25rem; }
  .style-meta-row { gap: 0.375rem 0.75rem; }
  .style-card-info { padding: 0.625rem 0.75rem 0.875rem; }
  .style-card-title { font-size: 0.875rem; }
  .topbar .tagline-top { display: none; }
}

/* Touch device — disable hover transforms */
@media (hover: none) {
  .style-card:hover { transform: none; }
  .style-card:hover .style-card-image img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
