/* MindGenesisOS — the intake.
   A private study, not a dashboard: chaptered, spacious, one idea at a time.
   No gradients, no confetti, no emoji, no progress gamification. */

:root {
  color-scheme: light dark;
  --ink: #1a1815;
  --ink-soft: #5c574f;
  --ink-faint: #8f8880;
  --paper: #faf8f4;
  --rule: #e0dad0;
  --field: #fff;
  --red: #9b2c2c;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ebe6dd;
    --ink-soft: #a49d92;
    --ink-faint: #6d675f;
    --paper: #15140f;
    --rule: #2e2b25;
    --field: #1c1a15;
    --red: #d97070;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.65 ui-serif, Georgia, "Iowan Old Style", serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.75rem; }

/* ---------- masthead ---------- */

header {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4rem;
}
header .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding-top: 1.6rem; padding-bottom: 1.6rem;
}
.mark { font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); }
.whereami { font-size: .82rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* ---------- the question ---------- */

.chapter {
  font-size: .82rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 1.5rem;
}
.question {
  font-size: 1.7rem; line-height: 1.35; font-weight: 400;
  margin: 0 0 2.25rem; letter-spacing: -.01em;
}

textarea {
  width: 100%; min-height: 8.5rem; padding: 1rem 1.1rem;
  font: inherit; font-size: 1.05rem; line-height: 1.6;
  color: var(--ink); background: var(--field);
  border: 1px solid var(--rule); border-radius: 2px;
  resize: vertical;
}
textarea:focus { outline: none; border-color: var(--ink-soft); }
textarea::placeholder { color: var(--ink-faint); }

.actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.1rem; }

button {
  font: inherit; font-size: .95rem; padding: .6rem 1.4rem; cursor: pointer;
  color: var(--paper); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 2px;
}
button:hover:not(:disabled) { opacity: .85; }
button:disabled { opacity: .35; cursor: default; }
button.quiet { background: transparent; color: var(--ink-soft); border-color: var(--rule); }

.hint { font-size: .84rem; color: var(--ink-faint); }

/* ---------- pushback: the product working, not an error ---------- */

.pushback {
  border-left: 2px solid var(--ink-soft);
  padding: .1rem 0 .1rem 1.1rem;
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ---------- the only red on the screen ---------- */

.absence {
  color: var(--red);
  font-size: .95rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

/* ---------- progress: quiet, at the foot ---------- */

footer { margin: 5rem 0 4rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.counts { display: flex; justify-content: space-between; gap: 1rem; font-size: .86rem; color: var(--ink-faint); }
.counts b { font-weight: 400; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.areas { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.4rem; }
.area {
  font-size: .74rem; letter-spacing: .04em; padding: .22rem .5rem;
  border: 1px solid var(--rule); border-radius: 2px; color: var(--ink-faint);
}
.area.part { color: var(--ink-soft); border-color: var(--ink-faint); }
.area.done { color: var(--paper); background: var(--ink-soft); border-color: var(--ink-soft); }

/* ---------- interludes ---------- */

.interlude { padding: 2rem 0 1rem; }
.interlude h2 { font-size: 1.45rem; font-weight: 400; margin: 0 0 1rem; letter-spacing: -.01em; }
.interlude p { color: var(--ink-soft); margin: 0 0 1.5rem; }

/* ---------- reading back what they said ---------- */

.entry { margin: 0 0 2.5rem; }
.entry .q { color: var(--ink-faint); font-size: .92rem; margin: 0 0 .45rem; }
.entry .a { margin: 0; white-space: pre-wrap; }
.area-head {
  font-size: .82rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint); margin: 3.5rem 0 1.5rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--rule);
}
.area-head:first-child { margin-top: 0; }

/* ---------- sign in ---------- */

.signin { max-width: 21rem; margin: 18vh auto; padding: 0 1.75rem; }
.signin h1 { font-size: 1.35rem; font-weight: 400; margin: 0 0 .4rem; }
.signin p { color: var(--ink-faint); font-size: .9rem; margin: 0 0 2rem; }
.signin input {
  width: 100%; padding: .7rem .9rem; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--field);
  border: 1px solid var(--rule); border-radius: 2px;
}
.signin input:focus { outline: none; border-color: var(--ink-soft); }
.signin button { width: 100%; margin-top: .9rem; }
.signin .err { color: var(--red); font-size: .88rem; margin-top: .9rem; }

nav { display: flex; gap: 1.5rem; font-size: .86rem; }
nav a { color: var(--ink-faint); text-decoration: none; border-bottom: 1px solid transparent; cursor: pointer; }
nav a:hover, nav a.on { color: var(--ink); border-bottom-color: var(--ink-faint); }

.hidden { display: none !important; }
