:root {
  color-scheme: dark;
  --bg: #11121c;
  --ink: #f5f1ff;
  --muted: #c1becf;
  --accent: #cab5ff;
  --rule: #3b394b;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .28em; }
:focus-visible { outline: 3px solid #e4cbff; outline-offset: 4px; }
.skip { position: absolute; top: -5rem; left: 1rem; z-index: 2; background: #242033; padding: .8rem; }
.skip:focus { top: .5rem; }
.wrap { width: min(1240px, calc(100% - clamp(2rem, 9vw, 9rem))); margin-inline: auto; }
.mast { border-bottom: 1px solid var(--rule); }
.bar, nav, .actions, footer .wrap { display: flex; align-items: center; gap: 1.5rem; }
.bar { min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; font-weight: 850; letter-spacing: -.04em; font-size: 1.25rem; }
.brand img { margin-right: .45rem; border-radius: .35rem; image-rendering: pixelated; }
.brand span, .text-link { color: var(--accent); }
nav { margin-left: auto; }
nav a { color: var(--muted); text-decoration: none; font-weight: 650; }
nav a:hover, footer a:hover { color: white; text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .75rem 1.2rem; border-radius: .45rem; text-decoration: none; font-weight: 780; }
.primary { color: #231733; background: #d2bbff; }
.primary:hover { background: #e4d6ff; }
.hero {
  display: grid;
  align-items: center;
  min-height: clamp(31rem, 49vw, 43rem);
  padding-block: clamp(3.75rem, 8vw, 7rem);
  background: linear-gradient(90deg, #11121cf5 0%, #11121cc7 38%, #11121c20 82%),
    url("/assets/facility.webp") center 62% / cover no-repeat #11121c;
}
.hero h1 { max-width: 12ch; }
.label { margin-bottom: .95rem; font: 650 .85rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--accent); }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 5.9vw, 6rem); line-height: .99; font-weight: 790; letter-spacing: -.07em; }
h1 em { color: var(--accent); font-style: normal; }
.lead, .role-grid p, .faq p { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.lead { margin-top: 1.5rem; max-width: 48ch; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.actions { margin-top: 1.8rem; gap: 1rem 1.4rem; flex-wrap: wrap; }
.text-link { font-weight: 680; }
h2 { font-size: clamp(2rem, 3.8vw, 3.65rem); line-height: 1.06; letter-spacing: -.055em; }
.departments { padding-block: clamp(3rem, 5.5vw, 5.5rem); border-block: 1px solid var(--rule); background: #1a1925; }
.role-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; margin-top: 2.3rem; }
.role-grid article { border-top: 2px solid #8c77b5; padding-top: 1.15rem; }
h3 { font-size: 1.35rem; margin-bottom: .65rem; letter-spacing: -.035em; }
.join { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,7vw,7rem); padding-block: clamp(3rem,6vw,6rem); }
.join .button { margin-top: 1.5rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 680; line-height: 1.45; padding: 1rem .25rem; }
.faq summary::marker { color: var(--accent); }
.faq p { padding: 0 .25rem 1rem; }
.intake { padding-block: clamp(2.5rem,5vw,5rem); background: #242030; }
.intake .wrap { max-width: 980px; }
footer { border-top: 1px solid var(--rule); color: var(--muted); }
footer .wrap { padding-block: 1.7rem; flex-wrap: wrap; gap: .75rem 1.4rem; font-size: .875rem; }
footer strong { color: var(--ink); }
footer a { margin-left: auto; }
@media (max-width: 850px) {
  .role-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .bar { justify-content: space-between; gap: .5rem; }
  nav { display: none; }
  .hero { background-position: center, 62% center; background-image: linear-gradient(90deg, #11121cf2, #11121cb5), url("/assets/facility.webp"); }
  .join { grid-template-columns: 1fr; }
  footer a { margin-left: 0; }
}
@media (max-width: 440px) {
  .brand { font-size: 1rem; }
  .brand img { width: 32px; height: 32px; }
  .role-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.team-section { padding-top: clamp(3rem, 5.5vw, 5.5rem); }
.team-roster { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: 1rem; margin-top: 1.5rem; }
.team-roster article { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--rule); border-radius: .6rem; }
.team-roster img { image-rendering: pixelated; border-radius: .25rem; }
.team-roster h3 { margin: 0; overflow-wrap: anywhere; }
.team-roster p { color: var(--muted); overflow-wrap: anywhere; }

.site-content { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
[data-content-panel] { scroll-margin-top: 1.5rem; }
[data-content-panel] h2 + p { margin-block: 1rem; color: var(--muted); }
.pasted-text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 75ch; line-height: 1.65; }
.video-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.video-list iframe { display: block; border: 0; border-radius: .55rem; width: 100%; aspect-ratio: 16 / 9; }
.discord-icon { display: inline-flex; padding: .55rem; color: #cab5ff; margin-left: 0; }
.discord-icon svg { width: 1.5rem; height: 1.5rem; }

.mast-links, .mast-actions, .footer-links, .footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
}
.mast-links { margin-left: auto; }
.news-link { color: #e7d8ff; font-weight: 760; }
.discord-button { background: #a9adff; color: #1c2149; }
.discord-button:hover { background: #c9cbff; color: #1c2149; }
.discord-button svg { width: 1.25rem; height: 1.25rem; margin-right: .45rem; }
.site-footer { background: #161420; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 1.5rem 2.25rem;
  padding-block: 2.5rem;
}
.footer-brand p { margin-top: .65rem; }
.footer-brand a, .footer-links, .footer-links a, .footer-actions a { margin-left: 0; }
.footer-links, .footer-actions { align-items: flex-start; flex-direction: column; }
.site-footer .footer-meta {
  justify-content: space-between;
  padding-block: 1.15rem;
  border-top: 1px solid var(--rule);
}
.intake-badge {
  width: fit-content;
  margin-bottom: .85rem;
  padding: .3rem .7rem;
  border: 1px solid #605771;
  border-radius: 999px;
  background: #2f293c;
  color: #e0d8ea;
  font-weight: 700;
  font-size: .9rem;
}
.intake-badge[data-state="open"] { background: #17382a; border-color: #428164; color: #a7f3c7; }
.intake-badge[data-state="open"]::before {
  content: "";
  display: inline-block;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  margin-right: .45rem;
  background: #6ee7a3;
  vertical-align: .1em;
}
@media (max-width: 930px) {
  .mast .bar { display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; padding-block: .85rem; }
  .mast-links { grid-column: 1 / -1; grid-row: 2; margin-left: 0; }
  .mast-actions { justify-content: flex-end; gap: .4rem; }
}
@media (max-width: 440px) {
  .mast .bar { gap: .65rem .45rem; }
  .mast-actions .button { padding-inline: .55rem; font-size: .83rem; }
  .mast-links { font-size: .875rem; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .footer-links, .footer-actions { flex-direction: row; align-items: center; }
}

.header-intake-badge { margin: 0; white-space: nowrap; text-decoration: none; }
.header-intake-badge:hover { text-decoration: underline; }
@media (max-width: 1180px) and (min-width: 931px) {
  .mast .bar { flex-wrap: wrap; gap: .6rem 1rem; padding-block: .85rem; }
}
@media (max-width: 930px) {
  .header-intake-badge { grid-column: 1 / -1; grid-row: 3; justify-self: center; }
}

.apply-green { margin-top: 1.25rem; background: #a7f3c7; color: #123225; }
.apply-green:hover { background: #cefbe0; }
.mast-links a[aria-current="page"] { color: #ebdaff; text-decoration: underline; }
@media (min-width: 681px) and (max-width: 850px) {
  .role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.standalone-content { min-height: 52vh; }
.standalone-content h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.standalone-content p { color: var(--muted); margin-block: 1rem; }
.standalone-content .published-date { color: #cab5ff; font-size: .9rem; }
.nav-updated {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-left: .2rem;
  padding: .14rem .4rem;
  border: 1px solid var(--update-border);
  border-radius: 999px;
  background: var(--update-bg);
  color: var(--update-ink);
  font-size: .68rem;
  font-weight: 700;
  white-space: nowrap;
}
.nav-updated::before {
  content: "";
  width: .37rem;
  height: .37rem;
  border-radius: 50%;
  background: currentColor;
}
.mast-links [data-updated-section="videos"] { --update-bg: #211c41; --update-border: #7161a9; --update-ink: #ded0ff; }
.mast-links [data-updated-section="community"] { --update-bg: #142a44; --update-border: #4876a4; --update-ink: #b7dfff; }
.mast-links [data-updated-section="announcements"] { --update-bg: #392b13; --update-border: #95753c; --update-ink: #ffdc99; }
#homepage-trailer .video-list { max-width: 48rem; margin-top: 1.25rem; }

.contact-frame { display: block; width: 100%; max-width: 47rem; height: 32rem; margin: 1.2rem 0 .7rem; border: 0; border-radius: .6rem; }
