:root {
  --bg: #f7faff;
  --ink: #1f2a44;
  --muted: #5d6b8a;
  --blue: #3f74d1;
  --blue-dark: #2b5aad;
  --sky: #dbe9fb;
  --rose: #fbe4ea;
  --mint: #dff3ea;
  --lilac: #e9e4f8;
  --peach: #fdeedd;
  --border: #d5e0f2;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--blue-dark); }

/* ---------- Header / footer ---------- */

.site-header, .site-footer { background: #fff; border-color: var(--border); border-style: solid; border-width: 0; }
.site-header { border-bottom-width: 1px; }
.site-footer { border-top-width: 1px; margin-top: auto; }

.bar {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--blue); }

.site-nav { display: flex; gap: 0.25rem; }
.site-nav a {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a:focus-visible { background: var(--sky); color: var(--blue-dark); }
.site-nav a[aria-current="page"] { background: var(--blue); color: #fff; }

.site-footer { color: var(--muted); font-size: 0.95rem; }
.site-footer .bar { padding-top: 1.25rem; padding-bottom: 1.25rem; }

.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.contact button, .contact input {
  font: inherit;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--sky);
  color: var(--ink);
}
.contact button { cursor: pointer; }
.contact button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.contact input { width: 4.5rem; background: #fff; }
.contact form { display: inline-flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.contact [hidden] { display: none; }
.contact .msg { min-height: 1.5em; }

/* ---------- Home ---------- */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  /* public/images/hero.jpg; the pastel gradient is the fallback. */
  background:
    linear-gradient(rgba(247, 250, 255, 0.12), rgba(247, 250, 255, 0.2)),
    url("/images/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, var(--sky), var(--lilac) 45%, var(--rose) 80%, var(--peach));
}

.hero-card {
  width: 100%;
  max-width: 24rem;
  padding: 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 8px 30px rgba(63, 116, 209, 0.15);
}



.cta, .chips { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.cta a {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.cta a:hover, .cta a:focus-visible { background: var(--blue-dark); color: #fff; }

.chips { margin-bottom: 0; }
.chips a {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.chips li:nth-child(1) a { background: var(--lilac); }
.chips li:nth-child(2) a { background: var(--sky); }
.chips li:nth-child(3) a { background: var(--rose); }
.chips li:nth-child(4) a { background: var(--mint); }
.chips a:hover, .chips a:focus-visible { filter: brightness(0.95); outline: 2px solid var(--blue); }
.wip { color: var(--muted); font-size: 0.85em; }

/* ---------- Inner pages ---------- */

.page { flex: 1; width: 100%; max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.page h1 { margin-top: 0; }
.muted { color: var(--muted); }

.list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.list li { padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--mint); }
.list h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.list p { margin: 0; color: var(--muted); }

/* ---------- Icons ---------- */

.icon { width: 1.1em; height: 1.1em; vertical-align: -0.2em; margin-right: 0.45em; fill: currentColor; }
.cta .icon, .contact button .icon { width: 1.2em; height: 1.2em; }
.cta a { display: inline-flex; align-items: center; }
.contact button { display: inline-flex; align-items: center; }
/* Line icons carry their own stroke; keep them unfilled. */
use { pointer-events: none; }

/* ---------- Vertical link list (home) ---------- */

.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.link-list a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--sky);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.link-list li:nth-child(1) a { background: var(--blue); border-color: var(--blue); color: #fff; }
.link-list li:nth-child(2) a { background: var(--blue); border-color: var(--blue); color: #fff; }
/* Brand colours (GitHub, LinkedIn, YouTube), slightly muted */
.link-list li:nth-child(3) a { background: #3b4048; border-color: #3b4048; color: #fff; }
.link-list li:nth-child(4) a { background: #3f7bb0; border-color: #3f7bb0; color: #fff; }
.link-list li:nth-child(5) a { background: #d6544f; border-color: #d6544f; color: #fff; }
.link-list a { transition: filter 0.15s; }
.link-list a:hover { filter: brightness(1.12); }
.link-list a:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 2px; }
.link-list .icon { width: 1.3em; height: 1.3em; margin-right: 0.75rem; }
