:root {
  --page: #F7F3EC;
  --sheet: #FFFCF7;
  --ink: #2C2620;
  --soft-ink: #6F675E;
  --rule: #E4DCD0;
  --accent: #B56A4E;
  --quiet-green: #6D7F72;
  --measure: 40rem;
  --body: "Newsreader", Georgia, serif;
  --ui: "Source Sans 3", system-ui, sans-serif;
  --wordmark: "Fraunces", Georgia, serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.65;
  font-variation-settings: "opsz" 16;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 40rem) {
  body {
    font-size: 20px;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

/* Layout: one column, wider margins on desktop */
.site-header,
main,
.site-footer {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header {
  padding-block: 1.75rem 1.25rem;
}

.site-header-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark-h1 {
  display: contents;
}

.wordmark {
  font-family: var(--wordmark);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

.wordmark::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: url("/assets/images/logo.png") center / cover no-repeat;
  flex-shrink: 0;
}

.site-nav {
  font-family: var(--ui);
  font-size: 0.95rem;
}

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

.site-nav a:hover,
.site-nav a:focus {
  text-decoration: underline;
}

.tagline {
  margin: 0.6rem 0 0;
  color: var(--soft-ink);
  font-size: 1.05rem;
  line-height: 1.45;
}

.post-list {
  padding-block: 1rem 2rem;
}

.post-item {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.post-item:last-child {
  border-bottom: 0;
}

.post-item h2 {
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 600;
}

.post-item h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-item h2 a:hover,
.post-item h2 a:focus {
  color: var(--accent);
}

.dek {
  margin: 0.35rem 0 0;
  color: var(--soft-ink);
}

.meta {
  margin: 0;
  font-family: var(--ui);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--soft-ink);
}

.soft {
  color: var(--soft-ink);
}

/* Article sheet */
.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1.5rem 1.25rem 2rem;
  margin-block: 1rem 2.5rem;
}

.sheet h1 {
  margin: 0 0 0.4rem;
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 600;
  font-variation-settings: "opsz" 36;
}

.prose {
  margin-top: 1.5rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 600;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  color: var(--soft-ink);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

/* Full-bleed photos */
.hero {
  margin: 0 -1.25rem 1.5rem;
}

.prose figure {
  margin: 2rem -1.25rem;
}

figcaption {
  font-family: var(--ui);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--soft-ink);
  padding: 0.5rem 1.25rem 0;
}

/* Tags */
.tags {
  margin-top: 2rem;
  font-family: var(--ui);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag {
  color: var(--quiet-green);
  margin-right: 0.75rem;
}

.post-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--ui);
  font-size: 0.95rem;
}

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

.post-footer a:hover,
.post-footer a:focus {
  text-decoration: underline;
}

/* Single button style */
.button {
  display: inline-block;
  font-family: var(--ui);
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  border-radius: 2px;
  background: var(--accent);
  color: var(--sheet);
  text-decoration: none;
}

.site-footer {
  font-family: var(--ui);
  font-size: 0.85rem;
  color: var(--soft-ink);
  padding-block: 1rem 2.5rem;
  border-top: 1px solid var(--rule);
}
