/* Aifyl shell — nav, footer, theme — ice blue / lavender on matte charcoal */

:root {
  --af-bg: #1a1c20;
  --af-border: rgba(255, 255, 255, 0.06);
  --af-text: #e8eaef;
  --af-text-secondary: rgba(240, 235, 227, 0.68);
  --af-text-tertiary: rgba(240, 235, 227, 0.45);
  --af-accent: #7dd3fc;
  --af-accent-mist: #c4b5fd;
  --af-accent-deep: #64748b;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --af-container: min(96rem, calc(100vw - 2rem));
  --af-easing: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

html[data-theme="light"] {
  --af-bg: #f6f3ee;
  --af-border: rgba(14, 17, 23, 0.1);
  --af-text: #1a1c20;
  --af-text-secondary: rgba(14, 17, 23, 0.72);
  --af-text-tertiary: rgba(14, 17, 23, 0.52);
  --af-accent: #64748b;
  --af-accent-mist: #4a7fa8;
  color-scheme: light;
}

html, body.af-site {
  transition: background-color 0.35s var(--af-easing), color 0.35s var(--af-easing);
}

body.af-site {
  font-family: var(--font-sans) !important;
  letter-spacing: -0.011em;
  line-height: 1.5;
  background-color: var(--af-bg) !important;
  color: var(--af-text) !important;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--af-accent);
  color: #1a1c20;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.af-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--af-easing), border-color 0.4s var(--af-easing);
}
.af-header.is-scrolled {
  background: color-mix(in srgb, var(--af-bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--af-border);
}
.af-header__inner {
  max-width: var(--af-container);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 640px) { .af-header__inner { height: 5rem; } }

.af-brand {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--af-text), var(--af-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.af-nav-desktop { display: none; align-items: center; gap: 0.15rem; }
@media (min-width: 1024px) { .af-nav-desktop { display: inline-flex; } }
.af-nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  color: var(--af-text-secondary);
  text-decoration: none;
  transition: color 0.25s var(--af-easing);
}
.af-nav-desktop a:hover, .af-nav-desktop a.is-active { color: var(--af-text); }

.af-header__actions { display: inline-flex; align-items: center; gap: 0.5rem; }
.af-btn-mini {
  display: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--af-accent) 22%, transparent);
  color: var(--af-text);
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--af-accent) 35%, transparent);
}
@media (min-width: 768px) { .af-btn-mini { display: inline-flex; } }

.af-theme-toggle, .af-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--af-border);
  border-radius: 9999px;
  background: transparent;
  color: var(--af-text-secondary);
  cursor: pointer;
}
.af-icon-sun { display: none; }
.af-icon-moon { display: block; }
html[data-theme="light"] .af-icon-sun { display: block; }
html[data-theme="light"] .af-icon-moon { display: none; }
.af-menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .af-menu-toggle { display: none; } }

.af-mobile-nav {
  display: none;
  position: fixed;
  inset: 4rem 0 auto 0;
  z-index: 55;
  background: color-mix(in srgb, var(--af-bg) 96%, transparent);
  border-bottom: 1px solid var(--af-border);
  backdrop-filter: blur(12px);
}
.af-mobile-nav.is-open { display: block; }
.af-mobile-nav__inner {
  max-width: var(--af-container);
  margin-inline: auto;
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.af-mobile-nav__inner a {
  padding: 0.65rem 0;
  color: var(--af-text-secondary);
  text-decoration: none;
  font-weight: 500;
}
.af-mobile-nav__label {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--af-text-tertiary);
}

.af-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--af-border);
  padding: 3rem 0 2rem;
}
.af-footer__inner {
  max-width: var(--af-container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .af-footer__inner { grid-template-columns: 1fr 2fr; }
}
.af-footer__brand {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--af-text);
  text-decoration: none;
}
.af-footer__desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--af-text-secondary);
  max-width: 28rem;
  line-height: 1.6;
}
.af-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 1.5rem;
}
.af-footer__cols h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--af-text-tertiary);
  margin: 0 0 0.5rem;
}
.af-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.af-footer__cols a {
  font-size: 0.8125rem;
  color: var(--af-text-secondary);
  text-decoration: none;
}
.af-footer__cols a:hover { color: var(--af-accent); }
.af-footer__base {
  max-width: var(--af-container);
  margin: 2rem auto 0;
  padding: 1rem clamp(1rem, 2.5vw, 2rem) 0;
  border-top: 1px solid var(--af-border);
  font-size: 0.75rem;
  color: var(--af-text-tertiary);
  text-align: center;
}
.af-footer__base a { color: var(--af-text-secondary); }

.af-cookie {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 28rem;
  margin-inline: auto;
  z-index: 80;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--af-bg) 94%, transparent);
  border: 1px solid var(--af-border);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.af-cookie__text { font-size: 0.8125rem; color: var(--af-text-secondary); margin: 0 0 0.75rem; }
.af-cookie__actions { display: flex; gap: 0.5rem; }
.af-cookie__btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  background: var(--af-accent);
  color: #1a1c20;
}
.af-cookie__btn--ghost {
  background: transparent;
  border: 1px solid var(--af-border);
  color: var(--af-text);
}

.af-accent { color: var(--af-accent); }
