.wrap {
  width: min(100% - 48px, 980px);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-mute);
  font-size: 14px;
  font-weight: 700;
}

.topbar a { transition: color 150ms ease }
.topbar a:hover, .topbar a[aria-current="page"] { color: var(--accent) }

.writing-hero {
  padding: 84px 0 52px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.writing-title {
  max-width: 760px;
  font-family: var(--f-display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}

.writing-intro {
  max-width: 650px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.55;
}

.writing-list { padding: 28px 0 92px }

.writing-entry {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: start;
  gap: 30px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}

.writing-entry:first-child { border-top: 1px solid var(--rule) }
.writing-entry:hover .entry-title { color: var(--accent) }

.entry-date {
  padding-top: 4px;
  color: var(--ink-mute);
  font-size: 13px;
}

.entry-title {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-display);
  font-size: clamp(23px, 3.2vw, 31px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
  transition: color 150ms ease;
}

.entry-summary {
  display: block;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.entry-arrow {
  padding-top: 2px;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.article-header {
  padding: 70px 0 42px;
  border-bottom: 1px solid var(--rule);
}

.article-shell { width: min(100% - 48px, 760px); margin: 0 auto }

.article-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 7vw, 66px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.01;
}

.article-dek {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.5;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 28px;
  color: var(--ink-mute);
  font-size: 13px;
}

.article-meta a { color: var(--ink); font-weight: 700 }
.article-meta a:hover { color: var(--accent) }

.article-body { padding: 48px 0 26px }
.article-body p {
  margin-bottom: 1.5em;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.25vw, 20px);
  line-height: 1.78;
}

.article-body a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-body a:hover { text-decoration-thickness: 2px }

.article-body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
}

.article-body blockquote p {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.55;
}

.article-footer {
  margin: 20px auto 90px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.article-footer-title {
  margin-bottom: 8px;
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.article-footer p { color: var(--ink-soft); font-size: 16px; line-height: 1.6 }
.article-footer a { color: var(--accent); font-weight: 800 }
.article-footer a:hover { text-decoration: underline; text-underline-offset: 4px }

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-mute);
  font-size: 13px;
}

@media (max-width: 640px) {
  .wrap, .article-shell { width: min(100% - 36px, 760px) }
  .topbar-inner { min-height: 56px }
  .topbar-nav { gap: 15px; font-size: 13px }
  .writing-hero { padding: 58px 0 38px }
  .writing-entry { grid-template-columns: 1fr auto; gap: 8px 18px; padding: 26px 0 }
  .entry-date { grid-column: 1 / -1; padding: 0 }
  .entry-summary { font-size: 15px }
  .article-header { padding: 46px 0 32px }
  .article-body { padding-top: 34px }
  .article-body blockquote { padding-left: 18px }
  .article-footer { margin-bottom: 62px }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important }
}
