/* =====================================================================
   Moment of Weakness - momentofweakness.org
   Single stylesheet. Everything lives here on purpose: the site's CSP is
   `style-src 'self'` with no 'unsafe-inline', so an inline <style> block
   or a style="" attribute would be blocked by the browser, not merely
   frowned upon. Add styling here, never in the markup.
   Fonts are system stacks for the same reason - font-src is 'self', so a
   Google Fonts link would silently fail to load.
   ===================================================================== */

:root {
  --bg:        #0a0e18;
  --surface:   #111725;
  --surface-2: #161d2e;
  --line:      #232c42;
  --fg:        #e9ecf3;
  --muted:     #98a1b5;
  --gold:      #e3b341;
  --gold-dim:  #a8842c;
  --blue:      #5b8fd4;

  --pride: linear-gradient(90deg,
    #e40303 0%, #ff8c00 16%, #ffed00 32%,
    #008026 50%, #24408e 68%, #732982 84%, #732982 100%);

  --wrap: 60rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.0625rem)/1.7
        ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Keyboard users get a way past the header without tabbing the whole nav. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #16120a;
  padding: .75rem 1.25rem;
  font-weight: 600;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ---- Pride rule ---------------------------------------------------- */
.pride-bar {
  height: 6px;
  background: var(--pride);
}
.pride-bar-thin { height: 3px; }

/* ---- Hero ----------------------------------------------------------- */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6.5rem) 1.5rem clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.kicker {
  margin: 0 0 1.5rem;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 11vw, 6rem);
  line-height: .96;
  font-weight: 800;
  letter-spacing: -.035em;
}

.h1-accent { color: var(--gold); }

.tagline {
  margin: 1.75rem auto 0;
  max-width: 28rem;
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  color: var(--fg);
}
.tagline em {
  font-style: normal;
  font-weight: 700;
  background: var(--pride);
  /* Falls back to plain gold text anywhere the clip isn't supported. */
  color: var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tagline strong { color: var(--gold); }

/* ---- Badges --------------------------------------------------------- */
.badges {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  justify-content: center;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--muted);
  background: var(--surface);
}

.badge-pride {
  color: var(--fg);
  border-color: transparent;
  /* Gradient ring: the surface fill sits over the pride gradient, so only
     the 1px border area shows colour. */
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--pride) border-box;
  border: 1px solid transparent;
}

.hero-cta { margin: 2.5rem 0 0; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: #16120a;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .85rem 2rem;
  border-radius: .5rem;
  border: 1px solid var(--gold);
}
.btn:hover,
.btn:focus-visible { background: #f0c451; border-color: #f0c451; }

/* ---- Facts strip ---------------------------------------------------- */
.facts {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.fact-grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: .75rem;
  overflow: hidden;
}

.fact {
  background: var(--surface);
  padding: 1.25rem 1rem;
  text-align: center;
}

.fact dt {
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.fact dd {
  margin: .4rem 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
}

/* ---- Panels --------------------------------------------------------- */
.panel {
  max-width: var(--wrap);
  margin: clamp(3rem, 8vw, 5rem) auto 0;
  padding: 0 1.5rem;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: .75rem;
  background: var(--pride);
  border-radius: 2px;
}

.panel p { margin: 0 0 1.1rem; max-width: 46rem; }
.panel p:last-child { margin-bottom: 0; }

.lead { font-size: 1.125rem; }
.lead em { color: var(--gold); font-style: italic; }

.aside {
  border-left: 3px solid var(--gold-dim);
  padding: .25rem 0 .25rem 1.25rem;
  color: var(--muted);
  font-style: italic;
}

/* ---- Raid time ------------------------------------------------------ */
.big-time {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .875rem;
  margin-bottom: 1.5rem;
}

.time {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--gold);
  line-height: 1;
}

.time-note {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---- Officers ------------------------------------------------------- */
.officers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.officer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: 1.5rem;
}

.officer-name {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -.01em;
}

.officer-role {
  margin: .2rem 0 .9rem;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.officer-note {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
}

/* ---- Join ----------------------------------------------------------- */
.join {
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.join .lead strong,
.join p strong { color: var(--gold); }

.join-cta { margin-top: 1.75rem; }

.join-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: .9375rem;
}

/* ---- Footer --------------------------------------------------------- */
footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: 3rem;
  text-align: center;
}

footer .pride-bar-thin { margin-bottom: 2.5rem; }

.footer-name {
  margin: 0;
  font-weight: 700;
  letter-spacing: .02em;
}

.footer-meta {
  margin: .5rem 0 0;
  color: var(--muted);
  font-size: .8125rem;
}

.footer-fine {
  margin: 1.25rem 0 0;
  color: #5d6579;
  font-size: .75rem;
}

/* ---- Motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
