/* Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

:root {
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #526071;
  --link: #0e7dd8;
  --link-hover: #095a9b;
  --border: #e5e7eb;
  --card: #f8fafc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --text: #e5e7eb;
    --muted: #9aa3b2;
    --link: #66b9ff;
    --link-hover: #9ad0ff;
    --border: #1e293b;
    --card: #101826;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.wrapper { max-width: 1100px; margin-inline: auto; padding-inline: 1rem; }

/* Header */
.site-header { position: relative; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.25rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.logo { height: auto; display: inline-block; }
.logo--dark { display: none; }
@media (prefers-color-scheme: dark) { .logo--light { display: none; } .logo--dark { display: inline-block; } }

.site-nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; padding: .5rem .75rem; border-radius: 8px; }
.site-nav a:hover, .site-nav a:focus { background: var(--card); outline: none; }

/* Hero */
.hero { padding: 6rem 0 3rem; background: linear-gradient(180deg, var(--card), transparent 60%); }
.hero h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); line-height: 1.2; margin: 0 0 .75rem; }
.hero .lead { font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem); color: var(--muted); max-width: 60ch; }
.hero-cta { margin-top: 1.5rem; }
.button { display: inline-block; background: var(--link); color: #fff; text-decoration: none; padding: .75rem 1rem; border-radius: 10px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.button:hover, .button:focus { background: var(--link-hover); }

/* Sections */
.section { padding: 3rem 0; }
.section.alt { background: var(--card); }
.section h2 { font-size: clamp(1.5rem, 1vw + 1rem, 2rem); margin: 0 0 1rem; }

/* Grid cards */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.card h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 3rem; }
.footer-grid { display: grid; gap: 1rem; align-items: start; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: auto 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-meta p { margin: .25rem 0; color: var(--muted); }
.tiny { margin-top: 1rem; color: var(--muted); font-size: .85rem; }

/* Links & focus */
a { color: var(--link); }
a:hover, a:focus { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }

