:root {
  --bg: #fdfbf8;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #4b5563;
  --line: #e5e7eb;
  --brand: #a4491a;
  --brand-soft: #fff4ed;
  --accent: #14532d;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #fff7ef 0%, var(--bg) 45%);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: "Merriweather", Georgia, serif;
  line-height: 1.3;
  color: #111827;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1140px, 92%); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}
.skip-link:focus { left: 10px; top: 10px; z-index: 999; }

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo {
  height: 36px;
  width: 36px;
  display: block;
  flex: 0 0 auto;
}
.brand-text {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 8px 10px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.nav-links a {
  color: #1f2937;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--brand-soft);
  text-decoration: none;
}

.hero { padding: 56px 0 30px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}
.hero-box,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-box { padding: 28px; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 16px; }
.hero p { margin: 0 0 16px; color: var(--muted); }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
}
.button.alt { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.button:hover { text-decoration: none; opacity: 0.92; }

.tool-card { padding: 24px; }
.tool-stack {
  display: grid;
  gap: 14px;
}
.mini-tool {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: block; font-weight: 600; margin: 0 0 4px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid #fdba74;
  border-color: #fb923c;
}

.notice {
  margin-top: 14px;
  padding: 12px;
  background: #f0fdf4;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}

.section { padding: 30px 0; }
.section h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0 0 12px; }
.subtle { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3, .card h2 { margin-top: 0; }
.essential-prose {
  max-width: 920px;
  margin: 0 auto;
}
.essential-prose h2 {
  text-align: center;
  margin: 0 0 18px;
}
.essential-prose p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.breadcrumbs {
  font-size: 0.9rem;
  margin: 18px 0 10px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 18px;
}
.article-content { padding: 24px; }
.article-content h1 { margin-top: 0; }
.article-content h2 { margin-top: 26px; }
.article-content ul, .article-content ol { padding-left: 20px; }
.article-content li { margin-bottom: 8px; }
.sidebar { position: sticky; top: 88px; align-self: start; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 6px; }
.toc a { color: #374151; }

.badge {
  display: inline-block;
  background: var(--brand-soft);
  color: #9a3412;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-footer {
  margin-top: 36px;
  background: #111827;
  color: #d1d5db;
  padding: 30px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 18px;
}
.site-footer h3 {
  margin: 0 0 10px;
  color: #ffffff;
}
.site-footer p { margin: 0; color: #e2e8f0; }
.site-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover { color: #fde68a; text-decoration: none; }
.footer-note {
  margin-top: 18px;
  border-top: 1px solid #374151;
  padding-top: 14px;
  font-size: 0.92rem;
}

.article-image {
  margin: 14px 0 18px;
}
.article-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}
.article-image figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-thumb {
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.card-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .article-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 14px 26px rgba(17, 24, 39, 0.12);
    padding: 10px;
    z-index: 40;
    gap: 6px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 10px 12px;
  }
  .form-row { grid-template-columns: 1fr; }
  .brand-logo { height: 32px; width: 32px; }
  .brand-text { font-size: 1rem; }
}






