/* coleingraham.com — shared styles
   Two voices: brass (music) and electric (technology), on a cool paper ground.
   Type: Charter serif body, geometric sans display, monospace utility. */

:root {
  --bg: #f4f6f7;
  --surface: #fbfcfd;
  --ink: #1d2830;
  --muted: #5a6b76;
  --faint: #8b9aa4;
  --hairline: #d5dde2;
  --brass: #c24a18;      /* the music voice */
  --electric: #2268b2;   /* the technology voice */
  --note-bg: #eceff1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161c;
    --surface: #161e26;
    --ink: #e4e9ec;
    --muted: #98a5ae;
    --faint: #6e7d87;
    --hairline: #2a3540;
    --brass: #e06a2b;
    --electric: #3e93d6;
    --note-bg: #1b242d;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Charter", "Bitstream Charter", "Iowan Old Style", "Palatino", Georgia, serif;
  font-size: 17px;
  line-height: 1.68;
}
.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}
.page.wide { max-width: 62rem; }

a { color: var(--electric); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ---------- site nav ---------- */
nav.sitenav {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--hairline);
}
nav.sitenav .brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
nav.sitenav .links { display: flex; flex-wrap: wrap; gap: 1.3rem; }
nav.sitenav .links a { color: var(--muted); text-decoration: none; }
nav.sitenav .links a:hover { color: var(--ink); }
nav.sitenav .links a[aria-current="page"] {
  color: var(--brass);
}

/* ---------- headings ---------- */
h1, h2, h3 {
  font-family: "Futura", "Avenir Next", "Century Gothic", "URW Gothic", "Trebuchet MS", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: 0 0 0.8rem; letter-spacing: 0.005em; }
h2 { font-size: 1.45rem; margin: 3rem 0 1rem; }
h3 { font-size: 1.05rem; margin: 2rem 0 0.6rem; }

.eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 3rem 0 0.9rem;
}
.eyebrow.electric { color: var(--electric); }

p { margin: 0 0 1.1rem; text-wrap: pretty; }
.standfirst {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}
ul, ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.45rem; }
hr { border: none; border-top: 1px solid var(--hairline); margin: 2.5rem 0; }

/* ---------- hero (home) ---------- */
header.hero { padding: 4rem 0 0; }
header.hero .kicker {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1rem;
}
.stave { margin: 2.6rem 0 0; }
.stave svg { display: block; width: 100%; height: auto; }
.stave .line { stroke: var(--hairline); stroke-width: 1; }
.stave .note { fill: var(--brass); }
.stave .stem { stroke: var(--brass); stroke-width: 1.6; }
.stave .signal { stroke: var(--electric); stroke-width: 2.4; fill: none; }

/* ---------- two voices ---------- */
.voices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin: 3rem 0;
}
@media (max-width: 40rem) { .voices { grid-template-columns: 1fr; } }
.voice { background: var(--bg); padding: 1.8rem 0 2rem; }
.voices .voice:first-child { padding-right: 2rem; }
.voices .voice:last-child { padding-left: 2rem; }
@media (max-width: 40rem) {
  .voices .voice:first-child { padding-right: 0; }
  .voices .voice:last-child { padding-left: 0; }
}
.voice .eyebrow { margin-top: 0; }
.voice h2 { margin-top: 0; }
.voice p:last-of-type { margin-bottom: 0.4rem; }
.voice .more {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- entry lists (writing index, performances) ---------- */
.entry {
  border-bottom: 1px solid var(--hairline);
  padding: 1.3rem 0 1.4rem;
}
.entry:last-child { border-bottom: none; }
.entry .meta {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.3rem;
}
.entry h2, .entry h3 { margin: 0 0 0.4rem; }
.entry p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* performances program */
.yearmark {
  font-family: "Futura", "Avenir Next", "Century Gothic", "URW Gothic", "Trebuchet MS", sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  margin: 3rem 0 0.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1.5px solid var(--ink);
}
.perf { padding: 0.95rem 0; border-bottom: 1px solid var(--hairline); }
.perf:last-child { border-bottom: none; }
.perf .meta { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 0.15rem; }
.perf .date {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--brass);
}
.perf .where {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.perf .what { margin: 0; font-size: 0.97rem; }

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin: 1.8rem 0;
}
.stats > div { background: var(--surface); padding: 0.9rem 1rem 1rem; }
.stats .big {
  font-family: "Futura", "Avenir Next", "Century Gothic", sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stats .lbl {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ---------- CV ---------- */
.cv-item { margin: 0 0 1.6rem; }
.cv-item .role { font-weight: 700; }
.cv-item .org { color: var(--muted); }
.cv-item .dates {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0.1rem 0 0.5rem;
}
.cv-item ul { margin-bottom: 0; }
.cv-item p { margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 0 0 1.1rem; list-style: none; }
.tags li {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  background: var(--note-bg);
  padding: 0.18em 0.6em;
  border-radius: 3px;
  margin: 0;
}

.note {
  background: var(--note-bg);
  border-left: 3px solid var(--brass);
  padding: 0.85rem 1.1rem;
  margin: 1.4rem 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.note p { margin: 0; }

/* ---------- footer ---------- */
footer.colophon {
  margin-top: 4.5rem;
  padding-top: 1.2rem;
  border-top: 1.5px solid var(--ink);
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  justify-content: space-between;
}
footer.colophon p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
