/* ============================================================
   GENERATIVE ECONOMYX — base design system
   One disciplined accent (brass) carries the "value generated"
   thread. Everything else is quiet.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Spectral:ital,wght@0,300;0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* field */
  --void:        #0a0a0c;   /* near-black, faintly cool */
  --void-2:      #0e0e11;   /* raised surface */
  --rule:        #1c1b20;   /* hairline */
  --rule-soft:   #15141890; /* faint dividers */

  /* ink */
  --bone:        #e9e5db;   /* primary reading ink, warm */
  --bone-dim:    #b8b4ab;   /* secondary */
  --mute:        #76736c;   /* captions, labels */
  --mute-deep:   #45433f;   /* dimmed / "walked" path */

  /* the single accent — value, the generative thread */
  --brass:       #b08a4e;
  --brass-lit:   #d6b06a;
  --brass-glow:  #b08a4e33;

  /* type */
  --display: 'Cormorant Garamond', Georgia, serif;
  --read:    'Spectral', Georgia, serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* measure & rhythm */
  --measure: 38rem;          /* ~62ch reading width */
  --measure-wide: 52rem;
  --step: clamp(1.05rem, 0.96rem + 0.45vw, 1.2rem);
  --lh: 1.78;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--read);
  font-size: var(--step);
  line-height: var(--lh);
  font-weight: 300;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--brass-glow); color: var(--bone); }

a { color: inherit; text-decoration: none; }

/* ---- shared structural devices ---- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
}

.wordmark {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.wordmark .x { color: var(--brass); }

.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 0;
}

/* ---- form primitives (shared by landing + login) ---- */

.field {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--bone);
  font-family: var(--read);
  font-size: 1.05rem;
  padding: 0.75rem 0.25rem;
  text-align: center;
  letter-spacing: 0.01em;
  transition: border-color 0.4s ease;
}
.field::placeholder { color: var(--mute); font-style: italic; }
.field:focus {
  outline: none;
  border-bottom-color: var(--brass);
}

.cta {
  display: inline-block;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  cursor: pointer;
  position: relative;
}
.cta::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--brass);
  transition: right 0.5s cubic-bezier(.2,.7,.2,1);
}
.cta:hover::after,
.cta:focus-visible::after { right: 0; }
.cta:disabled { color: var(--mute); cursor: default; }
.cta:disabled::after { background: var(--mute-deep); }

/* keyboard focus floor */
:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 4px;
}

.note { color: var(--mute); font-size: 0.92rem; line-height: 1.7; }
.brass { color: var(--brass-lit); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
