@font-face {
  font-family: "Epilogue";
  src: url("/assets/Epilogue-VariableFont_wght.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Fondamento";
  src: url("/assets/Fondamento-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #eee8e1;
  --muted: #a69c97;
  --faint: #706763;
  --ground: #100f0d;
  --surface: #29272a;
  --line: #494247;
  --accent: #a92f49;
  --accent-bright: #e04d6c;
  --accent-deep: #642235;
  --focus: #f0718c;
  font-family: "Epilogue", system-ui, sans-serif;
  background: var(--ground);
  color: var(--ink);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #1b181a;
}
*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
*::-webkit-scrollbar-track {
  background: #1b181a;
  box-shadow: inset 0 0 0 1px #332e31;
}
*::-webkit-scrollbar-thumb {
  min-height: 3rem;
  border: 3px solid #1b181a;
  border-radius: 0;
  background: var(--accent);
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--accent-bright);
}
*::-webkit-scrollbar-thumb:active {
  background: #f26482;
}
*::-webkit-scrollbar-corner {
  background: #1b181a;
}
html {
  scroll-padding-top: 2rem;
}
html.is-loading {
  overflow: hidden;
}
body {
  margin: 0;
  min-width: 18rem;
  background: var(--ground);
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--ground);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  background: var(--ground);
  transition:
    opacity 280ms ease,
    visibility 280ms ease;
}
.site-loader[data-state="complete"] {
  visibility: hidden;
  opacity: 0;
}
.site-loader img {
  width: 7rem;
  height: 7rem;
  border-radius: 0;
  object-fit: cover;
}
.loader-track {
  box-sizing: content-box;
  width: 8.5rem;
  height: 0.5rem;
  padding: 0;
  overflow: hidden;
  border: 6px solid transparent;
  border-image: url("/assets/deepwoken-borderthin.png") 8 repeat;
  background: #0c0a0b;
}
.loader-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--loader-duration, 2000ms) ease-in-out;
}
.site-loader[data-state="filling"] .loader-track span {
  transform: scaleX(1);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(19rem, 23rem) minmax(0, 50rem);
  gap: clamp(3rem, 7vw, 8rem);
  min-height: 100vh;
}
.rule-index {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent-bright);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
h1 {
  max-width: 12ch;
  margin: 0 0 3rem;
  font-family: "Fondamento", Georgia, serif;
  font-size: clamp(2.6rem, 4.8vw, 4.8rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: clamp(3rem, 8vh, 6rem);
  color: var(--ink);
  font-family: "Fondamento", Georgia, serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  word-spacing: -0.12em;
  text-decoration: none;
}
.wordmark img {
  width: 3rem;
  height: 2.5rem;
  object-fit: contain;
}
.search-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  border-bottom: 1px solid var(--faint);
}
.search-control:focus-within {
  border-color: var(--accent-bright);
}
.search-control span {
  color: var(--accent-bright);
  font-size: 1.55rem;
}
.search-control input {
  width: 100%;
  padding: 1rem 0.65rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
}
.search-control input::placeholder {
  color: #7f7470;
}
.search-control input::-webkit-search-cancel-button {
  display: none;
}
.search-control button {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.search-count {
  min-width: 3.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
mark[data-search-highlight] {
  padding: 0 0.08em;
  background: var(--accent-deep);
  color: #fff5e5;
}
mark[data-search-highlight][data-current-search-highlight] {
  outline: 2px solid var(--accent-bright);
  outline-offset: 1px;
  background: var(--accent-bright);
  color: var(--ground);
}
.rule-index ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.rule-index li {
  border-bottom: 1px solid var(--line);
}
.rule-index nav a {
  display: block;
  position: relative;
  padding: 1.05rem 0.8rem 1.05rem 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.4;
  text-decoration: none;
}
.rule-index a:hover,
.rule-index a[aria-current] {
  color: var(--ink);
}
.sidebar-footer {
  display: flex;
  gap: 1.25rem;
  margin-top: auto;
  padding-top: 2.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.sidebar-footer a {
  text-underline-offset: 0.2em;
}
.sidebar-footer a[aria-current] {
  color: var(--ink);
  font-weight: 650;
}
.policy-index .rules-link {
  display: block;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

main {
  min-width: 0;
  padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 5vw, 5.5rem) 8rem 0;
}
.rules-section {
  padding: 0 0 5rem;
}
.rules-section > header {
  margin-bottom: 2rem;
}
h2 {
  margin: 0;
  font-family: "Fondamento", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
}
.rule-content {
  padding-left: 0;
  overflow-wrap: anywhere;
}
.rule-content h3,
.rule-content h4,
.rule-content h5 {
  margin: 1.65rem 0 0.55rem;
  color: var(--ink);
  font-family: "Epilogue", sans-serif;
  font-weight: 720;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.rule-content h3 {
  font-size: 1.15rem;
}
.rule-content h4 {
  font-size: 1rem;
}
.rule-content h5 {
  font-size: 0.9rem;
}
.rule-content h3:first-child,
.rule-content h4:first-child,
.rule-content h5:first-child {
  margin-top: 0;
}
.rule-content p {
  max-width: 43rem;
  margin: 0.48rem 0;
  color: #c9c0bb;
  font-size: 0.88rem;
  line-height: 1.65;
}
.rule-content strong {
  color: var(--ink);
  font-weight: 680;
}
.rule-content a {
  color: var(--accent-bright);
  text-underline-offset: 0.2em;
}
.rule-content hr {
  height: 1px;
  margin: 2rem 0;
  border: 0;
  background: var(--line);
}
.rule-content blockquote {
  max-width: 42rem;
  margin: 0.6rem 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 2px solid var(--accent);
  color: #c9c0bb;
  font-size: 0.88rem;
  line-height: 1.65;
}
.rule-note {
  padding-left: 1rem;
  color: var(--muted) !important;
  font-size: 0.76rem !important;
}
.rule-list {
  max-width: 43rem;
  margin: 0.35rem 0;
  padding-left: 1.35rem;
  color: #c9c0bb;
  font-size: 0.88rem;
  line-height: 1.65;
}
.rule-list li::marker {
  color: var(--accent);
}
.discord-emoji {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin: 0 0.12em;
  vertical-align: -0.22em;
  object-fit: contain;
}
.status-page {
  max-width: 45rem;
  margin: 15vh auto;
  padding: 2rem;
}
.status-page h1 {
  max-width: none;
  margin-bottom: 1.5rem;
}
.status-page > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}
.status-page a {
  color: var(--accent-bright);
  text-underline-offset: 0.2em;
}
.policy-page article {
  max-width: 43rem;
}
.policy-page h1 {
  max-width: none;
  margin-bottom: 0.75rem;
}
.policy-page h2 {
  margin: 2.4rem 0 0.65rem;
  font-family: "Epilogue", sans-serif;
  font-size: 1.1rem;
  font-weight: 720;
}
.policy-page p {
  margin: 0;
  color: #c9c0bb;
  font-size: 0.9rem;
  line-height: 1.75;
}
.policy-page .policy-date {
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 52rem) {
  .page-shell {
    display: block;
    padding-top: 2.5rem;
  }
  .rule-index {
    position: static;
    height: auto;
    max-height: none;
    padding: 1.25rem 1.25rem 2.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .wordmark {
    margin-bottom: 2.5rem;
  }
  .rule-index nav {
    margin-inline: -1.25rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .rule-index nav ol {
    display: flex;
    width: max-content;
    min-width: 100%;
    padding-inline: 1.25rem;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }
  .rule-index nav li {
    border-bottom: 0;
  }
  .rule-index nav a {
    min-height: 2.75rem;
    padding: 0.75rem 1.15rem 0.75rem 0;
    white-space: nowrap;
  }
  .rule-index nav a[aria-current] {
    box-shadow: inset 0 -2px var(--accent-bright);
  }
  main {
    padding: 3rem 1.25rem 5rem;
  }
  .sidebar-footer {
    margin-top: 1.5rem;
    padding-top: 0;
  }
}

@media (max-width: 34rem) {
  .page-shell {
    padding-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}
