/* ============================================================
   kattrahill.com — shared design system
   ============================================================ */
:root {
  --ink:       #0a0818;
  --ink-deep:  #070512;
  --ink-hero:  #06050f;
  --violet:    #551FAA;
  --lavender:  #976ADF;
  --lilac:     #c4a0f0;
  --lilac-hi:  #e2ccff;
  --white:     #ffffff;
  --white-hi:  rgba(255,255,255,0.97);
  --white-md:  rgba(255,255,255,0.90);
  --border:    rgba(85,31,170,0.28);
  --border-hi: rgba(151,106,223,0.55);
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:     64px;
}

/* Metric-matched fallbacks: text is laid out at the final widths
   before the web fonts arrive, so the font swap does not reflow the page */
@font-face {
  font-family: 'Raleway Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans');
  size-adjust: 94%; ascent-override: 94%; descent-override: 26%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Josefin Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans');
  size-adjust: 85%; ascent-override: 110%; descent-override: 22%; line-gap-override: 0%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink-hero); scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Raleway', 'Raleway Fallback', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--ink-hero);
  color: var(--white-md);
  width: 100%;
  min-height: 100vh;
}
.serif-display, h1, h2, h3 { font-family: 'Josefin Sans', 'Josefin Fallback', Arial, sans-serif; font-weight: 300; }
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #d8bdff; outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--violet); color: var(--white);
  padding: 10px 16px; letter-spacing: 2px; text-transform: uppercase; font-size: 12px;
  text-decoration: none; z-index: 100; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.kn {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,5,15,0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.kn-inner {
  max-width: 1200px; margin: 0 auto;
  min-height: var(--nav-h);
  padding: 0 clamp(20px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.kn-brand {
  font-family: 'Josefin Sans', 'Josefin Fallback', Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: clamp(3px, 0.4vw, 5px);
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  padding: 6px 0;
}
.kn-brand span { color: var(--lilac); }
.kn-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); list-style: none; }
.kn-links a {
  font-size: clamp(11px, 0.95vw, 12.5px);
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white-hi);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.kn-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--lilac-hi); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.kn-links a:hover, .kn-links a[aria-current="page"] { color: var(--lilac-hi); }
.kn-links a[aria-current="page"]::after, .kn-links a:hover::after { transform: scaleX(1); }
.kn-toggle {
  display: none; background: none; border: 1px solid var(--border-hi); color: var(--white);
  width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; -webkit-tap-highlight-color: transparent;
}
.kn-toggle span { display: block; width: 20px; height: 1.5px; background: var(--white); transition: transform 0.3s ease, opacity 0.3s ease; }
.kn-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.kn-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kn-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 900px) {
  .kn-toggle { display: inline-flex; }
  .kn-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(6,5,15,0.98);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .kn[data-open="true"] .kn-links { display: flex; }
  .kn-links li { border-top: 1px solid var(--border); }
  .kn-links a { display: block; padding: 16px clamp(20px, 5vw, 64px); font-size: 12.5px; }
  .kn-links a::after { display: none; }
  .kn-links a[aria-current="page"] { background: rgba(85,31,170,0.18); }
}

/* ============================================================
   SHARED SECTION PARTS
   ============================================================ */
.ks-strip {
  width: 100%; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(85,31,170,0.6) 30%,
    rgba(151,106,223,0.8) 50%,
    rgba(85,31,170,0.6) 70%, transparent 100%);
}
.ks-header { margin-bottom: clamp(28px, 4vw, 44px); }
.ks-eyebrow {
  font-size: clamp(13px, 1.5vw, 17px); font-weight: 300; letter-spacing: 4px;
  text-transform: uppercase; color: var(--lavender); margin-bottom: 10px;
}
.ks-title {
  font-family: 'Raleway', 'Raleway Fallback', Arial, sans-serif;
  font-size: clamp(21px, 3vw, 38px); font-weight: 200; color: var(--white);
  letter-spacing: clamp(2.5px, 0.5vw, 6px); text-transform: uppercase;
  line-height: 1.15; margin-bottom: 16px;
}
.ks-title-rule {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--violet) 0%, rgba(151,106,223,0.3) 40%, transparent 100%);
}

/* Buttons (shared by every page) */
.k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 32px; min-height: 48px;
  border: 1px solid #c4a0ff; color: var(--white);
  font-size: clamp(11px, 1vw, 13px); font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; text-decoration: none; background: transparent;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}
.k-btn:hover, .k-btn:focus-visible { background: rgba(85,31,170,0.25); border-color: var(--lilac-hi); color: var(--white); outline: none; }
.k-btn--solid { background: rgba(85,31,170,0.45); border-color: var(--lavender); }
.k-btn--solid:hover, .k-btn--solid:focus-visible { background: rgba(85,31,170,0.7); }
.k-btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* Inline text links */
.k-link { color: var(--lilac); text-decoration: none; border-bottom: 1px solid rgba(151,106,223,0.5); transition: color 0.25s ease, border-color 0.25s ease; }
.k-link:hover { color: var(--lilac-hi); border-color: var(--lilac-hi); }

/* ============================================================
   FOOTER
   ============================================================ */
.kf {
  background: var(--ink-hero); width: 100%;
  padding: clamp(40px,6vw,64px) clamp(24px,6vw,72px) clamp(28px,4vw,40px);
  text-align: center;
}
.kf--tight { padding-top: 0; }
.kf-rule {
  width: 100%; max-width: 960px; margin: 0 auto clamp(20px, 2.5vw, 28px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(151,106,223,0.4), transparent);
}
.kf-copyright { font-size: clamp(11px, 1vw, 13px); font-weight: 300; letter-spacing: 1.5px; color: rgba(255,255,255,0.86); line-height: 1.9; }
.kf-copyright strong { font-weight: 400; color: var(--white-hi); letter-spacing: 2px; }
.kf-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-bottom: 18px; list-style: none; }
.kf-nav a { font-size: 11px; font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase; color: var(--lilac); text-decoration: none; }
.kf-nav a:hover { color: var(--lilac-hi); }

/* Page entrance: one soft fade, no staged pops */
@media (prefers-reduced-motion: no-preference) {
  .k-page { animation: kPageIn 0.5s ease both; }
  @keyframes kPageIn { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
@media (max-width: 480px) {
  .ks-eyebrow { font-size: 12px; letter-spacing: 3px; }
  .ks-header { margin-bottom: 24px; }
  .k-btn { width: 100%; max-width: 320px; }
}
