:root {
  --bg: #fbfaf7;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #e4e1d9;
  --accent: #8a4b2a;
  --serif: "Source Serif Pro", "Source Serif 4", "Charter", "Georgia", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 32rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent); }

main {
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}

/* ---- tabs ---- */
nav.tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
}
nav.tabs a {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0 0 0.625rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}
nav.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
nav.tabs a:hover { color: var(--ink); }

/* Marks a tab that leaves the site. */
.ext {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.65;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
nav.tabs a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

h1 {
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; color: var(--muted); }
p.lede { color: var(--ink); }

h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
h1 + h2 { margin-top: 2rem; }

/* ---- footer + socials ---- */
footer {
  max-width: var(--measure);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.socials a {
  display: inline-flex;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.12s ease;
}
.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}
/* Monochrome by default so the logos sit inside the page's palette; each
   picks up its own brand colour on hover. */
.socials a:hover { color: var(--brand, var(--accent)); }
.socials a.gmail    { --brand: #EA4335; }
.socials a.linkedin { --brand: #0A66C2; }
.socials a.x        { --brand: #000000; }
.socials a.github   { --brand: #181717; }

@media (max-width: 30rem) {
  footer { flex-direction: column; align-items: flex-start; gap: 0.875rem; }
}
