/* ── The Lazy Illustrator · styles ───────────────────────── */

/*
  Color themes. Each one sets the same 8 roles:
  paper   page background        ink      text, outlines, shadows
  card    block background       accent   sparkles, "Hi I'm", sticker
  soft    main soft color        tint     very pale version (ClickBeans art bg)
  solid   main button color      on-solid text on the main button
*/
:root,
[data-theme="rose"] {
  --paper: #f5efe6;
  --card: #fffaf3;
  --ink: #2e211b;
  --ink-soft: #6e5f56;
  --accent: #7e7c3c;      /* olive */
  --on-accent: #fffaf3;
  --soft: #d9aea4;        /* dusty rose */
  --tint: #ecdcd3;
  --solid: #2e211b;
  --on-solid: #fffaf3;
}

[data-theme="butter"] {
  --paper: #f7f2e4;
  --card: #fffcf3;
  --ink: #3b2519;         /* cocoa */
  --ink-soft: #725c4d;
  --accent: #b5683d;      /* caramel */
  --on-accent: #fffcf3;
  --soft: #f0d58a;        /* butter */
  --tint: #f3e8c6;
  --solid: #3b2519;
  --on-solid: #fffcf3;
}

[data-theme="lilac"] {
  --paper: #f3f0ea;
  --card: #fdfbf7;
  --ink: #1f2e28;
  --ink-soft: #56625c;
  --accent: #2f6a50;      /* forest */
  --on-accent: #fdfbf7;
  --soft: #cbbde3;        /* lilac */
  --tint: #e6e0ef;
  --solid: #234a3c;
  --on-solid: #fdfbf7;
}

/* Lilac & Forest with a little sunshine: yellow on the stars and small highlights */
[data-theme="lilac-sun"] {
  --paper: #f3f0ea;
  --card: #fdfbf7;
  --ink: #1f2e28;
  --ink-soft: #56625c;
  --accent: #2f6a50;
  --on-accent: #fdfbf7;
  --soft: #cbbde3;
  --tint: #e6e0ef;
  --solid: #234a3c;
  --on-solid: #fdfbf7;
  --pop: #f6c945;         /* sunshine yellow */
  --pop-stroke: var(--ink);
  --pop-text: var(--ink);
  --pop-tag: #f6c945;
  --ring: #f6c945;
}

:root {
  --grid-line: color-mix(in srgb, var(--ink) 7%, transparent);

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;
  --f-mono: "DM Mono", ui-monospace, monospace;

  --radius: 18px;
  --line: 2px solid var(--ink);
  --shadow: 0 4px 0 var(--ink);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-display);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

#app {
  max-width: 460px;
  margin: 0 auto;
  padding: 20px 18px 40px;
}

/* ── shared bits ─────────────────────────────────────────── */

.arrow { width: 20px; height: 20px; flex: none; transition: transform 0.2s ease; }

.tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
  flex: none;
}

.blk {
  position: relative;
  display: flex;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}
a.blk:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
a.blk:hover .arrow { transform: translateX(3px); }
a.blk:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* placeholder art when there's no image yet */
.ph {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--ink);
  background-image: repeating-linear-gradient(-45deg, transparent 0 9px, color-mix(in srgb, var(--ink) 6%, transparent) 9px 11px);
}
.ph svg { width: 26px; height: 26px; }
.ph span { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6; }
.ph--pink, .ph--soft { background-color: var(--soft); }
.ph--tint { background-color: var(--tint); }
.ph--sage, .ph--olive { background-color: var(--tint); }
.ph--orange, .ph--accent { background-color: var(--accent); color: var(--on-accent); }
.ph--ink { background-color: var(--ink); color: var(--paper); }

/* ── header A · big photo ────────────────────────────────── */

.hero-wrap { position: relative; padding-bottom: 24px; }
.hero {
  position: relative;
  border: var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 6px 0 var(--ink);
  aspect-ratio: 3 / 4;
  background: var(--ink);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, color-mix(in srgb, var(--ink) 90%, transparent) 90%);
  pointer-events: none;
}
.hero__over {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 0 22px 40px;
  color: var(--card);
  text-align: center;
}
.hero__name {
  margin: 0;
  font-weight: 800;
  font-size: clamp(40px, 12vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hi {
  display: block;
  font-family: var(--f-hand);
  font-weight: 600;
  font-size: 0.6em;
  letter-spacing: 0;
  color: var(--soft);
  transform: rotate(-3deg);
  margin-bottom: 2px;
}
.socials--hero { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.hero__bio { margin: 10px auto 0; max-width: 30ch; font-size: 15.5px; line-height: 1.4; opacity: 0.92; }

.sticker {
  position: absolute;
  z-index: 1;
  top: 16px; left: 14px;
  padding: 6px 14px 7px;
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  color: var(--on-accent);
  background: var(--accent);
  border: var(--line);
  border-radius: 999px;
  transform: rotate(-6deg);
  box-shadow: 0 3px 0 var(--ink);
}

/* social icon row */
.socials { display: flex; justify-content: center; gap: 12px; }
.socials a {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.15s ease;
}
.socials a:hover { transform: translateY(-2px) rotate(-6deg); }
.socials svg { width: 22px; height: 22px; }

/* ── header B · small round photo ────────────────────────── */

.round { text-align: center; padding-top: 14px; }
.round__ring { position: relative; width: 112px; margin: 0 auto 14px; }
.round__img {
  width: 112px; height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  border: var(--line);
  box-shadow: 5px 5px 0 var(--ring, var(--soft)), 5px 5px 0 2px var(--ink);
}
.round__spark { position: absolute; color: var(--pop, var(--accent)); }
.round__spark svg { width: 100%; height: 100%; overflow: visible; }
.round__spark--a svg, .b-heading svg { stroke: var(--pop-stroke, none); stroke-width: 1.6px; stroke-linejoin: round; }
.round__spark--a { width: 24px; height: 24px; top: -4px; right: -16px; }
.round__spark--b { width: 13px; height: 13px; top: 20px; right: -26px; color: var(--ink); }
.round__name { margin: 0; font-weight: 800; font-size: 40px; line-height: 0.95; letter-spacing: -0.02em; }
.round .hi { color: var(--accent); font-size: 0.62em; }
.round__brand {
  margin: 8px 0 0;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.round__bio { margin: 8px auto 16px; max-width: 30ch; font-size: 15px; line-height: 1.4; color: var(--ink-soft); }

/* ── blocks ──────────────────────────────────────────────── */

.blocks { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }

.b-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 -2px;
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
}
.b-heading svg { width: 18px; height: 18px; color: var(--pop, var(--accent)); flex: none; overflow: visible; }
.b-text { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }

/* button */
.btn {
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 17px;
}
.btn__label { flex: 1; }
.btn__icon { display: grid; width: 24px; height: 24px; flex: none; }
.btn__icon svg { width: 100%; height: 100%; }
.btn--solid { background: var(--solid); color: var(--on-solid); }
.btn--outline { background: var(--card); }
.btn--pink, .btn--soft { background: var(--soft); }
.btn--orange, .btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--sage, .btn--tint { background: var(--tint); }

/* thumb */
.thumb { align-items: center; gap: 14px; padding: 10px 16px 10px 10px; }
.thumb__img { width: 68px; height: 68px; border-radius: 12px; border: var(--line); object-fit: cover; flex: none; }
.thumb__img.ph svg { width: 22px; height: 22px; }
.thumb__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.thumb__body .tag { font-size: 9.5px; padding: 2px 6px; margin-bottom: 3px; color: var(--accent); }
.thumb__label { font-weight: 700; font-size: 16.5px; line-height: 1.2; }
.thumb__note { font-size: 13.5px; color: var(--ink-soft); }

/* card */
.card { flex-direction: column; }
.card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: var(--line); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px 18px; }
.card__title { font-weight: 800; font-size: 23px; line-height: 1.1; letter-spacing: -0.01em; }
.card__text { font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.card__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px;
  padding: 10px 16px;
  font-weight: 600; font-size: 15px;
  background: var(--solid); color: var(--on-solid);
  border-radius: 999px;
}
.card__cta .arrow { width: 17px; height: 17px; }

/* card with illustration (shown on a color) */
.card__art { position: relative; display: block; aspect-ratio: 16 / 11; min-height: 0; overflow: hidden; }
.card__art img:first-child { position: absolute; left: 6%; top: 12px; width: 88%; height: auto; }
.card__accent {
  position: absolute;
  width: 34px;
  left: 56%; top: 42%;
  transform: rotate(-24deg);
  filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.3));
  animation: paw 2.6s ease-in-out infinite;
}
@keyframes paw {
  0%, 100% { translate: 0 0; }
  40% { translate: -18px 10px; }
  70% { translate: 8px -6px; }
}

/* discount code strip under a block */
.promo { flex-direction: column; }
.promo > .blk { border: 0; border-radius: 0; box-shadow: none; transform: none !important; }
.promo:has(> a:hover) { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-top: 2px dashed var(--ink);
  background: var(--paper);
  font-size: 14px;
}
.code__text b { font-family: var(--f-mono); font-weight: 400; letter-spacing: 0.04em; background: var(--pop, var(--soft)); padding: 1px 5px; border-radius: 4px; }
.code__btn {
  flex: none;
  font: 600 13.5px var(--f-display);
  color: var(--on-solid);
  background: var(--solid);
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.code__btn.is-done { background: var(--pop, var(--accent)); color: var(--pop-text, var(--on-accent)); }
.card__body .tag { background: var(--pop-tag, transparent); }

/* email */
.email { align-items: center; gap: 10px; padding: 8px 10px 8px 16px; min-height: 60px; }
.email__link { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; font-size: 15px; }
.email__addr { overflow-wrap: anywhere; line-height: 1.25; }
.email__link:hover .email__addr { text-decoration: underline; text-underline-offset: 3px; }

/* banner */
.banner { aspect-ratio: 16 / 8; align-items: flex-end; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--ink) 75%, transparent), transparent 65%);
}
.banner__label {
  position: relative; z-index: 1;
  padding: 16px 18px;
  font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -0.02em;
  color: var(--card);
}
.banner .ph { place-items: start center; padding-top: 22%; }

/* grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { flex-direction: column; }
.tile__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: var(--line); }
.tile__body { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 10px 12px 12px; }
.tile__label { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.tile__price { font-family: var(--f-mono); font-size: 13px; }

/* coming soon */
.soon {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  margin-top: 8px;
  padding: 26px 20px 20px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--tint);
}
.soon__sticker {
  position: absolute; top: -15px; right: 16px;
  padding: 4px 12px 6px;
  font-family: var(--f-hand); font-weight: 700; font-size: 20px; line-height: 1;
  background: var(--pop-tag, var(--card));
  border: var(--line); border-radius: 999px;
  transform: rotate(4deg);
}
.soon__title { font-weight: 800; font-size: 22px; line-height: 1.1; }
.soon__text { font-size: 15px; line-height: 1.45; }
.soon__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px;
  font-weight: 700; font-size: 15px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}
.soon__cta .arrow { width: 17px; height: 17px; }

/* waitlist signup form (inside the coming-soon box) */
.wl { width: 100%; margin-top: 6px; }
.wl__label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 15px; }
.wl__row {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--card);
  border: var(--line);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
}
.wl__input {
  flex: 1;
  min-width: 0;
  padding: 8px 4px 8px 14px;
  font: 500 16px var(--f-display); /* 16px stops iPhones zooming in */
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
}
.wl__input::placeholder { color: var(--ink-soft); opacity: 0.7; }
.wl__row:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.wl__btn {
  flex: none;
  padding: 10px 16px;
  font: 600 15px var(--f-display);
  color: var(--on-solid);
  background: var(--solid);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.wl__btn:disabled { opacity: 0.6; cursor: default; }
.wl__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl__msg { margin: 8px 2px 0; font-size: 13px; color: var(--ink-soft); }
.wl[data-state="error"] .wl__msg { color: #9b2c2c; font-weight: 600; }
.wl__done {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  background: var(--card);
  border: var(--line);
  border-radius: 14px;
}
.wl__done svg { width: 20px; height: 20px; flex: none; color: var(--pop, var(--accent)); stroke: var(--pop-stroke, none); stroke-width: 1.4px; overflow: visible; }

/* video */
.video { aspect-ratio: 16 / 9; background: var(--ink); }
.video iframe { width: 100%; height: 100%; border: 0; }

/* footer */
.foot { margin-top: 36px; text-align: center; color: var(--ink-soft); }
.foot p { margin: 0; }
.foot__mark { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
