@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Creepster";
  src: url("/fonts/creepster.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #090404;
  --surface: #100a0a;
  --card: #150d0d;
  --foreground: #eee6e4;
  --muted: #9b8b88;
  --border: #352726;
  --primary: #d40c1a;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(103, 12, 16, 0.16), transparent 34rem),
    var(--background);
  color: var(--foreground);
  font-family: "Geist", Arial, sans-serif;
  line-height: 1.65;
}

body::selection {
  background: var(--primary);
  color: #fff;
}

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

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.blog-grain {
  position: fixed;
  z-index: 100;
  inset: -80%;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    radial-gradient(circle, #fff 0 0.7px, transparent 0.8px),
    radial-gradient(circle, #fff 0 0.5px, transparent 0.7px);
  background-position: 0 0, 3px 4px;
  background-size: 7px 7px, 11px 11px;
}

.blog-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(53, 39, 38, 0.8);
  background: rgba(9, 4, 4, 0.88);
  backdrop-filter: blur(16px);
}

.blog-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Creepster", fantasy;
  font-size: 21px;
  letter-spacing: 0.09em;
}

.blog-brand span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.blog-header nav,
.blog-footer nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.blog-header nav a,
.blog-footer nav a {
  transition: color 0.2s ease;
}

.blog-header nav a:hover,
.blog-header nav a[aria-current="page"],
.blog-footer nav a:hover {
  color: var(--foreground);
}

.article-shell {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
  padding: 48px 0 110px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  color: #786967;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  white-space: nowrap;
}

.breadcrumbs a:hover {
  color: var(--foreground);
}

.article-hero {
  max-width: 840px;
  padding: 82px 0 48px;
}

.article-kicker {
  color: var(--primary);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.article-hero h1,
.blog-index-hero h1 {
  margin-top: 18px;
  font-family: "Creepster", fantasy;
  font-size: clamp(3.7rem, 9vw, 7.4rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 0.92;
  text-wrap: balance;
}

.article-intent {
  max-width: 720px;
  margin-top: 30px;
  color: #b8aaa8;
  font-size: 19px;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  color: #756765;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.article-image {
  overflow: hidden;
  border: 1px solid var(--border);
  background: #030202;
}

.article-image img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.article-image figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: #746765;
  font-size: 12px;
}

.editorial-note {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  margin: 42px 0 0;
  padding: 22px 24px;
  border-left: 2px solid var(--primary);
  background: rgba(212, 12, 26, 0.055);
}

.editorial-note strong {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-note p {
  color: #a99896;
  font-size: 14px;
}

.article-content,
.article-faq,
.article-sources {
  width: min(100%, 760px);
  margin: 0 auto;
}

.article-content section {
  padding-top: 66px;
}

.article-content h2,
.article-faq h2,
.article-sources h2,
.related-guides h2,
.blog-index > header h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  text-wrap: balance;
}

.article-content p {
  margin-top: 22px;
  color: #c1b5b3;
  font-size: 17px;
  line-height: 1.9;
}

.article-content p:first-of-type::first-letter {
  float: left;
  margin: 8px 10px 0 0;
  color: var(--foreground);
  font-family: "Creepster", fantasy;
  font-size: 3.7rem;
  line-height: 0.68;
}

.article-faq,
.article-sources,
.related-guides {
  margin-top: 88px;
  padding-top: 58px;
  border-top: 1px solid var(--border);
}

.article-faq h2,
.related-guides h2 {
  margin-top: 12px;
}

.article-faq details {
  border-bottom: 1px solid var(--border);
}

.article-faq details:first-of-type {
  margin-top: 28px;
  border-top: 1px solid var(--border);
}

.article-faq summary {
  padding: 22px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
}

.article-faq details p {
  padding: 0 0 24px;
  color: #a99896;
  line-height: 1.8;
}

.article-sources ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding-left: 20px;
  color: #a99896;
}

.article-sources a {
  text-decoration: underline;
  text-decoration-color: #6d4948;
  text-underline-offset: 4px;
}

.article-sources a:hover {
  color: var(--foreground);
}

.related-guides {
  width: min(100%, 920px);
}

.related-guides > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 30px;
  border: 1px solid var(--border);
  background: var(--border);
}

.related-card {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  padding: 25px;
  background: var(--surface);
  transition: background 0.2s ease;
}

.related-card:hover {
  background: #1a1010;
}

.related-card span {
  color: var(--primary);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-card strong {
  margin-top: 12px;
  font-size: 17px;
}

.related-card small {
  margin-top: auto;
  color: #817270;
}

.blog-index-hero {
  width: min(100% - 40px, 1160px);
  margin: 0 auto;
  padding: 120px 0 90px;
  border-bottom: 1px solid var(--border);
}

.blog-index-hero > p:last-of-type {
  max-width: 740px;
  margin-top: 30px;
  color: #b7aaa8;
  font-size: 19px;
  line-height: 1.75;
}

.blog-index-hero > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.blog-index-hero > div span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  color: #8e7f7c;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-index {
  width: min(100% - 40px, 1160px);
  margin: 0 auto;
  padding: 90px 0 120px;
}

.blog-index > header h2 {
  margin-top: 12px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  border-color: #6c4b49;
  transform: translateY(-3px);
}

.blog-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #030202;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.035);
}

.blog-card > div {
  display: flex;
  min-height: 288px;
  flex-direction: column;
  padding: 25px;
}

.blog-card > div > p {
  color: var(--primary);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-card h2 {
  margin-top: 14px;
  font-size: 21px;
  line-height: 1.2;
}

.blog-card h2 a:hover {
  color: #fff;
}

.blog-card > div > span {
  margin-top: 16px;
  color: #9d8d8a;
  font-size: 14px;
  line-height: 1.7;
}

.blog-card small {
  margin-top: auto;
  padding-top: 22px;
  color: #6f6260;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.blog-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 46px max(24px, calc((100vw - 1160px) / 2));
  border-top: 1px solid var(--border);
  color: #786a68;
}

.blog-footer p {
  max-width: 530px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .blog-header {
    height: 64px;
  }

  .blog-header nav {
    gap: 16px;
    font-size: 12px;
  }

  .blog-header nav a:first-child {
    display: none;
  }

  .article-shell,
  .blog-index-hero,
  .blog-index {
    width: min(100% - 28px, 920px);
  }

  .article-shell {
    padding-top: 30px;
  }

  .article-hero {
    padding: 60px 0 36px;
  }

  .article-hero h1,
  .blog-index-hero h1 {
    font-size: clamp(3.2rem, 18vw, 5.4rem);
  }

  .article-intent,
  .blog-index-hero > p:last-of-type {
    font-size: 16px;
  }

  .editorial-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .article-content p {
    font-size: 16px;
  }

  .related-guides > div,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-index-hero {
    padding: 90px 0 65px;
  }

  .blog-index {
    padding: 65px 0 90px;
  }

  .blog-card > div {
    min-height: 240px;
  }
}

