/* =========================================================================
   Pena Nusantara News — global stylesheet
   Editorial / Western newsroom aesthetic. Mobile-first, responsive.
   ========================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --ink: #14161c;
  --ink-soft: #333842;
  --muted: #6b7280;
  --muted-2: #9aa1ad;
  --line: #e5e7eb;
  --line-strong: #d3d7de;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --bg-dark: #14161c;

  --accent: #c0392b;
  --accent-dark: #99261c;
  --brand: #14161c;

  --wrap: 1180px;
  --wrap-narrow: 760px;

  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(16, 20, 30, 0.06);
  --shadow-md: 0 6px 20px rgba(16, 20, 30, 0.09);
  --shadow-lg: 0 18px 44px rgba(16, 20, 30, 0.16);

  --radius: 4px;
  --radius-lg: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ---------- 3. Utility ---------- */
.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.section--tight { padding: 30px 0; }
.section--alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.section-head h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  position: relative;
  padding-left: 16px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 76%;
  background: var(--accent);
  border-radius: 2px;
}
.section-head .more {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.section-head .more:hover { color: var(--accent); }

/* ---------- 4. Top bar ---------- */
.topbar {
  background: var(--bg-dark);
  color: #cfd3db;
  font-size: 12px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 38px;
}
.topbar__date { letter-spacing: 0.04em; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar a { color: #cfd3db; transition: color 0.2s var(--ease); }
.topbar a:hover { color: #fff; }
.topbar__social { display: flex; gap: 12px; }
.topbar__social a { display: inline-flex; }
.topbar__social svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- 5. Masthead / header ---------- */
.masthead { border-bottom: 1px solid var(--line); background: #fff; }
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 16px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.brand__text h1 {
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand__text span {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}
.masthead__tools { display: flex; align-items: center; gap: 10px; }

.btn-search {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-search:hover { border-color: var(--ink); color: var(--ink); }
.btn-search svg { width: 15px; height: 15px; }

.btn-sub {
  display: inline-flex; align-items: center;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s var(--ease);
}
.btn-sub:hover { background: var(--accent-dark); }

/* ---------- 6. Nav ---------- */
.nav {
  border-bottom: 3px solid var(--ink);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 60;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}
.nav__list a {
  display: block;
  padding: 14px 15px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.18s var(--ease);
  position: relative;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); }
.nav__list a.is-active { color: var(--ink); }

.nav__toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: var(--radius);
  padding: 8px 10px;
  margin: 8px 0;
}
.nav__toggle svg { width: 20px; height: 20px; }

/* ---------- 7. Breaking ticker ---------- */
.ticker {
  display: flex;
  align-items: stretch;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ticker__label {
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticker__label .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}
.ticker__viewport {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 44px;
  height: 100%;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track a {
  font-size: 13px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ticker__track a::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex: 0 0 6px;
}
.ticker__track a:hover { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 8. Hero ---------- */
.hero { padding: 32px 0 8px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
}

/* Lead story */
.lead { display: block; }
.lead__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
}
.lead__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.lead:hover .lead__media img { transform: scale(1.04); }
.lead__body { padding-top: 18px; }
.lead__title {
  font-size: clamp(26px, 3.6vw, 40px);
  margin: 10px 0 12px;
}
.lead__title a { transition: color 0.2s var(--ease); }
.lead:hover .lead__title a { color: var(--accent); }
.lead__excerpt {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.meta__sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.meta__author { font-weight: 600; color: var(--ink-soft); }
.meta--onimage {
  color: #e8eaee;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Latest rail */
.rail {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.rail__head h2 {
  font-size: 16px;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rail__item {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.rail__item:last-child { border-bottom: 0; }
.rail__item h3 {
  font-size: 15.5px;
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.2s var(--ease);
}
.rail__item:hover h3 { color: var(--accent); }
.rail__item img {
  width: 92px; height: 68px;
  object-fit: cover;
  border-radius: var(--radius);
}
.rail__item .meta { margin-top: 6px; font-size: 11.5px; }

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

.card { display: flex; flex-direction: column; }
.card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  margin-bottom: 14px;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__title {
  font-size: 19px;
  margin: 8px 0 8px;
  transition: color 0.2s var(--ease);
}
.card:hover .card__title { color: var(--accent); }
.card__excerpt {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 12px;
}

/* Wide split card (category lead) */
.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.split__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.split:hover .split__media img { transform: scale(1.04); }
.split__title { font-size: clamp(22px, 2.8vw, 30px); margin: 10px 0 12px; }
.split:hover .split__title { color: var(--accent); }
.split__excerpt { color: var(--ink-soft); font-size: 16px; margin: 0 0 14px; }

/* ---------- 10. Trending ---------- */
.trend {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.trend__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.trend__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.trend__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-alt);
}
.trend__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.trend__card:hover .trend__media img { transform: scale(1.07); }
.trend__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0) 42%, rgba(10, 12, 16, 0.6) 100%);
  pointer-events: none;
}
.trend__num {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(10, 12, 16, 0.3);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.trend__card:hover .trend__num {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.trend__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  padding: 15px 16px 17px;
}
.trend__body .kicker { font-size: 10.5px; letter-spacing: 0.1em; }
.trend__card h3 {
  font-size: 15px;
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.44;
  margin: 0;
  transition: color 0.2s var(--ease);
}
.trend__card:hover h3 { color: var(--accent); }
.trend__card h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trend__body .meta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 11.5px;
}
.trend__views { font-weight: 700; color: var(--ink-soft); }

/* ---------- 11. Category band ---------- */
.band { padding: 40px 0; border-top: 1px solid var(--line); }
.band__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.band__head h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  padding-left: 16px;
  position: relative;
}
.band__head h2::before {
  content: "";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 76%; background: var(--cat-accent, var(--accent));
  border-radius: 2px;
}
.list-rows { display: flex; flex-direction: column; }
.row-item {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.row-item:last-child { border-bottom: 0; }
.row-item h3 {
  font-size: 16px;
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.42;
  transition: color 0.2s var(--ease);
}
.row-item:hover h3 { color: var(--accent); }
.row-item img {
  width: 104px; height: 74px; object-fit: cover;
  border-radius: var(--radius);
}
.row-item .meta { margin-top: 6px; font-size: 11.5px; }

/* ---------- 12. Newsletter ---------- */
.newsletter {
  background: var(--bg-dark);
  color: #fff;
  padding: 46px 0;
}
.newsletter__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}
.newsletter h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  margin-bottom: 10px;
}
.newsletter p { color: #b8bdc7; margin: 0; font-size: 15px; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #3a3f4a;
  background: #1d2029;
  color: #fff;
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.newsletter input::placeholder { color: #7f8794; }
.newsletter input:focus { border-color: var(--accent); }
.newsletter button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease);
}
.newsletter button:hover { background: var(--accent-dark); }
.newsletter__note {
  font-size: 12px;
  color: #7f8794;
  margin-top: 10px;
}
.newsletter__ok { color: #7ee2a8; font-size: 13px; margin-top: 10px; }

/* ---------- 13. Footer ---------- */
.footer { background: #0f1116; color: #9aa1ad; padding: 54px 0 0; font-size: 14px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 40px;
}
.footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer p { line-height: 1.7; margin: 0 0 14px; }
.footer__brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.footer__brand .brand__mark {
  background: #fff; color: #0f1116;
  width: 42px; height: 42px; flex: 0 0 42px; font-size: 18px;
}
.footer__brand strong {
  color: #fff; font-family: var(--serif); font-size: 20px; font-weight: 800;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a { transition: color 0.2s var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #2a2e37;
  display: grid; place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__social a:hover { background: var(--accent); border-color: var(--accent); }
.footer__social svg { width: 15px; height: 15px; fill: #cfd3db; }
.footer__bottom {
  border-top: 1px solid #1e222a;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__bottom a:hover { color: #fff; }

/* ---------- 14. Article page ---------- */
.article-hero { padding: 30px 0 0; }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { color: var(--muted-2); }

.article-head { max-width: 860px; }
.article-head h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  margin: 12px 0 16px;
}
.article-standfirst {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 22px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.article-meta .author-chip {
  display: flex; align-items: center; gap: 10px;
}
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 800; font-size: 15px;
}
.article-meta strong { color: var(--ink); }

.article-figure { margin: 26px 0 0; }
.article-figure img {
  width: 100%; border-radius: var(--radius);
}
.article-figure figcaption {
  font-size: 12.5px; color: var(--muted);
  padding: 10px 2px 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 54px;
  padding: 34px 0 54px;
  align-items: start;
}

.prose { font-size: 18px; line-height: 1.78; color: #1f232b; max-width: 760px; }
.prose > * + * { margin-top: 22px; }
.prose p { margin: 0; }
.prose h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-top: 38px;
  margin-bottom: -4px;
}
.prose ul { padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.prose ul li::before {
  content: "";
  position: absolute; left: 4px; top: 12px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.prose blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--accent);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
}
.prose blockquote cite {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  color: var(--muted);
  margin-top: 12px;
}
.prose figure { margin: 34px 0; }
.prose figure img { width: 100%; border-radius: var(--radius); }
.prose figure figcaption {
  font-size: 12.5px; color: var(--muted); margin-top: 10px;
}
.prose a { color: var(--accent); text-decoration: underline; }

.article-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 36px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.tag {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.tag:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.share {
  display: flex; align-items: center; gap: 10px;
  margin-top: 26px; flex-wrap: wrap;
}
.share__label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin-right: 4px;
}
.share a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.share a:hover { background: var(--ink); border-color: var(--ink); }
.share svg { width: 16px; height: 16px; fill: var(--ink-soft); }
.share a:hover svg { fill: #fff; }

.author-box {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  margin-top: 40px;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.author-box .author-avatar { width: 64px; height: 64px; font-size: 22px; }
.author-box h3 { font-size: 17px; font-family: var(--sans); font-weight: 800; }
.author-box .role {
  font-size: 12px; color: var(--accent); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin: 3px 0 8px;
}
.author-box p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }

/* Sidebar */
.sidebar { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 30px; }
.widget { border-top: 3px solid var(--ink); padding-top: 16px; }
.widget h3 {
  font-size: 14px; font-family: var(--sans); font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.widget .rank-item {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.widget .rank-item:last-child { border-bottom: 0; }
.widget .rank-item .n {
  font-family: var(--serif); font-size: 26px; font-weight: 900;
  color: var(--line-strong); line-height: 1;
}
.widget .rank-item:hover .n { color: var(--accent); }
.widget .rank-item h4 {
  font-size: 14.5px; font-family: var(--sans); font-weight: 700;
  line-height: 1.45;
}
.widget .rank-item:hover h4 { color: var(--accent); }
.widget .rank-item .meta { font-size: 11.5px; margin-top: 5px; }

.widget--tags { display: flex; flex-wrap: wrap; gap: 8px; }
.widget--tags .tag { text-transform: none; letter-spacing: 0; font-size: 12.5px; }

/* Related */
.related { padding: 44px 0 60px; border-top: 1px solid var(--line); }

/* ---------- 15. Category page ---------- */
.page-head {
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  padding-left: 18px;
  position: relative;
}
.page-head h1::before {
  content: "";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 74%; background: var(--cat-accent, var(--accent));
  border-radius: 3px;
}
.page-head p {
  margin: 14px 0 0 18px;
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
}
.page-head .count {
  margin-left: 18px; margin-top: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2);
}

/* ---------- 16. Static / legal pages ---------- */
.static-page { padding: 44px 0 64px; }
.static-page__inner { max-width: var(--wrap-narrow); margin: 0 auto; }
.static-page h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  margin-bottom: 14px;
}
.static-page .lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.static-page .prose { max-width: none; font-size: 17px; }
.static-page .updated {
  font-size: 12.5px; color: var(--muted);
  letter-spacing: 0.04em; margin-bottom: 26px;
}

.contact-cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px; margin: 30px 0;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--bg-alt);
}
.contact-card h3 {
  font-size: 16px; font-family: var(--sans); font-weight: 800;
  margin-bottom: 8px;
}
.contact-card p { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-soft); }
.contact-card a { color: var(--accent); font-weight: 600; word-break: break-word; }
.contact-card a:hover { text-decoration: underline; }

.form-grid { display: grid; gap: 16px; margin-top: 26px; }
.form-field label {
  display: block; font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 22, 28, 0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; border: 0;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.2s var(--ease);
  justify-self: start;
}
.btn-primary:hover { background: var(--accent); }
.form-status { font-size: 14px; margin-top: 4px; }
.form-status.ok { color: #1e7a48; }

/* ---------- 17. Empty / misc ---------- */
.empty {
  padding: 60px 0; text-align: center; color: var(--muted);
}
.empty h2 { font-size: 24px; margin-bottom: 10px; color: var(--ink); }
.empty a { color: var(--accent); font-weight: 600; }

.updated-note {
  font-size: 13px;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 14px;
  margin: 26px 0;
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .rail { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .trend { grid-template-columns: repeat(3, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { position: static; }
  .newsletter__inner { grid-template-columns: 1fr; gap: 22px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .topbar__date { display: none; }
  .topbar__right { gap: 14px; margin-left: auto; }

  .masthead__inner { padding: 14px 0; }
  .btn-sub { display: none; }

  .nav__toggle { display: inline-flex; }
  .nav__inner { padding: 6px 0; align-items: center; justify-content: space-between; }
  .nav__list {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 6px 0;
    display: none;
  }
  .nav__list.is-open { display: flex; }
  .nav__list a { padding: 13px 20px; }
  .nav__list a::after { display: none; }
  .nav { position: relative; }

  .ticker__track { animation-duration: 28s; gap: 30px; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 26px; }
  .trend { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 18px; }
  .section { padding: 34px 0; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .article-head h1 { font-size: 30px; }
  .prose { font-size: 17px; }
}

@media (max-width: 480px) {
  .brand__mark { width: 40px; height: 40px; flex-basis: 40px; font-size: 17px; }
  .brand__text h1 { font-size: 20px; }
  .brand__text span { font-size: 10px; letter-spacing: 0.1em; }
  .trend { grid-template-columns: 1fr; }
  .rail__item { grid-template-columns: 1fr 74px; gap: 12px; }
  .rail__item img { width: 74px; height: 58px; }
  .row-item { grid-template-columns: 1fr 84px; gap: 12px; }
  .row-item img { width: 84px; height: 62px; }
  .newsletter form { flex-direction: column; }
  .author-box { grid-template-columns: 1fr; }
  .article-layout { padding-bottom: 40px; }
}

/* ---------- 19. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 20. Print ---------- */
@media print {
  .topbar, .masthead__tools, .nav, .ticker, .newsletter, .footer, .sidebar, .share { display: none !important; }
  body { font-size: 12pt; }
}