/*
Theme Name: AK-Designed
Theme URI: https://alvinkibalama.com
Description: AK-Designed theme for alvinkibalama.com
Author: Alvin Kibalama
Template: generatepress
Version: 1.2.0
Text Domain: ak-child
*/

:root {
  --primary: #7c3aed;
  --primary-light: #a855f7;
  --primary-dim: #4c1d95;
  --primary-glow: rgba(124, 58, 237, 0.15);

  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-raised: #16161f;

  --border: rgba(255, 255, 255, 0.07);
  --border-active: rgba(124, 58, 237, 0.4);

  --text: #f0eff4;
  --text-muted: #8b8a97;
  --text-dim: #5a5967;
  --accent: #e8e6f0;
  --surface-hover: rgba(255, 255, 255, 0.06);

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", Menlo, Monaco, monospace;

  --container: 1100px;
  --container-narrow: 720px;
  --nav-height: 64px;
  --nav-bg: rgba(10, 10, 15, 0.92);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f7f8fc;
  --bg-card: #ffffff;
  --bg-raised: #ffffff;
  --border: rgba(28, 24, 38, 0.12);
  --border-active: rgba(124, 58, 237, 0.45);
  --text: #171322;
  --text-muted: #4b465c;
  --text-dim: #756d87;
  --accent: #1f1a2d;
  --surface-hover: rgba(124, 58, 237, 0.08);
  --primary-glow: rgba(124, 58, 237, 0.12);
  --nav-bg: rgba(247, 248, 252, 0.9);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

#page,
.site,
.site-content,
.ak-page-content {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

a {
  color: var(--primary-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  color: var(--text-muted);
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4 {
  font-family: var(--serif);
  color: var(--text);
  font-weight: 400;
}

.ak-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.ak-container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

.ak-section {
  padding: 5rem 0;
}

.ak-section--tight {
  padding: 3rem 0;
}

.ak-section--hero {
  padding: 3rem 0 5rem;
}

.ak-page-content {
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.ak-display-xl {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--text);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ak-display-xl em {
  font-style: italic;
  color: var(--primary-light);
}

.ak-display-lg {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
}

.ak-display-md {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--text);
}

.ak-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  font-weight: 500;
  display: block;
}

.ak-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.ak-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;
}

.ak-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95em;
  height: 0.95em;
  line-height: 1;
  vertical-align: middle;
  flex: 0 0 auto;
}

.ak-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ak-icon--dot svg {
  fill: currentColor;
  stroke: none;
}

.ak-icon--trail {
  margin-left: 0.15rem;
}

.ak-btn--primary {
  background: var(--primary);
  color: #fff;
}

.ak-btn--primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

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

.ak-btn--ghost:hover {
  border-color: var(--border-active);
  background: var(--primary-glow);
  color: var(--primary-light);
  text-decoration: none;
}

.ak-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.ak-card:hover {
  border-color: var(--border-active);
  background: var(--bg-raised);
  transform: translateY(-2px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 10001;
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--border-active);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ak-btn--primary:hover,
  .ak-card:hover {
    transform: none;
  }
}

.ak-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--mono);
}

.ak-tag--purple {
  background: var(--primary-glow);
  color: var(--primary-light);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.ak-tag--neutral {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.ak-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.ak-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.ak-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.ak-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.ak-value-strip {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.08) 0%,
    rgba(168, 85, 247, 0.04) 100%
  );
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 16px;
  padding: 3rem;
}

.ak-value-strip__inner {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.ak-pull-quote {
  border-left: 2px solid var(--primary);
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.5;
}

.ak-section-header {
  margin-bottom: 3rem;
}

.ak-section-header .ak-label {
  margin-bottom: 0.75rem;
}

.ak-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ak-metric__number {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--primary-light);
  line-height: 1;
}

.ak-metric__label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.ak-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.ak-nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ak-nav__logo {
