/* howardpark.ai — v1 stylesheet.
   Deliberately barebones. All color/spacing/type knobs live in :root so a
   future design pass is a single-file edit. Add rules; avoid inline styles. */

/* Self-hosted Newsreader (variable, OFL). One file per subset; unicode-range
   means a browser only fetches the subset a page actually uses. Downloaded
   from Google Fonts so there's no external request / visitor-IP leak. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/newsreader-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/newsreader-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/newsreader-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  /* Color */
  --bg:        #fbfaf7;   /* warm off-white, not pure #fff */
  --ink:       #1b1a17;   /* near-black, slightly warm */
  --ink-soft:  #55524b;   /* secondary text: deks, dates, footer */
  --link:      #3a4d8f;   /* muted indigo */
  --link-hover:#1b1a17;
  --rule:      #e4e1da;   /* hairlines */

  /* Space */
  --measure:   65ch;      /* single readable column */
  --pad:       clamp(1.4rem, 4vw, 2.6rem);
  --gap:       1.7rem;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --base:  1.125rem;      /* ~18px, quiet */
  --scale: 1.35;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--base);
  font-weight: 400;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* One column, left-aligned, generous air. No card, no shadow, no center. */
.wrap {
  max-width: var(--measure);
  margin: 0;
  padding: clamp(2.4rem, 7vh, 5rem) var(--pad) 4rem;
}

/* --- Masthead / nav --- */
.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.4rem;
  margin-bottom: 3.2rem;
}
.site-head a { text-decoration: none; }
.site-name {
  font-size: calc(var(--base) * 1.05);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.site-nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
}
.site-nav a { color: var(--ink-soft); }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }

/* --- Typography --- */
h1 {
  font-size: calc(var(--base) * var(--scale) * var(--scale));
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}
h2 {
  font-size: calc(var(--base) * var(--scale));
  font-weight: 600;
  line-height: 1.25;
  margin: 2.6rem 0 0.6rem;
}
p, ul, ol { margin: 0 0 var(--gap); }
.lede { color: var(--ink-soft); }

a {
  color: var(--link);
  text-underline-offset: 0.14em;
  text-decoration-thickness: 0.06em;
}
a:hover { color: var(--link-hover); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.6rem 0;
}

time { color: var(--ink-soft); font-size: 0.95rem; }

/* --- Blog list --- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { margin-bottom: 2rem; }
.post-list .title { font-size: calc(var(--base) * 1.15); font-weight: 600; }
.post-list .title a { color: var(--ink); text-decoration: none; }
.post-list .title a:hover { text-decoration: underline; }
.post-list .dek { color: var(--ink-soft); margin: 0.25rem 0 0; }
.post-list .meta { display: block; margin-top: 0.15rem; }
.empty { color: var(--ink-soft); font-style: italic; }

/* --- Article --- */
article header { margin-bottom: 2.2rem; }
article header time { display: block; margin-top: 0.4rem; }

/* --- Footer --- */
.site-foot {
  margin-top: 4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.site-foot a { color: var(--ink-soft); }
