
/* ---------- Minimal, elegant base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.6; }

:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  --bg: #ffffff;
  --text: #0f172a;   /* slate-900 */
  --muted: #475569;  /* slate-600 */
  --border: rgba(15, 23, 42, 0.08);
  --surface: #f8fafc; /* slate-50 */
  --link: #0ea5e9;   /* sky-500 */
  --radius: 14px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.06);
  --content-w: 68rem;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
}

html[data-theme="dark"] {
  --bg: #0b0f19;
  --text: #e5e7eb;
  --muted: #9aa4b2;
  --border: rgba(148, 163, 184, .18);
  --surface: #121826;
  --link: #38bdf8;
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
p { margin-block: .75rem 0; color: var(--text); }
.lead { font-size: clamp(1.075rem, 2vw + .2rem, 1.25rem); color: var(--muted); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); }
h2 { font-size: clamp(1.5rem, 2vw + .4rem, 2rem); }
h3 { font-size: clamp(1.15rem, 1.2vw + .6rem, 1.35rem); }

.container { width: min(100% - 2rem, var(--content-w)); margin-inline: auto; }
.section { padding-block: var(--space-7); }
.surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.flow > * + * { margin-top: .75rem; }
.muted { color: var(--muted); }

/* ---------- Header / Nav ---------- */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; padding: .5rem .75rem; background: var(--surface); border-radius: 8px; box-shadow: var(--shadow-1); z-index: 1001; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: saturate(180%) blur(8px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding-block: .75rem; }

.site-logo { display: inline-flex; align-items: center; gap: .5rem; color: inherit; font-weight: 600; letter-spacing: .01em; }
.site-logo:hover { text-decoration: none; }
.site-logo .dot { width: .75rem; height: .75rem; border-radius: 999px; background: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 25%, transparent); }
.wordmark { font-weight: 600; }

.site-nav { display: contents; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); padding: .5rem; border-radius: 10px; }
.nav-list { list-style: none; display: flex; gap: .75rem; padding: 0; margin: 0; align-items: center; }
.nav-list a { padding: .5rem .75rem; border-radius: 10px; color: inherit; }
.nav-list a[aria-current="page"], .nav-list a.active { background: var(--surface); border: 1px solid var(--border); text-decoration: none; }

.theme-toggle { border: 1px solid var(--border); background: transparent; padding: .5rem; border-radius: 999px; display: inline-grid; place-items: center; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: inline; }
.icon { display: inline-block; }

@media (max-width: 860px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .nav-toggle { display: inline-grid; }
  .nav-list { position: fixed; inset: 3.5rem 1rem auto 1rem; display: none; flex-direction: column; gap: .25rem;
    background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: .5rem; box-shadow: var(--shadow-1); }
  .nav-list.open { display: flex; }
  .nav-list a { width: 100%; }
}

/* ---------- Hero / Page head ---------- */
.hero { padding-block: calc(var(--space-7) + .5rem) var(--space-7); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--muted); }
.page-head { padding-block: var(--space-7) var(--space-6); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--text); color: var(--bg); border: 1px solid var(--text); border-radius: 12px; padding: .6rem .9rem; font-weight: 600; text-decoration: none; transition: transform .02s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn.small { padding: .45rem .7rem; font-weight: 600; font-size: .95rem; border-radius: 10px; }

.cta-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .75rem; }

/* ---------- Cards & Grid ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(12, 1fr); }
.cards > * { grid-column: span 4; }
@media (max-width: 1080px) { .cards > * { grid-column: span 6; } }
@media (max-width: 640px) { .cards > * { grid-column: span 12; } }

.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: clip; box-shadow: var(--shadow-1); }
.card-media { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--surface); border-bottom: 1px solid var(--border); }
.card-body { padding: 1rem; }
.card-pad { padding: 1rem; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.tags li { border: 1px solid var(--border); border-radius: 999px; padding: .2rem .55rem; font-size: .9rem; color: var(--muted); }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.feature-list li { padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }

/* ---------- Contact ---------- */
.contact-grid { grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.contact-card { grid-column: span 4; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 1rem; }
@media (max-width: 1080px) { .contact-card { grid-column: span 6; } }
@media (max-width: 640px) { .contact-card { grid-column: span 12; } }

.contact-form { display: grid; gap: .75rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: color-mix(in srgb, var(--link) 70%, var(--border)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 10%, transparent); }
.form-note { font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--space-6); border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent); }

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; background: var(--surface); border: 1px solid var(--border); padding: .15rem .35rem; border-radius: 8px; }
