/* ============================================================
   Mira — Shared design tokens & base styles
   Vertaalt 1-op-1 naar static/css/mira.css in Flask.
   ============================================================ */

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

:root {
  /* Huisstijl */
  --parchment: #F7F4EF;
  --parchment-deep: #EDE8DF;
  --sand: #DDD0B8;
  --sand-deep: #D5C5A8;
  --char: #241C14;
  --char-soft: #3A2E22;
  --terracotta: #B9532C;
  --terracotta-deep: #9F4421;
  --terracotta-wash: rgba(185, 83, 44, 0.08);
  --bronze: #7C6A4E;
  --bronze-soft: #9A8767;
  --bronze-wash: rgba(124, 106, 78, 0.10);
  --shell: #1a1612;

  /* Hairlines — nooit puur zwart */
  --rule: rgba(36, 28, 20, 0.14);
  --rule-soft: rgba(36, 28, 20, 0.08);
  --rule-strong: rgba(36, 28, 20, 0.28);

  /* Statussen — typografisch ondersteund */
  --status-new: var(--terracotta);
  --status-review: var(--bronze);
  --status-done: var(--char-soft);
  --status-rejected: var(--bronze-soft);
  --status-success: #5A7A4A;

  /* Schaduw — alleen op CTA's, heel subtiel */
  --cta-shadow: 0 1px 0 rgba(36, 28, 20, 0.18), 0 0 0 1px rgba(36, 28, 20, 0.04);
}

/* ----- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; background: none; border: 0; outline: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ----- Type basis ------------------------------------------- */
html, body {
  font-family: 'Spectral', Georgia, 'Times New Roman', serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  color: var(--char);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

body {
  font-variant-numeric: oldstyle-nums proportional-nums;
}

/* Tabular figures voor data */
.tab, .mono, .num, table, .data {
  font-variant-numeric: tabular-nums lining-nums;
}

/* ----- Type schaal ------------------------------------------ */
.display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--char);
}

.serif-italic {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.body-lead {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
}

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}

.mono-sm  { font-size: 9.5px; letter-spacing: 0.18em; }
.mono-lg  { font-size: 12px;  letter-spacing: 0.12em; }
.mono-num { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.02em; text-transform: none; font-variant-numeric: tabular-nums; }

/* ----- Wordmark --------------------------------------------- */
.wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--char);
}

/* ----- Hairlines & rules ----------------------------------- */
.rule         { height: 1px; background: var(--rule); border: 0; }
.rule-soft    { height: 1px; background: var(--rule-soft); border: 0; }
.rule-strong  { height: 1px; background: var(--rule-strong); border: 0; }
.rule-v       { width: 1px; background: var(--rule); align-self: stretch; }

/* ----- Form ------------------------------------------------- */
.field { display: block; }
.field + .field { margin-top: 22px; }

.field-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 10px;
}

.field-input {
  display: block;
  width: 100%;
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--char);
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  transition: border-color 160ms ease;
  caret-color: var(--terracotta);
}
.field-input::placeholder { color: rgba(36, 28, 20, 0.32); font-style: italic; }
.field-input:focus       { border-bottom-color: var(--terracotta); }
.field-input:disabled    { color: var(--bronze); }
.field--error .field-input { border-bottom-color: var(--terracotta); }

/* ----- Buttons --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.005em;
  color: var(--parchment);
  background: var(--terracotta);
  border-radius: 1px;
  box-shadow: var(--cta-shadow);
  transition: background 160ms ease, transform 80ms ease;
}
.btn:hover   { background: var(--terracotta-deep); }
.btn:active  { transform: translateY(1px); }

.btn--block { width: 100%; }

.btn--ghost {
  color: var(--char);
  background: transparent;
  border: 1px solid var(--rule-strong);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--bronze-wash); }

.btn--quiet {
  color: var(--bronze);
  background: transparent;
  box-shadow: none;
  font-family: 'Spectral', serif;
  font-weight: 400;
  font-size: 14px;
  padding: 8px 0;
}
.btn--quiet:hover { color: var(--terracotta); }

/* ----- Link ------------------------------------------------- */
.link {
  color: var(--bronze);
  border-bottom: 1px solid var(--rule);
  transition: color 160ms ease, border-color 160ms ease;
  padding-bottom: 1px;
}
.link:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }

/* ----- Statuspil + dot ------------------------------------- */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.status::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.status--new      { color: var(--status-new); }
.status--review   { color: var(--status-review); }
.status--review::before { background: transparent; border: 1px solid currentColor; }
.status--done     { color: var(--status-done); }
.status--done::before   { background: transparent; border: 1px solid currentColor; }
.status--rejected { color: var(--status-rejected); }
.status--rejected::before { content: "×"; background: transparent; width: auto; height: auto; border-radius: 0; line-height: 1; font-size: 14px; transform: translateY(-1px); }

/* ----- Loginscherm-laag (gedeeld) -------------------------- */
.tenant-mark {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.tenant-mark .wordmark { font-size: 64px; line-height: 1; }
.tenant-mark .rule { width: 64px; margin: 4px 0; background: var(--rule-strong); }
.tenant-mark .tenant-name {
  font-family: 'Spectral', serif; font-style: italic; font-weight: 300;
  font-size: 14px; color: var(--bronze);
}

/* ----- Editorial bric-à-brac ------------------------------- */
.folio {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* ----- Selection ------------------------------------------- */
::selection { background: var(--terracotta); color: var(--parchment); }
