:root {
	--bg: #ffffff;
	--soft: #f6f2ec;
	--ink: #1c1a17;
	--muted: #655d54;
	--line: #e7e0d6;
	--accent: #9b3a1e; /* padauk */
	--accent-ink: #ffffff;
	--font: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
	--max: 760px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.bar { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; border: 2px solid var(--ink); padding: 4px 12px; border-radius: 4px; white-space: nowrap; }
.nav-desktop { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav-desktop a, .nav-mobile a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-desktop a:hover, .nav-desktop a[aria-current] { color: var(--accent); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; background: var(--soft); border-radius: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; background: var(--ink); }
.nav-mobile { position: absolute; right: 0; top: 52px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.1); padding: 8px; min-width: 220px; display: flex; flex-direction: column; }
.nav-mobile a { padding: 10px 12px; border-radius: 6px; }
.nav-mobile a:hover, .nav-mobile a[aria-current] { background: var(--soft); color: var(--accent); }
@media (max-width: 900px) { .nav-desktop { display: none; } .menu { display: block; } }

/* Hero (home) */
.hero { text-align: center; }
.hero-text { max-width: var(--max); margin: 0 auto; padding: 64px 20px 40px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.15; margin: 0 0 14px; }
.hero p { margin: 0; font-size: 1.15rem; color: var(--muted); }
.hero-img { display: block; width: 100%; max-width: 1200px; margin: 0 auto; background: var(--soft); }

/* Pages */
main { padding-bottom: 72px; }
.page-head { max-width: var(--max); margin: 0 auto; padding: 56px 20px 8px; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.2; margin: 0; }
.meta { color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; }
.content { max-width: var(--max); margin: 0 auto; padding: 24px 20px 0; }
.content h2 { font-size: 1.6rem; line-height: 1.25; margin: 2em 0 0.5em; }
.content p { margin: 0 0 1.2em; }
.wp-img { margin: 1.8em 0; text-align: center; }
.wp-img img { border-radius: 6px; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; background: #000; border-radius: 6px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Home cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 36px 0 0; }
.card { display: block; padding: 18px 20px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--ink); }
.card strong { display: block; color: var(--accent); font-size: 1.05rem; }
.card span { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.45; margin-top: 4px; }

/* Blog list */
.posts { display: grid; gap: 28px; }
.post-card { display: grid; gap: 20px; grid-template-columns: 1fr; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.post-card img { border-radius: 6px; display: block; }
.post-card h2 { margin: 0; font-size: 1.4rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card .meta { margin: 6px 0 10px; }
.post-card p { margin: 0; }

/* Footer */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 32px 20px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 12px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0; }
