:root {
  --red: #c8102e;
  --ink: #1f242a;
  --muted: #606a73;
  --line: #d8dde3;
  --mist: #f4f6f8;
  --gold: #c8a45d;
  --teal: #007c89;
  --white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.6;
}

a {
  color: var(--red);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-top: 6px solid var(--red);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 3px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-weight: 800;
}

.brand small {
  display: block;
  max-width: 21rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: var(--red);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: min(68vh, 42rem);
  display: grid;
  align-items: center;
  padding: clamp(1rem, 4vw, 4rem);
  overflow: hidden;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(8, 12, 16, 0.72), rgba(8, 12, 16, 0.2) 58%, rgba(8, 12, 16, 0.08));
}

.hero-panel {
  position: relative;
  z-index: 1;
  width: min(44rem, 100%);
  padding: clamp(1.25rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-panel > p:not(.eyebrow) {
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.button-secondary {
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
}

.content-shell {
  width: min(74rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.markdown-content {
  display: flow-root;
}

.markdown-content h2 {
  margin: 2.6rem 0 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.1;
}

.markdown-content h3 {
  margin-top: 2rem;
  color: var(--teal);
  font-size: 1.35rem;
}

.markdown-content h4 {
  margin: 1.5rem 0 0.35rem;
  font-size: 1.05rem;
}

.markdown-content p,
.markdown-content li {
  color: #333a42;
}

.markdown-content ul,
.markdown-content ol {
  padding-left: 1.4rem;
}

.markdown-content li + li {
  margin-top: 0.45rem;
}

.markdown-content img {
  width: min(100%, 48rem);
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 14px 44px rgba(18, 28, 38, 0.12);
}

.markdown-content p:has(img) {
  margin: 0;
}

.markdown-content a {
  font-weight: 700;
}

.media-frame {
  position: relative;
  width: min(100%, 54rem);
  aspect-ratio: 16 / 9;
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.media-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.related {
  margin-bottom: 1.25rem;
}

.related a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.related a::before {
  content: "<";
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  border-top: 6px solid var(--red);
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  max-width: 44rem;
  margin: 0.4rem 0 0;
  color: #cbd3dc;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 34rem;
    align-items: end;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(8, 12, 16, 0.68), rgba(8, 12, 16, 0.15));
  }

  .hero-panel {
    padding: 1.25rem;
  }

  .site-footer {
    flex-direction: column;
  }
}
