/* ============================================================
   THE 23 CYCLES — stylesheet
   Palette: near-black bg, vellum text, amber accent
   Type:    EB Garamond (serif) · JetBrains Mono (mono)
   ============================================================ */

:root {
  --bg:          #0a0a0a;
  --bg-card:     #0f0e09;
  --bg-alt:      #070703;
  --text:        #e8e3d8;
  --text-dim:    #9a9080;
  --accent:      #c8860a;
  --accent-dim:  #7a4f04;
  --border:      #2a2519;
  --border-lt:   #1e1b12;
  --nav-h:       60px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }
em { font-style: italic; }

/* UTILITY */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover {
  background: #e09a14;
  text-decoration: none;
  color: #0a0a0a;
}

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.nav-login {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.5;
  transition: opacity 0.12s;
}
.nav-login:hover { opacity: 1; text-decoration: none; }

.btn-nav {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  transition: border-color 0.15s, color 0.15s;
}
.btn-nav:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: calc(var(--nav-h) + 5rem) 2rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-inner { flex: 1 1 520px; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  opacity: 0.8;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.18;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero h1 em { color: var(--accent); font-style: italic; }

.hero-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.72;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-glyph {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.hero-glyph svg {
  width: 200px;
  height: 200px;
}

/* EVIDENCE STRIP */
.evidence-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.evidence-card { padding: 0; }

.evidence-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--accent-dim);
  display: block;
  margin-bottom: 0.6rem;
}

.evidence-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.evidence-card p {
  font-size: 0.93rem;
  color: var(--text-dim);
  line-height: 1.68;
  margin-bottom: 1rem;
}

.evidence-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--accent-dim);
  letter-spacing: 0.06em;
  display: block;
  border-top: 1px solid var(--border);
  padding-top: 0.65rem;
}

/* CIVILIZATION */
.civilization {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

.civ-text { max-width: 760px; }

.civ-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.civ-text p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}
.civ-text p:last-child { margin-bottom: 0; }

/* FREE CYCLES */
.free-cycles {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

.free-cycles h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.cycle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 1rem;
}

.cycle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.75rem;
}

.cycle-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.cycle-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 400;
  flex-shrink: 0;
}

.cycle-trad {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  opacity: 0.65;
}

/* Image slot: aspect ratio box, placeholder hidden until onerror fires */
.cycle-image-slot {
  margin-bottom: 1.2rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: #0c0b06;
  position: relative;
}

.cycle-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  display: none;           /* JS onerror sets display:flex */
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 1px dashed var(--border);
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.cycle-card h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.55rem;
}

.cycle-gloss {
  color: var(--accent);
  font-style: italic;
  font-size: 0.93rem;
  margin-bottom: 1rem;
  border-left: 2px solid var(--accent-dim);
  padding-left: 0.85rem;
  line-height: 1.55;
}

.cycle-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0.85rem;
}
.cycle-card p:last-of-type { margin-bottom: 0; }

.cycle-citation {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cite-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: var(--accent-dim);
  text-transform: uppercase;
}

.cite-ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--text-dim);
  line-height: 1.6;
  opacity: 0.7;
}

/* WITHHELD */
.withheld {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
}

.withheld-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.cycle-num-lg {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 300;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.withheld-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.withheld-text p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 0.8rem;
}
.withheld-text p:last-child { margin-bottom: 0; }

/* CYCLE LIST */
.cycles-teaser {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

.cycles-teaser h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.cycle-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.cycle-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.2rem;
  border-bottom: 1px solid var(--border-lt);
  transition: background 0.1s;
}

/* right column items get left border instead */
.cycle-item:nth-child(odd)  { border-right: 1px solid var(--border-lt); }

/* last row: remove bottom border */
.cycle-item:last-child { border-bottom: none; }
.cycle-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

.cycle-item.free          { background: rgba(200, 134, 10, 0.05); }
.cycle-item.withheld-item { background: rgba(200, 134, 10, 0.03); }

.cn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  width: 1.8rem;
  opacity: 0.55;
}

.ct {
  font-size: 0.93rem;
  color: var(--text-dim);
  flex: 1;
}

.cycle-item.free .ct          { color: var(--text); }
.cycle-item.withheld-item .ct { color: var(--accent); font-style: italic; }

.free-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.lock {
  color: var(--border);
  font-size: 0.45rem;
  flex-shrink: 0;
}

.withheld-lock {
  color: var(--accent);
  opacity: 0.45;
}

/* ARCHIVE / SUBSCRIBE */
.archive {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

.archive h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2rem;
  position: relative;
}

.tier-featured { border-color: var(--accent-dim); }

.tier-badge {
  position: absolute;
  top: -1px; right: 1.5rem;
  background: var(--accent);
  color: #0a0a0a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 0 0 2px 2px;
}

.tier-header { margin-bottom: 1.5rem; }

.tier-name {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.tier-price {
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}

.per-mo {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 400;
}

.tier-features {
  list-style: none;
  margin-bottom: 2rem;
}

.tier-features li {
  font-size: 0.92rem;
  color: var(--text-dim);
  padding: 0.45rem 0 0.45rem 1rem;
  border-bottom: 1px solid var(--border-lt);
  position: relative;
}

.tier-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
  font-size: 0.75rem;
  line-height: 1.8;
}

/* EMAIL CAPTURE */
.email-capture {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.email-capture > p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.email-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.email-form input[type="email"] {
  background: #111008;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 2px;
  width: 280px;
  outline: none;
  transition: border-color 0.15s;
}
.email-form input[type="email"]:focus { border-color: var(--accent-dim); }
.email-form input[type="email"]::placeholder {
  color: var(--text-dim);
  opacity: 0.45;
}

.email-form button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.email-form button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.email-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--text-dim);
  opacity: 0.45;
  letter-spacing: 0.06em;
}

.success-msg {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 1rem;
}

/* FOOTER */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  gap: 4rem;
  margin-bottom: 2.5rem;
}

.footer-brand { flex: 1; }

.footer-brand p {
  margin-top: 0.8rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  max-width: 480px;
  opacity: 0.6;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.55;
  transition: opacity 0.12s;
}
.footer-links a:hover { opacity: 1; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  color: var(--text-dim);
  opacity: 0.38;
  letter-spacing: 0.04em;
  line-height: 1.65;
  max-width: 820px;
}

/* RESPONSIVE ─────────────────────────────── */

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 3rem);
    gap: 2rem;
  }
  .hero-glyph { display: none; }

  .evidence-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .cycle-grid     { grid-template-columns: 1fr; }
  .tier-grid      { grid-template-columns: 1fr; }
  .withheld-inner { gap: 2rem; }
  .footer-inner   { flex-direction: column; gap: 2rem; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { padding: 0 1.25rem; }

  /* cycle list drops to 1 column */
  .cycle-list { grid-template-columns: 1fr; }
  .cycle-item:nth-child(odd)                    { border-right: none; }
  .cycle-item:nth-last-child(2):nth-child(odd)  { border-bottom: 1px solid var(--border-lt); }
  .cycle-item:last-child                        { border-bottom: none; }

  .hero-cta { flex-direction: column; }

  .email-form { flex-direction: column; align-items: center; }
  .email-form input[type="email"] { width: 100%; max-width: 340px; }
}
