:root {
  --red: #d20a11;
  --crimson: #8a0000;
  --paper: #f4efea;
  --white: #ffffff;
  --black: #050505;
  --ink: #17110f;
  --magenta: #d600a8;
  --violet: #6d35ff;
  --gold: #e4a13a;
  --muted: #706762;
  --line: rgba(255, 255, 255, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --display: "Barbara", "Arial Black", Impact, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  background: var(--black);
}

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

a {
  color: inherit;
}

button,
a {
  letter-spacing: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.16));
  backdrop-filter: blur(12px);
}

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.site-mark__badge {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--display);
  background: var(--red);
  box-shadow: 0 0 22px rgba(228, 161, 58, 0.42);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  align-items: center;
  gap: 32px;
  padding: 120px 7vw 76px;
  color: var(--white);
}

.hero__stage,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__stage {
  object-fit: cover;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.44), rgba(5, 5, 5, 0.72)),
    linear-gradient(0deg, rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0) 36%);
}

.hero__content,
.hero__logo {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: 4.4rem;
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow:
    4px 4px 0 #000,
    0 0 26px rgba(214, 0, 168, 0.42);
}

h2 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1.04;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
  line-height: 1.2;
}

.hero__lead {
  max-width: 560px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.hero__actions,
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__actions {
  margin-bottom: 24px;
}

.hero__meta {
  max-width: 760px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero__meta li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
}

.hero__logo {
  align-self: end;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.42));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 0 22px rgba(214, 0, 168, 0.28);
}

.button--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(5, 5, 5, 0.32);
}

.button--small {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 0.88rem;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.section {
  padding: 86px 7vw;
  background: #fffaf7;
}

.section--paper {
  background:
    radial-gradient(circle at 18% 12%, rgba(214, 10, 17, 0.12), transparent 25%),
    linear-gradient(135deg, var(--paper), #ffffff);
}

.section--dark {
  color: var(--white);
  background:
    radial-gradient(circle at 10% 0%, rgba(214, 0, 168, 0.22), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(109, 53, 255, 0.2), transparent 26%),
    #080607;
}

.section__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.split,
.rules-layout,
.type-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading p,
.split p,
.rules-layout p,
.type-panel p {
  color: var(--muted);
}

.section--dark .section-heading p,
.section--dark .rules-layout p {
  color: rgba(255, 255, 255, 0.72);
}

.quick-grid,
.asset-grid,
.template-grid,
.rule-list,
.palette {
  display: grid;
  gap: 18px;
}

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

.quick-grid article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(138, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.step {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-family: var(--display);
  background: var(--red);
}

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

.asset-card,
.template-card,
.rule-list article {
  border: 1px solid rgba(23, 17, 15, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(23, 17, 15, 0.08);
}

.asset-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  min-height: 220px;
  padding: 16px;
  align-items: center;
}

.asset-card--wide {
  grid-column: span 2;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1fr);
}

.asset-card img {
  width: 100%;
  min-height: 160px;
  object-fit: contain;
  border-radius: 6px;
  background: #130c0c;
}

.asset-card p,
.template-card p {
  color: var(--muted);
}

.palette {
  grid-template-columns: repeat(7, minmax(126px, 1fr));
}

.swatch {
  position: relative;
  min-height: 152px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  font: inherit;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.36)),
    var(--swatch);
  cursor: pointer;
}

.swatch--light {
  color: var(--ink);
}

.swatch span,
.swatch strong {
  display: block;
}

.swatch span {
  margin-bottom: 8px;
  font-weight: 900;
}

.swatch strong {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 0.9rem;
}

.swatch:hover,
.swatch:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.copy-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--gold);
  font-weight: 800;
}

.type-panel {
  align-items: center;
}

.type-sample {
  padding: 28px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(214, 10, 17, 0.95), rgba(138, 0, 0, 0.94)),
    var(--red);
  box-shadow: var(--shadow);
}

.type-sample span,
.type-sample strong,
.type-sample small {
  display: block;
}

.type-sample span {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.type-sample strong {
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    3px 3px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
}

.type-sample small {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

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

.template-card {
  display: flex;
  min-height: 100%;
  padding: 14px;
  flex-direction: column;
}

.template-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  object-fit: contain;
  border-radius: 6px;
  background: #130c0c;
}

.template-card .button {
  margin-top: auto;
}

.rule-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rule-list article {
  padding: 24px;
  color: var(--ink);
}

.rule-list ul {
  padding-left: 20px;
  margin: 0;
}

.rule-list li + li {
  margin-top: 10px;
}

.internal-notes {
  border: 1px solid rgba(23, 17, 15, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.internal-notes summary {
  padding: 18px 20px;
  font-weight: 900;
  cursor: pointer;
}

.internal-notes div {
  padding: 0 20px 20px;
  color: var(--muted);
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--crimson);
  background: rgba(138, 0, 0, 0.08);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 7vw;
  color: rgba(255, 255, 255, 0.72);
  background: var(--black);
}

.site-footer p {
  margin: 0;
}

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

.example-entry {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: center;
}

.example-entry__image,
.entry-showcase__art {
  overflow: hidden;
  border: 1px solid rgba(228, 161, 58, 0.44);
  border-radius: 8px;
  background: #0b0d10;
  box-shadow: var(--shadow);
}

.example-entry__image img,
.entry-showcase__art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.example-entry__copy p {
  color: var(--muted);
}

.entry-page {
  background: #0b0d10;
}

.entry-hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 36px;
  align-items: end;
  padding: 130px 7vw 72px;
  color: var(--white);
}

.entry-hero__image,
.entry-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.entry-hero__image {
  object-fit: cover;
}

.entry-hero__shade {
  background:
    linear-gradient(90deg, rgba(11, 13, 16, 0.92), rgba(11, 13, 16, 0.54), rgba(11, 13, 16, 0.82)),
    linear-gradient(0deg, rgba(11, 13, 16, 0.98), rgba(11, 13, 16, 0.18) 42%);
}

.entry-hero__content,
.entry-hero__cover {
  position: relative;
  z-index: 1;
}

.entry-lockup {
  width: min(430px, 80vw);
  margin-bottom: 20px;
}

.entry-hero h1 {
  color: #f4f1ea;
  text-shadow:
    4px 4px 0 #0b0d10,
    0 0 28px rgba(255, 65, 59, 0.38);
}

.entry-hero__lead {
  max-width: 680px;
  color: rgba(244, 241, 234, 0.82);
  font-size: 1.12rem;
}

.entry-hero__cover {
  overflow: hidden;
  border: 2px solid rgba(228, 161, 58, 0.74);
  border-radius: 8px;
  background: #0b0d10;
  box-shadow: var(--shadow);
}

.entry-hero__cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.entry-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.entry-showcase__notes {
  padding: 28px;
  border-left: 8px solid #ff413b;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.entry-showcase__notes ul {
  padding-left: 20px;
  margin: 0;
}

.entry-showcase__notes li + li {
  margin-top: 10px;
}

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

.cover-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.cover-grid figure {
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  color: var(--white);
  background: #0b0d10;
  box-shadow: 0 14px 34px rgba(23, 17, 15, 0.12);
}

.cover-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.cover-grid figcaption {
  min-height: 52px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  font-weight: 800;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.member-grid article {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(23, 17, 15, 0.08);
}

.member-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.member-grid div {
  padding: 18px;
}

.member-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.svg-use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.svg-use-card {
  display: flex;
  min-height: 100%;
  padding: 14px;
  flex-direction: column;
  border: 1px solid rgba(23, 17, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(23, 17, 15, 0.08);
}

.svg-use-card img {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 14px;
  object-fit: contain;
  border-radius: 6px;
  background: #0b0d10;
}

.svg-use-card--story img {
  aspect-ratio: 9 / 16;
  max-height: 440px;
}

.svg-use-card--wide {
  grid-column: span 2;
}

.svg-use-card--wide img {
  aspect-ratio: 16 / 9;
}

.svg-use-card p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero {
    min-height: 92vh;
    grid-template-columns: 1fr;
    align-content: end;
  }

  .hero__logo {
    max-width: 640px;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .split,
  .rules-layout,
  .type-panel,
  .example-entry,
  .entry-hero,
  .entry-showcase,
  .asset-grid,
  .asset-card,
  .asset-card--wide {
    grid-template-columns: 1fr;
  }

  .asset-card--wide {
    grid-column: auto;
  }

  .quick-grid,
  .template-grid,
  .template-grid--entry,
  .cover-grid,
  .member-grid,
  .svg-use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 14px 18px;
    flex-direction: column;
  }

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

  .hero {
    padding: 188px 22px 56px;
  }

  .entry-hero {
    padding: 188px 22px 56px;
  }

  .hero__actions,
  .hero__meta {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .section {
    padding: 64px 22px;
  }

  .quick-grid,
  .template-grid,
  .template-grid--entry,
  .cover-grid,
  .member-grid,
  .svg-use-grid,
  .rule-list,
  .palette {
    grid-template-columns: 1fr;
  }

  .svg-use-card--wide {
    grid-column: auto;
  }

  .type-sample strong {
    font-size: 2.2rem;
  }
}
