:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #14181f;
  --muted: #5a6270;
  --line: #e3e6eb;
  --card: #f7f8fa;
  --accent: #1f5fbf;
  --max: 46rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --fg: #e8eaee;
    --muted: #9aa3b0;
    --line: #262b33;
    --card: #161a20;
    --accent: #7fb0ff;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-size: 1.0625rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.site-header .wrap:not(:has(.brand)) { justify-content: flex-end; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--fg); text-decoration: none; font-weight: 650; letter-spacing: .01em; font-size: 1.125rem; }
.brand img { width: 28px; height: 28px; display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a:focus-visible { color: var(--fg); }

main { padding: 0 0 3rem; }
.landing { min-height: calc(100vh - 4rem); padding-bottom: 8rem !important; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0; }
.landing .hero { padding: 0; }
.contact-line { margin: 0; font-size: 1.125rem; }
.nav ul { align-items: center; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .95rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " \25BE"; font-size: .8em; }
.menu summary:hover, .menu[open] summary { color: var(--fg); }
.menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.menu ul { position: absolute; right: 0; top: calc(100% + .5rem); display: block; min-width: 9rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .35rem 0; z-index: 5; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.menu ul li a { display: block; padding: .4rem .9rem; color: var(--fg); }
.hero { padding: 5rem 0 3.5rem; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.25rem); line-height: 1.1; margin: 0 0 .75rem; letter-spacing: -.02em; }
.tagline { font-size: 1.35rem; color: var(--muted); margin: 0; }
.lead { font-size: 1.125rem; margin: 0; max-width: 38rem; }

section { padding: 2.25rem 0; border-top: 1px solid var(--line); }
h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 1.25rem; font-weight: 600; }
h3 { margin: 0 0 .35rem; font-size: 1.3rem; }
p { margin: 0 0 1rem; }

.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; color: inherit; text-decoration: none; transition: border-color .15s ease; }
.card:hover, .card:focus-visible { border-color: var(--accent); }
.card p { color: var(--muted); margin: 0 0 1rem; }
.card .meta { font-size: .9rem; color: var(--muted); margin: 0 0 .75rem; }
.card .more { color: var(--accent); font-weight: 600; margin: 0; }

.prose h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.15; margin: 3rem 0 .5rem; letter-spacing: -.01em; }
.prose h2 { font-size: 1.15rem; text-transform: none; letter-spacing: 0; color: var(--fg); margin: 2rem 0 .5rem; }
.prose .updated { color: var(--muted); margin-bottom: 2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; padding-bottom: 2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
