/* ============================================================
   theme.css — wageincreasecalculator.com skin.
   DESIGN.md: confident-growth "step-up". Sora display / Source Serif 4 body.
   Olive #5f8c0d (hue≈81°) on warm green-grey paper; the one memory point =
   dark olive result chip with chartreuse numerals. Motif = ascending step
   bars (a raise is the next step on the pay ladder): tool-card corner steps,
   ▲ ticks on h2 / brand, step sparkline inside the result chip.
   Registry checked 2026-07-17: hue + display font collision-free.
   ============================================================ */

:root {
  --paper: #f7f8f2;
  --card: #ffffff;
  --ink: #20261a;
  --ink-soft: #5f6a52;
  --accent: #5f8c0d;
  --accent-deep: #43650a;
  --accent-bright: #b7e04a;
  --accent-tint: #eef4dd;
  --line: #dde3cf;
  --line-strong: #b9c49f;
  --header-ink: #20261a;
  --header-fg: #f2f5e8;
  --header-fg-soft: #c4cdae;
  --dark: #1c2213;
  --dark-ink: #f2f5e8;
  --sans: "Sora", "Avenir Next", "Trebuchet MS", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --display: var(--sans);
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-card: 0 2px 4px rgba(50, 70, 15, 0.05), 0 18px 40px -24px rgba(50, 70, 15, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --page-max: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171a12;
    --card: #1f2418;
    --ink: #f2f5e8;
    --ink-soft: #a8b193;
    --accent: #a3cc3f;
    --accent-deep: #b7e04a;
    --accent-bright: #c8ec66;
    --accent-tint: #2a331a;
    --line: #333b26;
    --line-strong: #4a5534;
    --header-ink: #10130b;
    --dark: #10130b;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- typographic voice: sans headlines, serif body ---------- */
body { font-family: var(--serif); }
header nav, footer nav, .eyebrow, .badges, button, .options,
input, select, label, .actions, .hint { font-family: var(--sans); }
h1, h2, h3, .brand { font-family: var(--display); letter-spacing: -0.015em; }
h1 { font-weight: 800; }

/* ---------- motif 1: brand ▲ tick ---------- */
.brand { font-weight: 800; letter-spacing: 0.01em; }
.brand b { color: var(--accent); font-weight: 800; }

/* ---------- motif 2: ▲ tick before h2 ---------- */
main h2::before {
  content: "▲";
  font-size: 0.6em;
  color: var(--accent);
  margin-right: 0.6em;
  vertical-align: 0.15em;
}
#tool h2::before { content: none; }

/* ---------- motif 3: ascending step bars on the tool card corner ---------- */
#tool { position: relative; overflow: hidden; }
#tool::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 16px;
  width: 82px;
  height: 40px;
  pointer-events: none;
  background:
    linear-gradient(var(--accent) 0 3px, var(--accent-tint) 3px 100%) 0 30px / 16px 10px no-repeat,
    linear-gradient(var(--accent) 0 3px, var(--accent-tint) 3px 100%) 22px 21px / 16px 19px no-repeat,
    linear-gradient(var(--accent) 0 3px, var(--accent-tint) 3px 100%) 44px 12px / 16px 28px no-repeat,
    linear-gradient(var(--accent) 0 3px, var(--accent-tint) 3px 100%) 66px 3px / 16px 37px no-repeat;
}
@media (max-width: 720px) { #tool::after { display: none; } }

/* ---------- the memory point: dark result chip, chartreuse numerals ---------- */
.result-chip {
  margin-top: 18px;
  background: var(--dark);
  color: var(--dark-ink);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.result-chip .num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-bright);
  line-height: 1.1;
}
.result-chip small {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--header-fg-soft);
  line-height: 1.5;
  text-align: right;
}
@media (max-width: 720px) {
  .result-chip { flex-direction: column; align-items: flex-start; }
  .result-chip small { text-align: left; }
}

/* secondary result rows under the chip */
.result-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.result-grid .cell {
  background: var(--accent-tint);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.result-grid .cell b {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--accent-deep);
}
.result-grid .cell span {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
}

/* input fields: big Sora numerals */
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row > div { flex: 1; min-width: 140px; }
input[type="number"], input[type="text"], select {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  box-sizing: border-box;
}
input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 10px 0 4px;
  font-family: var(--sans);
}

/* eyebrow in accent-deep, wide tracking */
.eyebrow { color: var(--accent-deep); letter-spacing: 0.22em; }

/* serif tagline slightly larger */
.tagline { font-size: 1.08rem; }

/* tables read like data, not ledger: no double rules (registry: ledger motif is taken) */
table { font-variant-numeric: tabular-nums; }
th { font-family: var(--sans); }
