/* King of Mogging — black, gold, crown. Self-hosted fonts only. No external JS. */

@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel-latin-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #090909;
  --bg-elev: #12110e;
  --bg-card: #16140f;
  --gold: #d4af37;
  --gold-bright: #f0d078;
  --gold-deep: #8c6a14;
  --cream: #f6f0e4;
  --muted: #b8b0a0;
  --line: rgba(212, 175, 55, 0.28);
  --line-strong: rgba(212, 175, 55, 0.55);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --display: "Cinzel", "Palatino Linotype", Palatino, serif;
  --content: 42rem;
  --page: 72rem;
  --header-h: 4.25rem;
}

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

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(212, 175, 55, 0.09), transparent 55%),
    var(--bg);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-underline-offset: 0.18em; }
a:hover { color: #fff4c4; }
a:focus-visible,
button:focus-visible,
.nav-toggle-btn:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--gold);
  color: #111;
  padding: 0.4rem 0.8rem;
  font-family: var(--display);
  font-size: 0.85rem;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--page), calc(100% - 2rem));
  margin-inline: auto;
}
.prose-wrap { width: min(var(--content), calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 9, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: var(--gold-bright); }
.brand img, .brand .crown {
  width: 2rem;
  height: 2rem;
  flex: none;
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-btn {
  display: none;
  width: 2.6rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-bright);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-btn span,
.nav-toggle-btn span::before,
.nav-toggle-btn span::after {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  position: relative;
}
.nav-toggle-btn span::before,
.nav-toggle-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-btn span::before { top: -6px; }
.nav-toggle-btn span::after { top: 6px; }

.nav ul {
  display: flex;
  gap: 0.2rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

@media (max-width: 800px) {
  .nav-toggle-btn { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(9, 9, 9, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    display: none;
  }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav a { display: block; padding: 0.7rem 0; width: 100%; }
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(36rem, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero::before { top: 1.4rem; }
.hero::after { bottom: 0; }

.hero-crown {
  width: 6.5rem;
  height: 6.5rem;
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.28));
}
.eyebrow {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.hero h1,
.page-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0.55rem 0 0;
  text-wrap: balance;
}
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 6.4rem);
  font-weight: 900;
}
.motto {
  margin: 1.6rem auto 0;
  max-width: 22em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.25;
  color: var(--gold-bright);
}
.motto::before,
.motto::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto;
}

.lede {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  color: var(--cream);
  font-size: 1.28rem;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.2rem;
  border: 1px solid var(--gold);
  color: #140f05;
  background: linear-gradient(180deg, #f0d078, #d4af37 55%, #b89122);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.btn:hover { color: #000; filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--gold-bright);
}
.btn-ghost:hover { background: rgba(212, 175, 55, 0.08); color: #fff4c4; }

/* Page layout */
main { flex: 1 0 auto; }
.page-hero {
  text-align: center;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}
.page-hero .lede { margin-top: 1rem; color: var(--muted); font-size: 1.22rem; }

article.prose,
.prose {
  padding: 2.4rem 0 3.5rem;
}
.prose h2, .prose h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  text-wrap: balance;
}
.prose h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 2.4rem 0 0.9rem;
  color: var(--gold-bright);
}
.prose h3 {
  font-size: 1.05rem;
  margin: 1.8rem 0 0.55rem;
  color: var(--cream);
}
.prose p, .prose li { color: var(--cream); }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose .cite {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Cards */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 0 4rem;
  width: min(var(--page), calc(100% - 2rem));
  margin-inline: auto;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: var(--shadow);
}
.card h2 {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  color: var(--gold-bright);
}
.card p { margin: 0 0 1rem; color: var(--muted); font-size: 1.1rem; }
.card a.more {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--gold);
}
@media (max-width: 800px) {
  .card-row { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 3rem; }
}

/* Bio band */
.bio-band {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto 3.5rem;
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  text-align: center;
}
.bio-band h2 {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 0.8rem;
}
.bio-band p { margin: 0 0 1rem; }
.bio-band p:last-child { margin-bottom: 0; }
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: center;
  margin-top: 1.1rem;
  padding: 0;
  list-style: none;
}
.profile-links a {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.1rem;
}

/* Glossary */
.glossary {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.glossary > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.glossary dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0;
}
.glossary dd { margin: 0; color: var(--cream); }
@media (max-width: 620px) {
  .glossary > div { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.7rem 0 0.2rem; }

/* Title claim callout */
.callout {
  margin: 2rem 0 0;
  padding: 1.5rem 1.4rem 1.3rem;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
}
.callout h2 { margin-top: 0; }

/* Identity */
.swatches { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1rem 0 1.5rem; }
.swatch {
  width: 8.5rem;
  border: 1px solid var(--line);
}
.swatch i {
  display: block;
  height: 4.2rem;
}
.swatch p {
  margin: 0;
  padding: 0.45rem 0.5rem;
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.asset-row { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: end; margin: 1rem 0; }
.asset-row figure { margin: 0; text-align: center; }
.asset-row figcaption {
  margin-top: 0.4rem;
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.machine {
  background: #000;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  padding: 1rem 1.1rem;
  overflow: auto;
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 400;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  margin-top: auto;
  background: #070706;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  align-items: baseline;
}
.site-footer p { margin: 0; color: var(--muted); font-size: 1rem; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.site-footer a {
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.site-footer a:hover { color: var(--gold-bright); }

/* 404 */
.not-found { text-align: center; padding: 4.5rem 0 5rem; }
.not-found h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

/* Breadcrumbs */
.crumbs {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-bright); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: var(--gold-deep); }

/* Citations */
.sources { margin-top: 2rem; }
.sources li { margin: 0 0 0.4rem; }

.note {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Question pages */
.answer { font-size: 1.32rem; color: var(--cream); margin: 0 0 1.2rem; }
.answer strong { color: var(--gold-bright); }
.q-list { list-style: none; padding: 0 !important; margin: 0 0 1.5rem; columns: 2 18rem; column-gap: 2rem; }
.q-list li { break-inside: avoid; margin: 0 0 0.55rem; }
.related { margin-top: 1.6rem; }
.quote { margin: 1.4rem 0; padding: 0.4rem 0 0.4rem 1.1rem; border-left: 3px solid var(--gold, #d4af37); font-style: italic; font-size: 1.3rem; }
.quote footer { font-style: normal; font-size: 1rem; color: var(--muted); margin-top: 0.3rem; }
.hero .quote { border-left: 0; padding: 0; text-align: center; }
