/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-subtle: #f6f6f4;
  --text: #1a1a1a;
  --text-muted: #63635e;
  --border: #e6e6e1;
  --accent: #2f4858;      /* restrained slate-blue; change to taste */
  --accent-hover: #1f3240;
  --max-width: 720px;
  --radius: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151a;
    --bg-subtle: #1d1f26;
    --text: #ececec;
    --text-muted: #a0a0a0;
    --border: #2c2e36;
    --accent: #8fb3c9;
    --accent-hover: #a9c6d8;
  }
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; margin: 0 0 .5rem; }
h2 { font-size: 1.35rem; margin: 2.75rem 0 1rem; }
h3 { font-size: 1.05rem; margin: 0 0 .25rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.muted { color: var(--text-muted); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand { font-weight: 650; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav a {
  color: var(--text-muted);
  margin-left: 26px;
  font-size: 0.95rem;
}
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }

/* ==========================================================================
   Hero / intro
   ========================================================================== */
.hero { padding: 72px 0 8px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.hero .lead { font-size: 1.15rem; color: var(--text-muted); max-width: 38ch; }

.actions { margin-top: 1.5rem; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 550;
  border: 1px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); text-decoration: none; }
.btn-ghost { color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--bg-subtle); text-decoration: none; }

/* ==========================================================================
   Resume
   ========================================================================== */
section { padding: 0 0 8px; }

.entry {
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
}
.entry .when { color: var(--text-muted); font-size: 0.92rem; padding-top: 2px; }
.entry .role { font-weight: 600; }
.entry .org { color: var(--text-muted); }
.entry ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.entry li { margin-bottom: .25rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: .5rem 0 0; }
.tag-list li {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 1.5rem;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg-subtle);
}
.card h3 { margin-bottom: .5rem; }
.card p { margin-bottom: 0; color: var(--text-muted); font-size: 0.97rem; }
.card .price { display: block; margin-top: .9rem; font-size: 0.9rem; color: var(--text); font-weight: 550; }

.cta {
  margin-top: 3rem;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  text-align: center;
}
.cta h2 { margin-top: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  .hero { padding: 48px 0 8px; }
  .entry { grid-template-columns: 1fr; gap: 4px; }
  .entry .when { padding-top: 0; }
}
