/* wokeGod pitches — one stylesheet for the hub and every pitch page.
   Brand: wokeGod colour system (Tehom black, Scroll white, God is Gold) and an
   architectural sans. Monument Grotesk is licensed; Archivo is the free web
   stand-in, used across its width axis instead of adding a second family. */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,100..900&display=swap");

:root {
  --ink: #1a1612;
  --scroll: #f7f3ed;
  --vellum: #ece4d6;
  --gold: #c19a6b;
  --graphite: #5a524a;
  --rule: rgba(26, 22, 18, 0.14);
  --live: #56633f;
  --down: #7a2e2e;
  --paused: #8a6a3a;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 4px;
  --radius-lg: 14px;
}

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

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

body {
  margin: 0;
  background: var(--scroll);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.65;
  font-variation-settings: "wdth" 100;
}

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

a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--ink); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
.measure { max-width: var(--measure); }

/* ---- the bar across every page ---- */

.hubbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink); color: var(--scroll);
}
.hubbar .wrap { display: flex; align-items: center; gap: 1.75rem; min-height: 3.75rem; }
.hubbar a { text-decoration: none; }
.hubbar .mark { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: -0.01em; margin-right: auto; }
.hubbar .mark img { width: 28px; height: 28px; }
.hubbar nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.98rem; }
.hubbar nav > a, .hubbar summary { color: var(--scroll); opacity: 0.86; }
.hubbar nav > a:hover, .hubbar summary:hover, .hubbar [aria-current="page"] { opacity: 1; color: var(--gold); }

.projects-menu { position: relative; }
.projects-menu summary { list-style: none; cursor: pointer; padding: 0.35rem 0; }
.projects-menu summary::-webkit-details-marker { display: none; }
.projects-menu summary::after { content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin-left: 0.5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.2em) rotate(45deg); }
.projects-menu[open] summary::after { transform: translateY(0.05em) rotate(-135deg); }
.projects-menu ul {
  position: absolute; right: 0; top: calc(100% + 0.6rem);
  margin: 0; padding: 0.5rem; list-style: none;
  min-width: 17rem; max-height: min(70vh, 34rem); overflow: auto;
  background: var(--scroll); color: var(--ink);
  border-radius: var(--radius-lg); box-shadow: 0 18px 40px rgba(26, 22, 18, 0.28);
}
.projects-menu li a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); color: var(--ink); opacity: 1; }
.projects-menu li a:hover, .projects-menu li a:focus-visible { background: var(--vellum); color: var(--ink); }
.projects-menu li small { color: var(--graphite); font-size: 0.8rem; }

@media (max-width: 40rem) {
  .hubbar .wrap { flex-wrap: wrap; gap: 0.5rem 1.25rem; padding-block: 0.6rem; }
  .hubbar nav { gap: 1.1rem; width: 100%; }
  .projects-menu ul { left: 0; right: auto; min-width: min(20rem, 88vw); }
}

/* ---- type ---- */

.display {
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; font-variation-settings: "wdth" 112; }
h3 { font-size: 1.35rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.5; color: var(--graphite); max-width: 52ch; }
.quiet { color: var(--graphite); }
small, .small { font-size: 0.875rem; }

/* ---- status words, never colour alone ---- */

.status { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: currentColor; }
.status.live { color: var(--live); }
.status.down { color: var(--down); }
.status.paused { color: var(--paused); }
.status.private { color: var(--graphite); }
.status.private::before { border-radius: 1px; }

/* ---- footer ---- */

.hubfoot { margin-top: 6rem; padding-block: 2.5rem; border-top: 1px solid var(--rule); color: var(--graphite); font-size: 0.9rem; }
.hubfoot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
