:root {
  --bg: #efe1cf;
  --ink: #1f2728;
  --muted: #5b6f58;
  --tomato: #d94a28;
  --tomato-dark: #a9341f;
  --line: rgba(121, 109, 88, 0.28);
  --panel: rgba(255, 249, 238, 0.9);
  --cream: #f6ead8;
  --gold: #c8914e;
  --shadow: 0 4px 24px rgba(89, 62, 41, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.7), transparent 24rem),
    linear-gradient(100deg, rgba(92, 111, 75, 0.14), transparent 28%),
    linear-gradient(280deg, rgba(166, 128, 92, 0.14), transparent 30%),
    var(--bg);
}

/* ── Site header ── */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: min(960px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 249, 238, 0.82);
  box-shadow: 0 14px 34px rgba(89, 62, 41, 0.1);
  backdrop-filter: blur(18px);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 65% 35%, #f47b45, var(--tomato) 62%, var(--tomato-dark));
  box-shadow: inset 0 -3px 5px rgba(88, 28, 16, 0.22);
  flex-shrink: 0;
}

.site-header nav {
  display: flex;
  gap: 4px;
}

.site-header nav a {
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.site-header nav a:hover,
.site-header nav a.active {
  background: rgba(239, 226, 204, 0.72);
  color: var(--ink);
}

.header-cta {
  padding: 7px 14px;
  border-radius: 7px;
  background: var(--tomato);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.header-cta:hover {
  background: var(--tomato-dark) !important;
  color: #fff !important;
}

/* ── Main content ── */
.content-wrap {
  width: min(720px, calc(100% - 32px));
  margin: 52px auto 80px;
}

/* ── Article list page ── */
.articles-hero {
  text-align: center;
  margin-bottom: 52px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(217, 74, 40, 0.1);
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.articles-hero h1 {
  margin: 0 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--ink);
}

.articles-hero p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.article-grid {
  display: grid;
  gap: 20px;
}

.article-card {
  display: block;
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(89, 62, 41, 0.16);
}

.card-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tomato);
}

.article-card h2 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink);
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.card-meta {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}

/* ── Article page ── */
.article-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin: 12px 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--muted);
}

.article-meta time { font-weight: 600; }

.article-intro {
  margin-bottom: 36px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ── Prose ── */
.prose h2 {
  margin: 2.4em 0 0.6em;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.prose h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.prose p {
  margin: 0 0 1.25em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.4em;
  padding-left: 1.5em;
}

.prose li {
  margin-bottom: 0.5em;
}

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

.prose a {
  color: var(--tomato);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover { color: var(--tomato-dark); }

.prose blockquote {
  margin: 1.8em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--tomato);
  background: rgba(217, 74, 40, 0.06);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--muted);
}

.prose blockquote p { margin: 0; }

/* ── Info / tip boxes ── */
.tip-box {
  margin: 2em 0;
  padding: 18px 20px;
  border: 1px solid rgba(217, 74, 40, 0.22);
  border-radius: 8px;
  background: rgba(217, 74, 40, 0.05);
}

.tip-box .tip-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tomato);
}

.tip-box p { margin: 0; font-size: 0.95rem; }

/* ── Comparison table ── */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 0.92rem;
}

.prose th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  background: rgba(239, 226, 204, 0.72);
  border-bottom: 2px solid var(--line);
}

.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose tr:last-child td { border-bottom: 0; }

/* ── FAQ ── */
.faq-section {
  margin-top: 3em;
}

.faq-section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1.2em;
}

details {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

summary {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--tomato);
  flex-shrink: 0;
}

details[open] summary::after { content: "−"; }

details > div {
  padding: 0 18px 16px;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.7;
}

details > div p { margin: 0 0 0.8em; }
details > div p:last-child { margin: 0; }

/* ── CTA Banner ── */
.cta-banner {
  margin-top: 3.5em;
  padding: 32px 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--tomato) 0%, var(--tomato-dark) 100%);
  color: #fff;
  text-align: center;
}

.cta-banner h2 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.cta-banner p {
  margin: 0 0 22px;
  opacity: 0.88;
  font-size: 0.97rem;
}

.cta-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  background: #fff;
  color: var(--tomato);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.15s;
}

.cta-btn:hover { opacity: 0.9; }

/* ── Related articles ── */
.related-articles {
  margin-top: 3.5em;
  padding-top: 2em;
  border-top: 1px solid var(--line);
}

.related-articles h2 {
  margin: 0 0 1.2em;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.related-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  transition: border-color 0.15s, transform 0.15s;
}

.related-card:hover {
  border-color: var(--tomato);
  transform: translateY(-1px);
}

.related-card .rtag {
  display: block;
  margin-bottom: 6px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tomato);
}

/* ── Footer ── */
.site-footer {
  margin-top: 60px;
  padding: 28px 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.83rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--tomato); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header { top: 8px; }
  .content-wrap { margin-top: 36px; }
  .article-card { padding: 20px; }
  .cta-banner { padding: 24px 20px; }
}
