/* =========================================================
   pop10.com — editorial design system
   ========================================================= */

:root {
  /* surface & ink */
  --bg: #fbf9f5;
  --bg-alt: #f4f1ea;
  --surface: #ffffff;
  --ink: #1b1917;
  --text: #232120;
  --text-muted: #6b665c;
  --text-soft: #8a8478;

  /* brand */
  --accent: #b0413e;
  --accent-dark: #8c302e;
  --accent-soft: #f6e9e7;
  --gold: #b98b46;
  --gold-soft: #fbf3e4;

  --border: #e6e1d6;
  --line: #eae5da;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(27, 25, 23, 0.04);
  --shadow-md: 0 6px 24px -12px rgba(27, 25, 23, 0.18);
  --shadow-lg: 0 18px 48px -24px rgba(27, 25, 23, 0.28);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", "Noto Serif SC", "Source Han Serif SC", "Songti SC",
    "SimSun", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover {
  color: var(--accent-dark);
}

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  color: var(--ink);
}

.brand-dot {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.nav > a {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav > a:hover {
  color: var(--ink);
}

.nav > a:hover::after {
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.lang-switch a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1;
}

.lang-switch a:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.lang-switch a[aria-current="page"] {
  color: #fff;
  background: var(--accent);
}

/* ---------------- home hero ---------------- */

.hero {
  position: relative;
  padding: 96px 0 76px;
  background:
    radial-gradient(900px 420px at 12% -12%, rgba(176, 65, 62, 0.09), transparent 62%),
    radial-gradient(760px 380px at 88% 4%, rgba(185, 139, 70, 0.13), transparent 62%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  max-width: 820px;
  color: var(--ink);
}

.lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

/* ---------------- sections ---------------- */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--ink);
}

.section-sub {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 36px;
  font-size: 16.5px;
}

/* ---------------- cards ---------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.card-link {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.grid-categories {
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 18px;
  counter-reset: cat;
}

.category {
  overflow: hidden;
}

.category::before {
  counter-increment: cat;
  content: counter(cat, decimal-leading-zero);
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  opacity: 0.55;
}

.category::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.category:hover {
  border-color: #d8cec0;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category:hover::after {
  transform: scaleX(1);
}

.category h3 {
  color: var(--accent-dark);
  padding-right: 36px;
}

.category:hover .card-link {
  color: var(--accent-dark);
}

/* ---------------- article hero ---------------- */

.article-hero {
  position: relative;
  padding: 44px 0 52px;
  background:
    radial-gradient(820px 360px at 8% -20%, rgba(176, 65, 62, 0.08), transparent 60%),
    radial-gradient(680px 340px at 92% -6%, rgba(185, 139, 70, 0.12), transparent 62%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-soft);
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}

.breadcrumbs a {
  color: var(--text-soft);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span.sep {
  opacity: 0.5;
}

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(176, 65, 62, 0.16);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.article-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 800px;
  color: var(--ink);
}

.article-hero .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 0 22px;
}

.article-hero .byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-soft);
  font-size: 13.5px;
  margin: 0;
}

.article-hero .byline .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* ---------------- article body ---------------- */

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}

.article-body > p {
  font-size: 17.5px;
  line-height: 1.82;
  margin: 0 0 22px;
  color: #2f2c28;
}

.article-body > p:first-of-type {
  font-size: 19px;
  line-height: 1.72;
  color: #2a2724;
}

.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 0.82;
  font-weight: 700;
  color: var(--accent);
  padding: 8px 12px 0 0;
}

.article-body h2 {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(23px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 56px 0 20px;
  padding-top: 22px;
}

.article-body h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.article-body h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 38px 0 10px;
  padding-left: 16px;
  border-left: 3px solid var(--border);
  transition: border-color 0.18s ease;
}

.article-body h3:hover {
  border-left-color: var(--accent);
}

.article-body ul,
.article-body ol {
  font-size: 17px;
  line-height: 1.78;
  padding-left: 6px;
  margin: 0 0 24px;
  list-style: none;
}

.article-body ol {
  counter-reset: ol;
}

.article-body ul li,
.article-body ol li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: #2f2c28;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.article-body ol li::before {
  counter-increment: ol;
  content: counter(ol);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.article-body a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(176, 65, 62, 0.35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.article-body a:hover {
  text-decoration-color: var(--accent);
}

.article-body strong {
  color: var(--ink);
  font-weight: 700;
}

.article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 30px 0;
  font-size: 15.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-body th {
  background: var(--bg-alt);
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-body td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.article-body tr:last-child td {
  border-bottom: 0;
}

.article-body tbody tr:nth-child(even) {
  background: #fdfcfa;
}

.article-body blockquote {
  position: relative;
  margin: 34px 0;
  padding: 24px 26px 24px 60px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #5a4a33;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  font-style: italic;
}

.article-body blockquote::before {
  content: "\201C";
  position: absolute;
  left: 20px;
  top: 6px;
  font-family: var(--font-serif);
  font-size: 52px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 48px 0;
}

/* callout box */
.callout {
  margin: 30px 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.callout strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

/* article end note */
.article-footer-note {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ---------------- category page list ---------------- */

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px 84px;
}

.category-list .article-row {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
  overflow: hidden;
}

.category-list .article-row::after {
  content: "\2192";
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-size: 16px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.22s ease;
}

.category-list .article-row:hover {
  border-color: #d8cec0;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-list .article-row:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.article-row h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--ink);
  transition: color 0.18s ease;
  padding-right: 8px;
}

.article-row:hover h3 {
  color: var(--accent-dark);
}

.article-row p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 14px;
}

/* section heading inside category/article pages */
.article-body h2 + .category-list,
.category-list.embedded {
  padding: 0;
  max-width: none;
  margin: 8px 0 32px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ---------------- footer ---------------- */

.site-footer {
  background: #1d1a17;
  color: #b6ae9f;
  padding: 52px 0 44px;
  font-size: 14px;
  margin-top: 0;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ded6c8;
}

.site-footer a:hover {
  color: #fff;
}

.footer-note {
  font-size: 13px;
  color: #8f887b;
  max-width: 620px;
  line-height: 1.65;
}

.footer-links {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #8f887b;
}

.footer-links a {
  color: #b6ae9f;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------------- responsive ---------------- */

@media (max-width: 860px) {
  .site-header .wrap {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 10px;
  }

  .nav {
    gap: 16px;
    font-size: 13px;
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .section {
    padding: 52px 0;
  }

  .article-hero {
    padding: 32px 0 40px;
  }

  .article-body {
    padding: 40px 24px 72px;
  }

  .article-body > p {
    font-size: 17px;
  }

  .article-body > p:first-of-type {
    font-size: 17.5px;
  }

  .article-body > p:first-of-type::first-letter {
    font-size: 52px;
    padding-right: 10px;
  }

  .category-list {
    grid-template-columns: 1fr;
    padding: 40px 24px 64px;
  }

  .site-footer {
    padding: 40px 0 36px;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 18px;
  }

  .article-hero h1 {
    font-size: 27px;
  }

  .article-hero .lede {
    font-size: 16.5px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .article-body h2 {
    margin-top: 44px;
  }

  .article-body h3 {
    font-size: 19.5px;
  }
}

/* ---------------- print ---------------- */

@media print {
  .site-header,
  .site-footer,
  .lang-switch {
    display: none;
  }

  .article-hero {
    background: none;
    border: 0;
  }

  body {
    background: #fff;
  }
}

/* =========================================================
   category hub pages
   ========================================================= */

.cat-hero {
  position: relative;
  padding: 52px 0 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(760px 380px at 10% -12%, rgba(176, 65, 62, 0.1), transparent 62%),
    radial-gradient(640px 340px at 90% -4%, rgba(185, 139, 70, 0.15), transparent 60%),
    var(--bg-alt);
}

.cat-hero .wrap {
  position: relative;
  z-index: 1;
}

.cat-num {
  position: absolute;
  right: 8px;
  top: -34px;
  font-family: var(--font-serif);
  font-size: clamp(110px, 17vw, 200px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(176, 65, 62, 0.075);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.cat-hero h1 {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.8vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 820px;
}

.cat-hero .lede {
  position: relative;
  font-size: 18.5px;
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0;
}

/* intro: article-like body + sticky aside */

.cat-intro {
  padding: 64px 0 20px;
  background: var(--bg);
}

.cat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 56px;
  align-items: start;
}

.cat-body > p {
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--text);
  margin: 0 0 22px;
  max-width: 64ch;
}

.cat-body > p:first-of-type {
  font-size: 19px;
  color: #2c2926;
}

.cat-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 60px;
  line-height: 0.86;
  font-weight: 700;
  color: var(--accent);
  margin: 6px 12px 0 0;
}

.cat-body h2 {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  color: var(--ink);
  margin: 42px 0 18px;
  padding-top: 22px;
  position: relative;
  letter-spacing: -0.01em;
}

.cat-body h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.cat-body h3 {
  font-family: var(--font-serif);
  font-size: 19.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 10px;
}

.cat-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  max-width: 64ch;
}

.cat-body ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--text);
}

.cat-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 139, 70, 0.16);
}

.cat-body strong {
  color: var(--ink);
  font-weight: 650;
}

.cat-aside {
  position: sticky;
  top: 96px;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cat-aside .aside-title {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cat-aside dl {
  margin: 0;
}

.cat-aside .aside-row + .aside-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.cat-aside dt {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.cat-aside dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 550;
}

/* article grid */

.cat-articles {
  padding: 56px 0 8px;
  background: var(--bg);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}

.section-count {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: #d8cec0;
  box-shadow: var(--shadow-md);
}

.article-card:hover::before {
  opacity: 1;
}

.card-index {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 12px;
}

.article-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.34;
  color: var(--ink);
  margin: 0 0 10px;
  transition: color 0.18s ease;
}

.article-card:hover h3 {
  color: var(--accent-dark);
}

.article-card p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.card-more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-more::after {
  content: "\2192";
  transition: transform 0.2s ease;
}

.article-card:hover .card-more::after {
  transform: translateX(4px);
}

/* back link */

.cat-back {
  padding: 44px 0 72px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: all 0.18s ease;
}

.back-link:hover {
  color: var(--accent);
  border-color: rgba(176, 65, 62, 0.3);
  background: var(--accent-soft);
}

@media (max-width: 980px) {
  .cat-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cat-aside {
    position: static;
  }
}

@media (max-width: 860px) {
  .cat-hero {
    padding: 34px 0 42px;
  }

  .cat-num {
    font-size: 120px;
    top: -18px;
    right: 0;
  }

  .cat-intro {
    padding: 44px 0 12px;
  }

  .cat-body > p {
    font-size: 17px;
  }

  .cat-body > p:first-of-type {
    font-size: 18px;
  }

  .cat-body > p:first-of-type::first-letter {
    font-size: 50px;
  }

  .cat-articles {
    padding: 40px 0 4px;
  }

  .section-head h2 {
    font-size: 23px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cat-hero h1 {
    font-size: 30px;
  }

  .cat-hero .lede {
    font-size: 16.5px;
  }

  .cat-num {
    font-size: 96px;
    opacity: 0.8;
  }
}

/* =========================================================
   homepage: hero stats + latest guides
   ========================================================= */

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  margin: 46px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 600px;
}

.hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-stats dt {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.hero-stats dd {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.latest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.latest-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.latest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d8cec0;
}

.latest-card:hover::before {
  transform: scaleX(1);
}

.latest-card.feature {
  grid-column: span 2;
  padding: 44px 44px 34px;
  background: linear-gradient(135deg, #fffdf9, #f7f2e9);
}

.latest-card .eyebrow {
  margin-bottom: 16px;
  align-self: flex-start;
}

.latest-card h3 {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 32ch;
  transition: color 0.18s ease;
}

.latest-card.feature h3 {
  font-size: clamp(27px, 3.2vw, 36px);
  max-width: 24ch;
}

.latest-card:hover h3 {
  color: var(--accent-dark);
}

.latest-card p {
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 62ch;
}

.latest-card.feature p {
  font-size: 17px;
  max-width: 58ch;
}

.latest-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.latest-meta .card-more {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 13px;
}

/* homepage section cards: explicit numbering, flex layout */

.grid-categories .category::before {
  content: none;
  display: none;
}

.category {
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.cat-index {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
}

.category h3 {
  color: var(--ink);
}

.category p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.category .card-link {
  margin-top: auto;
  display: inline-block;
  color: var(--accent);
}

.category:hover .card-link {
  color: var(--accent-dark);
}

@media (max-width: 860px) {
  .hero-stats {
    gap: 28px;
    margin-top: 34px;
  }

  .hero-stats dt {
    font-size: 29px;
  }

  .latest-grid {
    grid-template-columns: 1fr;
  }

  .latest-card.feature {
    grid-column: span 1;
    padding: 30px 24px 24px;
  }

  .latest-card.feature h3 {
    font-size: 25px;
  }

  .latest-card.feature p {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .hero-stats {
    gap: 22px;
  }

  .hero-stats dt {
    font-size: 25px;
  }

  .latest-card {
    padding: 26px 22px 22px;
  }
}
