:root {
  --paper: #faf7f2;
  --ink: #1c1a17;
  --muted: #6b645a;
  --rule: #e4ddd2;
  --accent: #b4532a;
  --accent-ink: #ffffff;
  --card: #f3eee6;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --measure: 40rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; }
.nav { display: flex; gap: 1.25rem; font-family: var(--sans); font-size: 0.875rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* Intro */
.intro { padding: 4.5rem 0 2.5rem; }
.eyebrow { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.intro h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 500; margin: 0 0 1.25rem; }
.intro p { color: var(--muted); margin: 0; max-width: 34rem; }

/* Subscribe */
.subscribe { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 1.5rem; margin: 0 0 3.5rem; }
.subscribe h2 { font-size: 1.25rem; margin: 0 0 0.25rem; font-weight: 600; }
.subscribe p { font-size: 1rem; color: var(--muted); margin: 0 0 1rem; }
.subscribe form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.subscribe input[type="email"] {
  flex: 1 1 14rem; min-width: 0; font: 400 1rem var(--sans); padding: 0.8rem 0.95rem;
  border: 1px solid #d3cabd; border-radius: 10px; background: #fff; color: var(--ink);
}
.subscribe input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.subscribe button {
  font: 600 0.95rem var(--sans); padding: 0.8rem 1.25rem; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
}
.subscribe button:hover { filter: brightness(0.93); }
.subscribe button:disabled { opacity: 0.6; cursor: default; }
.subscribe .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-family: var(--sans); font-size: 0.875rem; margin: 0.75rem 0 0; }
.form-msg:empty { margin: 0; }
.form-msg.ok { color: #2f6b3a; }
.form-msg.err { color: #a12a1a; }

/* Post list */
.section-label { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: 0.6rem; margin: 0 0 0.5rem; }
.post-list { list-style: none; margin: 0 0 4rem; padding: 0; }
.post-list li { border-bottom: 1px solid var(--rule); }
.post-list a { display: block; padding: 1.4rem 0; text-decoration: none; }
.post-list h3 { font-size: 1.5rem; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 0.35rem; }
.post-list a:hover h3 { color: var(--accent); }
.post-list p { margin: 0 0 0.5rem; color: var(--muted); font-size: 1.05rem; }
.meta { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); }

/* About */
.about { margin: 0 0 4rem; }
.about p { margin: 0 0 1rem; }

/* Article */
.article { padding: 3.5rem 0 1rem; }
.article .back { font-family: var(--sans); font-size: 0.875rem; color: var(--muted); text-decoration: none; }
.article .back:hover { color: var(--ink); }
.article h1 { font-size: clamp(2rem, 5.5vw, 2.85rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; margin: 1.5rem 0 0.75rem; }
.article .dek { font-size: 1.3rem; line-height: 1.45; color: var(--muted); margin: 0 0 1rem; }
.article .meta { display: block; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.prose p, .prose li { margin: 0 0 1.15rem; }
.prose h2 { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; margin: 2.5rem 0 1rem; }
.prose ol { padding-left: 1.4rem; }
.prose li::marker { color: var(--accent); font-family: var(--sans); font-size: 0.9em; font-weight: 600; }
.prose blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); font-size: 1.35rem; line-height: 1.45; font-style: italic; }
.article-end { margin-top: 3rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 1.125rem; }
  .intro { padding-top: 3rem; }
  .nav { gap: 0.9rem; }
  .subscribe button { width: 100%; }
}
