/* ==========================================================================
   Scaleo Blog — main stylesheet
   Premium B2B tech aesthetic. Inter, Electric Blue accent, glassmorphism.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-2: #4A5568;
  --muted: #6B7280;
  --line: #E5E7EB;
  --line-2: rgba(0,0,0,0.05);
  --panel: #F7F8FA;
  --panel-2: #EEF0F3;
  --accent: #1A56DB;
  --accent-ink: #1045C0;
  --accent-bg: rgba(26,86,219,0.07);
  --dark: #111111;
  --dark-2: #1a1a1a;
  --on-dark: #ffffff;
  --on-dark-muted: #9CA3AF;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --maxw: 1200px;
  --readw: 720px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 3px 10px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.07);
  --shadow-hover: 0 4px 14px rgba(0,0,0,0.09), 0 20px 48px rgba(0,0,0,0.10);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.10vw, 0.85rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.32rem + 0.65vw, 1.85rem);
  --step-3:  clamp(1.85rem, 1.6rem + 1.2vw, 2.6rem);
  --step-4:  clamp(2.3rem, 1.85rem + 2.2vw, 3.6rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
}
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.025em;
}
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: var(--ink); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin: 0.3em 0; }
strong { font-weight: 700; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
blockquote { margin: 1.8rem 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 32px; }
.wrap--read { max-width: var(--readw); }
.section { padding-block: clamp(60px, 7vw, 100px); }
.flow > * + * { margin-top: 1.1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 0.85rem; font-weight: 600; line-height: 1;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease,
              transform .15s ease, box-shadow .15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--dark { background: var(--dark); color: var(--on-dark); }
.btn--dark:hover { background: var(--dark-2); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.22); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f1f1ee; transform: translateY(-1px); }
.btn--sm { padding: 8px 16px; font-size: 0.80rem; }

/* Log-in text link in header */
.btn-login {
  display: inline-flex; align-items: center;
  font-family: var(--font); font-size: 0.85rem; font-weight: 500; color: #43444b;
  padding: 8px 14px; border-radius: 8px; background: none; border: none; cursor: pointer;
  transition: color .15s, background .15s; text-decoration: none;
}
.btn-login:hover { color: var(--ink); background: var(--panel); text-decoration: none; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.70rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.eyebrow--plain::before { display: none; }

/* ---------- Category badge pills ---------- */
.cat-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  white-space: nowrap; text-decoration: none;
  transition: opacity .15s;
}
.cat-badge:hover { opacity: 0.8; text-decoration: none; }
.cat-badge--ai        { background: #EEF2FF; color: #4338CA; }
.cat-badge--affiliate { background: #FFF7ED; color: #B45309; }
.cat-badge--fraud     { background: #FFF1F2; color: #BE123C; }
.cat-badge--product   { background: #F0FDF4; color: #15803D; }
.cat-badge--growth    { background: #EFF6FF; color: #1D4ED8; }
.cat-badge--default   { background: var(--panel-2); color: var(--muted); }

/* Fallback for old .card__cat usage */
.card__cat {
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 0.68rem; color: var(--accent); text-decoration: none;
}

/* ============================ Header ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); font-weight: 800; font-size: 1rem; letter-spacing: -0.04em;
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--ink); display: grid; place-items: center; color: #fff;
}
.brand__mark svg { width: 15px; height: 15px; }

.primary-nav { display: flex; align-items: center; }
.primary-nav__list {
  display: flex; align-items: center; gap: 0;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav a {
  display: inline-block; padding: 7px 13px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; color: #43444b;
  transition: color .15s, background .15s;
}
.primary-nav a:hover { color: var(--ink); background: var(--panel); text-decoration: none; }
.primary-nav .current-menu-item > a,
.primary-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.primary-nav .menu-cta { display: none; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center; padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

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

/* ============================ Page intro ============================ */
.page-intro {
  padding-block: clamp(60px, 7vw, 88px) clamp(44px, 4.5vw, 60px);
  border-bottom: 1px solid var(--line);
}
.page-intro__inner { max-width: 840px; }
.page-intro .eyebrow { margin-bottom: 18px; }
.page-intro h1 { font-size: var(--step-4); font-weight: 800; margin-bottom: 0.3em; }
.page-intro p {
  font-size: var(--step-1); color: var(--muted);
  margin: 0; max-width: 56ch; line-height: 1.65;
}

/* ---------- Category filter ---------- */
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.cat-filter a {
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  transition: border-color .15s, color .15s, background .15s;
}
.cat-filter a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.cat-filter a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

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

/* ---------- Card ---------- */
.card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .22s ease, transform .22s ease;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--panel);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative;
  flex: none;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card__media img { transform: scale(1.04); }

/* ---------- No featured image placeholder ---------- */
.card__media--no-image { display: block; }

.no-img-gradient {
  position: absolute; inset: 0;
}
.no-img-gradient--blue   { background: linear-gradient(135deg, #1A56DB 0%, #4338CA 100%); }
.no-img-gradient--dark   { background: linear-gradient(135deg, #0f1117 0%, #1e2235 100%); }
.no-img-gradient--indigo { background: linear-gradient(135deg, #312E81 0%, #1A56DB 100%); }

.no-img-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 22px 22px;
}

.no-img-title {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px 18px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
  color: rgba(255,255,255,0.95);
  font-size: 0.88rem; font-weight: 700; line-height: 1.3;
  letter-spacing: -0.018em;
}

/* Post-hero no-image version */
.post-hero--no-image {
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.post-hero--no-image .no-img-hero-title {
  position: relative; z-index: 2;
  color: #fff; font-size: var(--step-3); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1; text-align: center;
  max-width: 640px; padding: 48px 32px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

/* ---------- Card body ---------- */
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap;
}
.card__title { font-size: var(--step-1); font-weight: 700; line-height: 1.22; margin: 0 0 8px; letter-spacing: -0.02em; }
.card__title a { color: var(--ink); transition: color .15s; }
.card__title a:hover { color: var(--accent); text-decoration: none; }
.card__excerpt { color: var(--ink-2); margin: 0 0 16px; font-size: 0.9rem; line-height: 1.65; }
.card__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 0.80rem; color: var(--muted); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: #c9c9c9; flex: none; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  background: var(--panel-2); border: 1px solid var(--line); flex: none;
}

/* ---------- Featured (latest) post ---------- */
.featured {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding-bottom: clamp(56px, 7vw, 88px);
  margin-bottom: clamp(56px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}
.featured__media {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--panel); border: 1px solid rgba(0,0,0,0.07);
  box-shadow: var(--shadow); position: relative;
}
.featured__media--no-image { display: block; }
.featured__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.featured:hover .featured__media img { transform: scale(1.025); }
.featured__title {
  font-size: var(--step-3); font-weight: 800; margin: 16px 0 14px;
  letter-spacing: -0.03em; line-height: 1.1;
}
.featured__title a { color: var(--ink); }
.featured__title a:hover { color: var(--accent); text-decoration: none; }
.featured__excerpt { font-size: var(--step-1); color: var(--ink-2); margin-bottom: 20px; line-height: 1.65; }

/* ============================ Single post ============================ */
.post-header { padding-block: clamp(44px, 5.5vw, 72px) 0; text-align: center; }
.post-header__inner { max-width: 760px; margin-inline: auto; }
.post-header .eyebrow { margin-bottom: 20px; }
.post-title { font-size: var(--step-4); font-weight: 800; margin: 0 0 20px; letter-spacing: -0.03em; }
.post-dek { font-size: var(--step-1); color: var(--muted); margin: 0 auto 28px; max-width: 60ch; line-height: 1.7; }

.byline { display: inline-flex; align-items: center; gap: 12px; font-size: var(--step--1); color: var(--muted); }
.byline__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--panel-2); }
.byline__name { color: var(--ink); font-weight: 600; }
.byline__sep { width: 3px; height: 3px; border-radius: 50%; background: #c9c9c9; }

.post-hero {
  margin-block: clamp(36px, 4.5vw, 56px);
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--panel); border: 1px solid rgba(0,0,0,0.07);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 8;
  position: relative;
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Article typography */
.prose { font-size: 1.1rem; line-height: 1.78; color: #374151; }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; margin-bottom: 0.5em; scroll-margin-top: 90px; font-weight: 800; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; margin-bottom: 0.4em; scroll-margin-top: 90px; font-weight: 700; }
.prose p { margin: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(26,86,219,0.3); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose img, .prose figure { border-radius: var(--radius); margin-block: 1.6em; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: var(--step--1); color: var(--muted); text-align: center; margin-top: 10px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.45em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 24px; margin: 1.8em 0;
  font-size: 1.22rem; line-height: 1.55; color: var(--ink); font-weight: 600; letter-spacing: -0.01em;
}
.prose blockquote p { margin: 0; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.87em; background: var(--panel); border: 1px solid var(--line);
  padding: 0.12em 0.4em; border-radius: 6px;
}
.prose pre {
  background: #111111; color: #e8e8ea; padding: 22px 24px; border-radius: var(--radius);
  overflow-x: auto; font-size: 0.9rem; line-height: 1.65; margin-block: 1.6em;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

.wp-caption { max-width: 100%; }
.alignleft  { float: left;  margin: 0.4em 1.6em 1.2em 0; }
.alignright { float: right; margin: 0.4em 0 1.2em 1.6em; }
.aligncenter { margin-inline: auto; }
.alignwide { width: min(100%, 920px); margin-inline: auto; }

/* ---------- Article footer: tags + share ---------- */
.entry-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
  font-size: var(--step--1); color: #50515a; background: var(--panel);
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  transition: border-color .15s, color .15s;
}
.tags a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.share { display: flex; align-items: center; gap: 8px; }
.share__label { font-size: var(--step--1); color: var(--muted); margin-right: 2px; }
.share a, .share button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; color: #50515a; cursor: pointer; padding: 0;
  transition: border-color .15s, color .15s;
}
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.share svg { width: 17px; height: 17px; }
.share__copied { font-size: var(--step--1); color: var(--accent); font-weight: 600; }

/* ---------- Author card ---------- */
.author-card {
  display: flex; gap: 18px; align-items: flex-start;
  margin-top: 40px; padding: 28px;
  background: var(--panel); border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.author-card__avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); flex: none; }
.author-card__name { font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.author-card__bio { font-size: var(--step--1); color: var(--ink-2); margin: 0; }

/* ---------- Prev / next — MORE SPACE from separator above ---------- */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 80px;       /* generous gap from author-card / separator */
  padding-top: 40px;
  border-top: 1px solid var(--line);
  margin-bottom: 16px;
}
.post-nav a {
  display: block; padding: 22px 24px;
  border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .2s ease, transform .2s ease;
}
.post-nav a:hover {
  border-color: var(--accent); box-shadow: var(--shadow);
  transform: translateY(-2px); text-decoration: none;
}
.post-nav__dir { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.post-nav__title { color: var(--ink); font-weight: 600; line-height: 1.3; font-size: 0.9rem; }
.post-nav__next { text-align: right; }

/* ============================ Related ============================ */
.related { border-top: 1px solid var(--line); }
.related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.related__head h2 { font-size: var(--step-2); margin: 0; }

/* ============================ Dark CTA ============================ */
.cta-band {
  background: var(--dark); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: clamp(40px, 5.5vw, 72px);
  position: relative; overflow: hidden;
}
.cta-band__inner { position: relative; z-index: 1; max-width: 620px; }
.cta-band h2 { color: #fff; font-size: var(--step-3); margin-bottom: 14px; letter-spacing: -0.03em; }
.cta-band p  { color: var(--on-dark-muted); font-size: var(--step-1); margin-bottom: 28px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__glow {
  position: absolute; right: -80px; top: -80px; width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,219,0.38), transparent 70%);
  filter: blur(14px); pointer-events: none;
}

/* ============================ Pagination ============================ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: clamp(52px, 6vw, 80px); }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.84rem; font-weight: 500; color: #50515a; background: #fff;
  transition: border-color .15s, color .15s, background .15s;
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .dots { border: 0; background: none; }

/* ============================ Search ============================ */
.search-form { display: flex; gap: 8px; max-width: 480px; }
.search-form__field { position: relative; flex: 1; }
.search-form input[type="search"] {
  width: 100%; font: inherit; font-size: var(--step-0); padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--ink); }
.search-form button { flex: none; }

/* ============================ States ============================ */
.notice { text-align: center; padding: clamp(48px, 8vw, 110px) 0; }
.notice__big { font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 800; letter-spacing: -0.04em; color: var(--ink); line-height: 1; margin-bottom: 18px; }
.notice h1 { font-size: var(--step-3); margin-bottom: 12px; }
.notice p { color: var(--muted); font-size: var(--step-1); max-width: 46ch; margin-inline: auto; margin-bottom: 26px; }
.notice__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================ Footer ============================ */
.site-footer {
  background: var(--panel); border-top: 1px solid var(--line);
  margin-top: clamp(72px, 9vw, 128px);
}
.site-footer__top {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px;
  padding-block: clamp(56px, 7vw, 88px);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.875rem; max-width: 28ch; margin: 0 0 22px; line-height: 1.65; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; color: #50515a;
  transition: border-color .15s, color .15s;
}
.footer-social a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-size: 0.70rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.875rem; color: #43444b; transition: color .15s; }
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.site-footer__bottom {
  border-top: 1px solid var(--line); padding-block: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.80rem; color: var(--muted);
}
.site-footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer__bottom a { color: var(--muted); transition: color .15s; }
.site-footer__bottom a:hover { color: var(--ink); }

/* ============================ Responsive ============================ */
@media (max-width: 1020px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .post-grid { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; gap: 24px; }
  .featured__media { order: -1; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .post-nav { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .primary-nav, .header-actions .btn, .header-actions .btn-login { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner { height: 58px; }

  .primary-nav.is-open {
    display: block; position: fixed; inset: 58px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; z-index: 49;
  }
  .primary-nav.is-open ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav.is-open a { padding: 12px 12px; font-size: 1.05rem; border-radius: 10px; }
  .primary-nav.is-open .menu-cta { display: block; margin-top: 8px; }
  .primary-nav.is-open .menu-cta a { background: var(--dark); color: #fff; text-align: center; font-weight: 600; }

  .entry-footer { flex-direction: column; align-items: flex-start; }
  .related__head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 18px; }
  .footer-social { margin-bottom: 4px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .reading-progress, .share, .cta-band, .related, .post-nav, .nav-toggle { display: none !important; }
  body { color: #000; }
  .prose a { color: #000; text-decoration: underline; }
}
