/* One stylesheet, no build step, no framework. Readable on a phone first. */
:root {
  --ink: #14161a;
  --muted: #5b6470;
  --line: #e4e7ec;
  --bg: #ffffff;
  --accent: #1449d6;
  --accent-ink: #ffffff;
  --wash: #f6f8fb;
  --measure: 44rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* Header ------------------------------------------------------------------ */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 62rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.bar nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.bar nav a:hover { color: var(--ink); }

/* Type -------------------------------------------------------------------- */
h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}
h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 2.4rem 0 0.75rem;
}
h3 { font-size: 1.1rem; margin: 1.8rem 0 0.5rem; }
p, li { color: var(--ink); }
a { color: var(--accent); }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}
.kicker { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 1rem; }
.kicker a { color: var(--muted); text-decoration: none; }
.byline { color: var(--muted); font-size: 0.92rem; margin: 0; }

blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.1rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

code {
  background: var(--wash);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}
pre { background: var(--wash); padding: 1rem; border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; }

/* Tables — used for the offer grid and for comparison tables in posts ------ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
th { font-weight: 650; background: var(--wash); }

/* Calls to action --------------------------------------------------------- */
a.cta, .bar nav a.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
a.cta:hover { filter: brightness(1.08); }
a.quiet { color: var(--muted); margin-left: 0.75rem; font-size: 0.95rem; }

/* The homepage and post CTAs are plain markdown links; style the ones that
   sit alone in their own paragraph so copy stays writable in markdown. */
main > p > a[href^="mailto:"],
.post ~ .offer a.cta { }

.offer {
  max-width: var(--measure);
  margin: 3rem auto 0;
  padding: 1.5rem;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.offer h2 { margin-top: 0; font-size: 1.2rem; }

/* Blog index -------------------------------------------------------------- */
.postlist { list-style: none; padding: 0; margin: 2rem 0 0; }
.postlist li { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.postlist li > a { font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.postlist li > a:hover { text-decoration: underline; }
.postlist .when { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }
.postlist p { color: var(--muted); margin: 0.4rem 0 0; font-size: 0.95rem; }

/* Footer ------------------------------------------------------------------ */
footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2rem 1.25rem 3rem;
}
footer p { max-width: var(--measure); margin: 0 auto 0.5rem; color: var(--muted); font-size: 0.92rem; }
footer .fine { font-size: 0.82rem; }

@media (max-width: 30rem) {
  .bar { padding: 0.85rem 1rem; }
  .bar nav { gap: 0.85rem; }
  main { padding-top: 1.75rem; }
}
