/* The blog's one stylesheet. Tokens are the landing page's (web/index.html),
   restated rather than shared because the landing page keeps its CSS inline.
   If a colour or face changes there, change it here too. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper:      #faf8f4;
  --paper-2:    #f2eee6;
  --ink:        #191713;
  --ink-soft:   #4a463e;
  --muted:      #706b61;
  --line:       #e5dfd4;
  --accent:     #2f5a45;
  --accent-wash:#e8efe9;
  --serif: "Fraunces", ui-serif, "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #121110;
    --paper-2:    #191817;
    --ink:        #efebe4;
    --ink-soft:   #cdc7bd;
    --muted:      #9c968b;
    --line:       #2e2c28;
    --accent:     #8fbfa1;
    --accent-wash:#1d2a23;
  }
}

* { 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: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: var(--accent-wash); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.col { max-width: 40rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------- header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.wordmark {
  font-family: var(--serif); font-weight: 420; font-variation-settings: "opsz" 36, "SOFT" 50;
  font-size: 22px; letter-spacing: -.015em; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
}
.mark { width: 26px; height: 26px; flex: none; display: block; }
.wordmark .place { font-family: var(--sans); font-size: 13.5px; letter-spacing: .02em; color: var(--muted); margin-left: 2px; }
.wordmark .place::before { content: "\00b7"; margin-right: 8px; }
.head-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.head-nav a { color: var(--muted); text-decoration: none; }
.head-nav a:hover { color: var(--ink); }
.head-nav .pill { color: var(--ink); padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); }
@media (max-width: 560px) { .head-nav .hide-sm { display: none; } }

/* ---------------------------------------------------------- article */
.kicker {
  display: block; margin: 0 0 18px; font-size: 13px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--accent);
}
article { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
article h1, .index-head h1 {
  font-family: var(--serif); font-weight: 360; font-variation-settings: "opsz" 144, "SOFT" 40;
  font-size: clamp(38px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -.03em;
  margin: 0 0 22px; text-wrap: balance;
}
.standfirst {
  font-family: var(--serif); font-weight: 380; font-variation-settings: "opsz" 30, "SOFT" 60;
  font-size: clamp(21px, 2.2vw, 24px); line-height: 1.38; letter-spacing: -.012em;
  color: var(--ink-soft); margin: 0 0 18px; text-wrap: pretty;
}
.meta { font-size: 14.5px; color: var(--muted); margin: 0 0 44px; }
article h2 {
  font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 48, "SOFT" 50;
  font-size: clamp(25px, 2.6vw, 30px); line-height: 1.18; letter-spacing: -.018em;
  margin: 52px 0 14px; text-wrap: balance;
}
article p { margin: 0 0 20px; text-wrap: pretty; }
article ul { margin: 0 0 22px; padding-left: 1.2em; }
article li { margin: 0 0 8px; }
article blockquote {
  margin: 28px 0; padding: 0 0 0 20px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--ink);
}
article a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
article a:hover { text-decoration-color: currentColor; }

/* the closing card: what Sepamo is, said once, at the foot */
.aside {
  margin: 56px 0 0; padding: 28px 30px; border-radius: 20px; background: var(--paper-2);
}
.aside p { margin: 0 0 14px; }
.aside p:last-child { margin: 0; }
.aside .cta {
  display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 16px;
  text-decoration: none; padding: 13px 22px; border-radius: 999px; background: var(--ink); color: var(--paper);
  margin-top: 4px;
}

.more { border-top: 1px solid var(--line); padding: 40px 0 72px; }
.more h2 { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }

/* ---------------------------------------------------------- index */
.index-head { padding: clamp(48px, 8vw, 96px) 0 24px; }
.post-list { list-style: none; margin: 0; padding: 0 0 72px; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 22px 0; text-decoration: none; }
.post-list .t {
  display: block; font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 48, "SOFT" 50;
  font-size: clamp(21px, 2.2vw, 25px); line-height: 1.25; letter-spacing: -.015em;
}
.post-list .d { display: block; color: var(--muted); font-size: 16px; margin-top: 6px; }
.post-list a:hover .t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.more .post-list { padding-bottom: 0; }

/* ---------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 52px; font-size: 14.5px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
