:root {
  --bg: #ffffff;
  --surface: #f5f7f9;
  --text: #1c2430;
  --muted: #5b6676;
  --brand: #0f766e;
  --brand-dark: #0b5953;
  --border: #e2e7ec;
  --radius: 12px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141a;
    --surface: #171e26;
    --text: #e6ebf0;
    --muted: #9aa6b4;
    --brand: #2dd4bf;
    --brand-dark: #5eead4;
    --border: #26303b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
main { min-height: 60vh; padding-bottom: 4rem; }
main > .wrap:first-child, main > article:first-child { padding-top: 3rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--text); }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }
.nav-toggle, .nav-button { display: none; }

@media (max-width: 760px) {
  .nav-button { display: block; width: 32px; height: 32px; cursor: pointer; position: relative; }
  .nav-button span, .nav-button span::before, .nav-button span::after {
    content: ""; position: absolute; left: 4px; right: 4px; height: 2px; background: var(--text);
  }
  .nav-button span { top: 15px; }
  .nav-button span::before { top: -7px; left: 0; right: 0; }
  .nav-button span::after { top: 7px; left: 0; right: 0; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .site-nav a { padding: 14px 20px; border-top: 1px solid var(--border); }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 5rem 0 4rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 640px; }
.button {
  display: inline-block; background: var(--brand); color: #fff; padding: 12px 22px;
  border-radius: 999px; text-decoration: none; font-weight: 600;
}
.button:hover { background: var(--brand-dark); color: #fff; }
@media (prefers-color-scheme: dark) { .button, .button:hover { color: #0f141a; } }

/* WordPress content */
.content { padding-top: 1rem; }
.content > * { max-width: 100%; }
.content figure { margin: 2rem 0; }
.content figcaption { color: var(--muted); font-size: 0.9rem; }
.content blockquote { border-left: 4px solid var(--brand); margin: 2rem 0; padding: 0.2rem 1.2rem; color: var(--muted); }
.content pre { background: var(--surface); padding: 1rem; border-radius: 8px; overflow-x: auto; }
.content table { border-collapse: collapse; width: 100%; }
.content td, .content th { border: 1px solid var(--border); padding: 8px; }
.content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 2rem; }
.content .wp-block-column { flex: 1 1 250px; }
.content .wp-block-button__link { display: inline-block; background: var(--brand); color: #fff; padding: 10px 20px; border-radius: 999px; text-decoration: none; }
.content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.content .alignwide, .content .alignfull { width: 100%; }
.feature { border-radius: var(--radius); margin: 1rem 0 2rem; display: block; }
.meta { color: var(--muted); font-size: 0.95rem; }

/* Cards */
.latest { padding-top: 3rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 1.5rem 0; }
.card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card-link { color: inherit; text-decoration: none; display: block; height: 100%; }
.card img, .card-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--surface); }
.card-body { padding: 16px 20px 20px; }
.card-body time { color: var(--muted); font-size: 0.85rem; }
.card-body h3 { margin: 0.3rem 0 0.5rem; font-size: 1.15rem; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; color: var(--muted); }
.error { text-align: center; padding-top: 5rem !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 0.9rem; padding: 2rem 0; }
