:root {
  --font-body: "Source Serif 4", Georgia, serif;
  --font-heading: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-bg: #faf8f4;
  /* --color-bg: #ffffff; */
  --color-text: #171717;
  --color-muted: #66615b;
  --color-border: #e7e0d6;
  --color-accent: #111827;
  --container: 720px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.site-nav,
.eyebrow,
.button,
button,
input,
textarea,
label {
  font-family: var(--font-heading);
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h1 {
  margin: 0;
  /* font-size: clamp(2.5rem, 7vw, 5rem); */
  font-size: clamp(2rem, 5vw, 2.5rem);
}

h2 {
  margin: 2.5rem 0 0.75rem;
  /* font-size: clamp(1.6rem, 4vw, 2.4rem); */
  font-size: clamp(1.5rem, 4vw, 1.875rem);
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

p {
  margin: 0 0 1.25rem;
}

.site-header,
.site-footer,
main {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.site-title {
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-text);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 30px auto;
  padding: 2rem;
  background-color: #eae8e4;
  border-radius: 10px;
}

.container h2 {
  margin: 0 0 1rem 0;
}

.hero,
.page-header,
.article-header {
  padding: clamp(3rem, 9vw, 6rem) 0 2rem;
}

.lead,
.article-description {
  margin-top: 1.25rem;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.eyebrow,
.post-date {
  margin-bottom: 0.75rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  /* text-transform: uppercase; */
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 5px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.section {
  padding: 2rem 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin-top: 0;
}

.post-list {
  display: grid;
  gap: 1rem;
  padding: 0 0 3rem;
}

.post-card {
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-border);
}

.post-card h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.post-card a {
  text-decoration: none;
}

.article {
  padding-bottom: 3rem;
}

.article-content {
  font-size: 1.15rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.4rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
}

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