:root {
  --bg: #111110;
  --ink: #F4E3D4;
  --body: #DCCBBD;
  --muted: #A89A8E;
  --faint: #8F847A;
  --green: #8CA77A;
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--green); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--green); color: var(--bg); }

/* Page frame */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(16px, 4vw, 32px);
}

/* Top nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-side { font-size: 13px; font-weight: 500; }
.muted { color: var(--muted); }
.logo { font-size: 18px; font-weight: 900; letter-spacing: -0.05em; }
.logo span { color: var(--green); }

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
}
.footer-links { display: flex; gap: 24px; font-weight: 500; }
.copy { color: var(--faint); }

/* Landing */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 64px 0;
}
.wordmark {
  margin: 0 0 20px;
  font-weight: 900;
  font-size: clamp(64px, 20vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
.wordmark .dot {
  display: inline-block;
  color: var(--green);
  transition: transform 220ms cubic-bezier(.3, 1.6, .5, 1);
  transform-origin: 50% 85%;
}
.wordmark .dot:hover { transform: scale(1.18) translateY(-0.02em); }

@media (prefers-reduced-motion: reduce) {
  .wordmark .dot { transition: none; }
}

/* Writing index */
.list-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 96px 0 64px;
}
.list { width: 100%; max-width: 520px; }
.list h1 {
  margin: 0 0 56px;
  font-weight: 900;
  font-size: clamp(40px, 9vw, 56px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.posts { display: flex; flex-direction: column; gap: 44px; }
.post-link { display: flex; flex-direction: column; gap: 6px; }
.post-date {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.post-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.post-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

/* Article */
.article-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 96px 0 64px;
}
.article { width: 100%; max-width: 560px; }
.article header { margin-bottom: 56px; }
.article h1 {
  margin: 0 0 16px;
  font-weight: 900;
  font-size: clamp(34px, 8vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.meta {
  margin: 0;
  display: flex;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.prose { font-size: 15.5px; line-height: 1.75; color: var(--body); }
.prose p { margin: 0 0 24px; }
.prose p:last-child { margin-bottom: 0; }
.prose .lede {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.prose h2 {
  margin: 44px 0 16px;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.article-back { margin: 64px 0 0; font-size: 13px; font-weight: 500; }
