/* =====================================================================
   Permata — Science & Technology
   Global stylesheet — Western editorial design system
   Mobile-first, lightly progressive.
   ===================================================================== */

/* ----------------------------- Tokens ----------------------------- */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --paper: #f6f5f2;
  --ink: #14171a;
  --ink-soft: #3c434c;
  --muted: #6b727d;
  --line: #e6e4df;
  --line-strong: #d7d4cd;
  --accent: #e1462c;
  --accent-soft: #fdece7;
  --accent-ink: #ffffff;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 18, 22, 0.06);
  --shadow-md: 0 8px 24px -12px rgba(15, 18, 22, 0.22);
  --shadow-lg: 0 24px 60px -28px rgba(15, 18, 22, 0.35);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia,
    "Times New Roman", serif;

  --wrap: 1200px;
  --wrap-narrow: 720px;
  --gutter: 20px;

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

[data-theme="dark"] {
  --bg: #0e1013;
  --surface: #16181d;
  --paper: #14161b;
  --ink: #f1f2f4;
  --ink-soft: #c3c8cf;
  --muted: #8b929d;
  --line: #262a31;
  --line-strong: #33383f;
  --accent: #ff5c3d;
  --accent-soft: #2a1a17;
  --accent-ink: #0e1013;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 28px 70px -30px rgba(0, 0, 0, 0.8);
}

/* ----------------------------- Reset ----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

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

img {
  max-width: 100%;
  display: block;
  height: auto;
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

/* --------------------------- Typography -------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.serif {
  font-family: var(--font-serif);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------------------------- Layout ----------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  width: 100%;
  max-width: var(--wrap-narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 56px;
}

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

.section-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

.section-head .more {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.section-head .more:hover {
  color: var(--accent);
}

/* ---------------------------- Header ----------------------------- */
.topbar {
  background: var(--ink);
  color: #e9e9ea;
  font-size: 13px;
}

[data-theme="dark"] .topbar {
  background: #05060a;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 38px;
}

.topbar__date {
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.topbar__tag {
  opacity: 0.85;
  white-space: nowrap;
}

.topbar__tag b {
  color: var(--accent);
  font-weight: 700;
}

.topbar__social {
  display: none;
  gap: 14px;
  align-items: center;
}

.topbar__social a {
  opacity: 0.7;
  transition: opacity 0.2s var(--ease);
}

.topbar__social a:hover {
  opacity: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand__mark {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__mark span {
  color: var(--accent);
}

.brand__tag {
  display: none;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
}

.nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

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

.nav a.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav + .header__actions {
  margin-left: 0;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.icon-btn:hover {
  background: var(--paper);
  color: var(--ink);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.menu-btn {
  display: grid;
}

/* ------------------------- Mobile drawer ------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  pointer-events: none;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.55);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(86vw, 360px);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  transform: translateX(100%);
  transition: transform 0.34s var(--ease);
  overflow-y: auto;
}

.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer.is-open .drawer__scrim {
  opacity: 1;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
}

.drawer__nav a {
  padding: 13px 4px;
  font-size: 18px;
  font-family: var(--font-serif);
  border-bottom: 1px solid var(--line);
}

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

.drawer__label {
  margin: 26px 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.drawer__social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

/* ---------------------------- Search ----------------------------- */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: start center;
  padding-top: 12vh;
  visibility: hidden;
  pointer-events: none;
}

.search-panel__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.search-panel.is-open {
  visibility: visible;
  pointer-events: auto;
}

.search-panel.is-open .search-panel__scrim {
  opacity: 1;
}

.search-box {
  position: relative;
  width: min(92vw, 640px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}

.search-panel.is-open .search-box {
  transform: translateY(0);
  opacity: 1;
}

.search-box__field {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.search-box__field svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
  flex-shrink: 0;
}

.search-box__field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font-size: 20px;
  font-family: var(--font-serif);
}

.search-results {
  margin-top: 12px;
  max-height: 54vh;
  overflow-y: auto;
}

.search-result {
  display: flex;
  gap: 14px;
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s var(--ease);
}

.search-result:hover {
  background: var(--paper);
}

.search-result img {
  width: 74px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.search-result h4 {
  font-size: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.35;
}

.search-result p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.search-empty {
  padding: 26px 6px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

/* ----------------------------- Hero ------------------------------ */
.hero {
  padding-top: 34px;
  padding-bottom: 8px;
}

.hero__grid {
  display: grid;
  gap: 26px;
}

.hero__lead {
  display: block;
  position: relative;
}

.hero__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  background: var(--paper);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.hero__lead:hover .hero__media img {
  transform: scale(1.035);
}

.hero__body {
  padding-top: 20px;
}

.hero__title {
  font-size: clamp(1.85rem, 5.4vw, 2.9rem);
  margin: 10px 0 12px;
}

.hero__excerpt {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 62ch;
}

.hero__side {
  display: grid;
  gap: 20px;
}

.hero__side .mini + .mini {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.mini {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: start;
}

.mini__media {
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
  background: var(--paper);
}

.mini__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.mini:hover .mini__media img {
  transform: scale(1.06);
}

.mini__title {
  font-size: 17px;
  margin-top: 6px;
}

.mini__meta {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

/* --------------------------- Cards ------------------------------- */
.grid {
  display: grid;
  gap: 30px 26px;
  grid-template-columns: 1fr;
}

.card {
  display: flex;
  flex-direction: column;
}

.card__media {
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 10;
  background: var(--paper);
  margin-bottom: 15px;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.045);
}

.card__title {
  font-size: 1.32rem;
  margin: 8px 0 8px;
  transition: color 0.2s var(--ease);
}

.card:hover .card__title {
  color: var(--accent);
}

.card__excerpt {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0 0 12px;
}

.card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* Category chip */
.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 9px;
  border-radius: 999px;
}

.chip--plain {
  color: var(--muted);
  background: var(--paper);
}

/* ------------------------- Category bar -------------------------- */
.filterbar {
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.filterbar__inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 12px;
  scrollbar-width: none;
}

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

.filter-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* --------------------------- Feature ----------------------------- */
.feature {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.feature__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper);
}

.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__body {
  padding: 28px;
}

.feature__title {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  margin: 12px 0 12px;
}

.feature__excerpt {
  color: var(--muted);
  margin: 0 0 18px;
}

/* --------------------------- Newsletter -------------------------- */
.cta {
  margin-block: 64px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #f3f3f4;
  padding: 44px 30px;
  display: grid;
  gap: 22px;
  text-align: center;
}

[data-theme="dark"] .cta {
  background: #1b1e24;
  border: 1px solid var(--line);
}

.cta h2 {
  color: inherit;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

.cta p {
  margin: 0 auto;
  max-width: 50ch;
  opacity: 0.78;
  font-size: 16px;
}

.cta form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 480px;
  margin-inline: auto;
  width: 100%;
}

.cta input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  outline: 0;
}

.cta input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.cta input:focus {
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--accent:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn--ink {
  background: var(--ink);
  color: var(--bg);
}

.btn--ink:hover {
  filter: opacity(0.88);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.cta__note {
  font-size: 12.5px;
  opacity: 0.6;
}

/* --------------------------- Footer ------------------------------ */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-top: 56px;
  margin-top: 40px;
}

.footer__grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}

.footer__brand p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 34ch;
  margin: 14px 0 0;
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 11px;
}

.footer ul a {
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color 0.18s var(--ease);
}

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

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

/* ------------------------ Page header (inner) -------------------- */
.page-head {
  padding-block: 46px 34px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-head h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  margin-bottom: 12px;
}

.page-head p {
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
  font-size: 17px;
}

.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.crumbs span {
  opacity: 0.5;
}

/* --------------------------- Article ----------------------------- */
.article {
  padding-top: 40px;
}

.article__head {
  max-width: var(--wrap-narrow);
  margin-inline: auto;
  text-align: center;
}

.article__title {
  font-size: clamp(2rem, 5.6vw, 3.1rem);
  margin: 16px 0 18px;
}

.article__dek {
  font-size: 19px;
  color: var(--muted);
  margin: 0 auto;
  max-width: 58ch;
}

.article__byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 12.5px;
}

.byline__text {
  text-align: left;
  font-size: 13.5px;
  line-height: 1.35;
}

.byline__text b {
  display: block;
  font-size: 14.5px;
}

.byline__text span {
  color: var(--muted);
}

.article__hero {
  max-width: 1000px;
  margin: 34px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}

.article__hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article__caption {
  max-width: var(--wrap-narrow);
  margin: 10px auto 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.article__body {
  max-width: var(--wrap-narrow);
  margin: 40px auto 0;
}

.article__body p {
  margin: 0 0 24px;
  font-size: 18.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.article__body > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  float: left;
  font-size: 3.6em;
  line-height: 0.82;
  font-weight: 600;
  padding: 6px 12px 0 0;
  color: var(--ink);
}

.article__body h2 {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  margin: 44px 0 18px;
}

.article__body ul {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.article__body ul li {
  position: relative;
  padding-left: 28px;
  font-size: 17.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.article__body ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

.article__body blockquote {
  margin: 34px 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--accent);
}

.article__body blockquote p {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 10px;
}

.article__body blockquote p::first-letter {
  float: none;
  font-size: inherit;
  padding: 0;
}

.article__body cite {
  font-style: normal;
  font-size: 13.5px;
  color: var(--muted);
}

.article__body figure {
  margin: 34px 0;
}

.article__body figure img {
  border-radius: var(--radius-md);
}

.article__body figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.tag {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  transition: all 0.18s var(--ease);
}

.tag:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.share span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-right: 4px;
}

.share button,
.share a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
  transition: all 0.18s var(--ease);
}

.share button:hover,
.share a:hover {
  background: var(--ink);
  color: var(--bg);
}

.share svg {
  width: 17px;
  height: 17px;
}

.author-box {
  margin-top: 44px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--paper);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.author-box .avatar {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.author-box h4 {
  font-family: var(--font-serif);
  font-size: 19px;
  margin-bottom: 3px;
}

.author-box .role {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.author-box p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.article-nav {
  display: grid;
  gap: 16px;
  margin-top: 44px;
  grid-template-columns: 1fr;
}

.article-nav a {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease);
}

.article-nav a:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.article-nav .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-nav h4 {
  font-size: 17px;
  margin-top: 8px;
}

.article-nav .next {
  text-align: right;
}

/* --------------------------- Prose (legal) ----------------------- */
.prose {
  padding-block: 48px 64px;
}

.prose .wrap-narrow > p,
.prose .wrap-narrow > ul,
.prose .wrap-narrow > ol {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
}

.prose h3 {
  font-size: 1.2rem;
  margin: 30px 0 12px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.prose ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.prose ul li {
  position: relative;
  padding-left: 24px;
}

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

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.updated {
  font-size: 13.5px;
  color: var(--muted);
  padding-bottom: 22px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

/* --------------------------- Contact ----------------------------- */
.contact-grid {
  display: grid;
  gap: 40px;
  padding-block: 48px 64px;
  grid-template-columns: 1fr;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.field label {
  font-size: 13.5px;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: 0;
  transition: border-color 0.18s var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
}

.info-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.info-card + .info-card {
  margin-top: 18px;
}

.info-card h3 {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card p,
.info-card a {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.info-card a {
  color: var(--accent);
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

.form-success {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 18px;
}

.form-success.is-visible {
  display: block;
}

/* ------------------------ Category hero -------------------------- */
.cat-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  padding-block: 40px 20px;
}

.cat-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease);
  background: var(--surface);
}

.cat-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cat-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.cat-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 14px;
}

.cat-card .count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------------------------- Utilities -------------------------- */
.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;
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}

.rich-intro {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------- Breakpoints ------------------------- */
@media (min-width: 640px) {
  .topbar__social {
    display: flex;
  }

  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cta {
    padding: 56px 44px;
  }

  .topbar__date {
    letter-spacing: 0.04em;
  }
}

@media (min-width: 900px) {
  body {
    font-size: 17.5px;
  }

  .nav {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .brand__tag {
    display: block;
  }

  .hero__grid {
    grid-template-columns: 1.62fr 1fr;
    gap: 40px;
    align-items: start;
  }

  .hero__side {
    padding-left: 40px;
    border-left: 1px solid var(--line);
    gap: 24px;
  }

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature {
    grid-template-columns: 1.25fr 1fr;
    align-items: stretch;
  }

  .feature__media {
    aspect-ratio: auto;
    height: 100%;
  }

  .feature__body {
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
  }

  .section {
    padding-block: 72px;
  }
}

@media (min-width: 1080px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}