:root {
  --void: #070707;
  --bone: #ece6da;
  --bone-dim: #c6bfb2;
  --chrome: #cfd3d6;
  --ash: #8a8580;
  --line: rgba(207, 211, 214, 0.16);
  --font-display: "Special Elite", "Courier New", Courier, monospace;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@font-face {
  font-family: "Special Elite";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/special-elite-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-600.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

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

a { color: var(--chrome); text-underline-offset: 0.2em; }
a:hover { color: #fff; }
a:focus-visible {
  outline: 2px solid var(--chrome);
  outline-offset: 3px;
}

::selection { background: #9a2f22; color: #fff; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 300;
  background: var(--bone);
  color: var(--void);
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus { top: 0.75rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Home gate
   -------------------------------------------------------------------------- */

.gate-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.25rem;
  width: 100%;
}

.gate-logo {
  width: min(16.5rem, 72vw);
  height: auto;
  border-radius: 50%;
  margin-bottom: 2rem;
}

.gate-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  width: min(22rem, 100%);
}

.gate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--chrome);
  color: var(--bone);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.gate-btn:hover {
  background: var(--bone);
  color: var(--void);
  border-color: var(--bone);
}

.gate-drop {
  width: 100%;
}

.gate-drop > summary {
  list-style: none;
  cursor: pointer;
  width: 100%;
  position: relative;
}

.gate-drop > summary::-webkit-details-marker {
  display: none;
}

.gate-drop > summary::after {
  content: "";
  position: absolute;
  right: 1.05rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}

.gate-drop[open] > summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.gate-drop-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 0.65rem;
  padding-left: 0.85rem;
}

.gate-btn.sub {
  min-height: 3.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  border-color: rgba(207, 211, 214, 0.45);
  color: var(--bone-dim);
}

.gate-main:has(.gate-drop[open]) {
  justify-content: flex-start;
}

@media (prefers-reduced-motion: no-preference) {
  .gate-drop > summary::after {
    transition: transform 0.15s ease;
  }
}

/* Inner pages
   -------------------------------------------------------------------------- */

.inner-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
  width: min(26rem, 100%);
  margin-inline: auto;
}

.inner-logo-link {
  display: block;
  margin-bottom: 1.75rem;
}

.inner-logo {
  width: min(8.5rem, 42vw);
  height: auto;
  border-radius: 50%;
  margin-inline: auto;
}

.inner h1 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 6vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inner-copy {
  margin: 0 0 1.5rem;
  color: var(--bone-dim);
  font-size: 1.1rem;
  max-width: 22rem;
}

.inner-copy a { color: var(--bone); }

.inner-main .gate-nav {
  width: 100%;
  margin-bottom: 0.4rem;
}

.inner-main > .gate-btn {
  width: 100%;
  margin-bottom: 1.35rem;
}

.back-link {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  border-bottom: 1px solid rgba(207, 211, 214, 0.3);
  padding-bottom: 0.1rem;
}

.back-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}


@media (min-width: 700px) {
  .gate-logo { width: min(18rem, 40vw); }
  .gate-btn { min-height: 3.65rem; font-size: 1rem; }
}

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