@font-face {
  font-family: "America Faster";
  src: url("/assets/fonts/America_Faster_V2.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/Helvetica_Neue_Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --blog-bg: #050505;
  --blog-panel: rgba(10, 10, 10, 0.74);
  --blog-panel-strong: rgba(18, 10, 10, 0.92);
  --blog-text: rgba(245, 238, 238, 0.97);
  --blog-muted: rgba(203, 178, 178, 0.78);
  --blog-accent: #ff2c2c;
  --blog-accent-deep: #5b0c0c;
  --blog-border: rgba(255, 42, 42, 0.22);
  --blog-border-strong: rgba(255, 42, 42, 0.42);
  --blog-glow: rgba(255, 0, 0, 0.17);
  --blog-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --blog-max: 1360px;
  --blog-article-max: 1488px;
  --blog-article-main: 820px;
  --blog-rail: 280px;
  --blog-article-offset: 436px;
  --blog-rail-top: 0px;
  --blog-back-overhang: 18px;
  --blog-copy: 860px;
}

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

html {
  scroll-behavior: smooth;
}

body.blog-page {
  margin: 0;
  min-height: 100vh;
  color: var(--blog-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 32, 32, 0.18), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.06), transparent 24%),
    linear-gradient(180deg, #080808 0%, #050505 48%, #080505 100%);
  overflow-x: hidden;
}

body.blog-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 2px,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(255, 255, 255, 0.02) 3px
    );
  pointer-events: none;
  z-index: 9999;
}

body.blog-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

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

.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;
}

.blog-shell,
.article-shell {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 122px 24px 88px;
}

.blog-shell {
  max-width: var(--blog-max);
}

.article-shell {
  max-width: var(--blog-article-max);
}

.blog-kicker,
.section-kicker,
.side-kicker {
  margin: 0 0 18px;
  color: rgba(255, 72, 72, 0.82);
  font-size: 0.82rem;
  font-family: "America Faster", Impact, sans-serif;
  letter-spacing: 0.28em;
  text-align: center;
  text-transform: uppercase;
}

.blog-title,
.article-title {
  margin: 0;
  color: #fff;
  font-family: "America Faster", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-wrap: balance;
  text-align: center;
}

.blog-title {
  font-size: clamp(3.2rem, 9vw, 4.7rem);
}

.article-title {
  font-size: clamp(3.0rem, 5vw, 4.2rem);
}

.blog-subtitle,
.article-dek,
.side-copy,
.blog-card-excerpt,
.article-copy,
.article-intro {
  color: var(--blog-muted);
  line-height: 1.8;
}

.blog-subtitle {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1.04rem;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  margin-top: 36px;
  align-items: stretch;
}

.blog-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%),
    var(--blog-panel);
  border: 1px solid var(--blog-border);
  border-radius: 28px;
  box-shadow: var(--blog-shadow);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.blog-panel-strong {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    var(--blog-panel-strong);
}

.blog-lead-link,
.blog-card-link,
.post-link {
  display: block;
  text-decoration: none;
}

.blog-lead-link:hover .blog-media img,
.blog-card-link:hover .blog-media img {
  transform: scale(1.04);
}

.blog-media {
  position: relative;
  overflow: hidden;
}

.blog-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.36)),
    linear-gradient(135deg, rgba(255, 0, 0, 0.08), transparent 55%);
}

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

.blog-lead-media {
  aspect-ratio: 16 / 9;
}

.blog-card-media {
  aspect-ratio: 16 / 10;
}

.blog-body,
.blog-card-body,
.article-body,
.side-card {
  padding: clamp(22px, 4vw, 34px);
}

.blog-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 16px;
  color: rgba(242, 219, 219, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.blog-meta span,
.article-meta span {
  position: relative;
}

.blog-card-title {
  margin: 0;
  color: #fff;
  font-family: "America Faster", Impact, sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.blog-card-excerpt {
  margin: 18px 0 0;
  font-size: 1rem;
}

.blog-side-card h2,
.side-title {
  margin: 0;
  font-family: "America Faster", Impact, sans-serif;
  font-size: 1.32rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.side-copy {
  margin: 16px 0 0;
  font-size: 0.98rem;
}

.blog-link-btn,
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 13px 18px;
  border: 1px solid var(--blog-border-strong);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 36, 36, 0.18), rgba(0, 0, 0, 0.65));
  font-family: "America Faster", Impact, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-back {
  gap: 8px;
  padding: 9px 14px;
  margin-top: 0;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.blog-link-btn:hover,
.article-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px var(--blog-glow);
  border-color: rgba(255, 82, 82, 0.68);
}

.blog-list-section {
  margin-top: 42px;
}

.blog-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.blog-mobile-latest {
  display: none;
}

.article-layout {
  position: relative;
  display: block;
  margin-top: 42px;
}

.article-main {
  overflow: hidden;
  width: min(100%, var(--blog-article-main));
  margin-inline: auto;
}

.article-left-rail,
.article-sidebar-wrap {
  position: absolute;
  width: var(--blog-rail);
}

.article-left-rail {
  top: var(--blog-rail-top);
  left: calc(50% - var(--blog-article-offset) - var(--blog-rail));
}

.article-sidebar-wrap {
  top: var(--blog-rail-top);
  left: calc(50% + var(--blog-article-offset));
}

.article-left-stack,
.article-sidebar {
  position: relative;
  width: 100%;
  display: grid;
  gap: 18px;
}

.article-left-stack .article-back {
  position: absolute;
  top: calc(var(--blog-back-overhang) * -1);
  left: 50%;
  z-index: 2;
  margin: 0;
  transform: translateX(-50%);
}

.lightboxable-image {
  cursor: zoom-in;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.lightboxable-image:hover {
  transform: scale(1.01);
  filter: brightness(1.04);
}

.lightboxable-image:focus-visible {
  outline: 2px solid rgba(255, 92, 92, 0.85);
  outline-offset: 4px;
}

.blog-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 34px);
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.blog-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.blog-lightbox__inner {
  position: relative;
  width: min(100%, 1220px);
  margin: 0;
}

.blog-lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 92, 92, 0.34);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.9);
  color: #fff;
  font-family: "America Faster", Impact, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.blog-lightbox__image-wrap {
  overflow: hidden;
  border: 1px solid rgba(255, 82, 82, 0.24);
  border-radius: 24px;
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.48);
}

.blog-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(84vh, 980px);
  margin: 0 auto;
}

.blog-lightbox__caption {
  margin: 12px auto 0;
  max-width: 72ch;
  color: rgba(242, 224, 224, 0.86);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
}

.article-cover {
  aspect-ratio: 16 / 9;
}

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

.article-copy {
  max-width: var(--blog-copy);
  font-size: 1.08rem;
  line-height: 2;
}

.article-copy p {
  margin: 0;
}

.article-copy p + p {
  margin-top: 1.6rem;
}

.article-copy h2 {
  text-align: center;
  font-family: "America Faster", Impact, sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin: 2.4rem 0 1.2rem;
}

.article-copy a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 78, 78, 0.88);
  text-underline-offset: 0.24rem;
}

.article-copy strong {
  color: #fff;
}

.side-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%),
    rgba(12, 12, 12, 0.88);
  border: 1px solid var(--blog-border);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.side-card dl {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.side-card dt {
  margin: 0 0 5px;
  color: rgba(255, 110, 110, 0.82);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.side-card dd {
  margin: 0;
  color: var(--blog-text);
  line-height: 1.6;
}

.post-link-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.post-link {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.post-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 79, 79, 0.54);
  background: rgba(255, 255, 255, 0.05);
}

.post-link-title {
  display: block;
  font-family: "America Faster", Impact, sans-serif;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.post-link-meta {
  display: block;
  margin-top: 8px;
  color: var(--blog-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 1280px) {
  .blog-hero-grid,
  .article-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .article-left-rail,
  .article-sidebar-wrap,
  .article-main {
    position: static;
    width: 100%;
    max-width: 100%;
  }

  .article-left-rail,
  .article-sidebar-wrap {
    margin-top: 26px;
  }

  .article-left-stack,
  .article-sidebar {
    position: static;
  }

  .article-left-stack .article-back {
    position: static;
    margin: 0 auto;
    transform: none;
  }

  .blog-lightbox__close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 760px) {
  .blog-shell,
  .article-shell {
    padding: 108px 18px 72px;
  }

  .blog-kicker,
  .section-kicker,
  .side-kicker {
    margin-bottom: 14px;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
  }

  .blog-lead-latest {
    display: none;
  }

  .blog-mobile-latest {
    display: block;
  }

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

  .blog-card-title {
    font-size: 1.9rem;
  }

  .article-body,
  .side-card {
    padding: 20px 18px;
  }

  .article-title {
    width: min(100%, 17.5ch);
    max-width: none;
    margin-inline: auto;
    font-size: clamp(1.12rem, 5.2vw, 1.38rem);
    line-height: 0.92;
    letter-spacing: 0.018em;
    text-align: center;
  }

  .article-meta {
    justify-content: center;
    gap: 8px 10px;
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .article-dek {
    margin-top: 20px;
    font-size: 0.98rem;
  }

  .article-copy {
    font-size: 0.98rem;
    line-height: 1.9;
  }

  .article-copy h2 {
    font-size: 1.35rem;
  }

  .blog-lightbox {
    padding: 14px;
  }

  .blog-lightbox__image-wrap {
    border-radius: 18px;
  }

  .blog-lightbox__close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 0.76rem;
  }

  .blog-lightbox__caption {
    font-size: 0.84rem;
  }
}

@media (max-width: 520px) {
  .article-title {
    width: min(100%, 16.4ch);
    max-width: none;
    font-size: clamp(1rem, 4.9vw, 1.2rem);
    line-height: 0.94;
    letter-spacing: 0.016em;
    text-align: center;
  }
}
