/* Four Futures — Modern Almanac.
   Warm cream paper, serif for content moments, sans for UI chrome.
   Numbers in mono. Muted, earthy accents for the four pillars. */

:root {
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Surfaces — warm cream paper */
  --bg:           #FBF8F2;   /* main cream */
  --bg-soft:      #F5EFE0;   /* slightly darker cream — used for panels */
  --bg-muted:     #EDE5D3;   /* deeper still — used for nav strips */
  --surface:      #FCF9F3;   /* off-white for raised cards */

  /* Borders */
  --border:       #E0D6BD;
  --border-soft:  #EAE2CC;
  --border-strong:#C9BD9F;

  /* Text — warm, near-black inks */
  --text:         #1F1D17;
  --text-soft:    #3D3A30;
  --text-muted:   #6B6557;
  --text-faint:   #A89F88;

  /* Category accents — Almanac palette (muted, earthy) */
  --mind:    #2C5F5D;   /* deep teal */
  --meaning: #8B5A3C;   /* rust */
  --muscle:  #6B7A3E;   /* olive */
  --money:   #B8893D;   /* ochre */

  --mind-soft:    #E5EFEE;
  --meaning-soft: #F3E8DF;
  --muscle-soft:  #EDF0DC;
  --money-soft:   #F4EAD3;

  /* Semantic */
  --danger:  #9C3B1F;   /* deeper rust, not fire-engine red */
  --success: #5C7A3E;   /* olive-green, harmonises with --muscle */

  /* Radii & shadow */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --shadow-focus: 0 0 0 3px rgba(44, 95, 93, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
}

a { color: var(--mind); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Headings — serif voice */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}

h1 { font-size: 32px; line-height: 1.15; }
h2 { font-size: 22px; line-height: 1.25; }
h3 { font-size: 17px; line-height: 1.3; }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.muted { color: var(--text-muted); }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.serif { font-family: var(--font-display); }

/* Buttons — ink-on-cream, no harsh edges */
button, .btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 120ms ease, transform 80ms ease;
}
button:hover, .btn:hover { opacity: 0.88; }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-soft); opacity: 1; }

/* Inputs — sit on cream, focus ring in deep teal */
input[type="email"], input[type="text"], input[type="url"], textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input:focus, textarea:focus {
  border-color: var(--mind);
  box-shadow: var(--shadow-focus);
}
textarea { line-height: 1.6; }

/* Layout helpers */
.center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* Wordmark — small serif with an ink dot */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}
.wordmark .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text);
  display: inline-block;
  align-self: center;
}

/* Sliders — ink thumb on cream track */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; background: var(--border); border-radius: 2px;
}
input[type="range"]::-moz-range-track {
  height: 4px; background: var(--border); border-radius: 2px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; background: var(--text);
  border-radius: 50%; margin-top: -7px; cursor: pointer;
  box-shadow: 0 0 0 2px var(--bg);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; background: var(--text); border: none;
  border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 0 2px var(--bg);
}

/* Selection — warm */
::selection { background: var(--money-soft); color: var(--text); }
