/* Bahunya overlay — journal/longread feel */
:root{
  --ink:#1a1d24;
  --ink-soft:#3a3f4a;
  --paper:#f7f4ec;
  --rule:#d8d2c2;
  --accent:#7a2e1f;
  --accent-soft:#a14a36;
  --muted:#6b6356;
  --column:640px;
}

html{color-scheme: only light; background:var(--paper);}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Source Serif 4','Source Serif Pro','Lora',Georgia,serif;
  font-size:18px;
  line-height:1.65;
  max-width:var(--column);
  margin:0 auto;
  padding:0 24px 80px;
  -webkit-font-smoothing:antialiased;
}

/* Re-assert in dark-mode (macOS) */
@media (prefers-color-scheme: dark){
  html,body{background:var(--paper);color:var(--ink);}
  a{color:var(--accent);}
}

header.masthead{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:22px 0 18px;
  border-bottom:1px solid var(--rule);
  margin-bottom:36px;
  flex-wrap:wrap;
}
.masthead .brand{
  font-family:'Source Serif 4',Georgia,serif;
  font-weight:600;
  font-style:italic;
  font-size:18px;
  letter-spacing:0.01em;
  color:var(--ink);
  text-decoration:none;
}
.masthead nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap;}
.masthead nav a{
  color:var(--ink-soft);
  text-decoration:none;
  font-size:14px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  border-bottom:1px solid transparent;
}
.masthead nav a:hover{border-bottom-color:var(--accent);}
.cta-btn{
  display:inline-block;
  background:var(--accent);
  color:#fff !important;
  font-family:'Source Serif 4',Georgia,serif;
  font-size:14px;
  letter-spacing:0.05em;
  text-transform:uppercase;
  padding:9px 16px;
  text-decoration:none !important;
  border:1px solid var(--accent);
  border-bottom-color:var(--accent) !important;
  border-radius:1px;
  line-height:1;
}
.cta-btn:hover{background:var(--accent-soft);border-color:var(--accent-soft);}

article header.essay-head{
  margin-bottom:34px;
  padding-bottom:22px;
  border-bottom:1px solid var(--rule);
}
.kicker{
  font-size:12px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 14px;
}
h1{
  font-family:'Source Serif 4',Georgia,serif;
  font-weight:600;
  font-size:34px;
  line-height:1.18;
  margin:0 0 14px;
  letter-spacing:-0.005em;
  overflow-wrap:anywhere;
}
.byline{
  font-size:14px;
  color:var(--muted);
  font-style:italic;
  margin:0;
}
h2{
  font-family:'Source Serif 4',Georgia,serif;
  font-weight:600;
  font-size:22px;
  margin:38px 0 12px;
  letter-spacing:0;
}
h3{
  font-family:'Source Serif 4',Georgia,serif;
  font-weight:600;
  font-size:17px;
  margin:24px 0 8px;
}
p{margin:0 0 16px;}
.lede{font-size:19px;color:var(--ink);}
.lede::first-letter{
  font-family:'Source Serif 4',Georgia,serif;
  font-weight:600;
  float:left;
  font-size:54px;
  line-height:0.9;
  padding:6px 8px 0 0;
  color:var(--accent);
}
a{color:var(--accent);text-decoration:none;border-bottom:1px solid var(--rule);}
a:hover{border-bottom-color:var(--accent);}

ol,ul{padding-left:22px;margin:0 0 18px;}
li{margin-bottom:6px;}

blockquote{
  margin:22px 0;
  padding:6px 18px;
  border-left:2px solid var(--accent);
  color:var(--ink-soft);
  font-style:italic;
}

.figure{
  margin:26px -8px;
  padding:18px;
  background:#fff;
  border:1px solid var(--rule);
}
.figure svg{display:block;width:100%;height:auto;}
.figure figcaption{
  font-size:13px;
  color:var(--muted);
  margin-top:10px;
  font-style:italic;
  text-align:center;
}

table{
  width:100%;
  border-collapse:collapse;
  margin:18px 0 22px;
  font-size:15px;
  background:#fff;
  color:var(--ink);
}
th,td{
  text-align:left;
  padding:8px 10px;
  border-bottom:1px solid var(--rule);
}
th{
  font-weight:600;
  font-size:13px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--muted);
  background:#f0ebde;
}
.table-wrap{overflow-x:auto;}

.footnotes{
  border-top:1px solid var(--rule);
  margin-top:46px;
  padding-top:18px;
  font-size:14px;
  color:var(--ink-soft);
}
.footnotes ol{padding-left:20px;}
.footnotes li{margin-bottom:8px;line-height:1.5;}

sup{font-size:0.72em;}
sup a{border-bottom:none;}

.callout{
  background:#f0ebde;
  border-left:3px solid var(--accent);
  padding:14px 18px;
  margin:22px 0;
  font-size:16px;
}
.callout .label{
  display:block;
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:6px;
  font-style:normal;
}

.body-cta{
  margin:46px 0 12px;
  padding:22px;
  border:1px solid var(--rule);
  background:#fff;
  text-align:center;
}
.body-cta p{margin:0 0 12px;color:var(--ink-soft);font-size:15px;font-style:italic;}

footer.colophon{
  margin-top:56px;
  padding-top:18px;
  border-top:1px solid var(--rule);
  font-size:13px;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
footer.colophon a{color:var(--muted);border-bottom-color:transparent;}

img,svg{max-width:100%;height:auto;}

/* mobile */
@media (max-width:620px){
  body{font-size:17px;padding:0 18px 60px;}
  h1{font-size:27px;}
  h2{font-size:20px;}
  .lede::first-letter{font-size:46px;}
  header.masthead{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    padding:18px 0 14px;
  }
  .masthead nav{justify-content:space-between;width:100%;}
  .cta-btn{display:block;text-align:center;width:100%;}
  .figure{margin:22px 0;}
}

html,body{overflow-x:hidden;}
