/*
 * SOMC
 * Global Styles
 * Rose Pine
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --base: #191724;
  --surface: #1f1d2e;
  --overlay: #26233a;

  --muted: #6e6a86;
  --text: #e0def4;

  --love: #eb6f92;
  --gold: #f6c177;
  --pine: #31748f;
  --foam: #9ccfd8;
  --iris: #c4a7e7;
}

html {
  width: 100%;
  min-height: 100%;
}

body {
  width: 100%;
  min-height: 100vh;

  background: var(--base);
  color: var(--text);

  font-family: "Courier New", monospace;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--love);
  color: var(--base);
}
/*
 * SOMC
 * Global Navigation
 */

/* =========================================
   NAVIGATION
========================================= */

.nav {
  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  z-index: 100;

  height: 80px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 5%;

  border-bottom:
    1px solid
    rgba(224, 222, 244, 0.06);

  background:
    linear-gradient(
      to bottom,
      rgba(25, 23, 36, 0.35),
      transparent
    );
}


/* =========================================
   BRAND
========================================= */

.nav-brand {
  color: var(--text);

  font-family:
    Impact,
    "Arial Black",
    sans-serif;

  font-size: 26px;

  line-height: 1;

  letter-spacing: -0.04em;

  text-decoration: none;
}

.nav-brand span {
  color: var(--love);
}


/* =========================================
   LINKS
========================================= */

.nav-links {
  display: flex;
  align-items: center;

  gap: 32px;
}

.nav-links a {
  position: relative;

  color: var(--muted);

  font-size: 10px;
  font-weight: bold;

  letter-spacing: 0.12em;

  text-decoration: none;
  text-transform: uppercase;

  transition:
    color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}


/* =========================================
   LINK INDICATOR
========================================= */

.nav-links a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 0;
  height: 1px;

  background: var(--love);

  box-shadow:
    0 0 8px
    rgba(235, 111, 146, 0.45);

  transition:
    width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--text);
}

/* =========================================
   COPY BOX
========================================= */
#server-link {
    text-decoration: none;
    cursor: pointer;
    color: #e0def4;
}

#server-link .copy-icon {
    display: inline-block;
    margin-left: 3px;
    font-weight: bold;
    color: #eb6f92;
}

#server-link .copy-icon {
    color: #9ccfd8;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .nav {
    height: 70px;

    padding:
      0 6%;
  }

  .nav-brand {
    font-size: 23px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 9px;

    letter-spacing: 0.08em;
  }

}
/*
 * SOMC
 * Rules Page
 * Rose Pine
 */

/* =========================================
   FORCE NORMAL DOCUMENT SCROLLING
========================================= */

html:has(.rules-page),
body.rules-page {
  width: 100%;
  min-height: 100%;
  height: auto;

  overflow-x: hidden;
  overflow-y: auto;
}

body.rules-page {
  background: var(--base);
}


/* =========================================
   RULES PAGE
========================================= */

.rules-page {
  width: 100%;
  min-height: 100vh;

  position: relative;
}

.rules-screen {
  position: relative;

  width: 100%;
  min-height: 100vh;
  height: auto;

  overflow: visible;

  background:
    radial-gradient(
      ellipse at 80% 15%,
      rgba(196, 167, 231, 0.08),
      transparent 35%
    ),
    radial-gradient(
      ellipse at 15% 80%,
      rgba(49, 116, 143, 0.08),
      transparent 35%
    ),
    var(--base);
}


/* =========================================
   BACKGROUND GRID
========================================= */

.rules-grid {
  position: fixed;

  inset: 0;

  z-index: 0;

  pointer-events: none;

  opacity: 0.18;

  background-image:
    linear-gradient(
      rgba(224, 222, 244, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(224, 222, 244, 0.025) 1px,
      transparent 1px
    );

  background-size: 50px 50px;

  mask-image:
    linear-gradient(
      to bottom,
      black,
      transparent 90%
    );
}


/* =========================================
   PURPLE GLOW
========================================= */

.rules-glow {
  position: fixed;

  top: 20%;
  right: -150px;

  z-index: 0;

  width: 450px;
  height: 450px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(196, 167, 231, 0.07),
      transparent 70%
    );

  pointer-events: none;
}


/* =========================================
   CONTENT
========================================= */

.rules-container {
  position: relative;

  z-index: 10;

  width: min(900px, 90%);

  margin: 0 auto;

  padding-top: 145px;
  padding-bottom: 120px;
}


/* =========================================
   HEADER
========================================= */

.rules-header {
  padding-bottom: 55px;

  border-bottom:
    1px solid
    rgba(224, 222, 244, 0.08);
}

.rules-header .server-label {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 28px;

  color: var(--love);

  font-size: 11px;
  font-weight: bold;

  letter-spacing: 0.22em;

  text-transform: uppercase;
}

.rules-header .server-label::before {
  content: "";

  width: 32px;
  height: 1px;

  background: var(--love);

  box-shadow:
    0 0 8px
    rgba(235, 111, 146, 0.8);
}


/* =========================================
   TITLE
========================================= */

.rules-header h1 {
  max-width: 850px;

  color: var(--text);

  font-family:
    Impact,
    "Arial Black",
    sans-serif;

  font-size:
    clamp(4rem, 10vw, 8rem);

  line-height: 0.8;

  letter-spacing: -0.045em;

  text-transform: uppercase;

  text-shadow:
    4px 4px 0
    rgba(0, 0, 0, 0.35);
}

.rules-header h1 span {
  display: block;

  color: var(--iris);

  text-shadow:
    4px 4px 0 #292333,
    0 0 35px
    rgba(196, 167, 231, 0.12);
}


/* =========================================
   INTRO
========================================= */

.rules-intro {
  max-width: 500px;

  margin-top: 32px;

  padding-left: 16px;

  border-left:
    2px solid
    var(--pine);

  color: var(--muted);

  font-size: 13px;

  line-height: 1.8;
}


/* =========================================
   RULE CONTENT
========================================= */

.rules-content {
  display: block;

  width: 100%;

  padding-top: 45px;

  padding-bottom: 20px;
}


/* =========================================
   HEADINGS
========================================= */

.rules-content h2 {
  display: flex;

  align-items: baseline;

  gap: 16px;

  margin-top: 50px;
  margin-bottom: 18px;

  color: var(--text);

  font-family:
    "Courier New",
    monospace;

  font-size: 15px;
  font-weight: bold;

  line-height: 1.4;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.rules-content h2:first-child {
  margin-top: 0;
}

.rules-content h2::before {
  content: "";

  flex: 0 0 auto;

  width: 22px;
  height: 1px;

  background: var(--love);

  box-shadow:
    0 0 8px
    rgba(235, 111, 146, 0.5);
}


/* =========================================
   PARAGRAPHS
========================================= */

.rules-content p {
  display: block;

  max-width: 720px;

  margin:
    0 0 18px;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.9;
}

.rules-content p strong {
  color: var(--text);
}


/* =========================================
   LISTS
========================================= */

.rules-content ul,
.rules-content ol {
  display: block;

  max-width: 720px;

  margin:
    12px 0 25px;

  padding-left: 25px;
}

.rules-content li {
  display: list-item;

  margin-bottom: 8px;

  color: var(--muted);

  font-size: 12px;

  line-height: 1.8;
}

.rules-content li::marker {
  color: var(--love);
}


/* =========================================
   LINKS
========================================= */

.rules-content a {
  color: var(--iris);

  text-decoration: none;

  border-bottom:
    1px solid
    rgba(196, 167, 231, 0.25);

  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.rules-content a:hover {
  color: var(--love);

  border-color: var(--love);
}


/* =========================================
   HORIZONTAL RULE
========================================= */

.rules-content hr {
  margin:
    55px 0 40px;

  border: 0;

  border-top:
    1px solid
    rgba(224, 222, 244, 0.08);
}


/* =========================================
   FOOTER
========================================= */

.rules-footer {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-top: 65px;

  padding-top: 22px;

  border-top:
    1px solid
    rgba(224, 222, 244, 0.08);

  color: var(--muted);

  font-size: 9px;
  font-weight: bold;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.rules-footer a {
  color: var(--muted);

  text-decoration: none;

  border: 0;

  transition:
    color 0.2s ease;
}

.rules-footer a:hover {
  color: var(--love);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 750px) {

  html:has(.rules-page),
  body.rules-page {
    height: auto;

    min-height: 100%;

    overflow-x: hidden;
    overflow-y: auto;
  }

  .rules-container {
    width: 88%;

    padding-top: 105px;
    padding-bottom: 90px;
  }

  .rules-header {
    padding-bottom: 40px;
  }

  .rules-header h1 {
    font-size:
      clamp(3.7rem, 18vw, 6rem);
  }

  .rules-content {
    padding-top: 35px;
  }

  .rules-content h2 {
    gap: 12px;

    margin-top: 40px;

    font-size: 13px;
  }

  .rules-content p {
    font-size: 12px;

    line-height: 1.85;
  }

  .rules-content li {
    font-size: 11px;
  }

  .rules-footer {
    margin-top: 50px;

    font-size: 8px;
  }

}

