/* ==========================================================================
   Claudine Baumbach — "Instrument"
   Airplane-dashboard calm: precise, legible, quietly technical.
   One typeface throughout — IBM Plex Sans · slate + petrol-teal.
   ========================================================================== */

:root {
  --paper:     #eef1f3;   /* cool light panel */
  --panel:     #f7f9fa;   /* raised surface (code, chips) */
  --ink:       #1b262c;   /* deep slate */
  --ink-soft:  #47555d;
  --muted:     #7a888f;   /* readout grey */
  --line:      #d4dbdf;   /* hairline */
  --teal:      #0f7d8c;   /* petrol accent */
  --teal-ink:  #0b5f6b;   /* accent for text/links */
  --amber:     #c07a17;   /* caution light, used sparingly */

  --measure: 42rem;

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.04rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--teal); color: #fff; }

a {
  color: var(--teal-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* --- shared readout labels ------------------------------------------------ */

.nav a,
.eyebrow,
.post-meta,
.dispatch-date,
.cta {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 500;
}

/* --- layout column -------------------------------------------------------- */

.masthead,
main {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* --- thin instrument strip ------------------------------------------------ */

.signal-bar {
  height: 3px;
  width: 100%;
  background: var(--teal);
}

/* --- masthead ------------------------------------------------------------- */

.masthead {
  padding-top: 2.2rem;
  padding-bottom: 1.4rem;
  margin-bottom: 2.8rem;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 0.8rem; }

.monogram {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.3rem; height: 2.3rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.monogram:hover { border-color: var(--teal); color: var(--teal); }

.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 1.75rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--teal); }

.nav { display: flex; gap: 1.6rem; margin-top: 1.25rem; }
.nav a {
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--teal); border-color: var(--teal); }

/* --- shared editorial bits ------------------------------------------------ */

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  color: var(--teal-ink);
}

.dek {
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 1.3rem;
}

/* --- home hero ------------------------------------------------------------ */

.hero { padding: 0.5rem 0 1rem; }
.hero-title {
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  font-weight: 700;
  margin: 0.2rem 0 1rem;
}
.hero-title em {
  font-style: normal;
  color: var(--teal);
}
.hero-lede {
  font-size: 1.18rem;
  line-height: 1.6;
  max-width: 34rem;
  color: var(--ink-soft);
  margin: 0;
}
.cta {
  display: inline-block;
  margin-top: 1.7rem;
  padding: 0.7rem 1.2rem;
  font-size: 0.72rem;
  text-decoration: none;
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 3px;
}
.cta:hover { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }

/* --- post ----------------------------------------------------------------- */

.post-title {
  font-size: clamp(1.7rem, 3.8vw, 2.3rem);
  font-weight: 700;
  margin: 0.3rem 0 0.8rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: baseline;
  margin: 0 0 2.1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  color: var(--muted);
}
.post-meta .byline { color: var(--ink); }
.post-meta .dot { color: var(--teal); }

.post-body { font-size: 1.08rem; }
.post-body p { margin: 0 0 1.25rem; }
.post-body h2 { font-size: 1.4rem; margin: 2.4rem 0 0.7rem; }
.post-body h3 { font-size: 1.15rem; margin: 1.9rem 0 0.5rem; }
.post-body a { font-weight: 500; }
.post-body ul, .post-body ol { padding-left: 1.3rem; margin: 0 0 1.25rem; }
.post-body li { margin-bottom: 0.4rem; }

.post-body blockquote {
  margin: 1.9rem 0;
  padding: 0.4rem 0 0.4rem 1.3rem;
  border-left: 3px solid var(--teal);
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.post-body code {
  font-family: var(--sans);
  font-size: 0.86em;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0.08em 0.35em;
  border-radius: 3px;
}
.post-body pre {
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.2rem;
  overflow: auto;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.55;
}
.post-body pre code { background: none; border: none; padding: 0; color: inherit; }
.post-body hr { border: none; height: 1px; background: var(--line); margin: 2.6rem 0; }

.post-sign {
  margin: 2.4rem 0 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--teal-ink);
}

/* --- blog index / dispatch list ------------------------------------------ */

.page-head {
  margin-bottom: 2.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.page-title { font-size: clamp(1.9rem, 4.2vw, 2.6rem); font-weight: 700; margin: 0.2rem 0 0.55rem; }
.page-lede {
  margin: 0;
  max-width: 34rem;
  font-size: 1.18rem;
  color: var(--ink-soft);
}

.dispatch-list { list-style: none; margin: 0; padding: 0; }
.dispatch {
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.dispatch:first-child { padding-top: 0; }
.dispatch-date {
  font-size: 0.66rem;
  color: var(--muted);
}
.dispatch-title { font-size: 1.4rem; line-height: 1.25; font-weight: 600; margin: 0.4rem 0 0.4rem; }
.dispatch-title a { color: var(--ink); text-decoration: none; }
.dispatch-title a:hover { color: var(--teal); }
.dispatch-dek {
  margin: 0;
  max-width: 38rem;
  font-size: 1.06rem;
  color: var(--ink-soft);
}
.empty {
  font-size: 1.15rem;
  color: var(--muted);
}

.latest {
  margin-top: 3.4rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--line);
}

/* --- footer (lower status bar) -------------------------------------------- */

.site-footer {
  margin-top: 4.5rem;
  padding: 2.3rem 0 2.8rem;
  background: var(--ink);
  color: var(--paper);
}
.site-footer > * {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.footer-mark {
  margin: 0;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--paper);
}

/* --- small screens -------------------------------------------------------- */

@media (max-width: 34rem) {
  body { font-size: 1.0rem; }
}
