:root {
  --bg: #f5f6f5;
  --bg-soft: #edf2ef;
  --paper: #ffffff;
  --paper-soft: #f5f8f6;
  --ink: #101715;
  --ink-soft: #34423d;
  --muted: #586660;
  --line: #0a382d;
  --line-soft: #cad6d1;
  --accent: #073b2f;
  --accent-soft: #e8f1ed;
  --gold: #c99316;
  --gold-bright: #dfa91f;
  --gold-soft: #f7df9a;
  --quote: #f3f7f5;
  --shadow-soft: rgba(5, 44, 35, .14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Barlow, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.site-high-contrast {
  --bg: #ecefec;
  --line: #001c15;
  --accent: #002a20;
}

.site-bg {
  display: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.text-shell,
.text-footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.text-shell {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(230px, 300px);
  gap: 34px;
  align-items: start;
  padding: 46px 0 72px;
}

.text-article {
  min-width: 0;
}

.text-hero,
.article-body,
.article-footer,
.text-sidebar-card {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--line);
}

.text-hero {
  overflow: hidden;
  margin-bottom: 28px;
}

.text-hero-copy {
  padding: clamp(28px, 5vw, 50px);
}

.kicker,
.sidebar-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  font: 800 .78rem/1 Barlow, sans-serif;
  letter-spacing: .14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  max-width: 14ch;
  color: var(--accent);
  font-family: "Fugaz One", Barlow, sans-serif;
  font-size: clamp(2.35rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.subtitle {
  max-width: 680px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  line-height: 1.62;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 700;
}

.meta-list li + li::before {
  content: "•";
  margin-right: 14px;
  color: var(--gold);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--gold-bright);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
}

.text-cover {
  margin: 0;
  border-top: 2px solid var(--line);
  background: var(--paper-soft);
}

.text-cover img {
  width: 100%;
  max-height: 470px;
  object-fit: cover;
}

.text-cover figcaption {
  padding: 11px 16px 13px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

.article-body {
  padding: clamp(28px, 5vw, 52px);
}

.article-body > * {
  max-width: 700px;
}

.article-body p,
.article-body li {
  color: var(--ink);
  font-size: clamp(1.06rem, 1.45vw, 1.18rem);
  line-height: 1.78;
}

.article-body p {
  margin-bottom: 1.25em;
}

.article-body h2 {
  margin: 1.55em 0 .65em;
  color: var(--accent);
  font-family: "Fugaz One", Barlow, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}

.article-body h3 {
  margin: 1.5em 0 .55em;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.article-body a,
.text-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body a:hover,
.article-body a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--gold);
}

.article-body blockquote {
  max-width: 700px;
  margin: 1.8em 0;
  padding: 20px 22px;
  border: 2px solid var(--line-soft);
  border-left: 6px solid var(--gold-bright);
  border-radius: 0 16px 16px 0;
  background: var(--quote);
  color: var(--ink-soft);
}

.article-body blockquote p {
  margin-bottom: .8em;
  color: inherit;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.7;
}

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

.article-body hr {
  max-width: 100%;
  margin: 34px 0;
  border: 0;
  border-top: 2px solid var(--line-soft);
}

.article-body figure {
  max-width: 100%;
  margin: 28px 0;
}

.article-body figure img {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--paper-soft);
}

.article-body figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: .92rem;
}

.article-footer {
  margin-top: 28px;
  padding: 24px;
  color: var(--ink-soft);
}

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

.text-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 22px;
}

.text-sidebar-card {
  padding: 20px;
  box-shadow: 7px 7px 0 var(--line);
}

.text-sidebar-card h2,
.text-sidebar-card h3 {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: "Fugaz One", Barlow, sans-serif;
  font-size: 1.08rem;
  line-height: 1.15;
}

.text-sidebar-card p,
.text-sidebar-card li {
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.55;
}

.text-sidebar-card ul,
.text-sidebar-card ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.text-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
  padding: 25px 27px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--line);
  font-size: .95rem;
}

.text-footer p {
  max-width: 760px;
  margin: 0;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
}

@media (max-width: 900px) {
  .text-shell {
    display: block;
  }

  .text-sidebar {
    position: static;
    margin-top: 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .text-shell,
  .text-footer {
    width: min(100% - 24px, 1180px);
  }

  .text-shell {
    padding-top: 34px;
  }

  .text-hero,
  .article-body,
  .article-footer,
  .text-sidebar-card,
  .text-footer {
    border-radius: 15px;
    box-shadow: 5px 5px 0 var(--line);
  }

  .text-hero-copy,
  .article-body {
    padding: 24px 20px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 12vw, 3.2rem);
  }

  .meta-list {
    display: grid;
    gap: 7px;
  }

  .meta-list li + li::before {
    content: none;
    margin: 0;
  }

  .text-cover img {
    max-height: 320px;
  }

  .text-sidebar {
    grid-template-columns: 1fr;
  }

  .text-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
