:root {
  --ink: #272129;
  --muted: #756d76;
  --paper: #fffaf4;
  --wash: #f3ece5;
  --line: rgba(39, 33, 41, 0.12);
  --accent: #e97458;
  --accent-soft: #ffe5d8;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family:
    ui-serif, Georgia, Cambria, "Times New Roman", "Noto Serif SC", serif;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(39, 33, 41, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf4 0%, #f8efe8 100%);
  background-size: 64px 64px, auto;
}

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

.site-header,
.site-footer,
main {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.site-header nav,
.site-footer {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-header a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font: 800 12px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p:last-child {
  max-width: 680px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.9;
}

.post-list {
  display: grid;
  gap: 18px;
  padding: 34px 0 80px;
}

.post-card a {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.post-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 116, 88, 0.38);
  background: rgba(255, 255, 255, 0.78);
}

time {
  color: var(--accent);
  font: 700 13px/1 ui-sans-serif, system-ui, sans-serif;
}

.post-card h2 {
  margin-top: 12px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.08;
}

.post-card p {
  max-width: 700px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8e3f2f;
  font: 700 12px/1 ui-sans-serif, system-ui, sans-serif;
}

.article-wrap {
  max-width: 860px;
}

.article {
  padding: 56px 0 90px;
}

.back-link {
  color: var(--muted);
  font: 700 14px/1 ui-sans-serif, system-ui, sans-serif;
}

.article header {
  padding: 36px 0 34px;
  border-bottom: 1px solid var(--line);
}

.article h1 {
  margin-top: 14px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 1.02;
}

.article header p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.prose {
  padding-top: 34px;
  font-size: 19px;
  line-height: 1.95;
}

.prose p,
.prose ul {
  margin: 0 0 24px;
}

.prose ul {
  padding-left: 1.4em;
}

.site-footer {
  justify-content: space-between;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero {
    padding-top: 56px;
  }

  .post-card a {
    padding: 22px;
  }
}
