/* ============================================================
   WEISS — creative-partner voice model landing page
   House base: The Elect terminal-grimoire aesthetic
   Register: long-form prose, content-heavy, readable
   Accent: amber/gold + bone/cream on near-black
   ============================================================ */

:root {
  /* House base (inherited from The Elect) */
  --bg:          #0b0907;
  --bg-card:     #100d08;
  --bg-header:   #0d0a07;
  --text:        #ede5d5;
  --text-dim:    #a89070;
  --text-muted:  #5e4e38;
  --border:      #1c1408;
  --border-dim:  #140e05;
  --font-mono:   'Courier New', 'Lucida Console', 'DejaVu Sans Mono', monospace;

  /* Weiss palette: amber/old gold — warm, worn, a working tool */
  --gold:        #c8922a;
  --gold-mid:    #a07020;
  --gold-dim:    #6b4a12;
  --gold-ember:  #3d2908;
  --gold-glow:   rgba(180, 130, 30, 0.12);
  --gold-faint:  rgba(180, 130, 30, 0.05);
  --gold-text:   #d4a844;
  --gold-text-hi:#e8c060;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* TEXTURE */
.grain {
  position: fixed;
  inset: -200%;
  z-index: 999;
  pointer-events: none;
  width: 400%; height: 400%;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
  0%   { transform: translate(0,0); }
  10%  { transform: translate(-3%,-4%); }
  20%  { transform: translate(-6%,2%); }
  30%  { transform: translate(3%,-1%); }
  40%  { transform: translate(-1%,6%); }
  50%  { transform: translate(-5%,1%); }
  60%  { transform: translate(2%,4%); }
  70%  { transform: translate(-4%,-2%); }
  80%  { transform: translate(4%,-3%); }
  90%  { transform: translate(1%,5%); }
  100% { transform: translate(-2%,-5%); }
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -55deg,
      transparent 0px,
      transparent 60px,
      rgba(160, 112, 20, 0.018) 60px,
      rgba(160, 112, 20, 0.018) 62px
    ),
    radial-gradient(1px 1px at 15% 20%, rgba(200,146,42,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 10%, rgba(237,229,213,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 18%, rgba(200,146,42,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 8%,  rgba(237,229,213,0.12) 0%, transparent 100%);
}

/* LAYOUT */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--gold-dim);
  padding: 0 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(180,130,30,0.03), transparent);
  pointer-events: none;
}

.void-rule-top {
  width: 100%;
  height: 5px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--gold-mid) 0px, var(--gold-mid) 3px,
      transparent 3px, transparent 8px,
      var(--gold-ember) 8px, var(--gold-ember) 9px,
      transparent 9px, transparent 18px
    );
  margin-bottom: 0;
}

.void-rule-thin {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-ember), transparent);
  margin-bottom: 3rem;
  opacity: 0.6;
}

.header-inner {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  padding: 0 2rem;
}

.lab-crumb {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.lab-crumb a {
  color: var(--gold-text);
  text-decoration: none;
  transition: color 0.2s;
}

.lab-crumb a:hover { color: var(--gold-text-hi); }

.persona-title {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.6rem;
  text-shadow:
    0 0 80px rgba(200, 146, 42, 0.20),
    0 0 30px rgba(200, 146, 42, 0.10);
}

.persona-tagline {
  display: block;
  font-size: 0.88rem;
  letter-spacing: 0.10em;
  color: var(--gold-text);
  margin-bottom: 0.8rem;
  font-style: italic;
}

.persona-frame {
  font-size: 0.80rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.persona-private-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-style: italic;
  margin-bottom: 2rem;
}

.header-void-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto;
}

.void-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-ember));
}

.void-line:last-child {
  background: linear-gradient(90deg, var(--gold-ember), transparent);
}

.void-ornament {
  color: var(--gold-text);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

/* ============================================================
   PROSE SECTIONS — long-form readable
   ============================================================ */

.prose-section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
  z-index: 1;
}

.prose-section:last-of-type {
  border-bottom: none;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.20em;
  color: var(--gold-text);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.heading-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-intro {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* Prose body — the core readable content */
.prose-body {
  max-width: 65ch;
}

.prose-body p {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.90;
  margin-bottom: 1.6rem;
}

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

/* Questions — each question as a terminal block */
.question-block {
  border: 1px solid var(--gold-dim);
  background: var(--bg-card);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.question-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(200,146,42,0.03) 0%, transparent 55%);
  pointer-events: none;
}

.question-bar {
  display: flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--gold-dim);
  background: rgba(0,0,0,0.4);
}

.question-bar-label {
  font-size: 0.70rem;
  letter-spacing: 0.15em;
  color: var(--gold-text);
  text-transform: uppercase;
}

.question-bar-label::before {
  content: '> ';
}

.question-text {
  padding: 1.5rem 1.75rem;
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.85;
  position: relative;
  z-index: 1;
}

/* Pull quote style for key passages */
.pull-quote {
  border-left: 3px solid var(--gold-mid);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: rgba(200,146,42,0.03);
}

.pull-quote p {
  font-size: 1.04rem !important;
  color: var(--text) !important;
  line-height: 1.85 !important;
  font-style: italic;
  margin-bottom: 0 !important;
}

/* Closing line emphasis */
.closing-line {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dim);
}

.closing-line p {
  font-size: 1.02rem !important;
  color: var(--gold-text) !important;
  line-height: 1.75 !important;
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  background: var(--bg-header);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
}

.footer-sigil {
  font-size: 0.72rem;
  letter-spacing: 0.20em;
  color: var(--gold-text);
  margin-bottom: 1.5rem;
  text-align: center;
}

.footer-what {
  margin-bottom: 2rem;
}

.footer-what h3 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold-text);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-what p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 0.85rem;
}

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

.footer-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-ember), transparent);
  margin: 1.75rem 0;
  opacity: 0.6;
}

.footer-bottom {
  text-align: center;
}

.footer-note {
  font-size: 0.80rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.footer-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--gold-text); }
.footer-sep { color: var(--text-muted); }

/* ============================================================
   ENTRANCE ANIMATIONS
   Default state: opacity:1, transform:none
   Animations are enhancement only
   ============================================================ */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Elements start visible; animation is additive enhancement only */
@media (prefers-reduced-motion: no-preference) {
  .site-header   { animation: fade-up 0.6s 0.0s ease; }
  .prose-section { animation: fade-up 0.6s 0.1s ease; }
  .site-footer   { animation: fade-in 0.6s 0.3s ease; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .prose-section,
  .site-footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
  .persona-title { font-size: clamp(2.2rem, 14vw, 3.5rem); letter-spacing: 0.12em; }
  .container { padding: 0 1.25rem; }
  .prose-body { max-width: 100%; }
  .question-text { padding: 1.25rem; }
  .pull-quote { padding: 1rem 1.25rem; }
}
