/* ============================================================
   CarePali — design system
   Warm ivory paper, deep ink, terracotta accent.
   Fraunces (display) + Inter (text).
   ============================================================ */

:root {
  --paper: #F8F4ED;
  --paper-2: #F1EAE0;
  --card: #FFFDF9;
  --ink: #26221C;
  --ink-2: #6B6357;
  --ink-3: #716858;
  --line: #E4DCCF;
  --line-soft: #EDE6DA;
  --terra: #B0684A;
  --terra-deep: #8F4F35;
  --terra-soft: #F4E6DD;
  --sage: #6D7D68;
  --ok-bg: #EDF3E9;  --ok-line: #B9CFAC;  --ok-ink: #3D5A33;
  --err-bg: #F9E9E4; --err-line: #E0B3A3; --err-ink: #8A3A22;
  --shadow-sm: 0 1px 2px rgba(38,34,28,.05), 0 2px 8px rgba(38,34,28,.05);
  --shadow-md: 0 2px 6px rgba(38,34,28,.06), 0 12px 32px rgba(38,34,28,.09);
  --r-card: 16px;
  --r-img: 14px;
  --r-btn: 10px;
  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --w-shell: 1140px;
  --w-narrow: 720px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 480; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
::selection { background: var(--terra-soft); }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
  font-size: .9rem; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- shells ---------- */
.shell { max-width: var(--w-shell); margin: 0 auto; padding: 0 24px; }
.shell-narrow { max-width: var(--w-narrow); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.eyebrow {
  display: block;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--terra-deep);
  margin-bottom: 1.1rem;
}
.lede { font-size: 1.14rem; line-height: 1.7; color: var(--ink-2); }
.center { text-align: center; }

h1.display {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  font-weight: 420;
  letter-spacing: -0.02em;
}
h2.title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3.sub { font-size: 1.35rem; }
.accent-i { font-style: italic; color: var(--terra-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-text); font-size: .98rem; font-weight: 600;
  padding: .85em 1.5em; border-radius: var(--r-btn);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; line-height: 1.2;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--terra-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #7A4028; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--terra); color: var(--terra-deep); }
.btn-lg { font-size: 1.05rem; padding: 1em 1.8em; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .arr { transition: transform .16s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 244, 237, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); }
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 560;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand .dot { color: var(--terra); }
.nav-desktop { display: flex; align-items: center; gap: 2rem; }
.nav-desktop a:not(.btn) {
  font-size: .95rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-desktop a:not(.btn):hover { color: var(--ink); }
.nav-desktop a:not(.btn)[aria-current="page"] { color: var(--ink); border-bottom-color: var(--terra); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 10px; margin-right: -10px; color: var(--ink);
}
.nav-toggle svg { display: block; }
.nav-mobile {
  display: none;
  border-top: 1px solid var(--line-soft);
  padding: 12px 0 20px;
}
.nav-mobile a {
  display: block; padding: 12px 4px; font-size: 1.05rem; font-weight: 500;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft);
}
.nav-mobile .btn { margin-top: 16px; justify-content: center; display: flex; }
.nav-open .nav-mobile { display: block; }

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy .display { margin-bottom: 1.2rem; }
.hero-kicker {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 400;
  color: var(--ink-2); margin: 0 0 1.4rem; line-height: 1.35;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-meta {
  margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .4em 1.6em;
  font-size: .88rem; color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: .45em; }
.hero-meta .tick { color: var(--sage); font-weight: 700; }

.hero-visual { position: relative; }
.hero-visual .frame {
  border-radius: var(--r-img); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 4.6;
}
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute; left: -28px; bottom: 32px;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 16px 20px; max-width: 270px;
}
.hero-card p {
  margin: 0; font-family: var(--font-display); font-size: 1.06rem;
  line-height: 1.45; color: var(--ink);
}
.hero-card .sig { display: block; margin-top: 8px; font-family: var(--font-text); font-size: .8rem; color: var(--ink-3); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .hero-card { left: 16px; bottom: -20px; }
  .hero-visual .frame { aspect-ratio: 4 / 3.4; }
}

/* ---------- plan cards ---------- */
.band-2 { background: var(--paper-2); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { margin-left: auto; margin-right: auto; }

.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.plan-card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-card); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card.featured { border-color: var(--terra); position: relative; }
.plan-flag {
  position: absolute; top: 14px; right: 14px;
  background: var(--terra); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px;
}
.plan-media { aspect-ratio: 16 / 10; overflow: hidden; }
.plan-media img { width: 100%; height: 100%; object-fit: cover; }
.plan-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.plan-name { font-size: 1.45rem; margin-bottom: 2px; }
.plan-cadence { font-size: .84rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--terra-deep); margin-bottom: 14px; }
.plan-desc { color: var(--ink-2); font-size: .96rem; flex: 0; }
.plan-price { margin: 14px 0 4px; font-family: var(--font-display); font-size: 1.7rem; font-weight: 520; }
.plan-price .per { font-family: var(--font-text); font-size: .85rem; font-weight: 500; color: var(--ink-3); }
.plan-note { font-size: .82rem; color: var(--ink-3); margin-bottom: 18px; }
.plan-body .btn { margin-top: auto; justify-content: center; }

.plans-includes {
  margin-top: 28px; text-align: center;
  font-size: .92rem; color: var(--ink-2);
}
.plans-includes strong { color: var(--ink); font-weight: 600; }

@media (max-width: 960px) { .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- feature rows (services detail, how we work) ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(2.2rem, 5vw, 3.6rem) 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row .media { border-radius: var(--r-img); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.feature-row .media img { width: 100%; height: 100%; object-fit: cover; }
.feature-row.flip .media { order: 2; }
@media (max-width: 860px) {
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; }
  .feature-row.flip .media { order: 0; }
  .feature-row .media { max-width: 520px; }
}

.check-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.check-list li {
  position: relative; padding-left: 30px; margin-bottom: 10px;
  color: var(--ink-2); font-size: .97rem;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--sage); font-weight: 700;
}
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin-top: 1.2rem; }
@media (max-width: 560px) { .detail-cols { grid-template-columns: 1fr; } }
.mini-h {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin: 1.4rem 0 .4rem;
}
.quiet-note { font-size: .9rem; font-style: italic; color: var(--ink-3); }

/* ---------- numbered principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.principle .num {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 300;
  color: var(--terra); line-height: 1; margin-bottom: 14px;
}
.principle h3 { font-size: 1.25rem; }
.principle p { color: var(--ink-2); font-size: .95rem; margin: 0; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- beliefs ---------- */
.beliefs { border-top: 1px solid var(--line); }
.belief {
  display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem 3rem;
  padding: 1.8rem 0; border-bottom: 1px solid var(--line);
}
.belief h3 { font-size: 1.3rem; margin: 0; }
.belief p { margin: 0; color: var(--ink-2); }
@media (max-width: 720px) { .belief { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #F4EFE7; }
.cta-band .title { color: #FCFAF6; }
.cta-band .lede { color: #C9C1B4; }
.cta-band .btn-primary { background: var(--terra-deep); }
.cta-band .btn-primary:hover { background: #7A4028; }
.cta-band .alt { margin-top: 1.2rem; font-size: .92rem; color: #A79D8D; }
.cta-band .alt a { color: #E8DFD2; }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card time { font-size: .8rem; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.post-card h3 { font-size: 1.18rem; line-height: 1.3; margin: 8px 0 10px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card h3 a:hover { color: var(--terra-deep); }
.post-card .excerpt { font-size: .9rem; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.post-featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; margin-bottom: clamp(2.5rem, 6vw, 4rem);
  position: relative;
}
.post-featured .media { border-radius: var(--r-img); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16/10; }
.post-featured .media img { width: 100%; height: 100%; object-fit: cover; }
.post-featured h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; }
.post-featured h2 a { color: var(--ink); text-decoration: none; }
.post-featured h2 a::after { content: ""; position: absolute; inset: 0; }
.post-featured h2 a:hover { color: var(--terra-deep); }
@media (max-width: 780px) { .post-featured { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.article-hero { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.article-hero .meta { font-size: .85rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.article-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 440; max-width: 21ch; }
.article-hero .byline { display: flex; align-items: center; gap: 10px; margin-top: 1.4rem; color: var(--ink-2); font-size: .92rem; }
.article-hero .byline .ava {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--terra); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .85rem; letter-spacing: .02em;
}
.article-figure { margin: clamp(2rem, 5vw, 3rem) 0; }
.article-figure img { border-radius: var(--r-img); box-shadow: var(--shadow-md); width: 100%; max-height: 560px; object-fit: cover; }

.article-body { font-size: 1.09rem; line-height: 1.78; color: #37322A; }
.article-body p { margin-bottom: 1.35em; }
.article-body h2 { font-size: 1.7rem; margin: 1.8em 0 .6em; }
.article-body h3 { font-size: 1.32rem; margin: 1.6em 0 .5em; }
.article-body h4 { font-size: 1.12rem; margin: 1.5em 0 .5em; }
.article-body ul, .article-body ol { margin: 0 0 1.35em; padding-left: 1.3em; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote {
  margin: 1.6em 0; padding: .2em 0 .2em 1.4em;
  border-left: 3px solid var(--terra);
  font-family: var(--font-display); font-style: italic; font-size: 1.15em; color: var(--ink-2);
}
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 2.4em auto; width: 120px; }
.article-body a { color: var(--terra-deep); }

.article-end {
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line);
}
.author-box { display: flex; gap: 18px; align-items: flex-start; }
.author-box .ava {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--terra); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1.1rem;
}
.author-box p { margin: 0; font-size: .93rem; color: var(--ink-2); }
.author-box .name { font-weight: 600; color: var(--ink); font-size: 1rem; }

/* ---------- forms ---------- */
fieldset.f-field { border: none; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset.f-field legend {
  display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2);
  margin-bottom: 6px; padding: 0;
}
.form-shell {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card);
  box-shadow: var(--shadow-md); padding: clamp(1.6rem, 4vw, 2.6rem);
}
.form-section-title {
  font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); margin: 1.8rem 0 1rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--line-soft);
}
.form-section-title:first-of-type { margin-top: 0; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .f-row { grid-template-columns: 1fr; } }
.f-field { margin-bottom: 16px; }
.f-field label {
  display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2);
  margin-bottom: 6px;
}
.f-field .req { color: var(--terra); }
.f-field input, .f-field select, .f-field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-text); font-size: .96rem; color: var(--ink);
  background: #fff; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none; -webkit-appearance: none;
}
.f-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%236B6357' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
  border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-soft);
}
.f-field textarea { resize: vertical; min-height: 96px; }
.f-hint { font-size: .78rem; color: var(--ink-3); margin-top: 5px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-group label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .89rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px;
  cursor: pointer; margin: 0;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
  background: #fff;
}
.chip-group label:has(input:checked) {
  border-color: var(--terra); background: var(--terra-soft); color: var(--terra-deep);
}
.chip-group input { accent-color: var(--terra); width: 14px; height: 14px; margin: 0; }

.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .92rem; color: var(--ink-2); font-weight: 500;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px;
  cursor: pointer; margin: 0; background: #fff;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.radio-row label:has(input:checked) {
  border-color: var(--terra); background: var(--terra-soft); color: var(--terra-deep);
}
.radio-row input { accent-color: var(--terra); margin: 0; }

.form-status { border-radius: 10px; font-size: .95rem; outline: none; }
.form-status.ok, .form-status.err { margin-top: 18px; padding: 15px 18px; }
.form-status.ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-ink); }
.form-status.err { background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err-ink); }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0; pointer-events: none; }

.form-submit-row { margin-top: 22px; }
.form-submit-row .btn { width: 100%; justify-content: center; }
.form-privacy { margin-top: 12px; font-size: .8rem; color: var(--ink-3); text-align: center; }

/* contact split */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside .item { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.contact-aside .item:first-child { padding-top: 0; }
.contact-aside .k { font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.contact-aside .v { font-size: 1.1rem; font-weight: 500; }
.contact-aside .v a { color: var(--ink); text-decoration: none; }
.contact-aside .v a:hover { color: var(--terra-deep); }
.contact-aside .note { font-size: .88rem; color: var(--ink-2); margin-top: 4px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: #B7AE9F;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: .92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #FCFAF6; font-size: 1.6rem; }
.footer-tag { margin-top: 10px; max-width: 30ch; line-height: 1.6; }
.footer-h { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #B7AE9F; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #D8D0C2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .8rem; color: #B7AE9F;
}

/* ---------- reveal animation ----------
   Content is never hidden: only transform + a slight opacity dip animate,
   so a stalled transition (throttled tab, screenshot renderer) still shows
   readable content. */
.reveal { opacity: .9; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .plan-card, .post-card { transition: none; }
}

/* ---------- 404 ---------- */
.err-hero { min-height: 55vh; display: flex; align-items: center; }
.err-hero .code { font-family: var(--font-display); font-size: 6rem; color: var(--terra); font-weight: 300; line-height: 1; margin-bottom: 1rem; }
