/* ---------------------------------------------------
   Blog stylesheet
   Palette:
     --paper   #EDEBE3  page background (cool stone, not cream)
     --ink     #20281F  primary text (green-black)
     --muted   #5C6357  secondary text (dates, meta)
     --accent  #8A6A2F  links, small accents (ochre)
     --line    #CFC9B8  hairline dividers
   Type:
     Display/headings — 'Fraunces' (serif)
     Body/UI          — 'Inter' (sans)
--------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500&display=swap');

:root {
  --paper: #EDEBE3;
  --ink: #20281F;
  --muted: #5C6357;
  --accent: #8A6A2F;
  --line: #CFC9B8;
  --max-width: 640px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(138, 106, 47, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

a:hover,
a:focus-visible {
  text-decoration-color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Masthead */

.masthead {
  margin-bottom: 3.5rem;
}

.masthead__title {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.masthead__title a {
  color: var(--ink);
  text-decoration: none;
}

.masthead__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34ch;
}

/* Post list */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}

.post-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.post-list time {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.post-list h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

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

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

.post-list p {
  margin: 0;
  color: var(--ink);
  max-width: 58ch;
}

.empty-note {
  color: var(--muted);
  font-style: italic;
}

/* Single post */

.post-header {
  margin-bottom: 2.5rem;
}

.post-header time {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.post-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0;
}

.post-body {
  max-width: 66ch;
}

.post-body p {
  margin: 0 0 1.3rem;
}

.post-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin: 2.2rem 0 1rem;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 1.5rem 0;
}

.post-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .wrap {
    padding: 2.75rem 1.25rem 4rem;
  }
}
