/* ===========================================================
   WellPaged — "cafe" creator page for Jimmy
   typeui.sh "cafe": warm cream + espresso brown, light mode.
   Soft rounded-serif display (Fraunces) + Poppins body.
   Minimal, cozy, gentle shadows.
   =========================================================== */

:root {
  /* recolorable page palette (overridable live by the creator) */
  --wp-bg: #F7F4F0;          /* page background */
  --wp-surface: #FFFFFF;     /* card / section surfaces */
  --wp-text: #3E2B1E;        /* primary text */
  --wp-muted: #8A7563;       /* secondary text */
  --wp-accent: #5D4432;      /* accent / CTA */

  /* palette — from the typeui "cafe" reference (warm cream + espresso) */
  --primary: var(--wp-accent);
  --primary-deep: #43301F;   /* darker roast */
  --secondary: #E9E3DD;      /* warm taupe */
  --surface: var(--wp-bg);   /* warm cream page ground */
  --cream: var(--wp-surface);/* card white */
  --text: var(--wp-text);    /* deep coffee ink */
  --muted: var(--wp-muted);  /* milky brown */
  --line: #E7DFD6;           /* soft hairline */
  --success: #16A34A;
  --warning: #D97706;

  /* radii — spec scale (sm 4 / md 8), with gentle larger steps */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;

  /* shadows — minimal, soft, warm-tinted */
  --shadow-sm: 0 1px 2px rgba(67, 48, 31, 0.04);
  --shadow-md: 0 6px 18px rgba(67, 48, 31, 0.07);
  --shadow-lg: 0 14px 38px rgba(67, 48, 31, 0.10);

  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --ff-body: "Poppins", system-ui, -apple-system, sans-serif;
  --ff-display: "Fraunces", "Poppins", Georgia, serif;
  --ff-label: "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff;
  padding: 10px 16px; border-radius: var(--r-md); z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--r-sm); }

/* ---------- image placeholders ---------- */
.wp-img {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(93,68,50,0.03) 0 10px, transparent 10px 20px),
    var(--secondary);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-height: 120px;
  display: grid; place-items: center;
}
.wp-img::after {
  content: "Add photo";
  font-family: var(--ff-label);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.75;
}

/* ---------- shared bits ---------- */
.eyebrow,
.kicker {
  font-family: var(--ff-label);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px;
  background: var(--secondary);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary);
  letter-spacing: 0.10em;
  font-size: 0.72rem;
  box-shadow: var(--shadow-sm);
}
.kicker__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(93, 68, 50, 0.14);
}

.section__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section__sub { color: var(--muted); margin-top: 12px; max-width: 46ch; }

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

/* ---------- buttons ---------- */
.btn {
  --pad-y: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ff-body);
  font-weight: 600; font-size: 0.95rem;
  padding: var(--pad-y) 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--sm { --pad-y: 9px; padding: 9px 18px; font-size: 0.85rem; }
.btn--lg { --pad-y: 14px; padding: 14px 28px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn--primary {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(67, 48, 31, 0.18);
}
.btn--ghost {
  background: var(--cream); color: var(--primary);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.chip {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.chip:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.topbar.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--primary); color: #fff;
  font-family: var(--ff-body); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.brand__name { font-family: var(--ff-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }

.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  position: relative; padding: 4px 0;
  transition: color 0.2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; border-radius: 2px; background: var(--primary);
  transition: width 0.25s var(--ease);
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 100px) 0 clamp(56px, 8vw, 92px);
  background:
    radial-gradient(90% 70% at 88% -10%, #F0E8DE 0%, rgba(240, 232, 222, 0) 55%),
    radial-gradient(70% 60% at 2% 4%, #F1EAE0 0%, rgba(241, 234, 224, 0) 50%),
    var(--surface);
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__name {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  margin: 18px 0 6px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--primary);
}
.hero__tagline {
  font-family: var(--ff-display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 500; font-style: italic; color: var(--primary);
  margin-bottom: 16px;
}
.hero__lede { color: var(--muted); font-size: 1.06rem; max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.hero__socials { display: flex; flex-wrap: wrap; gap: 9px; }

.hero__media { position: relative; }
.hero__portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.hero__badge-num {
  display: block; font-family: var(--ff-display); font-weight: 600; font-size: 1.5rem; color: var(--primary);
  letter-spacing: -0.02em;
}
.hero__badge-label {
  font-family: var(--ff-label); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section__head { max-width: 600px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head .eyebrow { display: block; margin-bottom: 12px; }
.section__head .section__title { margin-top: 0; }

/* ---------- about ---------- */
.about { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__grid {
  display: grid; grid-template-columns: 0.85fr 1fr;
  gap: clamp(28px, 5vw, 68px); align-items: center;
}
.about__media {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start;
}
.about__img { aspect-ratio: 1 / 1; border-radius: var(--r-lg); }
.about__img--tall { aspect-ratio: 3 / 4; margin-top: 28px; }
.about__copy .eyebrow { display: block; margin-bottom: 12px; }
.about__body { color: var(--muted); margin-top: 18px; font-size: 1.07rem; max-width: 52ch; }
.about__meta {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 14px;
}
.about__meta li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 18px;
}
.about__meta-label {
  display: block;
  font-family: var(--ff-label); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.about__meta-value { font-weight: 600; }

/* ---------- links ---------- */
.links__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.linkcard {
  display: flex; align-items: center; gap: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.2s ease;
}
.linkcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #D8CABC;
}
.linkcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.linkcard__label { font-weight: 600; font-size: 1.12rem; }
.linkcard__url {
  font-family: var(--ff-body); font-size: 0.78rem; color: var(--muted);
  letter-spacing: 0.01em;
}
.linkcard__arrow {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); color: var(--primary);
  border: 1px solid var(--line);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}
.linkcard__arrow svg { width: 16px; height: 16px; }
.linkcard:hover .linkcard__arrow {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  transform: rotate(8deg);
}

.linkcard--feat {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  border-color: var(--primary-deep);
  position: relative;
  padding: 28px 28px;
}
.linkcard--feat .linkcard__label { font-family: var(--ff-display); font-size: 1.45rem; }
.linkcard--feat .linkcard__url { color: rgba(255, 255, 255, 0.66); }
.linkcard--feat .linkcard__arrow {
  background: rgba(255, 255, 255, 0.14); color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.linkcard--feat:hover .linkcard__arrow { background: #fff; color: var(--primary); }
.linkcard__tag {
  font-family: var(--ff-label); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 5px 11px; border-radius: 999px;
  align-self: center;
}

.links__img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }

/* ---------- stats ---------- */
.stats__grid {
  display: grid; grid-template-columns: 1fr 0.85fr;
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.stats__copy .eyebrow { display: block; margin-bottom: 12px; }
.stats__asof { color: var(--primary); font-weight: 500; white-space: nowrap; }
.stats__socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.social {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--line);
  font-family: var(--ff-body); font-size: 0.82rem; font-weight: 500; color: var(--text);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social svg { width: 18px; height: 18px; color: var(--primary); }
.social:hover { border-color: var(--primary); transform: translateY(-2px); }

.stats__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.stats__img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }

.stats__tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat--soft { background: var(--surface); }
.stat__value {
  display: block; font-family: var(--ff-display); font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 600;
  color: var(--primary); letter-spacing: -0.02em; line-height: 1;
}
.stat__label { display: block; margin-top: 10px; font-weight: 600; }
.stat__asof {
  display: block; margin-top: 4px;
  font-family: var(--ff-label); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- footer ---------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer__credit {
  font-family: var(--ff-label); font-size: 0.82rem; color: var(--muted);
}
.footer__mark { color: var(--primary); font-weight: 600; }

/* ---------- reveal motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero__grid,
  .about__grid,
  .stats__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .about__img--tall { margin-top: 0; }
  .links__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; }
}

@media (max-width: 540px) {
  .stats__tiles { grid-template-columns: 1fr; }
  .stats__media { grid-template-columns: 1fr; }
  .hero__badge { left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
