:root {
  /* Bunchfeed.com–inspired tokens (blacfarm content, same UI language) */
  --ink: #15171a;
  --black: #15171a;
  --body: #5c6a78;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-hero: #f8f9fc;
  --gray-fill: #f3f4f6;
  --line: #e5e7eb;
  /* Bunchfeed primary blue + violet lift */
  --accent: #2d68f8;
  --accent-soft: #eff6ff;
  --accent-2: #625df5;
  --accent-deep: #1d4da8;
  --brand-green: #354b35;
  --btn-bg: #15171a;
  --btn-hover: #292d32;
  --footer-bg: #000113;
  --footer-deep: #000113;
  --footer-text: #ffffff;
  --footer-muted: rgba(255, 255, 255, 0.65);
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-pill: 6px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --danger: #dc2626;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.site-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  line-height: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.logo-img {
  display: block;
  height: clamp(40px, 10vw, 80px);
  width: auto;
  max-width: min(720px, 96vw);
  object-fit: contain;
  object-position: left center;
}

.admin-bar .logo-brand {
  padding: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.admin-bar .logo-img {
  height: clamp(32px, 6vw, 52px);
  max-width: min(520px, 72vw);
}

.logo-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--btn-bg);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease,
    opacity 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--line);
  background: var(--gray-fill);
}

.btn-primary {
  background: var(--btn-bg);
  color: #ffffff;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--btn-hover);
  opacity: 0.95;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-danger {
  background: transparent;
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  color: var(--danger);
}

.btn-danger:hover {
  background: color-mix(in srgb, var(--danger) 8%, transparent);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: flex-end;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    position: fixed;
    z-index: 30;
    inset: 0 0 auto 0;
    top: 58px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    display: none;
    box-shadow: var(--shadow);
    flex: unset;
    justify-content: flex-start;
  }

  .nav-wrap.open {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions .btn {
    width: 100%;
  }
}

main {
  flex: 1;
}

.hero {
  padding: 3.25rem 0 2.5rem;
}

.hero-bunch {
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 50%),
    radial-gradient(ellipse 70% 55% at 0% 100%, color-mix(in srgb, var(--accent-soft) 55%, transparent), transparent 52%),
    var(--bg);
}

.hero-bunch .hero-grid {
  align-items: center;
}

.hero-copy {
  max-width: 34rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-title-icon {
  width: clamp(2rem, 5vw, 2.75rem);
  height: clamp(2rem, 5vw, 2.75rem);
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 4px 14px rgba(45, 104, 248, 0.25);
  flex-shrink: 0;
}

.hero-lede {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  max-width: 42ch;
  margin: 0 0 1.75rem;
  color: var(--body);
}

.lede-accent {
  color: rgba(21, 23, 26, 0.45);
  font-weight: 500;
}

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0;
}

.pill-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pill-hero:hover {
  border-color: #d1d5db;
  box-shadow: var(--shadow);
}

.pill-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  background: var(--btn-bg);
  color: #ffffff;
}

.hero-stack {
  position: relative;
  min-height: 400px;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.hero-stack-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transform: rotate(calc(var(--stack-depth) * 3deg)) translate(calc(var(--stack-depth) * 12px), calc(var(--stack-depth) * 6px));
  z-index: calc(10 - var(--stack-depth));
  pointer-events: auto;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    z-index 0s;
}

.hero-stack-card.is-front {
  transform: rotate(0deg) translate(0, 0);
  z-index: 20;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.hero-stack-thumb {
  border-radius: 12px;
  overflow: hidden;
  height: 180px;
  margin-bottom: 0.75rem;
  background: var(--line);
}

.hero-stack-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-thumb-gradient {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.hero-stack-body h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-stack-body p {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-stack-body time {
  font-size: 0.78rem;
  color: var(--muted);
}

.section-title-lg {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.popular-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .popular-layout {
    grid-template-columns: 1fr;
  }
}

.popular-featured-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.popular-featured-link:hover h3 {
  color: var(--accent);
}

.popular-featured-thumb {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}

.popular-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-featured h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  line-height: 1.25;
}

.popular-excerpt {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.popular-side-item a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.popular-side-item a:hover h3 {
  color: var(--accent);
}

.popular-side-thumb {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  width: 140px;
}

.popular-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-side-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-side-body p {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.tag-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  background: var(--gray-fill);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .popular-side-item a {
    grid-template-columns: 100px 1fr;
    gap: 0.75rem;
  }

  .popular-side-thumb {
    width: 100px;
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

.section-tight {
  padding-top: 0;
}

.browse-lede {
  margin: 0 0 1rem;
  color: var(--muted);
  text-align: center;
}

.browse-pills {
  justify-content: center;
}

.browse-results {
  margin-top: 1.25rem;
}

.browse-all-wrap {
  text-align: center;
  margin-top: 1.25rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.subscribe-section {
  margin-bottom: 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 34ch;
}

.hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--muted);
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.pill:hover {
  border-color: #d1d5db;
  color: var(--ink);
}

.pill.active {
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: color-mix(in srgb, var(--accent-deep) 70%, black);
  color: #f4f7f4;
}

.pills button.pill {
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.card-post[hidden] {
  display: none !important;
}

.section {
  padding: 2.5rem 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

.link-quiet {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.link-quiet:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.grid-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .grid-posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-posts {
    grid-template-columns: 1fr;
  }
}

.card-post {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.card-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-thumb {
  height: 140px;
  background-size: cover;
}

.card-thumb-photo {
  padding: 0;
  background: var(--line);
}

.card-thumb-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-post h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}

.card-post p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.subscribe {
  margin: 2rem 0 3rem;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--footer-bg);
  color: var(--footer-text);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 48px rgba(0, 1, 19, 0.35);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 720px) {
  .subscribe {
    grid-template-columns: 1fr;
  }
}

.subscribe h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  margin: 0 0 0.5rem;
  color: var(--footer-text);
  font-weight: 700;
}

.subscribe p {
  margin: 0;
  color: var(--footer-muted);
  max-width: 48ch;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.subscribe-form input {
  min-width: 200px;
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--footer-text);
  padding: 0.65rem 1rem;
}

.subscribe-form input::placeholder {
  color: var(--footer-muted);
}

.subscribe-form .btn-primary {
  background: #ffffff;
  color: var(--btn-bg);
}

.subscribe-form .btn-primary:hover {
  background: var(--gray-fill);
  opacity: 1;
}

.form-msg {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.form-msg.ok {
  color: #bae6fd;
}

.form-msg.err {
  color: #f0b4b4;
}

.site-footer {
  border-top: none;
  padding: 4rem 0 3rem;
  margin-top: auto;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.site-footer .logo-mark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--footer-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.site-footer .logo {
  color: var(--footer-text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--footer-muted);
}

.footer-links a {
  color: var(--footer-text);
}

.footer-links a:hover {
  color: #ffffff;
}

.site-footer .footer-copy {
  color: var(--footer-muted);
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin: 0 0 0.5rem;
  font-weight: 800;
  color: var(--ink);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.article-hero {
  padding: 2rem 0 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}

.article-cover {
  height: min(420px, 55vw);
  border-radius: var(--radius-lg);
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
}

.article-cover-photo {
  padding: 0;
  overflow: hidden;
  background: var(--line);
}

.article-cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prose {
  max-width: 65ch;
  margin: 0 auto 3rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.prose p {
  margin: 0 0 1rem;
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}

.search-bar input {
  flex: 1;
  min-width: 220px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.65rem 1rem;
  background: var(--bg-elevated);
}

.empty {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.flash {
  max-width: 1120px;
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.flash.ok {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid rgba(45, 104, 248, 0.2);
}

.flash.err {
  background: #ffe4e4;
  color: var(--danger);
  border: 1px solid #f5c2c2;
}

.form-stack {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-stack label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-stack input,
.form-stack textarea,
.form-stack select {
  font: inherit;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.form-stack textarea {
  min-height: 200px;
  resize: vertical;
}

.form-error {
  color: var(--danger);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.inline-form {
  display: inline;
}

.legal-html p {
  margin: 0 0 1rem;
}

.article-figure {
  margin: 1.5rem 0;
}

.article-figure img {
  width: 100%;
  border-radius: var(--radius-md);
}
