/*
Theme Name: The Continum
Theme URI: https://example.com/the-continum
Author: OpenAI
Author URI: https://openai.com
Description: Immersive secret-society inspired WordPress theme for The Continum.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: the-continum
*/

:root {
  --bg: #060606;
  --bg-soft: #0d0d0d;
  --panel: rgba(10,10,10,.78);
  --line: #24211b;
  --bone: #f3eddc;
  --muted: #b8b09b;
  --gold: #c8b27a;
  --gold-soft: rgba(200,178,122,.12);
  --blood: #7d1f1f;
  --green: #183d27;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.site-shell {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(125,31,31,.18), transparent 22%),
    radial-gradient(circle at 75% 20%, rgba(24,61,39,.16), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(161,98,7,.14), transparent 24%),
    var(--bg);
}
.site-shell:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,.08) 50%, transparent 100%);
  background-size: 100% 6px;
}
.mono {
  font-family: "Courier New", Courier, monospace;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}
.brand-mark {
  font-size: 12px;
  color: #8b826e;
}
.brand-title {
  margin-top: 8px;
  font-size: 28px;
  color: #f4efdf;
}
.hero, .section { padding: 72px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: start;
}
.kicker {
  font-size: 12px;
  color: #897f67;
}
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(48px, 8vw, 86px);
  line-height: .96;
  font-weight: 600;
}
.lead {
  max-width: 760px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}
.panel, .card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,18,18,.96), rgba(8,8,8,.95));
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
}
.panel { padding: 32px; }
.button-row, .path-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill, .path-link, .ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid #2d2a23;
  background: rgba(0,0,0,.3);
  font: 12px/1 "Courier New", monospace;
  color: #8f866f;
  text-transform: uppercase;
  letter-spacing: .24em;
}
.pill.gold, .path-link.active {
  border-color: #b89a58;
  background: var(--gold-soft);
  color: #e4cf98;
}
.side-stack { display: grid; gap: 18px; }
.side-card {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.4);
  border-radius: 28px;
  padding: 24px;
}
.small-title {
  color: #d8c38b;
  font-size: 11px;
}
.side-card p, .card p { color: #b6ad99; }
.grid-2 { display: grid; gap: 24px; grid-template-columns: .9fr 1.1fr; }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card { padding: 24px; }
.file-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #443a28;
  font: 10px/1 "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #cbb67f;
}
.notice {
  border: 1px dashed #4d432f;
  padding: 16px;
  border-radius: 18px;
  color: #7f7768;
  font: 12px/1.6 "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.cta-wrap {
  border: 1px solid #27231c;
  border-radius: 34px;
  padding: 40px;
  background: linear-gradient(180deg, rgba(15,15,15,.95), rgba(8,8,8,.98));
}
.two-col { display: grid; gap: 26px; grid-template-columns: 1.1fr .9fr; }
.cta-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: rgba(0,0,0,.3);
}
.footer {
  padding: 40px 0 70px;
  color: #8c846f;
}
.threshold {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}
.threshold-box {
  width: min(760px, 100%);
}
.threshold-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143,122,79,.5);
  background: rgba(12,12,12,.8);
  box-shadow: 0 0 60px rgba(161,98,7,.1);
  font-size: 28px;
  color: var(--gold);
}
.threshold h1 {
  margin: 20px 0 0;
  font-size: clamp(44px, 8vw, 82px);
  line-height: .95;
}
.threshold p {
  margin: 26px auto 0;
  color: var(--muted);
  max-width: 680px;
  font-size: 18px;
}
.threshold-form {
  margin: 34px auto 0;
  max-width: 760px;
  border: 1px solid #2c2a24;
  background: rgba(0,0,0,.5);
  border-radius: 32px;
  padding: 18px;
  backdrop-filter: blur(18px);
}
.threshold-row {
  display: flex;
  gap: 12px;
}
.threshold input {
  flex: 1;
  min-width: 0;
  border-radius: 18px;
  border: 1px solid #2f2c24;
  background: #090909;
  color: #ede7d7;
  padding: 18px 20px;
  font: 15px/1 "Courier New", monospace;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.threshold button, .site-btn {
  border-radius: 18px;
  border: 1px solid #8f7a4f;
  background: rgba(200,178,122,.1);
  color: #dbc690;
  padding: 18px 20px;
  font: 12px/1 "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .22em;
  cursor: pointer;
}
.helper, .error-text {
  margin-top: 14px;
  font: 12px/1.6 "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.helper { color: #716958; }
.error-text { color: #b34a4a; }
.hidden-theme { display: none; }
body.continum-entered .hidden-theme { display: block; }
body.continum-entered .threshold-only { display: none; }
body:not(.continum-entered) .site-header,
body:not(.continum-entered) .entered-content { display: none; }
.secret-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  border: 1px solid #5b4b2b;
  background: rgba(0,0,0,.86);
  color: #dec98f;
  padding: 14px 18px;
  border-radius: 999px;
  font: 12px/1 "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .24em;
  display: none;
}
body.secret-unlocked .secret-toast { display: block; }
@media (max-width: 980px) {
  .hero-grid, .grid-2, .grid-3, .two-col { grid-template-columns: 1fr; }
  .threshold-row { flex-direction: column; }
}
