@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=DM+Mono:wght@400;500&display=swap');

@font-face {
  font-family: "Intuitize Serif";
  src: url("../intuitize-serif.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #e8eadf;
  --paper-light: #f3f3eb;
  --ink: #1f281f;
  --muted: #687066;
  --moss: #48624b;
  --leaf: #76906b;
  --line: #c9cebf;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, var(--paper-light) 0, var(--paper) 42%); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--moss); outline-offset: 4px; }

.site-header {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(20px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 11px;
}

.brand { color: var(--ink); font-family: "Intuitize Serif", Georgia, serif; font-size: 23px; letter-spacing: -.035em; text-decoration: none; }
main { padding: clamp(70px, 10vw, 140px) 20px 80px; }

.kicker, .post-meta, .post-link { font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.kicker { color: var(--moss); }

.blog-head { max-width: 980px; margin: 0 auto; }
.blog-head h1 { margin: 28px 0 34px; font-family: "Intuitize Serif", Georgia, serif; font-size: clamp(70px, 12vw, 142px); line-height: .78; font-weight: 400; letter-spacing: -.065em; }
.blog-head h1 em { color: var(--leaf); font-style: normal; }
.dek { max-width: 730px; margin: 0; color: #4f5b50; font-family: "Intuitize Serif", Georgia, serif; font-size: clamp(22px, 3vw, 32px); line-height: 1.35; }

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 980px;
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.cat {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 9px 18px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.cat:hover { border-color: var(--moss); color: var(--ink); }
.cat.active { background: var(--moss); border-color: var(--moss); color: #edf1e7; }

.search-row {
  max-width: 980px;
  margin: 26px auto 0;
}

#search {
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-light);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
}

#search::placeholder { color: var(--muted); }
#search:focus { outline: 2px solid var(--moss); outline-offset: 2px; }

.post-list { max-width: 980px; margin: clamp(40px, 6vw, 64px) auto 0; }
.post { padding: 44px 0; border-top: 1px solid var(--line); }
.post:last-of-type { border-bottom: 1px solid var(--line); }
.post-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.post h2 { margin: 22px 0 16px; font-family: "Intuitize Serif", Georgia, serif; font-size: clamp(34px, 5vw, 54px); line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.post h2 a { text-decoration: none; }
.post h2 a:hover { color: var(--moss); }
.post-dek { max-width: 640px; margin: 0 0 24px; color: #536054; font-size: 17px; line-height: 1.65; }
.post-link { display: inline-flex; gap: 12px; align-items: center; color: var(--moss); text-decoration: none; }
.post-link i { font-style: normal; transition: transform 150ms ease; }
.post-link:hover i { transform: translateX(4px); }

.empty { max-width: 980px; margin: 60px auto 0; color: var(--muted); font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 650px) {
  main { padding-top: 60px; }
  .blog-head h1 { font-size: clamp(66px, 22vw, 98px); }
  .post-meta { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
