/* Toneli — toneli.app
   The palette is the product's own grading axis: cool shadow to warm highlight.
   Everything structural is quiet; the tonal rule is the only flourish. */

:root {
  --ink:    #14161a;
  --paper:  #fbfaf8;
  --muted:  #6e7278;
  --line:   #e4e0da;
  --cool:   #3e6b7a;
  --warm:   #c87a3f;

  --measure: 34rem;
  --step:    1.5rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
}

/* ---- the tonal rule: cool shadow → warm highlight, the app's own axis ---- */
.tone-rule {
  height: 3px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--cool) 0%, #8a7560 46%, var(--warm) 100%);
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.35rem 6rem;
}

/* ---- masthead ---- */
header.masthead {
  padding: 3.5rem 0 2rem;
}

.wordmark {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}
.wordmark span { color: var(--warm); }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 0.6rem;
}

.dateline {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 2.25rem;
}

/* ---- sections: numbers are real references, not decoration ---- */
section { margin: 0 0 var(--step); padding-top: 0.5rem; }

h2 {
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 2.4rem 0 0.6rem;
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}
h2 .num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--warm);
  font-weight: 500;
  flex: none;
}

h3 {
  font-size: 0.97rem;
  font-weight: 600;
  margin: 1.5rem 0 0.4rem;
}

p { margin: 0 0 0.95rem; }

ul { margin: 0 0 0.95rem; padding-left: 1.15rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--cool); text-underline-offset: 0.18em; }
a:hover { color: var(--warm); }
a:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
  border-radius: 2px;
}

strong { font-weight: 600; }

/* ---- data tables read as data ---- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2rem;
  font-size: 0.93rem;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.7rem 0.5rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  border-bottom-color: var(--ink);
}

/* ---- callout for the things a reader must not miss ---- */
.note {
  border-left: 3px solid var(--warm);
  padding: 0.15rem 0 0.15rem 1rem;
  margin: 1.2rem 0;
  color: var(--ink);
}
.note p:last-child { margin-bottom: 0; }

/* ---- contact block, deliberately plain text so it is machine-readable ---- */
.contact {
  border: 1px solid var(--line);
  padding: 1.15rem 1.25rem;
  margin: 1.6rem 0 0;
}
.contact p { margin: 0 0 0.35rem; }
.contact p:last-child { margin-bottom: 0; }

/* ---- footer ---- */
footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.35rem 4rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
footer a { color: var(--muted); }

/* ---- home ---- */
.lede {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.5rem, 4.2vw, 2rem);
  line-height: 1.3;
  margin: 0 0 1.6rem;
  font-weight: 400;
}
.home-links {
  list-style: none;
  padding: 0;
  margin: 2.4rem 0 0;
  border-top: 1px solid var(--line);
}
.home-links li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.home-links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  text-decoration: none;
  color: var(--ink);
}
.home-links a:hover { color: var(--warm); }
.home-links .what {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 120ms ease; }
}
