/* ============================================
   Bloom & Budget — Blog Stylesheet
   Warm, editorial, professional
   ============================================ */

:root {
  --cream: #faf6f0;
  --cream-dark: #f2ebdf;
  --card: #ffffff;
  --ink: #22392b;
  --ink-soft: #4c5f52;
  --muted: #667568;
  --rose: #d88c6e;
  --rose-dark: #a85a3c;
  --sage: #6f8b7a;
  --sage-light: #e7efe8;
  --gold: #c9a227;
  --border: #e8e0d3;
  --shadow: 0 10px 30px rgba(34, 57, 43, 0.08);
  --shadow-hover: 0 18px 44px rgba(34, 57, 43, 0.14);
  --radius: 18px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; line-height: 1.3; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 0.9rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-2px); }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo .bud { color: var(--rose-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--rose);
  transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--rose-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.hero .eyebrow { margin-bottom: 1.2rem; }

.hero h1 .accent {
  font-style: italic;
  color: var(--rose-dark);
}

.hero p.lead { margin: 1.4rem 0 2.2rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.6rem;
}

.hero-stats .stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
}
.hero-stats .stat span {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  width: 100%;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 2px solid var(--rose);
  border-radius: var(--radius);
  z-index: -1;
}

.hero-badge {
  position: absolute;
  bottom: 1.4rem;
  left: -1.6rem;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-badge .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4caf7d;
  display: inline-block;
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.6rem;
}

.section-head p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Post cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}


/* a single featured post fills the row instead of leaving empty columns */
@media (min-width: 761px) {
  .post-grid--two { grid-template-columns: repeat(2, 1fr); }
  .post-grid--single { grid-template-columns: 1fr; }
  .post-grid--single .post-card { flex-direction: row; }
  .post-grid--single .post-card .thumb { flex: 0 0 46%; aspect-ratio: 16 / 10; }
  .post-grid--single .post-card .body { justify-content: center; padding: 2rem 2.4rem; }
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.post-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.post-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .thumb img { transform: scale(1.05); }

.post-card .body {
  padding: 1.5rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--sage-light);
  color: #47624f;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.post-card h3 a:hover { color: var(--rose-dark); }

.post-card .excerpt {
  color: var(--ink-soft);
  font-size: 0.93rem;
  flex: 1;
}

.post-card .meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}

/* ---------- Quote strip ---------- */
.quote-strip {
  background: var(--ink);
  color: var(--cream);
  padding: 4rem 0;
  text-align: center;
}

.quote-strip blockquote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  max-width: 24ch;
  margin: 0 auto 1rem;
  line-height: 1.4;
}

.quote-strip cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* ---------- Newsletter CTA ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--sage-light), #f7efe2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  padding: 3.5rem 2rem;
  text-align: center;
}

.newsletter h2 { margin-bottom: 0.8rem; }

.newsletter p { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 1.8rem; }

.newsletter form {
  display: flex;
  gap: 0.7rem;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.95rem;
  background: #fff;
  outline: none;
}
.newsletter input:focus { border-color: var(--sage); }

.newsletter small {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- Article page ---------- */
.article-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.article-hero .meta {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.article-cover {
  width: min(880px, 100%);
  margin: 0 auto 3rem;
}

.article-cover img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 8;
  object-fit: cover;
  width: 100%;
}

.prose {
  width: min(720px, 92%);
  margin: 0 auto;
  font-size: 1.06rem;
  color: #33463a;
}

.prose h2 {
  font-size: 1.6rem;
  margin: 2.6rem 0 1rem;
}

.prose h3 { margin: 2rem 0 0.7rem; font-size: 1.2rem; }

.prose p { margin-bottom: 1.3rem; }

.prose ul, .prose ol { margin: 0 0 1.5rem 1.4rem; }
.prose li { margin-bottom: 0.6rem; }

.prose strong { color: var(--ink); }

.prose blockquote {
  border-left: 3px solid var(--rose);
  background: var(--card);
  padding: 1.1rem 1.4rem;
  border-radius: 0 12px 12px 0;
  margin: 1.8rem 0;
  font-style: italic;
  color: var(--ink);
}

/* answer-first block at the top of every post: what a human skims, what an answer engine quotes */
.short-answer {
  margin: 2rem 0 2.4rem;
  padding: 1.15rem 1.4rem;
  background: var(--sage-light);
  border-left: 4px solid var(--sage);
  border-radius: 0 12px 12px 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.short-answer strong {
  color: var(--ink);
  font-weight: 600;
}

.callout {
  background: var(--sage-light);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}

.callout h3 { margin: 0 0 0.5rem; color: #47624f; }
.callout p { margin: 0; font-size: 0.97rem; }

.product-box {
  background: var(--card);
  border: 1.5px solid var(--rose);
  border-radius: 16px;
  padding: 1.8rem;
  margin: 2.4rem 0;
  text-align: center;
}

.product-box h3 { font-size: 1.35rem; }
.product-box p { font-size: 0.97rem; margin: 0.7rem 0 1.3rem; }

.article-footer {
  width: min(720px, 92%);
  margin: 3.5rem auto 0;
  border-top: 1px solid var(--border);
  padding: 2rem 0 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.back-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.back-link:hover { color: var(--rose-dark); }

.share { display: flex; gap: 0.6rem; font-size: 0.85rem; color: var(--muted); align-items: center; }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4.5rem 0;
}

.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
}

.value-card .icon {
  font-size: 1.6rem;
  display: inline-flex;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--sage-light);
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.value-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.value-card p { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d6ddd3;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid .logo { color: #fff; margin-bottom: 0.9rem; }

.footer-grid p { font-size: 0.92rem; opacity: 0.75; max-width: 34ch; }

.footer-grid h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  color: #fff;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.7rem; font-size: 0.92rem; }
.footer-grid a { opacity: 0.75; transition: opacity 0.2s; }
.footer-grid a:hover { opacity: 1; color: var(--rose); }

.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  opacity: 0.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .post-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-media::before { display: none; }
  .hero-badge { left: 1rem; }
}

@media (max-width: 620px) {
  .post-grid, .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; }
  .hero { padding: 3rem 0; }
  .hero-stats { gap: 1.5rem; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 4%;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
}

/* ============================================
   Additions — archive, article furniture, legal
   pages, forms, accessibility
   ============================================ */

/* ---------- Accessibility ---------- */
/* author-level display rules would otherwise beat the hidden attribute */
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 0 0 12px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--rose-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Inner page hero ---------- */
.page-hero { padding: 3.5rem 0 2.4rem; text-align: center; }
.page-hero h1 { margin-top: 0.6rem; }
.page-hero .lead { margin: 1.2rem auto 0; }
.page-hero .tag, .article-hero .tag { margin-bottom: 0.8rem; }
.updated, .category-count { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin-bottom: 1.4rem; font-size: 0.82rem; color: var(--muted); }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 0;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.45rem;
  opacity: 0.55;
}
.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
.breadcrumbs a:hover { color: var(--rose-dark); }
.breadcrumbs li[aria-current] {
  max-width: min(48ch, 62vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Post disclaimer under the title ---------- */
.post-disclaimer {
  margin-top: 1.1rem;
  font-size: 0.83rem;
  color: var(--muted);
}
.post-disclaimer a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-disclaimer a:hover { color: var(--rose-dark); }

.article-hero .meta a {
  color: var(--ink-soft);
  font-weight: 600;
}
.article-hero .meta a:hover { color: var(--rose-dark); }

/* ---------- Table of contents ---------- */
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  margin: 0 0 2.4rem;
}
.toc-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-dark);
  font-weight: 700;
  margin: 0 0 0.7rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li {
  counter-increment: toc;
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.toc li::before {
  content: counter(toc) ". ";
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover, .toc a.active {
  color: var(--rose-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Share bar ---------- */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.3rem 0;
  margin: 2.5rem 0 0;
}
.share-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-btn {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.share-btn:hover {
  border-color: var(--rose);
  color: var(--rose-dark);
  transform: translateY(-1px);
}
.share-copy.copied {
  border-color: var(--sage);
  color: #3d5a45;
  background: var(--sage-light);
}

/* ---------- Author box ---------- */
.author-box {
  width: min(720px, 92%);
  margin: 3rem auto 0;
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.author-box img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid var(--sage-light);
}
.author-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.author-name { font-size: 1.25rem; margin-bottom: 0.5rem; }
.author-name a:hover { color: var(--rose-dark); }
.author-box p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Related posts + prev/next ---------- */
.related-section { padding-top: 3.5rem; }
.related-section .section-head p a {
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.related-section .section-head p a:hover { color: var(--rose-dark); }

.post-nav {
  width: min(880px, 92%);
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.post-nav-item {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.post-nav-item span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.post-nav-item strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  display: block;
}
.post-nav-item.next { text-align: right; }
.post-nav-item:hover { border-color: var(--rose); box-shadow: var(--shadow); }

/* ---------- Blog archive + search ---------- */
.blog-section { padding-top: 2.5rem; }
.blog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.post-search {
  flex: 1 1 280px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
}
.post-search:focus { border-color: var(--sage); }
.search-status { font-size: 0.85rem; color: var(--muted); }
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2.2rem;
}
.chip {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--rose); color: var(--rose-dark); }
.no-results { color: var(--ink-soft); font-size: 0.95rem; padding: 1rem 0 2rem; }
.no-results a { text-decoration: underline; color: var(--rose-dark); }
.back-to-blog { margin-top: 2.5rem; }
.back-to-blog a { font-weight: 600; color: var(--ink-soft); }
.back-to-blog a:hover { color: var(--rose-dark); }

/* ---------- Newsletter form feedback ---------- */
.form-msg {
  margin: 0.9rem auto 0;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.form-msg.is-error { color: #8c2f1f; font-weight: 600; }
.form-msg.is-success { color: #2f5840; font-weight: 600; }

.newsletter-soon-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.newsletter-note {
  display: block;
  max-width: 54ch;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}
.newsletter-note a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.newsletter-note a:hover { color: var(--rose-dark); }
.template-nudge {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.template-nudge a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.template-nudge a:hover { color: var(--rose-dark); }

/* ---------- Worked-example tables ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.92rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.data-table caption {
  caption-side: top;
  text-align: left;
  font-size: 0.82rem;
  color: var(--muted);
  padding-bottom: 0.6rem;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table th {
  background: var(--cream-dark);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td:last-child, .data-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- Long-form / legal pages ---------- */
.prose a {
  color: var(--rose-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover { color: var(--ink); }
.prose-legal h2 { font-size: 1.35rem; margin: 2.2rem 0 0.8rem; }
.prose-legal h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
.prose-legal li { font-size: 1rem; }

/* ---------- Footer legal row ---------- */
.footer-legal {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1.4rem;
}
.footer-legal ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.85rem;
}
.footer-legal a { opacity: 0.8; }
.footer-legal a:hover { opacity: 1; color: var(--rose); text-decoration: underline; }
.footer-bottom a:hover { color: var(--rose); }

/* ---------- 404 ---------- */
.notfound-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---------- About extras ---------- */
.section .about-grid { padding: 0; align-items: flex-start; }
.about-note {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.about-note a, .about-legal a {
  color: var(--rose-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.about-legal p { color: var(--ink-soft); max-width: 72ch; margin-bottom: 1rem; }
.contact-links {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .newsletter, .share-bar,
  .post-nav, .related-section, .skip-link, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .prose { width: 100%; font-size: 11pt; }
  a { text-decoration: none; color: #000; }
}

/* ---------- Responsive additions ---------- */
@media (max-width: 900px) {
  .author-box { flex-direction: column; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item.next { text-align: left; }
  .prose-legal { width: min(720px, 92%); }
}

@media (max-width: 620px) {
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 0.55rem 0.6rem; }
  .share-bar { flex-direction: column; align-items: flex-start; }
  .breadcrumbs li[aria-current] { max-width: 70vw; }
}
