:root {
  --bg-1: #f4efe7;
  --bg-2: #e9dfd0;
  --paper: rgba(255, 252, 247, 0.88);
  --ink: #1c1917;
  --muted: #6d6258;
  --line: rgba(120, 95, 76, 0.18);
  --accent: #9b3d1f;
  --accent-soft: #f1d3c7;
  --accent-2: #2d6a73;
  --shadow: 0 18px 45px rgba(71, 48, 31, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(155, 61, 31, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(45, 106, 115, 0.10), transparent 24%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

img { max-width: 100%; display: block; }
a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-header-shell,
.site-footer-shell,
.page-shell {
  width: min(860px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header-shell { padding-top: 22px; }
.site-footer-shell {
  margin-top: 20px;
  padding-bottom: 18px;
}
.page-shell { padding: 28px 0 56px; }

.site-header-bar,
.site-footer-bar,
.article-header,
.article-main,
.info-card {
  background: var(--paper);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.site-header-bar,
.site-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
}

.site-header-bar:hover,
.site-footer-bar:hover,
.article-header:hover,
.article-main:hover {
  box-shadow: 0 20px 42px rgba(71, 48, 31, 0.12);
}

.site-brand {
  color: var(--ink);
  text-decoration: none;
}

.site-brand strong {
  display: inline-block;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  transition: color 0.18s ease;
}

.site-brand:hover strong { color: var(--accent); }

.site-nav,
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav a,
.site-footer-links a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.site-nav a:hover,
.site-footer-links a:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

.article-header {
  padding: 22px 22px 24px;
  margin-bottom: 20px;
}

.article-main { padding: 24px; }

.share-fab {
  position: fixed;
  top: 120px;
  right: 36px;
  z-index: 50;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45, 106, 115, 0.22);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.92);
  color: var(--accent-2);
  box-shadow: 0 12px 28px rgba(71, 48, 31, 0.10);
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  backdrop-filter: blur(10px);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.share-fab:hover {
  transform: translateY(-1px);
  border-color: var(--accent-2);
  background: rgba(45, 106, 115, 0.10);
  box-shadow: 0 16px 32px rgba(71, 48, 31, 0.12);
}

.share-fab:focus-visible {
  outline: 2px solid rgba(45, 106, 115, 0.35);
  outline-offset: 2px;
}

.share-fab--done {
  color: var(--accent);
  border-color: rgba(155, 61, 31, 0.22);
  background: rgba(155, 61, 31, 0.08);
}

.header-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

.header-art { display: flex; }

.header-art-figure {
  position: relative;
  margin: 0;
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(155, 61, 31, 0.06), rgba(45, 106, 115, 0.06));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: riseIn 0.8s ease both;
}

.header-art-figure:hover,
.hero-image img:hover,
.inline-image img:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(71, 48, 31, 0.10);
}

.header-art-figure img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.header-art-figure figcaption {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 0;
}

.eyebrow,
.side-label,
.meta,
figcaption {
  color: var(--muted);
}

.eyebrow,
.side-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
}

.article-header h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin: 10px 0 14px;
  max-width: 13ch;
  color: var(--accent);
}

.standfirst {
  max-width: 62ch;
  font-size: 1.18rem;
  line-height: 1.6;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.92rem;
}

.meta span {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  letter-spacing: 0.01em;
}

.hero-image,
.inline-image,
.sources-block,
.content-block,
blockquote,
.info-strip,
.community-bar,
.closing-note {
  margin: 0 0 28px;
}

.hero-image img,
.inline-image img {
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

figcaption {
  font-size: 0.9rem;
  margin-top: 10px;
}

.article-main p,
.article-main li {
  font-size: 1.08rem;
  line-height: 1.78;
  text-wrap: pretty;
}

.lead,
.content-block p {
  text-align: justify;
  hyphens: auto;
}

.lead {
  font-size: 1.24rem;
  line-height: 1.75;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

.content-block h2,
.sources-block h2 {
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  position: relative;
}

.content-block h2::after,
.sources-block h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

blockquote {
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(155, 61, 31, 0.10), rgba(45, 106, 115, 0.10));
  border: 1px solid var(--line);
  font-size: 1.22rem;
  line-height: 1.7;
}

.info-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-card {
  position: relative;
  padding: 18px;
  overflow: hidden;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(71, 48, 31, 0.10);
  border-color: rgba(120, 95, 76, 0.28);
}

.info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.info-card:nth-child(1) { animation: riseIn 0.72s ease both; }
.info-card:nth-child(2) { animation: riseIn 0.82s ease both; }

.side-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.info-card:first-child .side-label {
  background: rgba(155, 61, 31, 0.12);
  color: var(--accent);
}

.info-card:last-child .side-label {
  background: rgba(45, 106, 115, 0.12);
  color: var(--accent-2);
}

.info-card p:last-child,
.info-card ul:last-child,
.info-card ul { margin-bottom: 0; }

.community-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(45, 106, 115, 0.08), rgba(255,255,255,0.68));
  box-shadow: 0 10px 26px rgba(71, 48, 31, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sources-block {
  margin-bottom: 36px;
}

.community-bar:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(71, 48, 31, 0.10);
  border-color: rgba(120, 95, 76, 0.28);
}

.community-bar__eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

.community-bar h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.community-bar__copy {
  display: grid;
  gap: 4px;
}

.community-bar__copy p:last-child {
  margin-bottom: 0;
}

.community-bar__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.community-bar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(45, 106, 115, 0.22);
  border-radius: 999px;
  background: rgba(45, 106, 115, 0.08);
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.community-bar__link:hover {
  transform: translateY(-1px);
  border-color: var(--accent-2);
  background: rgba(45, 106, 115, 0.12);
  box-shadow: 0 10px 22px rgba(71, 48, 31, 0.08);
}

.closing-note {
  padding: 0 2px;
}

.closing-note p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.sources {
  margin: 0;
  padding-left: 28px;
}

.sources li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.sources li::marker {
  color: var(--accent);
  font-weight: 700;
}

.site-footer-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer-bar strong { color: var(--ink); }

.reveal { animation: riseIn 0.65s ease both; }
.reveal:nth-child(2) { animation-delay: 0.06s; }
.reveal:nth-child(3) { animation-delay: 0.12s; }
.reveal:nth-child(4) { animation-delay: 0.18s; }
.reveal:nth-child(5) { animation-delay: 0.24s; }
.reveal:nth-child(6) { animation-delay: 0.30s; }

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .share-fab {
    top: auto;
    bottom: 24px;
    right: 24px;
  }
}

@media (max-width: 760px) {
  .page-shell { width: min(100%, calc(100% - 20px)); }

  .article-header,
  .article-main { padding: 20px; }

  .article-header h1 { max-width: none; }

  .header-visual,
  .info-strip,
  .community-bar { grid-template-columns: 1fr; }

  .header-art-figure img { min-height: 220px; }

  .site-header-bar,
  .site-footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-fab {
    width: 48px;
    height: 48px;
    right: 18px;
    bottom: 18px;
  }
}

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