/* === Foundation === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

:root {
  --bg: #ffffff;
  --bg-warm: #f9f6f2;
  --bg-soft: #f4f0eb;
  --text: #1f1f1f;
  --text-2: #4a4643;
  --text-3: #7d7873;
  --accent: #c2572a;
  --accent-hover: #a84921;
  --accent-light: #faf0eb;
  --green: #2a7d5f;
  --green-light: #eef7f3;
  --border: #e5e0da;
  --border-light: #eeebe6;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 6px 20px rgba(0,0,0,0.07);
  --radius: 8px;
  --w-narrow: 680px;
  --w-content: 780px;
  --w-wide: 1120px;
  --serif: 'Merriweather', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 56px;
}
.site-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  margin-right: 2.5rem;
  white-space: nowrap;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 0;
  height: 100%;
  align-items: stretch;
}
.nav-list li { display: flex; align-items: stretch; }
.nav-list a {
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; margin-left: auto; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 0.6rem 1.5rem; border-bottom: none; }
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.35rem; }

/* ============================================
   HOMEPAGE
   ============================================ */

/* Featured block */
.featured {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border-light);
}
.featured-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.featured-text h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.featured-text p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.featured-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.featured-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s;
}
.featured-card:hover { box-shadow: var(--card-shadow-hover); }
.featured-card h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.2rem; }
.featured-card p { font-size: 0.82rem; color: var(--text-3); }

@media (max-width: 768px) {
  .featured-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .featured-text h1 { font-size: 1.65rem; }
}

/* Section grid */
.section {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
}
.section--alt {
  background: var(--bg-warm);
  max-width: none;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section--alt .section-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.section-header a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.section-header a:hover { text-decoration: underline; }

/* Article cards */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.15s;
}
.article-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}
.article-card-body { padding: 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.article-card .card-cat {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.article-card h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}
.article-card .card-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
}
.article-card .card-meta {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.article-card .card-meta span { display: inline-flex; align-items: center; gap: 0.2rem; }

.tool-card { border-left: 3px solid var(--accent); }

@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* ============================================
   ARTICLE / SINGLE PAGE
   ============================================ */
.article-header {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border-light);
  padding: 2rem 1.5rem 2.25rem;
}
.article-header-inner {
  max-width: var(--w-narrow);
  margin: 0 auto;
}
.article-header .cat-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.article-header h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.article-header .article-desc {
  font-size: 1.02rem;
  color: var(--text-2);
  line-height: 1.6;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-3);
}
.article-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.article-meta svg { opacity: 0.5; }

/* Disclaimer (inline) */
.disclaimer-banner {
  max-width: var(--w-narrow);
  margin: 1.25rem auto 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  color: var(--green);
  line-height: 1.45;
}
.disclaimer-banner svg { flex-shrink: 0; margin-top: 1px; color: var(--green); }
.disclaimer-banner a { color: var(--green); font-weight: 600; }

/* Article body */
.article-body {
  max-width: var(--w-narrow);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* TOC */
.toc {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.toc summary {
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}
.toc ul { padding: 0.25rem 1rem 0.6rem; margin-left: 1rem; }
.toc li { margin: 0.2rem 0; font-size: 0.85rem; }
.toc a { color: var(--accent); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Content typography */
.content-body h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.25rem 0 0.6rem;
}
.content-body h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
}
.content-body p { margin-bottom: 1.1rem; font-size: 1rem; line-height: 1.75; }
.content-body ul, .content-body ol { margin: 0 0 1.1rem 1.5rem; }
.content-body li { margin-bottom: 0.35rem; line-height: 1.65; }
.content-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.content-body a:hover { text-decoration-thickness: 2px; }

.content-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.25rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.content-body blockquote p { margin-bottom: 0; color: var(--text-2); }

.content-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.88rem; }
.content-body th, .content-body td { padding: 0.55rem 0.75rem; border: 1px solid var(--border); text-align: left; }
.content-body th { background: var(--bg-warm); font-weight: 600; font-size: 0.82rem; color: var(--text-2); }
.content-body img { border-radius: var(--radius); margin: 1.25rem 0; }

/* Key takeaway box */
.content-body .takeaway {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-left: 3px solid var(--green);
}
.content-body .takeaway p { margin: 0; color: var(--green); font-size: 0.92rem; }

/* Sources */
.sources {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.sources h2 {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}
.sources ol { padding-left: 1.25rem; font-size: 0.82rem; color: var(--text-2); }
.sources li { margin-bottom: 0.2rem; }
.sources a { color: var(--accent); text-decoration: none; }
.sources a:hover { text-decoration: underline; }

/* FAQ Accordion */
.faq { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.faq h2 { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }
.faq-item {
  background: var(--bg-warm);
  border-radius: 28px;
  margin-bottom: 0.6rem;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(194,87,42,0.08); }
.faq-item summary {
  padding: 0.7rem 1.4rem;
  font-weight: 600; font-size: 0.88rem; color: var(--text);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--accent); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='6' y1='2' x2='6' y2='10'/%3E%3Cline x1='2' y1='6' x2='10' y2='6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  transition: transform 0.25s ease;
}
.faq-item[open] { background: var(--bg); border-color: var(--accent); }
.faq-item[open] summary { color: var(--accent); }
.faq-item[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='2' y1='6' x2='10' y2='6'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}
.faq-item p {
  padding: 0 1.4rem 0.85rem;
  margin: 0; font-size: 0.88rem; line-height: 1.7; color: var(--text-2);
}

/* Tags */
.tags { margin-top: 1.5rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
  font-size: 0.75rem; font-weight: 500;
  background: var(--bg-warm); padding: 0.2rem 0.6rem;
  border-radius: 4px; color: var(--text-2); text-decoration: none;
}
.tag:hover { background: var(--bg-soft); }

/* ============================================
   LIST PAGES
   ============================================ */
.list-header {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border-light);
  padding: 2rem 1.5rem;
}
.list-header-inner { max-width: var(--w-wide); margin: 0 auto; }
.list-header h1 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
}
.list-header p { color: var(--text-2); font-size: 0.95rem; margin-top: 0.35rem; }

.list-body {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
  max-width: var(--w-narrow);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.legal-page h1 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.legal-page h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
  color: var(--text);
}
.legal-page p { margin-bottom: 0.9rem; color: var(--text-2); font-size: 0.92rem; line-height: 1.7; }
.legal-page ul { margin: 0 0 1rem 1.5rem; color: var(--text-2); font-size: 0.92rem; }
.legal-page li { margin-bottom: 0.3rem; }
.legal-page a { color: var(--accent); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.footer-disclaimer {
  max-width: 500px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.5;
}
.footer-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.8rem;
  margin: 0 0.6rem;
  font-weight: 500;
}
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 0.72rem; color: var(--text-3); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
  .article-header h1 { font-size: 1.55rem; }
  .featured-text h1 { font-size: 1.5rem; }
  .list-header h1 { font-size: 1.4rem; }
}
