:root {
  color-scheme: light;
  --bg: #faf6ef;
  --bg-2: #f3ece0;
  --panel: #ffffff;
  --panel-2: #f5efe4;
  --text: #2a221c;
  --muted: #6f6357;
  --accent: #b5471f;
  --accent-2: #2f8f6b;
  --border: rgba(42, 34, 28, 0.12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, 'Segoe UI', Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg), var(--bg-2) 55%, #efe6d6);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); background: rgba(255, 255, 255, 0.82); border-bottom: 1px solid var(--border); }
.header-row, .footer-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; }
.brand { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); }
.hero { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 2rem; padding: 3.5rem 0 2rem; align-items: center; }
.hero-small { padding: 2.2rem 0 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem; color: var(--accent); margin-bottom: 0.5rem; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(2rem, 3.2vw, 3rem); margin: 0 0 0.75rem; }
.lead { font-size: 1.06rem; color: var(--muted); }
.hero-card, .card, .article, .calculator-card { background: var(--panel); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 12px 30px rgba(42, 34, 28, 0.08); }
.hero-card { padding: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.2rem; }
.btn { display: inline-block; padding: 0.8rem 1.1rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { border-color: var(--border); color: var(--text); background: var(--panel); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.page-content { padding: 1rem 0 3rem; }
.section { padding: 1.2rem 0 0.6rem; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.card { padding: 1.2rem; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { box-shadow: 0 16px 36px rgba(42, 34, 28, 0.12); transform: translateY(-2px); }
.card h3 { margin-top: 0; }
.meta { color: var(--muted); font-size: 0.92rem; }
.article { padding: 1.6rem; }
.article h2 { margin: 1.8rem 0 0.6rem; font-size: 1.45rem; }
.article h3 { margin: 1.3rem 0 0.5rem; font-size: 1.18rem; }
.article p { margin: 0.7rem 0; }
.article ul, .article ol { margin: 0.7rem 0; padding-left: 1.4rem; }
.article li { margin: 0.35rem 0; }
.article a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article .eyebrow a { color: var(--accent); text-decoration: none; }
.article blockquote { margin: 1.2rem 0; padding: 0.8rem 1.2rem; border-left: 3px solid var(--accent-2); background: var(--panel-2); border-radius: 0 14px 14px 0; color: var(--text); font-style: italic; }
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--border); border-radius: 14px; }
.article table { border-collapse: collapse; width: 100%; min-width: 360px; font-size: 0.95rem; }
.article th, .article td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid var(--border); }
.article thead th { background: var(--panel-2); color: var(--accent); font-weight: 600; }
.article tbody tr:last-child td { border-bottom: none; }
.calc-result { margin-top: 1rem; font-weight: 600; color: var(--accent-2); min-height: 1.2em; }
.note { margin-top: 1.3rem; padding: 1rem 1.2rem; border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 14px; }
.calc-form { display: grid; gap: 0.9rem; max-width: 320px; margin-top: 1rem; }
.calc-form input { padding: 0.75rem; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); }
.site-footer { border-top: 1px solid var(--border); margin-top: 2rem; color: var(--muted); }
@media (max-width: 780px) { .hero { grid-template-columns: 1fr; } .header-row, .footer-row { flex-direction: column; align-items: flex-start; } }
