:root {
  --ink: #1c1c1e;
  --ink-soft: #56565c;
  --ink-faint: #8a8a92;
  --rule: #e3e3e6;
  --rule-soft: #efeff1;
  --bg: #fdfdfc;
  --bg-soft: #f6f6f4;
  --accent: #1a4fa0;
  --flag: #b3261e;
  --measure: 40rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.4rem 6rem; }
.wrap.wide { max-width: 52rem; }

/* masthead */
.masthead {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
  padding: 1.6rem 0 1.1rem;
}
.masthead a.brand {
  font-family: Inconsolata, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.masthead a.brand:hover { color: var(--accent); }
.masthead .sep { color: var(--ink-faint); margin: 0 0.5rem; }
.masthead .section { color: var(--ink-faint); font-family: Inconsolata, monospace;
  font-size: 0.95rem; letter-spacing: 0.09em; text-transform: uppercase; }

/* type */
h1, h2, h3, h4 { line-height: 1.24; font-weight: 900; margin: 0 0 0.6rem; }
h1 { font-size: 2.15rem; letter-spacing: -0.015em; margin-bottom: 0.8rem; }
h2 { font-size: 1.35rem; margin-top: 3rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.08rem; margin-top: 2.2rem; }
h4 { font-size: 0.95rem; margin-top: 1.8rem; }
p, ul, ol { margin: 0 0 1.15rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(26, 79, 160, 0.28); }
a:hover { border-bottom-color: var(--accent); }
strong { font-weight: 900; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.6rem 0; }

/* the dek line right under an article h1 */
.dek {
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 300;
  margin: 0 0 1.2rem;
}
.byline {
  font-family: Inconsolata, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 2.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

/* the byline rule already separates the header; don't double it */
.byline + h2, article > h2:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
/* ...and the byline's own bottom margin is enough space above a lead-in callout */
.byline + .disclaimer { margin-top: 0; }

/* provenance / limits callout */
.disclaimer {
  background: #fdf7e3;
  border: 1px solid #ecd9a0;
  border-left: 4px solid #d9a916;
  border-radius: 4px;
  padding: 1.15rem 1.3rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.58;
  color: #4a4331;
}
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer strong { color: #3a3524; }

blockquote {
  margin: 1.8rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 3px solid var(--ink);
  color: var(--ink-soft);
}
blockquote p:last-child { margin-bottom: 0; }

code, kbd, samp {
  font-family: Inconsolata, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--bg-soft);
  padding: 0.1em 0.34em;
  border-radius: 3px;
}
pre {
  background: var(--bg-soft);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0 0 1.4rem;
}
pre code { background: none; padding: 0; font-size: inherit; }

.tablewrap { overflow-x: auto; margin: 0 0 1.6rem; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--rule); }
th { font-weight: 900; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
tbody tr:last-child td { border-bottom: 1px solid var(--ink); }

img { max-width: 100%; height: auto; display: block; margin: 2rem auto 0.7rem; }
p > img + em, figcaption { display: block; font-size: 0.85rem; color: var(--ink-faint); }

/* index */
.lede { font-size: 1.1rem; color: var(--ink-soft); font-weight: 300; margin-bottom: 3rem; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--rule); padding: 1.8rem 0; margin: 0; }
.post-list li:last-child { border-bottom: 1px solid var(--rule); }
.post-list time {
  font-family: Inconsolata, monospace; font-size: 0.8rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 0.45rem;
}
.post-list h2 {
  font-size: 1.4rem; margin: 0 0 0.5rem; padding: 0; border: 0;
}
.post-list h2 a { color: var(--ink); border: 0; }
.post-list h2 a:hover { color: var(--accent); }
.post-list p { color: var(--ink-soft); font-weight: 300; margin: 0; }

.post-list + .footer { margin-top: 2rem; }
.footer {
  margin-top: 4rem; padding-top: 1.4rem; border-top: 1px solid var(--rule);
  font-size: 0.85rem; color: var(--ink-faint);
}
.footer a { color: var(--ink-faint); border-bottom-color: var(--rule); }
.footer a:hover { color: var(--accent); }

.backlink {
  font-family: Inconsolata, monospace; font-size: 0.82rem; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 2.4rem; display: inline-block; border: 0;
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  h1 { font-size: 1.7rem; }
  .wrap { padding: 0 1.1rem 4rem; }
}
