/* Shared chrome and prose styles for /content — the writing index and every
   article served under it. The landing page keeps its own inline styles; the
   variables below are copied from it on purpose so the whole site reads as one
   document. */

:root { --ink:#16211b; --muted:#6f6f6f; --line:#e7e7e7; --wash:#f7f7f5; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  line-height: 1.65;
}

/* ---- top bar (identical geometry to the landing page) ---- */
#topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid var(--line);
}
#topbar .brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
}
#topbar nav { display: flex; align-items: center; gap: 18px; }
.navlink {
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.navlink:hover, .navlink.on { color: var(--ink); border-bottom-color: var(--ink); }
.navbtn {
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 7px 15px;
  background: #ffffff;
}
.navbtn:hover { background: var(--ink); color: #ffffff; }

/* ---- page frame ---- */
main { max-width: 760px; margin: 0 auto; padding: 56px 22px 90px; }
h1 { font-size: 30px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 10px; }
h2 { font-size: 18px; margin: 40px 0 10px; letter-spacing: .01em; }
h3 { font-size: 15px; margin: 26px 0 6px; letter-spacing: .01em; }
p { margin: 0 0 14px; }
a { color: var(--ink); }
.lede { color: var(--muted); margin: 0 0 34px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { font-weight: 700; }

/* ---- article furniture ---- */
.kicker {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.byline {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.article-visual {
  width: 100%;
  margin: 0 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}
.article-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}
blockquote {
  margin: 22px 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--ink);
  color: var(--ink);
}
table { border-collapse: collapse; width: 100%; margin: 0 0 20px; font-size: 13px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
th { border-bottom: 1px solid var(--ink); font-weight: 700; }
.tablewrap { overflow-x: auto; margin-bottom: 20px; }
.tablewrap table { margin-bottom: 0; min-width: 520px; }
pre {
  background: var(--wash);
  border: 1px solid var(--line);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 20px;
}
code { background: var(--wash); padding: 1px 4px; font-size: 13px; }
pre code { background: none; padding: 0; }
.note {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 28px;
}
/* ---- index listing ---- */
.pillar { border-top: 1px solid var(--ink); margin-top: 44px; padding-top: 14px; }
.pillar h2 { margin: 0 0 4px; }
.pillar .who { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.entry {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.entry .thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--wash);
}
.entry .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}
.entry:hover .thumb img { transform: scale(1.035); }
.entry h3 { margin: 0 0 3px; font-size: 15px; }
.entry h3 a { text-decoration: none; border-bottom: 1px solid var(--line); }
.entry h3 a:hover { border-bottom-color: var(--ink); }
.entry p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---- footer / next steps ---- */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 46px;
  padding-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cta-btn {
  font-size: 14px;
  letter-spacing: .03em;
  text-decoration: none;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  white-space: nowrap;
}
.cta-btn:hover { background: var(--ink); color: #ffffff; }
.cta-btn.primary { background: var(--ink); color: #ffffff; }
.cta-btn.primary:hover { background: #ffffff; color: var(--ink); }

@media (max-width: 560px) {
  #topbar { padding: 12px 14px; }
  #topbar nav { gap: 12px; }
  main { padding: 36px 16px 64px; }
  h1 { font-size: 24px; }
  .entry { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
}
