:root {
  --paper: #f4f0e8;
  --ink: #1f1c17;
  --ink-soft: #4a453c;
  --line: #cfc7b5;
  --accent: #8a3324;
  --accent-soft: #a94a38;
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
  --text-sm: clamp(0.86rem, 0.83rem + 0.2vw, 0.95rem);
  --text-base: clamp(1rem, 0.96rem + 0.25vw, 1.08rem);
  --text-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --text-2xl: clamp(2.3rem, 1.8rem + 2.4vw, 3.8rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: "General Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(31,28,23,0.025) 1px, transparent 1px);
  background-size: 4px 4px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
main { flex: 1; }
a { color: var(--accent); }

/* ---- Top bar (inner pages) ---- */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  max-width: 760px; margin: 0 auto; width: 100%;
  padding: 1.2rem clamp(1.25rem, 5vw, 3rem);
  font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}
.topbar a { color: var(--ink-soft); text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---- Article pages ---- */
.page {
  max-width: 760px; margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 5vw, 3rem) clamp(3.5rem, 9vw, 6rem);
}
.crumbs { font-size: var(--text-xs); color: var(--ink-soft); margin-bottom: 1.4rem; }
.crumbs a { color: var(--ink-soft); }
.eyebrow {
  font-size: var(--text-xs); letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.page h1 {
  font-family: "Zodiak", serif; font-weight: 600; font-size: var(--text-xl);
  line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 1rem;
}
.page .lede { font-size: var(--text-lg); color: var(--ink-soft); margin-bottom: 2.2rem; line-height: 1.5; }
.page h2 {
  font-family: "Zodiak", serif; font-weight: 600; font-size: var(--text-lg);
  line-height: 1.25; margin: 2.4rem 0 0.7rem;
}
.page p, .page li { color: var(--ink-soft); max-width: 62ch; }
.page p + p { margin-top: 0.9rem; }
.page ul { margin: 0.4rem 0 0 1.2rem; }
.page li { margin-bottom: 0.35rem; }
.note {
  margin-top: 1.6rem; padding: 1.1rem 1.3rem;
  border-left: 2px solid var(--accent);
  background: rgba(31, 28, 23, 0.028);
  font-size: var(--text-sm); color: var(--ink-soft); max-width: 62ch;
}
.repair-list { list-style: none; margin: 0 !important; border-top: 1px solid var(--line); }
.repair-list li { border-bottom: 1px solid var(--line); padding: 1.3rem 0; margin: 0; max-width: none; }
.repair-list h2 { margin: 0 0 0.35rem; font-size: var(--text-base); font-family: "General Sans", system-ui, sans-serif; }
.repair-list h2 a { color: var(--ink); text-decoration: none; }
.repair-list h2 a:hover { color: var(--accent); }
.repair-list p { font-size: var(--text-sm); }
.more { font-size: var(--text-sm); font-weight: 500; text-decoration: none; }
.faq h3 { font-size: var(--text-base); font-weight: 600; margin: 1.6rem 0 0.3rem; color: var(--ink); }
.faq p { font-size: var(--text-sm); }
.cta {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.cta p { margin-bottom: 1.2rem; }
.email-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--text-sm); font-weight: 500;
  color: var(--paper); text-decoration: none; padding: 0.9rem 1.9rem;
  background: var(--accent); border-radius: 2px; transition: all .2s;
}
.email-btn:hover { background: var(--accent-soft); transform: translateY(-1px); }
.related { margin-top: 2.6rem; font-size: var(--text-sm); }
.related h2 { font-size: var(--text-base); font-family: "General Sans", system-ui, sans-serif; }

footer {
  text-align: center; padding: 1.8rem 1.25rem; font-size: var(--text-xs);
  color: var(--ink-soft); border-top: 1px solid var(--line);
}
footer nav { margin-bottom: 0.6rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
footer nav a { color: var(--ink-soft); }
footer .disclaimer {
  display: block; margin: 0.55rem auto 0; max-width: 62ch; opacity: 0.75; line-height: 1.5;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .email-btn:hover { transform: none; }
}
@media (max-width: 560px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .topbar nav { gap: 1rem; font-size: 0.7rem; }
  .page .lede { font-size: var(--text-base); }
}
