:root {
  --gang-font: "OSR Blackletter", "OSR Fraktur", "Old English Text MT", "Cloister Black", "UnifrakturCook", fantasy;
}

@font-face {
  font-family: "OSR Blackletter";
  src: url("/assets/fonts/unifrakturcook-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OSR Fraktur";
  src: url("/assets/fonts/unifrakturmaguntia-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #bf9a4a;
  --gold-2: #e8cf8e;
  --black: #050404;
  --ink: #0b0a09;
  --panel: rgba(10, 9, 8, 0.82);
  --panel-2: rgba(22, 18, 12, 0.78);
  --cream: #f4e8c9;
  --muted: rgba(244, 232, 201, 0.72);
  --line: rgba(191, 154, 74, 0.26);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.46);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background:
    linear-gradient(180deg, rgba(5, 4, 4, 0.62), rgba(5, 4, 4, 0.98)),
    url("/assets/img/asphalt-texture.webp"),
    var(--black);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(191, 154, 74, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 154, 74, 0.03) 1px, transparent 1px),
    radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.78) 100%);
  background-size: 52px 52px, 52px 52px, cover;
  opacity: 0.86;
}

img,
svg {
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  color: var(--black);
  background: var(--gold);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.scroll-meter {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 4px;
  background: rgba(5, 4, 4, 0.7);
}

.scroll-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
}

.site-header {
  position: fixed;
  inset: 16px 20px auto;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(1120px, calc(100vw - 40px));
  margin-inline: auto;
  padding: 9px 12px;
  border: 1px solid rgba(191, 154, 74, 0.28);
  border-radius: var(--radius);
  color: var(--cream);
  background: rgba(5, 4, 4, 0.56);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-solid {
  border-color: rgba(191, 154, 74, 0.42);
  background: rgba(5, 4, 4, 0.9);
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.58);
}

.brand,
.header-action,
.button {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  color: var(--cream);
  font-family: var(--gang-font);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(191, 154, 74, 0.22));
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: rgba(244, 232, 201, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

.header-action,
.button {
  justify-content: center;
  gap: 10px;
  min-width: 154px;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 950;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.header-action,
.button.primary {
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 16px 42px rgba(191, 154, 74, 0.2);
}

.button.ghost {
  color: var(--cream);
  border: 1px solid rgba(191, 154, 74, 0.44);
  background: rgba(191, 154, 74, 0.08);
}

.button.wide {
  width: 100%;
}

.header-action:hover,
.button:hover {
  transform: translateY(-1px);
}

.button svg,
.header-action svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-vignette,
.street-layer {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -4;
  transform: translate3d(0, var(--hero-shift, 0px), 0) scale(var(--hero-scale, 1.06));
  transform-origin: center top;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-vignette {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 4, 4, 0.96) 0%, rgba(5, 4, 4, 0.8) 45%, rgba(5, 4, 4, 0.4) 100%),
    linear-gradient(180deg, rgba(5, 4, 4, 0.08) 0%, rgba(5, 4, 4, 0.95) 100%);
}

.street-layer {
  z-index: -2;
  opacity: 0.32;
  background-image:
    linear-gradient(115deg, transparent 0 47%, rgba(191, 154, 74, 0.28) 48% 49%, transparent 50%),
    radial-gradient(circle at 20% 24%, rgba(191, 154, 74, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 54%, rgba(244, 232, 201, 0.12) 0 1px, transparent 2px);
  background-size: 280px 280px, 150px 120px, 220px 160px;
  transform: translate3d(calc(var(--scroll-progress, 0) * -68px), calc(var(--scroll-progress, 0) * 48px), 0);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
  padding: 138px 0 82px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--gang-font);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  color: var(--cream);
  font-size: clamp(3rem, 7.8vw, 7.1rem);
  text-transform: none;
  text-shadow: 0 7px 0 rgba(5, 4, 4, 0.52), 0 24px 70px rgba(0, 0, 0, 0.72);
}

.hero-claim {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--gold);
  font-size: clamp(1.18rem, 2vw, 1.56rem);
  font-weight: 950;
}

.hero-copy {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-logo-card {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191, 154, 74, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at center, rgba(191, 154, 74, 0.18), transparent 54%),
    linear-gradient(135deg, rgba(191, 154, 74, 0.08), rgba(5, 4, 4, 0.68));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-logo-card::before {
  content: "OSR";
  position: absolute;
  inset: auto -18px 6px auto;
  color: rgba(191, 154, 74, 0.08);
  font-size: clamp(7rem, 12vw, 12rem);
  font-weight: 950;
  line-height: 0.8;
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(430px, 82%);
  height: auto;
  filter: drop-shadow(0 24px 54px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 30px rgba(191, 154, 74, 0.16));
}

.tag-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  width: min(280px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(191, 154, 74, 0.36);
  border-radius: var(--radius);
  color: var(--cream);
  background: rgba(5, 4, 4, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.44);
}

.tag-card span {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tag-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.18rem;
  line-height: 1.1;
}

.tag-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-band {
  position: relative;
  z-index: 5;
  margin-top: -24px;
  padding: 24px 0;
  border-block: 1px solid rgba(191, 154, 74, 0.22);
  background: rgba(5, 4, 4, 0.94);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.status-grid span {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(191, 154, 74, 0.2);
  border-radius: var(--radius);
  color: rgba(244, 232, 201, 0.68);
  background: rgba(191, 154, 74, 0.06);
}

.status-grid strong {
  display: block;
  color: var(--gold);
  font-family: var(--gang-font);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.05;
}

.section {
  position: relative;
  padding: clamp(80px, 10vw, 132px) 0;
}

.split-layout,
.events-layout,
.join-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
}

.split-layout.reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.section-copy {
  position: sticky;
  top: 116px;
}

.section-copy h2,
.section-heading h2,
.join-copy h2 {
  max-width: 820px;
  color: var(--cream);
  font-size: clamp(2.05rem, 5vw, 4.7rem);
}

.section-copy p:last-child,
.join-copy p {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.feature-list,
.rules-grid,
.team-board,
.event-rail {
  display: grid;
  gap: 14px;
}

.rules-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.rule-card,
.team-board article,
.event-card,
.join-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(24, 20, 13, 0.9), rgba(5, 4, 4, 0.86)),
    var(--panel);
  box-shadow: var(--shadow);
}

.feature-card::before,
.rule-card::before,
.team-board article::before,
.event-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.feature-card,
.rule-card,
.team-board article,
.event-card {
  min-height: 230px;
  padding: 22px;
}

.feature-card span,
.rule-card span,
.team-board span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.feature-card h3,
.rule-card h3,
.team-board h3,
.event-card h3,
.join-panel h3 {
  margin-top: 34px;
  color: var(--cream);
  font-size: clamp(1.36rem, 2.1vw, 2rem);
  line-height: 1.05;
}

.feature-card p,
.rule-card p,
.team-board p,
.event-card p,
.join-panel p {
  margin: 16px 0 0;
  color: var(--muted);
}

.rules-section {
  background:
    linear-gradient(180deg, rgba(5, 4, 4, 0.08), rgba(5, 4, 4, 0.62)),
    rgba(191, 154, 74, 0.05);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 40px;
}

.rule-card {
  min-height: 286px;
}

.rule-card:nth-child(even) {
  transform: translateY(26px);
}

.team-section {
  overflow: hidden;
}

.team-board {
  grid-template-columns: repeat(3, 1fr);
}

.team-board article {
  min-height: 320px;
}

.events-section {
  background:
    linear-gradient(180deg, rgba(5, 4, 4, 0.52), rgba(5, 4, 4, 0.08)),
    rgba(191, 154, 74, 0.04);
}

.events-layout {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

.event-rail {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.event-card time {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  font-weight: 950;
}

.join-section {
  color: var(--black);
  background:
    linear-gradient(135deg, rgba(232, 207, 142, 0.96), rgba(191, 154, 74, 0.92)),
    var(--gold);
}

.subpage-hero {
  position: relative;
  min-height: 72svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 140px 0 76px;
}

.subpage-hero::before,
.subpage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.subpage-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 4, 4, 0.96), rgba(5, 4, 4, 0.72)),
    url("/assets/img/gold-street-hero.webp");
  background-size: cover;
  background-position: center;
}

.subpage-hero::after {
  z-index: -1;
  background:
    radial-gradient(circle at 78% 30%, rgba(191, 154, 74, 0.24), transparent 30%),
    linear-gradient(180deg, transparent, rgba(5, 4, 4, 0.92));
}

.subpage-hero h1 {
  max-width: 900px;
}

.subpage-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.rules-page-section {
  background:
    linear-gradient(180deg, rgba(191, 154, 74, 0.05), rgba(5, 4, 4, 0.24)),
    transparent;
}

.rules-page-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
}

.rules-toc {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 4, 4, 0.74);
  box-shadow: var(--shadow);
}

.rules-toc span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rules-toc a {
  padding: 9px 10px;
  border: 1px solid rgba(191, 154, 74, 0.14);
  border-radius: 7px;
  color: rgba(244, 232, 201, 0.78);
  background: rgba(191, 154, 74, 0.05);
  font-weight: 800;
}

.rules-toc a:hover {
  color: var(--gold);
  border-color: rgba(191, 154, 74, 0.34);
}

.rules-chapters {
  display: grid;
  gap: 18px;
}

.rule-chapter {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(24, 20, 13, 0.92), rgba(5, 4, 4, 0.88)),
    var(--panel);
  box-shadow: var(--shadow);
}

.rule-chapter > span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rule-chapter h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4.4vw, 4rem);
}

.rule-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(191, 154, 74, 0.14);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(5, 4, 4, 0.32);
}

.rule-list strong {
  color: var(--cream);
}

.penalty-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(191, 154, 74, 0.34);
  border-radius: var(--radius);
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.penalty-card h3 {
  color: var(--black);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.penalty-card p {
  margin: 12px 0 0;
  color: rgba(5, 4, 4, 0.78);
  font-weight: 800;
}

.join-section .eyebrow,
.join-copy h2,
.join-copy p {
  color: var(--black);
}

.join-layout {
  align-items: center;
}

.join-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  color: var(--cream);
  background:
    radial-gradient(circle at 78% 18%, rgba(191, 154, 74, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(5, 4, 4, 0.97), rgba(21, 17, 11, 0.92)),
    var(--black);
}

.join-logo {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.62));
}

.join-panel > span {
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase;
}

.join-panel h3 {
  margin-top: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.join-actions {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.join-actions code {
  display: block;
  padding: 13px;
  border: 1px solid rgba(191, 154, 74, 0.3);
  border-radius: 7px;
  color: var(--gold);
  background: rgba(191, 154, 74, 0.08);
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 30px 0;
  color: rgba(244, 232, 201, 0.68);
  background: var(--black);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 800;
}

.reveal-panel {
  clip-path: inset(0 -16px var(--reveal-hidden, 100%) -16px round var(--radius));
  transform: translate3d(0, var(--reveal-y, 38px), 0);
  opacity: var(--reveal-opacity, 0.18);
  will-change: clip-path, transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-panel,
  .hero-media {
    clip-path: none;
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 1040px) {
  .rules-grid,
  .team-board,
  .event-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rule-card:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 900px) {
  :root {
    --container: min(100vw - 28px, 720px);
  }

  .site-header {
    inset: 12px 14px auto;
    width: calc(100vw - 28px);
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .header-action {
    min-width: 120px;
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.86rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 128px 0 64px;
  }

  h1 {
    font-size: clamp(2.4rem, 13vw, 5.1rem);
  }

  .hero-logo-card {
    min-height: 390px;
  }

  .status-grid,
  .split-layout,
  .split-layout.reverse,
  .events-layout,
  .join-layout,
  .rules-page-layout {
    grid-template-columns: 1fr;
  }

  .section-copy {
    position: static;
  }

  .rules-toc {
    position: static;
  }

  .section-copy h2,
  .section-heading h2,
  .join-copy h2 {
    font-size: clamp(1.9rem, 8vw, 3.4rem);
  }
}

@media (max-width: 620px) {
  .brand {
    font-size: 0.78rem;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .header-action svg {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .hero-logo-card {
    min-height: 330px;
  }

  .tag-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 28px);
    margin: 0 14px 14px;
  }

  .status-grid,
  .rules-grid,
  .team-board,
  .event-rail {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .rule-card,
  .team-board article,
  .event-card,
  .join-panel {
    padding: 20px;
  }

  .footer-inner {
    display: grid;
  }
}
