/* ==========================================================================
   Ashburn Taylor — base.css
   Design tokens, reset, typography
   Faithful to the original brand: slate-blue #2f455c + mint #34f5c5, Poppins,
   light/white canvas.
   ========================================================================== */

:root {
  /* --- Canvas --- */
  --bg:            #ffffff;
  --bg-soft:       #f3f7fa;
  --bg-soft-2:     #eaf1f6;
  --hairline:      #e9eff4;
  --hairline-2:    #dae3ea;

  /* --- Brand --- */
  --slate:         #2f455c;   /* primary dark — header, footer, headings */
  --slate-deep:    #233649;
  --slate-2:       #24364a;
  --mint:          #34f5c5;   /* accent */
  --mint-deep:     #14c7a0;   /* readable mint on white */
  --teal:          #1cc5a3;   /* deeper teal — readable with white text */
  --cyan:          #36cdfd;
  --accent:        var(--mint);
  --accent-grad:   linear-gradient(120deg, #34f5c5 0%, #36cdfd 100%);
  --accent-grad-soft: linear-gradient(120deg, rgba(52,245,197,.16), rgba(54,205,253,.16));

  /* --- Text --- */
  --ink:           #2f455c;   /* headings */
  --body:          #56657a;   /* body copy on light */
  --muted:         #8693a5;
  --on-dark:       #ffffff;
  --on-dark-soft:  #c4d0dd;
  --on-dark-mute:  #93a4b6;

  /* --- FX --- */
  --shadow-sm:     0 1px 2px rgba(47,69,92,0.04), 0 6px 20px -6px rgba(47,69,92,0.07);
  --shadow:        0 2px 4px rgba(47,69,92,0.03), 0 22px 48px -18px rgba(47,69,92,0.20);
  --shadow-lg:     0 4px 8px rgba(47,69,92,0.04), 0 44px 90px -28px rgba(47,69,92,0.28);
  --glow-mint:     rgba(52,245,197,0.5);

  /* --- Type --- */
  --font-display:  'Jost', system-ui, sans-serif;
  --font-body:     'Jost', system-ui, sans-serif;

  /* --- Layout --- */
  --maxw:          1200px;
  --gutter:        clamp(20px, 5vw, 56px);
  --radius:        16px;
  --radius-lg:     24px;
  --radius-sm:     10px;

  /* --- Motion --- */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--body);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Big display headings stay light & refined (like the logo wordmark); small
   headings keep more weight so card titles read clearly. */
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; }
h2 { font-size: clamp(1.95rem, 3.8vw, 2.95rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 500; }
h3 { font-size: clamp(1.22rem, 2vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.18; }
h4 { font-size: 1.12rem; letter-spacing: -0.015em; }

p { color: var(--body); }

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

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

::selection { background: rgba(52, 245, 197, 0.35); color: var(--slate); }

/* Gradient text utility — animated, colour flows across the text */
.grad-text {
  background: linear-gradient(110deg, var(--mint-deep) 0%, var(--cyan) 30%, var(--mint) 55%, var(--cyan) 75%, var(--mint-deep) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: grad-flow 7s linear infinite alternate;
}
@keyframes grad-flow { to { background-position: 220% center; } }
/* gradient text on dark sections — brighter mint, same flowing animation */
.on-dark .grad-text,
.grad-text--bright {
  background: linear-gradient(110deg, var(--mint) 0%, var(--cyan) 30%, #7af9e0 55%, var(--cyan) 75%, var(--mint) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: grad-flow 7s linear infinite alternate;
}

/* Eyebrow / kicker label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mint-deep);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1.5px;
  border-radius: 2px;
  background: var(--mint-deep);
}
.on-dark .eyebrow { color: var(--mint); }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--body);
  line-height: 1.7;
  max-width: 58ch;
  text-wrap: pretty; /* avoid orphan/short last lines */
}
/* body copy generally avoids orphans too */
p { text-wrap: pretty; }
.on-dark, .on-dark p, .on-dark .lead { color: var(--on-dark-soft); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--on-dark); }

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--mint-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

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