@font-face {
  font-family: "RDR Catalogue";
  src: url("fonts/RDRCatalogueBold.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "RDR Lino";
  src: url("fonts/RDRLino.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-display: swap;
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/noto-sans-v42-latin-regular.woff2") format("woff2");
}

:root {
  --ink: #f9f9f8;
  --paper: #f5ecd9;
  --red: #9f2118;
  --cream: #f5ecd9;
  --line: rgba(104, 103, 102, 0.32);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--ink);
}
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--cream);
  background: #120f0b;
  font-family: "Noto Sans";
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
code {
  padding: 0.08em 0.28em;
  border: 1px solid rgba(85, 49, 23, 0.25);
  background: rgba(7, 7, 7,1);;
  font-family: Consolas, monospace;
  font-size: 0.9em;
}
p {
  font-family: "Noto Sans";
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #100d0a;
}
.hero-video,
.hero-vignette,
.hero-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-video {
  z-index: -4;
  object-fit: cover;
  -webkit-mask-image: url('textures/maske2.png');
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: 90% 90%;
	mask-image: url('textures/maske2.png');
	mask-mode: alpha;
	mask-position: top;
	mask-repeat: no-repeat;
	mask-size: 90% 90%;
}
.hero-vignette {
  z-index: -3;
  background: linear-gradient(
      90deg,
      rgba(7, 6, 5, 0.92),
      rgba(7, 6, 5, 0.5) 46%,
      rgba(7, 6, 5, 0.28) 72%,
      rgba(7, 6, 5, 0.78)
    ),
    linear-gradient(
      0deg,
      rgba(8, 6, 4, 0.95),
      transparent 36%,
      rgba(0, 0, 0, 0.42)
    );
}
.hero-grain {
  z-index: -2;
  opacity: 0.03;
  mix-blend-mode: lighten;

  filter: invert(0) contrast(1.9);
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 48px));
  padding: .5dvh 0 22px;
  background: url('textures/inkroller.png') bottom/cover;
  z-index: 99999999999999;
}
.header-logo {
  display: block;
  flex: 0 0 auto;
  width: 4.2dvw;
  margin-left: 2dvw;
  aspect-ratio: 1;
  background: url('textures/logo-black-icon.png') center / contain no-repeat;
}

.wordmark {
  display: grid;
  color: #f5ecd9;
  font-family: "RDR Catalogue", Impact, sans-serif;
  font-size: 36px;
  line-height: 0.72;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px #000;
}

.wordmark-small {
  font-size: 15px;
  letter-spacing: 0.16em;
}

.nav-toggle {
  display: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 4dvw;
  font-family: "RDR Catalogue", Impact, sans-serif;
  font-size: 1dvw;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-right: 3dvw;
}
.site-header nav a {
  position: relative;
  padding: 8px 0;
}
.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
  margin: 20dvh 0;
  padding: 20dvh 0;
}
.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: #f5ecd9;
  font-family: "RDR Catalogue", Impact, sans-serif;
  font-size: 1.3dvw;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 920px;
  margin: 0;
  color: #f5ecd9;
  font-family: "RDR Lino", Impact, sans-serif;
  font-size: 4dvw;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero h1 span {
  display: block;
  color: var(--red);
}
.hero-copy {
  max-width: 640px;
  margin: 34px 0 0;
  color: rgba(250, 250, 249, 0.88);
  font-size: 0.9dvw;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}
.button {
  display: inline-flex;
  min-width: 176px;
  align-items: center;
  justify-content: center;
  padding: 15px 22px 13px;
  border: 1px solid rgba(255, 238, 207, 0.58);
  font-family: "RDR Catalogue", Impact, sans-serif;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease;
}
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}
.button-primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff2dc;
}
.button-ghost {
  background: rgba(7, 7, 7,1);;
  backdrop-filter: blur(3px);
}
.scroll-cue {
  position: absolute;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 34px;
  display: grid;
  justify-items: center;
  gap: 10px;
  font-family: "RDR Catalogue", Impact, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.scroll-cue i {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--ink), rgba(7, 7, 7,1));
}

.discord {
  filter: invert(1);
}

.manifesto,
.rules-section {
  position: relative;
  overflow: hidden;
  color: var(--ink); 
 background: rgba(7, 7, 7,1);

}
.manifesto {
  display: grid;
  min-height: 630px;
  place-items: center;
  padding: 110px 24px;
  text-align: center;
}
.manifesto::before,
.rules-section::before {
  position: absolute;
  inset: 18px;
  border: 1px solid var(--line);
  content: "";
  pointer-events: none;
}
.manifesto > * {
  position: relative;
  max-width: 900px;
}
.ornament {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 34px;
}
.manifesto .section-kicker,
.rules-section .section-kicker,
.commands .section-kicker {
  color: var(--red);
}
.manifesto h2,
.rules-section h2,
.commands h2 {
  margin: 0;
  font-family: "RDR Catalogue", Impact, sans-serif;
  font-size: 4.5dvw;
  line-height: 0.9;
  text-transform: uppercase;
}
.manifesto > p:not(.section-kicker) {
  max-width: 790px;
  margin: 28px auto 0;
  font-size: 1.4dvw;
  line-height: 1.58;
}
.manifesto-stats {
  display: grid;
  width: min(960px, 100%);
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 54px;
  border-block: 1px solid var(--line);
}
.manifesto-stats span {
  display: grid;
  gap: 5px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  font-size: 18px;
}
.manifesto-stats span:last-child {
  border-right: 0;
}
.manifesto-stats strong {
  color: var(--red);
  font-family: "RDR Catalogue", Impact, sans-serif;
  font-size: 25px;
  letter-spacing: 0.06em;
}

.rules-section {
  padding: 116px max(24px, calc((100% - 1180px) / 2)) 130px;
  background-color: rgb(7, 7, 7);
  
}
.section-heading {
  position: relative;
  max-width: 760px;
  margin: 0 auto 58px;
  text-align: center; 
}
.section-heading > p:last-child {
  margin: 18px 0 0;
  font-size: 24px;
}
.rules-section blockquote {
  position: relative;
  max-width: 820px;
  margin: -18px auto 52px;
  padding: 28px 34px 24px;
  border-block: 1px solid var(--line);
  color: var(--red);
  font-family: "RDR Lino";
  font-size: 2dvw;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
.rules-toolbar {
  position: relative;
  display: flex;
  max-width: 1040px;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 auto 14px;
}
.rules-toolbar button {
  color: #f9f9f8;
  padding: 9px 13px 7px;
  border: 1px solid rgba(248, 246, 245, 0.42);
  background: rgba(7, 7, 7,1);;
  font-family: "Noto Sans";
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.rules-toolbar button:hover,
.rules-toolbar button:focus-visible {
  color: var(--cream);
  background: var(--red);
}
.rule-list {
  position: relative;
  display: grid;
  max-width: 1040px;
  gap: 12px;
  margin: 0 auto;

}
.rule-entry {
    background: url('textures/inkroller.png') center/cover;
}
.rule-entry summary {
  display: grid;
  grid-template-columns: 72px 1fr 24px;
  align-items: center;
  min-height: 84px;
  gap: 20px;
  padding: 12px 26px;
  cursor: pointer;
  font-family: "RDR Lino";
  font-size: 1.2dvw;
  font-weight: 800;
  line-height: 1;
  list-style: none;
  text-transform: uppercase;
}
.rule-entry summary::-webkit-details-marker {
  display: none;
}
.rule-entry summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -3px;
}
.rule-number {
  color: var(--red);
  font-family: "RDR Lino";
  font-size: 40px;
}

.rule-entry summary i,
.rule-entry summary i::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--red);
  content: "";
  transition: transform 180ms ease;
}
.rule-entry summary i::after {
  transform: rotate(90deg);
}
.rule-entry[open] summary i::after {
  transform: rotate(0);
}
.rule-body {
  
  padding: 0 34px 30px 118px;
  border-top: 1px solid rgba(74, 45, 24, 0.22);
  font-size: 18px;
  line-height: 1.62;
}
.rule-body p {
  margin: 24px 0 0;
}
.rule-body ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
}
.rule-body li::marker {
  color: var(--red);
}
.rule-closing {
  padding-left: 16px;
  border-left: 3px solid var(--red);
  font-weight: 700;
}

.commands {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
  gap: 8dvw;
  padding: 120px max(24px, calc((100% - 1180px) / 2));
  background: linear-gradient(
      110deg,
      rgba(7, 7, 7,1),
      rgba(7, 7, 7,1)
    ),
    url("textures/paper-grain.jpg") center/cover;
}
.commands h2 {
  color: var(--cream);
  font-size: 6dvw;
}
.commands-copy > p:last-child {
  max-width: 500px;
  margin: 28px 0 0;
  color: rgba(210, 210, 208, 0.75);
  font-size: 20px;
  line-height: 1.58;
}
.commands dl {
  margin: 0;
  border-top: 1px solid rgba(241, 227, 196, 0.25);
}
.commands dl div {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) 1.2fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(241, 227, 196, 0.25);
}
.commands dt {
  color: #f5ecd9;
  font-family: "Noto Sans";
  font-size: 19px;
}
.commands dd {
  margin: 0;
  color: rgba(241, 227, 196, 0.76);
  font-size: 18px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 34px max(24px, calc((100% - 1240px) / 2));
  border-top: 1px solid rgba(241, 227, 196, 0.16);
  background: #050505;
  color: rgba(241, 227, 196, 0.68);
}
.footer-mark {
  justify-self: start;
  font-size: 28px;
}
footer p {
  margin: 0;
  text-align: center;
}
footer > a:last-child {
  justify-self: end;
  font-family: "Noto Sans";
  letter-spacing: 0.06em;
}

section[id] {
  scroll-margin-top: 12dvh;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .site-header {
    width: calc(100% - 4dvw);
    padding: 1dvh 2dvw 2dvh;
  }

  .header-logo {
    width: 6dvw;
    margin-left: 0;
  }

  .site-header nav {
    gap: 3dvw;
    padding-right: 0;
    font-size: 1.7dvw;
  }

  .hero-content {
    width: calc(100% - 8dvw);
    padding: 20dvh 0 10dvh;
  }

  .eyebrow,
  .section-kicker {
    font-size: 2dvw;
  }

  .hero h1 {
    font-size: 7.2dvw;
  }

  .hero-copy {
    max-width: 62dvw;
    font-size: 1.9dvw;
  }

  .button {
    min-width: 18dvw;
    font-size: 1.6dvw;
  }

  .manifesto,
  .rules-section {
    padding-inline: 5dvw;
  }

  .manifesto h2,
  .rules-section h2,
  .commands h2 {
    font-size: 6.5dvw;
  }

  .manifesto > p:not(.section-kicker),
  .section-heading > p:last-child {
    font-size: 2.2dvw;
  }

  .rules-section blockquote {
    font-size: 3.5dvw;
  }

  .rule-entry summary {
    font-size: 2.4dvw;
  }

  .rule-number {
    font-size: 4dvw;
  }

  .rule-body {
    font-size: 1.8dvw;
  }

  .commands {
    grid-template-columns: 1fr;
    gap: 7dvh;
    padding: 12dvh 6dvw;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: 100%;
    align-items: center;
    padding: 1dvh 5dvw;
    background-position: center bottom;
  }

  .header-logo {
    width: 11dvw;
    margin-left: 0;
  }

  .nav-toggle {
    position: relative;
    display: grid;
    width: 11dvw;
    height: 11dvw;
    place-content: center;
    gap: 1.2dvw;
    padding: 0;
    border: 1px solid rgba(255, 240, 210, 0.34);
    color: var(--cream);
    background: rgba(7, 7, 7, 0.72);
    cursor: pointer;
    z-index: 2;
  }

  .nav-toggle span {
    display: block;
    width: 5dvw;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(1.4dvw) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-1.4dvw) rotate(-45deg);
  }

  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5dvh 5dvw 2.5dvh;
    border-top: 1px solid rgba(255, 240, 210, 0.18);
    background: rgba(7, 7, 7, 0.97);
    font-size: 4dvw;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-1dvh);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-header nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header nav a {
    padding: 1.8dvh 0;
    border-bottom: 1px solid rgba(255, 240, 210, 0.12);
    text-align: center;
  }

  .site-header nav a:last-child {
    border-bottom: 0;
  }

  .hero-content {
    width: 100%;
    padding: 22dvh 6dvw 9dvh;
  }

  .eyebrow,
  .section-kicker {
    margin-bottom: 2.5dvh;
    font-size: 3.5dvw;
    line-height: 1.35;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 13dvw;
    line-height: 0.9;
  }

  .hero-copy {
    max-width: 100%;
    margin-top: 3.5dvh;
    font-size: 4.4dvw;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1.5dvh;
    margin-top: 4dvh;
  }

  .button {
    width: 100%;
    min-width: 0;
    padding: 2dvh 5dvw;
    font-size: 4.2dvw;
  }

  .hero-video {
    object-position: center top;
    -webkit-mask-size: auto 92%;
    mask-size: auto 92%;
  }

  .manifesto {
    min-height: auto;
    padding: 12dvh 7dvw;
  }

  .manifesto::before,
  .rules-section::before {
    inset: 2.5dvw;
  }

  .manifesto h2,
  .rules-section h2,
  .commands h2 {
    font-size: 10.5dvw;
    line-height: 0.95;
  }

  .manifesto > p:not(.section-kicker) {
    margin-top: 3.5dvh;
    font-size: 4.5dvw;
  }

  .manifesto-stats {
    margin-top: 6dvh;
  }

  .manifesto-stats span {
    padding: 2.5dvh 4dvw;
    font-size: 4.2dvw;
  }

  .manifesto-stats strong {
    font-size: 6dvw;
  }

  .rules-section {
    padding: 12dvh 5dvw;
  }

  .section-heading {
    margin-bottom: 6dvh;
  }

  .section-heading > p:last-child {
    margin-top: 2.5dvh;
    font-size: 4.4dvw;
    line-height: 1.55;
  }

  .rules-section blockquote {
    margin-bottom: 5dvh;
    padding: 3dvh 4dvw;
    font-size: 6.8dvw;
    line-height: 1.1;
  }

  .rule-entry summary {
    grid-template-columns: 11dvw 1fr 6dvw;
    min-height: 0;
    gap: 2dvw;
    padding: 2.5dvh 4dvw;
    font-size: 5dvw;
    line-height: 1.15;
  }

  .manifesto-stats span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .manifesto-stats span:last-child {
    border-bottom: 0;
  }
  .scroll-cue {
    display: none;
  }
  .rules-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2dvw;
    margin-bottom: 2dvh;
  }

  .rules-toolbar button {
    padding: 1.5dvh 2dvw;
    font-size: 3.2dvw;
  }

  .rule-number {
    font-size: 8dvw;
  }

  .rule-body {
    padding: 0 5dvw 4dvh;
    font-size: 4.2dvw;
    line-height: 1.65;
  }

  .rule-body ul {
    gap: 1.2dvh;
    padding-left: 5dvw;
  }

  .commands {
    grid-template-columns: 1fr;
    gap: 6dvh;
    padding: 12dvh 7dvw;
  }

  .commands-copy > p:last-child {
    margin-top: 3dvh;
    font-size: 4.5dvw;
  }

  .commands dl div {
    grid-template-columns: 1fr;
    gap: 1dvh;
    padding: 2.5dvh 0;
  }

  .commands dt,
  .commands dd {
    font-size: 4.2dvw;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2.5dvh;
    padding: 6dvh 7dvw;
    text-align: center;
  }

  .footer-mark,
  footer > a:last-child {
    justify-self: center;
  }

  .footer-mark {
    font-size: 8dvw;
  }

  footer p,
  footer > a:last-child {
    font-size: 3.8dvw;
  }

  section[id] {
    scroll-margin-top: 10dvh;
  }
}

@media (max-width: 430px) {
  .header-logo,
  .nav-toggle {
    width: 14dvw;
    height: 14dvw;
  }

  .nav-toggle span {
    width: 6dvw;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(1.8dvw) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-1.8dvw) rotate(-45deg);
  }

  .site-header nav {
    font-size: 4.6dvw;
  }

  .hero-content {
    padding-top: 19dvh;
  }

  .hero h1 {
    font-size: 14.5dvw;
  }

  .rules-toolbar {
    grid-template-columns: 1fr;
  }

  .rules-toolbar button {
    font-size: 3.7dvw;
  }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .site-header {
    padding-block: 1.5dvh;
  }

  .header-logo,
  .nav-toggle {
    width: 9dvh;
    height: 9dvh;
  }

  .hero-content {
    padding: 22dvh 6dvw 8dvh;
  }

  .hero h1 {
    font-size: 9dvw;
  }

  .hero-copy {
    font-size: 2.4dvw;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-video {
    display: none;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
