@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #090e16;
  --surface: #101722;
  --surface-alt: #151f2d;
  --ink: #e6eefb;
  --muted: #96a5bb;
  --line: #27364c;
  --accent: #3f80c6;
  --accent-soft: #1b3048;
  --accent-warm: #c99861;
  --hero-from: rgba(17, 42, 70, 0.96);
  --hero-to: rgba(23, 57, 96, 0.9);
  --hero-glow: rgba(201, 152, 97, 0.34);
  --cmd-bg: #172536;
  --cmd-ink: #d9e8fb;
  --cmd-line: #2d4461;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 20px 48px -30px rgba(0, 0, 0, 0.72);
}

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

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

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1160px, 92vw);
  margin: 24px auto 36px;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  background: rgba(12, 18, 27, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 14px;
  z-index: 20;
}

.brand {
  display: grid;
  gap: 2px;
}

.brand-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.brand-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.18rem;
  margin: 0;
  line-height: 1.1;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.top-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.top-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.top-nav a:hover {
  color: var(--ink);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.top-nav a.is-active {
  color: #f7fbff;
  background: var(--accent);
}

.hero {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, var(--hero-from), var(--hero-to)),
    radial-gradient(circle at 80% 20%, var(--hero-glow), transparent 52%);
  color: #ecf4ff;
  padding: clamp(28px, 4.5vw, 52px);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transform: translateY(12px);
  opacity: 0;
  animation: rise-in 560ms ease forwards;
}

.hero p,
.hero li {
  color: rgba(236, 244, 255, 0.9);
}

.kicker {
  display: inline-block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 14px;
  opacity: 0.86;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.2rem);
}

.hero h1 {
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.7),
    0 8px 22px rgba(2, 8, 18, 0.9);
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

p {
  margin: 0 0 14px;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.metric {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(236, 244, 255, 0.24);
  background: rgba(236, 244, 255, 0.1);
}

.metric .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.metric .value {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
}

.layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.rail,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.rail {
  display: none !important;
}

.rail h3 {
  margin-bottom: 8px;
}

.rail ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.rail a {
  text-decoration: none;
  display: block;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 11px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 160ms ease;
}

.rail a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface-alt);
}

.rail a.is-active {
  color: #f0f7ff;
  border-color: rgba(79, 141, 207, 0.5);
  background: var(--accent-soft);
}

.rail-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.content-grid {
  display: grid;
  gap: 14px;
  width: 100%;
}

.panel {
  padding: clamp(18px, 3.4vw, 28px);
}

.panel h2 {
  margin-bottom: 8px;
}

.panel p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  background: var(--surface-alt);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 10px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.info-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.info-list li {
  margin-bottom: 7px;
}

.sequence {
  margin: 0;
  padding-left: 22px;
}

.sequence li {
  margin-bottom: 9px;
  color: var(--muted);
}

.cmd {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--cmd-bg);
  color: var(--cmd-ink);
  border: 1px solid var(--cmd-line);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.86rem;
}

[data-dev-only="true"] {
  display: none !important;
}

body.dev-mode [data-dev-only="true"] {
  display: block !important;
}

body.dev-mode::after {
  content: "DEV VIEW";
  position: fixed;
  right: 14px;
  bottom: 14px;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  z-index: 999;
}

body.theme-quote {
  --line: #3d3557;
  --accent: #8a5bd8;
  --accent-soft: #2b2141;
  --hero-from: rgba(56, 38, 88, 0.97);
  --hero-to: rgba(79, 50, 126, 0.92);
  --hero-glow: rgba(169, 129, 231, 0.32);
  --cmd-bg: #231c33;
  --cmd-ink: #e7dcff;
  --cmd-line: #55417a;
}

body.theme-res {
  --line: #2c3f5b;
  --accent: #4b92ff;
  --accent-soft: #1a2f4d;
  --hero-from: rgba(20, 53, 96, 0.97);
  --hero-to: rgba(26, 82, 148, 0.92);
  --hero-glow: rgba(126, 185, 255, 0.35);
  --cmd-bg: #172840;
  --cmd-ink: #dceaff;
  --cmd-line: #315683;
}

body.theme-cuecontrol {
  --line: #4b2730;
  --accent: #9f3d4e;
  --accent-soft: #331821;
  --hero-from: rgba(64, 24, 34, 0.97);
  --hero-to: rgba(97, 34, 50, 0.92);
  --hero-glow: rgba(183, 94, 116, 0.3);
  --cmd-bg: #26131a;
  --cmd-ink: #f3dce1;
  --cmd-line: #66313f;
}

body.theme-cuetunes {
  --bg: #050706;
  --surface: #0b0f0d;
  --surface-alt: #101613;
  --ink: #e4f6ea;
  --muted: #8da89b;
  --line: #22352b;
  --accent: #1db954;
  --accent-soft: #123121;
  --hero-from: rgba(5, 23, 13, 0.98);
  --hero-to: rgba(14, 64, 37, 0.93);
  --hero-glow: rgba(29, 185, 84, 0.38);
  --cmd-bg: #102217;
  --cmd-ink: #c5f1d6;
  --cmd-line: #2c6a46;
}

body.theme-searcholume {
  --bg: #191817;
  --surface: #2c2c2c;
  --surface-alt: #242423;
  --ink: #dcfff1;
  --muted: #9ebdb2;
  --line: #2b5244;
  --accent: #80ffd2;
  --accent-soft: #2b5244;
  --hero-from: rgba(25, 24, 23, 0.98);
  --hero-to: rgba(43, 82, 68, 0.94);
  --hero-glow: rgba(128, 255, 210, 0.3);
  --cmd-bg: #191817;
  --cmd-ink: #80ffd2;
  --cmd-line: #2b5244;
}

body.theme-searcholume .hero {
  background: #2b5244;
}

.footer-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 440ms ease, transform 440ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .rail {
    display: none !important;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .top-nav {
    display: none;
    width: 100%;
    padding-top: 6px;
    order: 3;
    flex-basis: 100%;
  }

  .top-nav.show {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .top-nav a {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

}
