/* =========================================================
   Aisha Oyegunle — Portfolio
   Plain HTML / CSS / JS. No frameworks, no Webflow.
   ========================================================= */

/* ---------- Fonts — loaded via Google Fonts (see <head>) ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Tokens — dark (default) ---------- */
:root {
  --bg: #0f0820;
  --bg-2: #160a2c;
  --bg-3: #1e0c3c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);

  --text: #f5f1ff;
  --text-muted: rgba(245, 241, 255, 0.72);
  --text-dim: rgba(245, 241, 255, 0.55);

  --accent: #b78bff;
  --accent-strong: #9167e4;
  --highlight: #f4b544;

  --display: "Playfair Display", system-ui, -apple-system, sans-serif;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;

  --header-bg: rgba(15, 8, 32, 0.72);

  --container: 1180px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;
}

/* ---------- Tokens — light ---------- */
[data-theme="light"] {
  --bg: #faf8ff;
  --bg-2: #f2eeff;
  --bg-3: #e8e0ff;
  --surface: rgba(110, 60, 200, 0.06);
  --surface-strong: rgba(110, 60, 200, 0.1);
  --border: rgba(110, 60, 200, 0.15);
  --border-strong: rgba(110, 60, 200, 0.28);

  --text: #1a0640;
  --text-muted: rgba(26, 6, 64, 0.7);
  --text-dim: rgba(26, 6, 64, 0.48);

  --accent: #7340c2;
  --accent-strong: #5e2ea6;
  --highlight: #b5800a;

  --header-bg: rgba(250, 248, 255, 0.85);
}

/* Auto-match OS when no explicit choice has been set */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #faf8ff;
    --bg-2: #f2eeff;
    --bg-3: #e8e0ff;
    --surface: rgba(110, 60, 200, 0.06);
    --surface-strong: rgba(110, 60, 200, 0.1);
    --border: rgba(110, 60, 200, 0.15);
    --border-strong: rgba(110, 60, 200, 0.28);

    --text: #1a0640;
    --text-muted: rgba(26, 6, 64, 0.7);
    --text-dim: rgba(26, 6, 64, 0.48);

    --accent: #7340c2;
    --accent-strong: #5e2ea6;
    --highlight: #b5800a;

    --header-bg: rgba(250, 248, 255, 0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(
      circle at top right,
      rgba(183, 139, 255, 0.18),
      transparent 45%
    ),
    radial-gradient(
      circle at -10% 20%,
      rgba(244, 181, 68, 0.1),
      transparent 40%
    );
  background-attachment: fixed;
  transition: background-color 220ms ease, color 220ms ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}

.eyebrow + .section-title,
.eyebrow + .page-title {
  margin-top: 0.75rem;
}

.section-lede {
  margin-top: var(--space-3);
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

/* ---------- Theme toggle button ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease,
    color 180ms ease, transform 180ms ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background-color: var(--surface-strong);
  border-color: var(--border-strong);
  color: var(--text);
  transform: rotate(12deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* Show/hide sun vs moon based on current theme */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--header-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 220ms ease;
}

.site-header[data-scrolled="true"] {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-mobile-only {
  display: none;
}

.nav-list a {
  position: relative;
  padding: 0.25rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 180ms ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
}

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background-color: var(--accent-strong);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 180ms ease, background-color 180ms ease;
}

.nav-cta:hover {
  background-color: var(--accent);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.nav-toggle .bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle .bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease, top 220ms ease;
}

.nav-toggle .bars span:nth-child(1) {
  top: 0;
}
.nav-toggle .bars span:nth-child(2) {
  top: 5px;
}
.nav-toggle .bars span:nth-child(3) {
  top: 10px;
}

.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-mobile-only {
    display: list-item;
  }

  .nav-cta-wrap {
    display: none;
  }

  .nav-list {
    position: fixed;
    inset: 64px 1rem auto 1rem;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background-color: rgba(15, 8, 32, 0.96);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform-origin: top right;
    transform: scale(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease, visibility 0ms 180ms;
  }

  [data-theme="light"] .nav-list {
    background-color: rgba(242, 238, 255, 0.97);
  }

  .nav-list {
    align-items: stretch;
  }

  .nav-list a {
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }

  .nav-list a:last-child {
    border-bottom: 0;
  }

  .nav-list a[aria-current="page"]::after {
    display: none;
  }

  .nav[data-open="true"] .nav-list {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 180ms ease, opacity 180ms ease, visibility 0ms 0ms;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(5rem, 10vw, 7rem) clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: #3be43b;
  box-shadow: 0 0 0 4px rgba(59, 228, 59, 0.18);
}

.hero-title {
  margin-top: 1.75rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3rem, 7.6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-title .stroke {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  color: transparent;
}

.hero-intro {
  margin-top: 1.5rem;
  max-width: 66ch;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-intro p + p {
  margin-top: 1rem;
}

.hero-intro a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 180ms ease, border-color 180ms ease;
}

.hero-intro a:hover {
  color: var(--accent);
  border-color: var(--text);
}

.hero-meta {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.hero-meta::before {
  content: "";
  width: 18px;
  height: 1px;
  background-color: var(--text-dim);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, background-color 180ms ease,
    border-color 180ms ease, color 180ms ease;
}

.btn svg {
  width: 14px;
  height: 14px;
  transition: transform 200ms ease;
}

.btn:hover svg {
  transform: translateX(3px) translateY(-1px);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-strong) 0%,
    color-mix(in srgb, var(--accent-strong) 65%, #000) 100%
  );
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(145, 103, 228, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn-link {
  padding: 0;
  border-radius: 0;
  color: var(--accent);
}

.btn-link::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 200ms ease;
  margin-left: 0.4rem;
}

.btn-link:hover::after {
  width: 16px;
}

.hero-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.25rem 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border);
}

.stat-value {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--text);
}

.stat-value .unit {
  color: var(--highlight);
  font-weight: 500;
}

.stat-label {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- Principles ---------- */
.principles {
  border-top: 1px solid var(--border);
  background-color: var(--bg-2);
}

/* ---------- Case studies (homepage teaser) ---------- */
.case-teaser {
  border-top: 1px solid var(--border);
}

.case-teaser-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.case-teaser-grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 760px) {
  .case-teaser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  border: 1px solid var(--border);
  transition: transform 240ms ease, border-color 240ms ease;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.case-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.case-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.15;
}

.case-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.case-card .read {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Notes ---------- */
.notes-teaser {
  border-top: 1px solid var(--border);
  background-color: var(--bg-2);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-lede {
  margin-top: 1rem;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 1.0125rem;
  line-height: 1.7;
}

.notes-grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 760px) {
  .notes-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.note-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.note-card-link {
  transition: transform 240ms ease, border-color 240ms ease,
    background-color 240ms ease;
}

.note-card-link:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background-color: var(--surface-strong);
}

.note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.note-meta span:last-child {
  color: var(--highlight);
}

.note-card h2,
.note-card h3 {
  margin-top: 1rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.15;
}

.note-card p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.note-read {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.notes-page {
  padding-block: clamp(1rem, 3vw, 2rem) clamp(4rem, 8vw, 6rem);
}

.notes-page .notes-grid {
  margin-top: 0;
}

/* ---------- Note article ---------- */
.note-article {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.note-article-header,
.note-article-body {
  width: min(100%, 720px);
  margin-inline: auto;
}

.note-article-header .note-meta {
  justify-content: flex-start;
}

.note-article-title {
  margin-top: 1rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.note-article-intro {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.note-article-body {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.note-article-body h2 {
  margin-top: 2.5rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.15;
}

.note-article-body h3 {
  margin-top: 2rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  line-height: 1.2;
}

.note-article-body p {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.note-article-body ul {
  margin-top: 1.25rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--text-muted);
}

.note-article-body li {
  padding-left: 0.35rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.note-article-body li + li {
  margin-top: 0.75rem;
}

.note-article-body strong {
  color: var(--text);
}

.note-article-back {
  margin-top: 3rem;
}

/* ---------- Case studies page ---------- */
.page-intro {
  padding-block: clamp(4rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem);
}

.page-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.page-lede {
  margin-top: 1.5rem;
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.case-list {
  padding-block: clamp(1rem, 3vw, 2rem) clamp(4rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  border: 1px solid var(--border);
  scroll-margin-top: 6rem;
}

@media (min-width: 880px) {
  .case-study {
    grid-template-columns: 0.9fr 1.6fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.case-study .meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-study .meta strong {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--accent);
}

.case-study h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.case-study p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.0125rem;
  line-height: 1.75;
}

.case-study .case-actions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.values-grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 720px) {
  .values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.value-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
}

.value-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- Contact / Footer ---------- */
.contact {
  border-top: 1px solid var(--border);
  background: radial-gradient(
      circle at 20% 0%,
      rgba(145, 103, 228, 0.25),
      transparent 50%
    ),
    var(--bg-3);
  text-align: center;
}

.contact h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 24ch;
  margin-inline: auto;
}

.contact h2 .stroke {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  color: transparent;
}

.contact-lede {
  margin-top: 1rem;
  max-width: 56ch;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.contact-actions {
  margin-top: 2rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.socials {
  margin-top: 2.5rem;
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 999px;
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.socials a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.socials a:hover {
  background-color: var(--surface-strong);
  transform: translateY(-2px);
}

.socials img {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .socials img {
  filter: invert(1) brightness(0.2);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .socials img {
    filter: invert(1) brightness(0.2);
  }
}

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  background-color: var(--bg);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-row a {
  color: var(--text-muted);
  transition: color 180ms ease;
}

.footer-row a:hover {
  color: var(--text);
}

/* ---------- Utilities ---------- */
.flex-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.divider {
  height: 1px;
  background-color: var(--border);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — visible to keyboard users on focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background-color: var(--bg-3);
  border: 2px solid var(--accent);
  border-radius: 8px;
  transition: top 150ms ease;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 1rem;
  outline: none;
}
