:root {
  --bg: #0b0c0c;
  --surface: #131515;
  --line: #252827;
  --text: #f0efeb;
  --muted: #858b87;
  --green: #00d879;
  --max-width: 734px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(#1c211f 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 49px;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - var(--max-width)) / 2));
}

.wordmark {
  font-family: "Libre Baskerville", serif;
  font-size: 14px;
  font-weight: 700;
}

.wordmark span, .cursor { color: var(--green); }

nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: 11px; transition: color 180ms ease; }
nav a.active, nav a:hover, nav a:focus-visible { color: var(--text); }
.read-link:hover, .read-link:focus-visible, .text-link:hover, .text-link:focus-visible { color: var(--green); }

.hero { border-bottom: 1px solid var(--line); }
.hero-inner { margin: 0 auto; max-width: var(--max-width); padding: 65px 0 56px; }

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(62px, 10vw, 100px);
  letter-spacing: -4px;
  line-height: .98;
  margin: 0 0 16px;
}

.cursor { display: inline-block; height: .6em; margin-left: 11px; vertical-align: 7%; width: 15px; }
.eyebrow, .tag { color: var(--green); font-size: 12px; letter-spacing: .04em; }
.eyebrow { margin: 0 0 12px; }
.intro { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 34px; }

.featured-post { background: var(--surface); border: 1px solid var(--line); display: block; padding: 26px 27px 24px; transition: border-color 180ms ease, transform 180ms ease; }
.featured-post:hover { border-color: #3a413d; transform: translateY(-2px); }
.post-topline, .post-meta { align-items: center; display: flex; justify-content: space-between; }
.post-topline { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; padding-bottom: 14px; }
.post-topline .tag { font-size: 11px; }
.featured-post h2 { font-family: "Libre Baskerville", serif; font-size: 23px; line-height: 1.25; margin: 19px 0 11px; }
.featured-post > p { color: var(--muted); font-size: 12px; line-height: 1.7; margin-bottom: 15px; max-width: 640px; }
.post-meta { color: var(--muted); font-size: 11px; }
.read-link { color: var(--green); font-size: 11px; white-space: nowrap; }
.read-link span { display: inline-block; margin-left: 5px; transition: transform 180ms ease; }
.read-link:hover span { transform: translateX(4px); }

.posts, .about { margin: 0 auto; max-width: var(--max-width); }
.posts { padding: 53px 0 66px; }
.section-heading { align-items: center; display: flex; gap: 18px; margin-bottom: 38px; }
.section-heading h2 { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: .04em; margin: 0; text-transform: lowercase; }
.section-heading span { background: var(--line); flex: 1; height: 1px; }
.post-row { align-items: start; display: grid; gap: 30px; grid-template-columns: 96px 1fr auto; }
.post-row time { color: var(--muted); font-size: 11px; padding-top: 2px; }
.post-row .tag { margin-bottom: 10px; }
.post-row h3 { font-family: "Libre Baskerville", serif; font-size: 18px; margin-bottom: 8px; }
.post-summary { color: var(--muted); font-size: 12px; margin: 0; }

.about { border-top: 1px solid var(--line); padding: 68px 0 80px; }
.about h2 { font-family: "Libre Baskerville", serif; font-size: 34px; line-height: 1.25; margin-bottom: 16px; }
.about > p:last-child { color: var(--muted); font-size: 13px; max-width: 450px; }
.text-link { color: var(--green); display: inline-block; font-size: 11px; margin-top: 20px; }
.text-link span { display: inline-block; margin-left: 5px; transition: transform 180ms ease; }
.text-link:hover span { transform: translateX(4px); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 11px; justify-content: space-between; margin-top: 0; padding: 22px max(28px, calc((100vw - var(--max-width)) / 2)); }
.site-footer a:hover { color: var(--green); }

.page-shell { margin: 0 auto; max-width: var(--max-width); }
.page-intro { border-bottom: 1px solid var(--line); padding: 78px 0 56px; }
.page-intro h1 { font-size: clamp(48px, 8vw, 76px); margin-bottom: 22px; }
.page-intro > p:last-child { color: var(--muted); font-size: 14px; max-width: 550px; }
.blog-list { padding: 40px 0 88px; }
.blog-card { background: var(--surface); border: 1px solid var(--line); display: block; margin-bottom: 16px; padding: 25px 27px 23px; transition: border-color 180ms ease, transform 180ms ease; }
.blog-card:hover, .blog-card:focus-visible { border-color: #3a413d; transform: translateX(4px); }
.blog-card h2 { font-family: "Libre Baskerville", serif; font-size: 21px; line-height: 1.35; margin: 17px 0 10px; }
.blog-card > p { color: var(--muted); font-size: 12px; line-height: 1.7; margin-bottom: 18px; max-width: 630px; }
.featured-card { border-left: 2px solid var(--green); }
.about-page { padding-bottom: 20px; }
.about-grid, .contact-strip { border-bottom: 1px solid var(--line); display: grid; gap: 50px; grid-template-columns: 1fr 1.3fr; padding: 68px 0; }
.section-label { color: var(--green); font-size: 11px; margin-bottom: 20px; }
.about-grid h2, .contact-strip h2 { font-family: "Libre Baskerville", serif; font-size: 29px; line-height: 1.3; margin: 0; }
.about-copy { color: var(--muted); font-size: 13px; max-width: 430px; }
.about-copy p + p { margin-top: 20px; }
.contact-strip { align-items: end; border-bottom: 0; grid-template-columns: 1fr auto; padding-bottom: 88px; }
.contact-strip .text-link { margin: 0 0 5px; }

@media (max-width: 790px) {
  .site-header, .site-footer { padding-left: 24px; padding-right: 24px; }
  .hero-inner, .posts, .about, .page-shell { padding-left: 24px; padding-right: 24px; }
  .hero-inner { padding-top: 58px; }
}

@media (max-width: 560px) {
  h1 { font-size: 60px; letter-spacing: -3px; }
  .cursor { width: 10px; }
  .desktop-break { display: none; }
  .intro { font-size: 12px; }
  .featured-post { padding: 20px; }
  .featured-post h2 { font-size: 19px; }
  .post-meta { align-items: flex-start; flex-direction: column; gap: 10px; }
  .post-row { gap: 10px; grid-template-columns: 1fr auto; }
  .post-row time { grid-column: 1 / -1; }
  .post-row > div { grid-column: 1; }
  .post-row > .read-link { grid-column: 2; grid-row: 2; }
  .about h2 { font-size: 28px; }
  .page-intro { padding-top: 58px; }
  .page-intro h1 { font-size: 48px; letter-spacing: -3px; }
  .blog-card { padding: 20px; }
  .blog-card h2 { font-size: 19px; }
  .about-grid, .contact-strip { gap: 30px; grid-template-columns: 1fr; padding: 52px 0; }
  .contact-strip { align-items: start; }
  .contact-strip .text-link { margin: 0; }
}