/* =========================================================================
   Strong & Fit with Jerin — stylesheet
   Design tokens:
     Ink   #121210  (near-black, primary surface)
     Bone  #EDEAE1  (paper surface, cool-stone not warm-cream)
     Brass #C9A227  (primary accent, from the JF shield)
     Ember #8B2E2E  (secondary accent, from the shield trim)
     Steel #6B7280  (muted neutral)
   Type:
     Display — 'Anton' (condensed poster weight, echoes the brand poster)
     Body    — 'Inter'
     Utility — 'JetBrains Mono' (meta labels: dates, categories, stats)
   Signature: a hand-torn "chalk" underline accent + shield-notch corners
   on featured cards — a nod to gym chalk and the JF shield motif.
   ========================================================================= */

/* ---------- Tokens -------------------------------------------------- */
:root {
  --ink: #121210;
  --ink-soft: #1c1c19;
  --ink-elevated: #232320;
  --bone: #EDEAE1;
  --bone-dim: #E2DFD5;
  --paper: #FAF9F6;
  --brass: #C9A227;
  --brass-bright: #E4BA3D;
  --ember: #8B2E2E;
  --ember-bright: #A83A3A;
  --steel: #6B7280;
  --steel-light: #9CA3AF;
  --line: rgba(18, 18, 16, 0.1);
  --line-dark: rgba(237, 234, 225, 0.12);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(18, 18, 16, 0.06);
  --shadow-md: 0 12px 32px rgba(18, 18, 16, 0.12);
  --shadow-lg: 0 24px 60px rgba(18, 18, 16, 0.22);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }

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

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 999;
  background: var(--brass); color: var(--ink); font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-block;
  margin-bottom: 10px;
}

/* Reading progress bar */
.site-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--ember), var(--brass));
  z-index: 1000; transition: width .1s linear;
}

/* ---------- Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn--gold { background: var(--brass); color: var(--ink); }
.btn--gold:hover { background: var(--brass-bright); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--bone); transform: translateY(-2px); }
.btn--ghost-light { border-color: rgba(237,234,225,.5); color: var(--bone); background: rgba(237,234,225,.06); }
.btn--ghost-light:hover { background: var(--bone); color: var(--ink); }
.btn--small { padding: 10px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18,18,16,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover;
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__title {
  font-family: var(--font-display); color: var(--bone);
  font-size: 1.15rem; letter-spacing: 0.02em; text-transform: uppercase;
}
.brand__sub {
  font-family: var(--font-mono); color: var(--brass);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
}

.main-nav__list { display: flex; align-items: center; gap: 4px; }
.main-nav__link {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  color: var(--bone-dim); font-weight: 600; font-size: 0.94rem;
  transition: background-color .2s var(--ease), color .2s var(--ease);
  position: relative;
}
.main-nav__link:hover { background: rgba(237,234,225,.08); color: var(--bone); }
.main-nav__link.is-active { color: var(--brass); }
.main-nav__link--cta {
  background: var(--brass); color: var(--ink) !important; margin-left: 6px;
}
.main-nav__link--cta:hover { background: var(--brass-bright); }

.site-header__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(237,234,225,.08); color: var(--bone);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { background: rgba(237,234,225,.18); transform: translateY(-1px); }
.icon-btn svg { fill: currentColor; }

.hamburger { display: none; flex-direction: column; gap: 5px; }
.hamburger span {
  width: 20px; height: 2px; background: var(--bone); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search panel */
.search-panel {
  border-top: 1px solid var(--line-dark);
  background: var(--ink-soft);
  padding: 18px 0;
  animation: slideDown .25s var(--ease);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px);} to {opacity:1; transform:translateY(0);} }
.search-panel__form {
  display: flex; align-items: center; gap: 10px;
  background: rgba(237,234,225,.07); border: 1px solid var(--line-dark);
  border-radius: 999px; padding: 12px 18px;
}
.search-panel__form svg { fill: var(--steel-light); flex-shrink: 0; }
.search-panel__form input {
  flex: 1; background: transparent; border: none; color: var(--bone);
  font-size: 1rem; outline: none;
}
.search-panel__form input::placeholder { color: var(--steel-light); }
.search-panel__results { margin-top: 10px; }
.search-panel__results:empty { margin-top: 0; }
.search-result-item {
  display: flex; gap: 12px; padding: 10px 8px; border-radius: var(--radius-sm);
  color: var(--bone-dim);
}
.search-result-item:hover { background: rgba(237,234,225,.06); }
.search-result-item img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.search-result-item .title { color: var(--bone); font-weight: 600; font-size: 0.92rem; }
.search-result-item .cat { font-family: var(--font-mono); font-size: 0.7rem; color: var(--brass); text-transform: uppercase; }
.search-empty { color: var(--steel-light); font-size: 0.9rem; padding: 8px; }

/* ---------- Hero ------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 15%;
  opacity: 0.55;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,18,16,.55) 0%, rgba(18,18,16,.35) 35%, rgba(18,18,16,.92) 100%),
    linear-gradient(90deg, rgba(18,18,16,.9) 0%, rgba(18,18,16,.25) 55%, rgba(18,18,16,.55) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  padding-block: 90px 70px;
  max-width: 680px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brass-bright);
  margin-bottom: 22px;
}
.hero__eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--brass-bright);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin-bottom: 26px;
}
.hero h1 .hl {
  color: var(--brass);
  position: relative;
  display: inline-block;
}
.hero__lede {
  font-size: 1.15rem; color: var(--bone-dim);
  max-width: 520px; margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero__stats {
  display: flex; gap: 34px; flex-wrap: wrap;
  border-top: 1px solid var(--line-dark); padding-top: 26px;
}
.hero__stat { font-family: var(--font-mono); }
.hero__stat strong {
  display: block; font-family: var(--font-display); font-size: 1.9rem;
  color: var(--bone); font-weight: 400;
}
.hero__stat span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-light); }

/* chalk underline signature accent */
.chalk-underline {
  position: relative;
  display: inline-block;
}
.chalk-underline svg {
  position: absolute; left: 0; bottom: -10px; width: 100%; height: 14px;
  overflow: visible;
}

/* ---------- Section shells --------------------------------------------- */
.section { padding-block: 74px; }
.section--tight { padding-block: 50px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  text-transform: uppercase; letter-spacing: 0.01em;
}
.section-head p { color: var(--steel); max-width: 480px; margin: 10px 0 0; }
.section-head__link {
  font-weight: 700; font-size: 0.92rem; white-space: nowrap;
  border-bottom: 2px solid var(--brass); padding-bottom: 3px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.section-head__link:hover { color: var(--ember); border-color: var(--ember); }

/* ---------- Category chips filter --------------------------------------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px;
}
.filter-chip {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 0.88rem; font-weight: 600; color: var(--steel);
  background: var(--paper); transition: all .2s var(--ease);
}
.filter-chip:hover { border-color: var(--brass); color: var(--ink); }
.filter-chip.is-active {
  background: var(--ink); border-color: var(--ink); color: var(--bone);
}

/* ---------- Layout: content + sidebar ------------------------------------ */
.layout {
  display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 56px;
  align-items: start;
}
.layout--single { grid-template-columns: minmax(0,1fr) 320px; }

/* ---------- Post grid & cards -------------------------------------------- */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.post-grid--2col { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* shield-notch corner cut, signature detail echoing the JF shield point */
.card__media {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.08); }
.card__category {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
  background: rgba(18,18,16,.75); color: var(--brass-bright);
  padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.card__body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; flex: 1;
}
.card__meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--steel-light); text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 12px;
}
.card__meta .dot { width: 3px; height: 3px; background: var(--steel-light); border-radius: 50%; }
.card__title {
  font-size: 1.18rem; font-weight: 800; color: var(--bone);
  line-height: 1.3; margin-bottom: 10px;
}
.card__title a { transition: color .2s var(--ease); }
.card:hover .card__title a { color: var(--brass-bright); }
.card__excerpt { color: var(--steel-light); font-size: 0.92rem; margin-bottom: 18px; flex: 1; }
.card__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.86rem; color: var(--brass);
}
.card__link svg { transition: transform .25s var(--ease); fill: currentColor; }
.card:hover .card__link svg { transform: translateX(5px); }

/* Featured/hero card (first post large) */
.featured-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0;
  background: var(--ink); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); margin-bottom: 44px;
}
.featured-card__media { position: relative; overflow: hidden; min-height: 340px; }
.featured-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.featured-card:hover .featured-card__media img { transform: scale(1.05); }
.featured-card__body { padding: 44px 42px; display: flex; flex-direction: column; justify-content: center; }
.featured-card__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--bone); line-height: 1.08; margin-bottom: 16px;
}
.featured-card__title a:hover { color: var(--brass-bright); }
.featured-card__excerpt { color: var(--steel-light); margin-bottom: 24px; }


/* ---------- Sidebar ------------------------------------------------------ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--bone); border-radius: var(--radius-md);
  padding: 26px; border: 1px solid var(--line);
}
.widget__title {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 2px solid var(--line);
}
.widget--author { text-align: center; }
.widget--author__photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; border: 3px solid var(--paper); box-shadow: 0 0 0 3px var(--brass);
}
.widget--author__name { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; text-transform: uppercase; }
.widget--author__role { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ember); letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 12px; }
.widget--author__bio { font-size: 0.9rem; color: var(--steel); margin-bottom: 18px; }

.widget__list--categories li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 4px; font-weight: 600; font-size: 0.92rem;
  border-bottom: 1px solid var(--line); transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.widget__list--categories li:last-child a { border-bottom: none; }
.widget__list--categories li a:hover { color: var(--ember); padding-left: 8px; }
.badge {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--steel);
  background: var(--paper); padding: 2px 8px; border-radius: 999px;
}

.recent-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.recent-item__thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; transition: transform .3s var(--ease); }
.recent-item:hover .recent-item__thumb { transform: scale(1.06); }
.recent-item__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.recent-item__title { font-size: 0.88rem; font-weight: 700; line-height: 1.3; transition: color .2s var(--ease); }
.recent-item:hover .recent-item__title { color: var(--ember); }
.recent-item__date { font-family: var(--font-mono); font-size: 0.7rem; color: var(--steel-light); text-transform: uppercase; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  font-family: var(--font-mono); font-size: 0.76rem; padding: 6px 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  transition: all .2s var(--ease);
}
.tag-chip:hover { background: var(--ink); color: var(--brass); border-color: var(--ink); }

.widget--cta {
  background: var(--ink); color: var(--bone);
  background-image: radial-gradient(circle at 100% 0%, rgba(201,162,39,0.18), transparent 60%);
}
.widget--cta h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.25rem; margin: 6px 0 10px; }
.widget--cta p { color: var(--steel-light); font-size: 0.9rem; margin-bottom: 18px; }

.sidebar__close { display: none; }
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(18,18,16,.5); z-index: 199;
  backdrop-filter: blur(2px);
}

/* ---------- About / author section on home -------------------------------- */
.about-section {
  background: var(--ink); color: var(--bone); border-radius: var(--radius-lg);
  overflow: hidden; display: grid; grid-template-columns: 0.85fr 1.15fr;
}
.about-section__media { position: relative; min-height: 420px; }
.about-section__media img { width: 100%; height: 100%; object-fit: cover; }
.about-section__body { padding: 56px 50px; }
.about-section__body h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 10px 0 20px;
}
.about-section__body p { color: var(--bone-dim); margin-bottom: 20px; }
.about-badges { display: flex; gap: 28px; margin: 28px 0 32px; flex-wrap: wrap; }
.about-badges div strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--brass); font-weight: 400; }
.about-badges div span { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--steel-light); }

/* ---------- Newsletter ----------------------------------------------------- */
.newsletter {
  background: linear-gradient(135deg, var(--ember) 0%, #5e2020 100%);
  color: var(--bone); padding-block: 64px;
}
.newsletter__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.newsletter__copy { max-width: 480px; }
.newsletter__copy .eyebrow { color: var(--bone); opacity: .85; }
.newsletter__copy h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 12px; }
.newsletter__copy p { color: rgba(237,234,225,.85); margin: 0; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 12px; flex: 1; max-width: 440px; position: relative; }
.newsletter__form input {
  flex: 1; min-width: 220px; padding: 15px 20px; border-radius: 999px;
  border: none; font-size: 0.96rem; outline: none;
}
.newsletter__note { width: 100%; font-size: 0.85rem; font-weight: 600; margin: 4px 0 0; min-height: 1em; }

/* ---------- Footer ---------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--bone-dim); padding-top: 64px; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line-dark);
}
.site-footer__tagline { font-size: 0.9rem; margin: 16px 0 20px; max-width: 320px; color: var(--steel-light); }
.social-row { display: flex; gap: 10px; }
.social-row__link {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(237,234,225,.08); transition: all .2s var(--ease);
}
.social-row__link:hover { background: var(--brass); }
.social-row__link svg { fill: var(--bone); }
.social-row__link:hover svg { fill: var(--ink); }
.site-footer__col h3 {
  font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--bone); margin-bottom: 16px;
}
.site-footer__col ul li { margin-bottom: 10px; }
.site-footer__col ul li a { font-size: 0.92rem; color: var(--steel-light); transition: color .2s var(--ease); }
.site-footer__col ul li a:hover { color: var(--brass-bright); }
.site-footer__col .count { color: var(--steel); }
.site-footer__note { font-size: 0.85rem; color: var(--steel-light); }
.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 22px; font-size: 0.82rem; color: var(--steel);
}
.back-to-top {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark);
  background: transparent; color: var(--bone); display: flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease);
}
.back-to-top:hover { background: var(--brass); color: var(--ink); transform: translateY(-3px); }
.back-to-top svg { fill: currentColor; }


/* ---------- Single post page ------------------------------------------------ */
.post-hero {
  background: var(--ink); color: var(--bone); position: relative; overflow: hidden;
  padding-block: 48px 0;
}
.breadcrumb {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--steel-light);
  display: flex; gap: 8px; align-items: center; margin-bottom: 28px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--steel-light); transition: color .2s; }
.breadcrumb a:hover { color: var(--brass); }
.post-hero__category {
  display: inline-block; font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  background: var(--brass); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.post-hero h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.04; max-width: 880px; margin-bottom: 26px;
}
.post-hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--steel-light);
  padding-bottom: 40px;
}
.post-hero__meta .author { display: flex; align-items: center; gap: 10px; color: var(--bone-dim); }
.post-hero__meta .author img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.post-hero__media { position: relative; }
.post-hero__media img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

.post-body {
  font-size: 1.08rem; color: #2b2a26; line-height: 1.85;
}
.post-body h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: 1.6rem; margin: 44px 0 18px; letter-spacing: .01em;
  position: relative; padding-left: 20px;
}
.post-body h2::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
  background: var(--brass); border-radius: 2px;
}
.post-body p { margin-bottom: 22px; }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body ul { list-style: none; padding-left: 0; }
.post-body ul li { position: relative; padding-left: 28px; }
.post-body ul li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 10px; height: 10px;
  background: var(--ember); clip-path: polygon(50% 0,100% 38%,82% 100%,18% 100%,0 38%);
}
.post-body ol { counter-reset: item; padding-left: 0; }
.post-body ol li { counter-increment: item; position: relative; padding-left: 38px; }
.post-body ol li::before {
  content: counter(item); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--brass);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.post-body strong { color: var(--ink); }
.post-body em { color: var(--ember); font-style: normal; font-weight: 600; }

.post-share {
  display: flex; align-items: center; gap: 12px; margin: 40px 0;
  padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.post-share span { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); margin-right: 6px; }
.share-btn {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bone); transition: all .2s var(--ease);
}
.share-btn:hover { background: var(--ink); }
.share-btn svg { fill: var(--ink); transition: fill .2s var(--ease); }
.share-btn:hover svg { fill: var(--brass); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }

.author-box {
  display: flex; gap: 20px; align-items: center; background: var(--bone);
  border-radius: var(--radius-md); padding: 26px; margin: 40px 0;
}
.author-box img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--paper); box-shadow: 0 0 0 3px var(--brass); }
.author-box h4 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.1rem; margin-bottom: 6px; }
.author-box p { margin: 0; font-size: 0.92rem; color: var(--steel); }

.related-posts { margin-top: 60px; }

/* Table of contents (single post, sidebar-adjacent) */
.toc {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px; margin-bottom: 30px;
}
.toc h3 { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--steel); margin-bottom: 14px; }
.toc ul { display: flex; flex-direction: column; gap: 10px; }
.toc a { font-size: 0.9rem; font-weight: 600; color: var(--ink); opacity: .75; transition: all .2s var(--ease); display: block; padding-left: 14px; border-left: 2px solid var(--line); }
.toc a:hover, .toc a.is-active { opacity: 1; color: var(--ember); border-left-color: var(--ember); }

/* Lightbox for inline images */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(18,18,16,.94); z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 40px;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.lightbox-overlay.is-open { opacity: 1; pointer-events: auto; }
.lightbox-overlay img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(237,234,225,.1); color: var(--bone); border: none; font-size: 1.6rem;
}

/* ---------- Empty state ------------------------------------------------------ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--steel); }
.empty-state h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; color: var(--ink); margin-bottom: 10px; }

/* ---------- Reveal-on-scroll animation ---------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }


/* ============================================================================
   Responsive breakpoints
   ============================================================================ */

/* Large tablets / small laptops */
@media (max-width: 1080px) {
  .layout, .layout--single { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card__media { min-height: 260px; }
  .about-section { grid-template-columns: 1fr; }
  .about-section__media { min-height: 280px; }

  .sidebar {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(88vw, 380px);
    background: var(--paper); z-index: 200; padding: 24px; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar__close {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; background: var(--bone);
    border: none; font-size: 1.6rem; margin-bottom: 12px; margin-left: auto; color: var(--ink);
  }
}

/* Tablets */
@media (max-width: 860px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--ink);
    transform: translateX(100%); transition: transform .3s var(--ease); z-index: 90;
    overflow-y: auto; padding: 20px 0;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 4px; padding: 0 24px; }
  .main-nav__link { padding: 16px 18px; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .main-nav__link--cta { margin: 14px 0 0; text-align: center; border-radius: 999px; }
  .hamburger { display: flex; }

  .hero { min-height: auto; }
  .hero__inner { padding-block: 60px 50px; }
  .hero__stats { gap: 24px; }

  .post-grid { grid-template-columns: 1fr; }
  .post-grid--2col { grid-template-columns: 1fr; }
  .section { padding-block: 54px; }

  .newsletter__inner { flex-direction: column; align-items: flex-start; }
  .newsletter__form { max-width: 100%; width: 100%; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Phones */
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .site-header__inner { height: 66px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__title { font-size: 1rem; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { justify-content: space-between; gap: 14px; }
  .hero__stat strong { font-size: 1.5rem; }

  .featured-card__body { padding: 30px 24px; }
  .card__body { padding: 18px; }
  .about-section__body { padding: 38px 24px; }

  .post-hero__meta { gap: 14px; font-size: 0.76rem; }
  .post-body { font-size: 1rem; }
  .author-box { flex-direction: column; text-align: center; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; gap: 14px; text-align: center; }

  .filter-bar { gap: 8px; }
  .filter-chip { padding: 7px 14px; font-size: 0.82rem; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 2.2rem; }
  .brand__sub { display: none; }
}

/* Print */
@media print {
  .site-header, .newsletter, .site-footer, .sidebar, .post-share, .hero__actions { display: none; }
}
