/* ============================================================
   Yankeedoodle man — "Claymorphism"
   Soft, puffy, malleable-clay surfaces with dual-tone shadows.
   ============================================================ */

:root {
  /* ---- editable palette (the creator recolors the page by
     overriding exactly these five) ---- */
  --wp-bg: #E3EAFE;
  --wp-surface: #FFFFFF;
  --wp-text: #1C398E;
  --wp-muted: #4458A8;
  --wp-accent: #3B82F6;

  /* derived accents — static fallbacks, re-derived from --wp-accent
     below so a recolor carries through every shade, not just the base */
  --accent-deep: #1D4ED8;
  --accent-deeper: #1A3F9E;
  --accent-tint: #E8F0FE;
  --accent-tint-2: #D2E0FF;

  --success: #16A34A;
  --warning: #D97706;

  /* clay backdrop */
  --bg-2: #D6E0FF;

  /* radii — puffy clay */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 34px;
  --r-xl: 48px;
  --r-pill: 999px;

  /* spacing scale 4/8/12/16/24/32 */
  --s1: 4px;  --s2: 8px;  --s3: 12px;
  --s4: 16px; --s5: 24px; --s6: 32px;

  --maxw: 1140px;

  /* clay shadows: outer drop + inner highlight + inner shade */
  --clay-light:
    10px 10px 28px rgba(28, 57, 142, 0.16),
    -8px -8px 22px rgba(255, 255, 255, 0.9),
    inset 6px 6px 14px rgba(255, 255, 255, 0.85),
    inset -8px -8px 18px rgba(60, 110, 220, 0.16);
  --clay-light-sm:
    6px 6px 16px rgba(28, 57, 142, 0.14),
    -5px -5px 14px rgba(255, 255, 255, 0.9),
    inset 4px 4px 8px rgba(255, 255, 255, 0.8),
    inset -5px -5px 12px rgba(60, 110, 220, 0.14);
  --clay-blue:
    10px 12px 26px rgba(37, 99, 235, 0.42),
    inset 5px 5px 12px rgba(255, 255, 255, 0.45),
    inset -7px -8px 16px rgba(23, 49, 130, 0.45);
  --clay-inset:
    inset 7px 7px 16px rgba(28, 57, 142, 0.18),
    inset -7px -7px 16px rgba(255, 255, 255, 0.9);
}

/* Shades follow the accent the creator picks. The mixes stay dark enough
   that white text on them keeps AA contrast. */
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --accent-deep: color-mix(in srgb, var(--wp-accent) 62%, #0B1F5C);
    --accent-deeper: color-mix(in srgb, var(--wp-accent) 42%, #0B1F5C);
    --accent-tint: color-mix(in srgb, var(--wp-accent) 12%, var(--wp-surface));
    --accent-tint-2: color-mix(in srgb, var(--wp-accent) 26%, var(--wp-surface));
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--wp-text);
  background:
    radial-gradient(1100px 700px at 12% -8%, color-mix(in srgb, var(--wp-surface) 70%, var(--wp-bg)) 0%, transparent 55%),
    radial-gradient(900px 600px at 100% 0%, var(--bg-2) 0%, transparent 50%),
    linear-gradient(180deg, var(--wp-bg) 0%, var(--bg-2) 100%);
  background-color: var(--wp-bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--wp-text);
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* icon sprite host — never rendered itself */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.brandico { width: 20px; height: 20px; flex: 0 0 auto; }
.brandico--sm { width: 16px; height: 16px; }
.brandico--lg { width: 27px; height: 27px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s5);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: var(--s2);
  background: var(--accent-deep);
  color: #fff;
  padding: var(--s2) var(--s4);
  border-radius: var(--r-pill);
  z-index: 100;
}
.skip-link:focus { left: var(--s4); }

/* focus visibility */
a:focus-visible, .btn:focus-visible, .linkcard:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
}

/* ---------- decorative blobs ---------- */
.blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 48% 52% 60% 40% / 55% 45% 55% 45%;
  filter: blur(2px);
  opacity: 0.55;
}
.blob--a {
  width: 320px; height: 320px;
  top: 8%; right: -60px;
  background: radial-gradient(circle at 35% 30%, var(--accent-tint-2), var(--wp-accent));
  box-shadow: 18px 18px 40px rgba(28,57,142,.18), inset -12px -12px 30px rgba(60,110,220,.3), inset 10px 10px 24px rgba(255,255,255,.7);
  opacity: .38;
}
.blob--b {
  width: 220px; height: 220px;
  bottom: 12%; left: -50px;
  background: radial-gradient(circle at 35% 30%, var(--accent-tint), var(--accent-tint-2));
  box-shadow: 14px 14px 34px rgba(28,57,142,.16), inset -10px -10px 24px rgba(60,110,220,.25), inset 8px 8px 18px rgba(255,255,255,.8);
}
.blob--c {
  width: 160px; height: 160px;
  top: 52%; right: 14%;
  background: radial-gradient(circle at 35% 30%, var(--accent-tint), var(--accent-tint-2));
  opacity: .4;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  border-radius: var(--r-pill);
  padding: var(--s3) var(--s5);
  transition: transform .18s ease, box-shadow .2s ease, filter .2s ease;
  text-align: center;
}
.btn--sm { padding: 10px 18px; font-size: 0.86rem; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent-deeper) 100%);
  color: #fff;
  box-shadow: var(--clay-blue);
}
.btn--primary:hover { transform: translateY(-3px); filter: saturate(1.08) brightness(1.06); }
.btn--primary:active { transform: translateY(0); box-shadow: var(--clay-inset), inset 0 0 0 1px rgba(255,255,255,.2); }

.btn--ghost {
  background: var(--wp-surface);
  color: var(--wp-text);
  box-shadow: var(--clay-light-sm);
}
.btn--ghost:hover { transform: translateY(-3px); }
.btn--ghost:active { transform: translateY(0); box-shadow: var(--clay-inset); }

.ico { width: 16px; height: 16px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: var(--s3) 0;
  backdrop-filter: blur(8px);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  background: color-mix(in srgb, var(--wp-surface) 78%, transparent);
  border-radius: var(--r-pill);
  padding: 10px 14px 10px 16px;
  box-shadow: var(--clay-light-sm);
}
.brand { display: inline-flex; align-items: center; gap: var(--s2); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-deeper));
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--clay-blue);
  flex: 0 0 auto;
}
.brand__name {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
}
.nav {
  display: flex;
  gap: var(--s5);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a { color: var(--wp-muted); transition: color .15s ease; }
.nav a:hover { color: var(--wp-text); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--tint {
  position: relative;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--wp-surface) 46%, transparent) 12%,
    color-mix(in srgb, var(--wp-surface) 46%, transparent) 88%,
    transparent 100%
  );
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: var(--s3);
}
.section__title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
}
.section__head { max-width: 640px; margin-bottom: var(--s6); }
.section__sub {
  margin-top: var(--s3);
  color: var(--wp-muted);
  font-size: 1.05rem;
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(50px, 8vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp-muted);
  background: var(--wp-surface);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  box-shadow: var(--clay-light-sm);
  margin-bottom: var(--s4);
}
.kicker__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22,163,74,.18);
  flex: 0 0 auto;
}
.hero__name {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero__tagline {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  color: var(--accent-deep);
  margin-top: var(--s3);
}
.hero__lede {
  margin-top: var(--s4);
  font-size: 1.08rem;
  color: var(--wp-muted);
  max-width: 46ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s5);
}

.hero__visual { position: relative; }
.hero__sticker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  font-size: 1.6rem;
  border-radius: 50%;
  background: var(--wp-surface);
  box-shadow: var(--clay-light);
  color: var(--accent-deep);
  /* decorative only — must never eat the tap that uploads the photo */
  pointer-events: none;
}
.hero__sticker--1 { top: -22px; left: -18px; color: var(--warning); }
.hero__sticker--2 { bottom: 24px; right: -20px; }

/* ---------- image placeholders ---------- */
.wp-img {
  position: relative;
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, rgba(60,110,220,.05) 0 16px, rgba(60,110,220,.09) 16px 32px),
    linear-gradient(160deg, var(--accent-tint), var(--accent-tint-2));
  box-shadow: var(--clay-inset);
  display: grid;
  place-items: center;
  min-height: 200px;
  overflow: hidden;
}
.wp-img::after {
  content: "＋ Add photo";
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--wp-muted);
  background: rgba(255,255,255,.75);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  box-shadow: var(--clay-light-sm);
}
/* once the creator sets a photo the hint must vanish completely */
.wp-img[data-wp-has-img]::before,
.wp-img[data-wp-has-img]::after { display: none; content: none; }

.wp-img--portrait { aspect-ratio: 4 / 5; min-height: 380px; }
.wp-img--tall { aspect-ratio: 3 / 4; }
.wp-img--short { aspect-ratio: 4 / 3; }
.wp-img--wide { aspect-ratio: 16 / 10; }
.wp-img--square { aspect-ratio: 1 / 1; }

/* ---------- about ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.about__body {
  margin-top: var(--s4);
  font-size: 1.1rem;
  color: var(--wp-muted);
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  padding: 0;
  margin: var(--s5) 0 0;
}
.chip {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--wp-surface);
  color: var(--wp-text);
  box-shadow: var(--clay-light-sm);
}
.about__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  align-items: start;
}
.about__media .wp-img--short { margin-top: var(--s6); }

/* ---------- links ---------- */
.links {
  display: grid;
  gap: var(--s5);
}
.linkcard {
  display: flex;
  align-items: center;
  gap: var(--s4);
  background: var(--wp-surface);
  border-radius: var(--r-lg);
  padding: var(--s5);
  box-shadow: var(--clay-light);
  transition: transform .18s ease, box-shadow .2s ease;
}
.linkcard:hover { transform: translateY(-4px); }
.linkcard:active { transform: translateY(0); box-shadow: var(--clay-inset); }
.linkcard__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  color: var(--accent-deep);
  background: linear-gradient(160deg, var(--accent-tint), var(--accent-tint-2));
  box-shadow: var(--clay-light-sm);
}
.linkcard__body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.linkcard__label {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
}
.linkcard__meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  color: var(--wp-muted);
  letter-spacing: 0.02em;
  word-break: break-word;
}
.linkcard__arrow { width: 20px; height: 20px; color: var(--accent-deep); flex: 0 0 auto; }

.linkcard--feat {
  position: relative;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent-deeper) 100%);
  color: #fff;
  box-shadow: var(--clay-blue);
  padding-top: calc(var(--s5) + 14px);
}
.linkcard--feat .linkcard__icon {
  background: rgba(255,255,255,.22);
  box-shadow: inset 3px 3px 8px rgba(255,255,255,.3), inset -4px -4px 8px rgba(23,49,130,.4);
  color: #fff;
}
.linkcard--feat .linkcard__meta { color: rgba(255,255,255,.86); }
.linkcard--feat .linkcard__arrow { color: #fff; }
.linkcard__badge {
  position: absolute;
  top: 14px; left: var(--s5);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255,255,255,.24);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.links__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-top: var(--s2);
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--s5);
}
.stat {
  background: var(--wp-surface);
  border-radius: var(--r-lg);
  padding: var(--s5);
  text-align: center;
  box-shadow: var(--clay-light);
}
.stat__value {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  color: var(--accent-deep);
}
.stat__label {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  margin-top: var(--s2);
  font-size: 0.95rem;
}
.stat__asof {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--wp-muted);
  margin-top: var(--s1);
}
.stat--accent {
  background: linear-gradient(150deg, var(--accent-deep), var(--accent-deeper));
  box-shadow: var(--clay-blue);
}
.stat--accent .stat__value,
.stat--accent .stat__label { color: #fff; }
.stat--accent .stat__asof { color: rgba(255,255,255,.85); }

.stats__lower {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  margin-top: var(--s6);
}
.socials__title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: var(--s4);
}
.socials__row {
  display: grid;
  gap: var(--s3);
}
.social {
  display: flex;
  align-items: center;
  gap: var(--s3);
  background: var(--wp-surface);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  box-shadow: var(--clay-light-sm);
  transition: transform .16s ease;
}
.social:hover { transform: translateX(4px); }
.social__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, var(--accent-tint), var(--accent-tint-2));
  color: var(--accent-deep);
  flex: 0 0 auto;
}
.social__handle { font-weight: 600; font-family: "Poppins", sans-serif; }
.social__net {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--wp-muted);
}
.stats__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

/* ---------- footer ---------- */
.footer { padding: var(--s6) 0 calc(var(--s6) * 1.4); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  background: color-mix(in srgb, var(--wp-surface) 62%, transparent);
  border-radius: var(--r-lg);
  padding: var(--s5);
  box-shadow: var(--clay-light-sm);
}
.footer__note,
.footer__credit {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--wp-muted);
}

/* ---------- reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero__grid,
  .about__grid,
  .stats__lower { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 420px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .container { padding: 0 var(--s4); }
  .links__media,
  .stats__media,
  .about__media { grid-template-columns: 1fr; }
  .about__media .wp-img--short { margin-top: 0; }
  .stats { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .linkcard { padding: var(--s4); gap: var(--s3); }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .linkcard:hover, .social:hover { transform: none; }
}
