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

:root {
  --cream: #faf6ef;
  --cream-alt: #f1e9db;
  --ink: #23201b;
  --ink-soft: #55503f;
  --grey: #837c6c;
  --line: #e3d9c6;
  --rust: #b1502f;
  --rust-dark: #8a3c22;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --content-width: 720px;
  --wide-width: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid rgba(177, 80, 47, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover {
  color: var(--rust-dark);
  border-bottom-color: var(--rust-dark);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

/* ---------- layout shell ---------- */

.shell {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}
.shell--wide { max-width: var(--wide-width); }

header.site {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--line);
}
header.site .shell {
  max-width: var(--wide-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: none;
}
.mark:hover { border-bottom: none; }
.mark .badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--rust);
  color: var(--rust);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mark .name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
.mark .name em {
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 400;
}

nav.site {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
nav.site a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}
nav.site a:hover, nav.site a.active {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

main { padding: 64px 0 80px; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--grey);
  font-size: 14px;
}
footer.site .shell {
  max-width: var(--wide-width);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer.site a { color: var(--ink-soft); }

/* ---------- home / hero ---------- */

.hero {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12.5px;
  color: var(--grey);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  max-width: 14ch;
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--rust); }
.hero .lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 36px;
}
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 15px;
  border-bottom: none;
}
.btn:hover { border-bottom: none; }
.btn--primary {
  background: var(--rust);
  color: var(--cream);
}
.btn--primary:hover { background: var(--rust-dark); color: var(--cream); }
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--rust); color: var(--rust); }

.section {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 56px 24px 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: 22px; margin: 0; }
.section-head .more { font-size: 14px; white-space: nowrap; }

.now-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 15px;
}
.now-line .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rust);
  display: inline-block;
  transform: translateY(-1px);
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  font-size: 13.5px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink-soft);
  background: var(--cream-alt);
}

.post-teaser-list { display: flex; flex-direction: column; gap: 26px; }
.post-teaser { display: block; border-bottom: none; }
.post-teaser .row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
}
.post-teaser h3 {
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 6px;
}
.post-teaser:hover h3 { color: var(--rust); }
.post-teaser .date {
  font-size: 13px;
  color: var(--grey);
  white-space: nowrap;
  font-family: var(--sans);
}
.post-teaser p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- blog index ---------- */

.blog-header {
  max-width: var(--content-width);
  margin: 0 auto 48px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}
.blog-header h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 10px; }
.blog-header p { color: var(--ink-soft); font-size: 16px; max-width: 56ch; }

.post-list {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}
.post-list article {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.post-list article:first-child { padding-top: 0; }
.post-list .date {
  font-size: 13px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.post-list h2 { font-size: 24px; margin-bottom: 10px; }
.post-list h2 a { color: var(--ink); border-bottom: none; }
.post-list h2 a:hover { color: var(--rust); }
.post-list p.excerpt { color: var(--ink-soft); font-size: 16px; margin-bottom: 10px; }
.read-more { font-size: 14px; }

/* ---------- single post ---------- */

.post-header {
  max-width: var(--content-width);
  margin: 0 auto 8px;
  padding: 0 24px;
}
.post-header .back {
  display: inline-block;
  font-size: 13.5px;
  color: var(--grey);
  border-bottom: none;
  margin-bottom: 28px;
}
.post-header .date {
  font-size: 13px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.post-header h1 {
  font-size: clamp(28px, 4.2vw, 40px);
  margin-bottom: 18px;
}
.post-header .dek {
  font-size: 18px;
  color: var(--ink-soft);
  font-style: italic;
  border-left: 2px solid var(--rust);
  padding-left: 16px;
  margin-bottom: 8px;
}

.post-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 36px 24px 0;
  font-size: 17px;
  color: var(--ink);
}
.post-body p { margin: 0 0 22px; }
.post-body h2 {
  font-size: 22px;
  margin: 40px 0 16px;
}
.post-body blockquote {
  margin: 30px 0;
  padding-left: 20px;
  border-left: 2px solid var(--rust);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 18px;
}
.post-body h3 {
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--rust-dark);
}
.post-body ul,
.post-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.post-body li {
  margin-bottom: 8px;
}
.post-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
.post-body .callout {
  margin: 0 0 30px;
  padding: 16px 20px;
  background: var(--cream-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  color: var(--ink-soft);
}
.post-body .callout em { color: var(--ink); }
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 30px;
  font-size: 15px;
}
.post-body th,
.post-body td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.post-body th {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.post-body table + p,
.post-body table + h2 {
  margin-top: 0;
}

.post-footer {
  max-width: var(--content-width);
  margin: 48px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid var(--line);
}
