/* =========================================================
   Woeste Wortel — Work-in-progress / preview gate concepts
   Brand tokens + shared sticker styling, three concept skins.

   Responsive via CONTAINER QUERIES: each .wip is a size
   container, so the SAME stylesheet renders correctly both
   inside the fixed design-canvas artboards AND full-viewport
   on the live random page. Type/space use cq units + clamp.

   Spiral inspiration: Robin's hand-drawn hypno spirals. The
   black-on-white spiral (spiral-ink.png) is recoloured to any
   brand colour with mix-blend-mode:multiply over a panel.
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-VF.ttf") format("truetype-variations"),
       url("fonts/Fraunces-VF.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-VF-Italic.ttf") format("truetype-variations"),
       url("fonts/Fraunces-VF-Italic.ttf") format("truetype");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --bg: #FFE600;
  --ink: #0E0E0C;
  --paper: #FFFDF3;
  --pink: #FF1EC8;
  --green: #3FDE4A;
  --cyan: #00D4F7;
  --violet: #8B00D9;
  --orange: #FF5A1F;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
}

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

/* ── shared frame = a size container ────────────────────── */
.wip {
  width: 100%; height: 100%;
  position: relative; overflow: hidden;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  container-type: size;
  container-name: wip;
}

/* ── spinning spiral helpers ────────────────────────────── */
@keyframes wwspin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes wwspin-rev {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}
.spiral-bleed {
  position: absolute; top: 50%; left: 50%;
  width: 160cqmax; height: 160cqmax;
  min-width: 130%; min-height: 130%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  will-change: transform;
  pointer-events: none;
  user-select: none; -webkit-user-drag: none;
}
.spin     { animation: wwspin 44s linear infinite; }
.spin-fast{ animation: wwspin 26s linear infinite; }
.spin-rev { animation: wwspin-rev 60s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .spin, .spin-fast, .spin-rev { animation: none; }
}

/* ── shared sticker button (from site .big-btn) ─────────── */
.big-btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--ink); color: var(--bg);
  padding: clamp(13px, 1.6cqmin, 17px) clamp(20px, 2.6cqmin, 30px);
  border: 3px solid var(--ink);
  border-radius: 100px;
  font-weight: 700; font-size: clamp(13px, 1.4cqmin, 15px);
  text-transform: uppercase; letter-spacing: 0.08em;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
  text-decoration: none; white-space: nowrap;
  min-height: 48px;
}
.big-btn.pink  { background: var(--pink);  color: var(--ink); }
.big-btn.green { background: var(--green); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .big-btn:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
}
.big-btn:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }

.text-link {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(12px, 1.2cqmin, 13px); letter-spacing: 0.04em; text-transform: uppercase;
  color: inherit; text-decoration: none;
  border-bottom: 3px solid var(--pink);
  padding-bottom: 2px; transition: color .15s, border-color .15s;
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { color: var(--pink); }
}

.wip-note {
  font-family: var(--hand);
  font-size: clamp(18px, 2cqmin, 22px); font-weight: 700;
  border: 2px dashed rgba(14,14,12,.4);
  border-radius: 10px; padding: 1px 12px;
  display: inline-block; transform: rotate(-2deg); opacity: .75;
}

/* ── living carrot host sizing (engine adds .ww-carrot) ─── */
.a-logo { height: clamp(74px, 13cqmin, 122px); width: auto; margin: 0 0 6px; }
.c-carrot { height: 30px; width: auto; }

/* =========================================================
   CONCEPT A — "Nog even" : full-bleed pink/green hypno,
   stable paper sticker card holds the message + preview link.
   ========================================================= */
.a-card {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  width: min(560px, 86cqw);
  background: var(--paper);
  border: clamp(4px, 0.6cqmin, 6px) solid var(--ink);
  border-radius: clamp(18px, 2.4cqmin, 26px);
  box-shadow: clamp(8px, 1.5cqmin, 16px) clamp(8px, 1.5cqmin, 16px) 0 var(--ink);
  padding: clamp(28px, 4.4cqmin, 46px) clamp(26px, 4cqmin, 44px) clamp(26px, 3.4cqmin, 38px);
  text-align: center;
  z-index: 2;
}
.a-logo { display: inline-block; }
.a-eyebrow {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(10px, 1.1cqmin, 12px); letter-spacing: 0.22em; text-transform: uppercase;
  opacity: .55; margin: 0 0 clamp(10px, 1.6cqmin, 14px);
}
.wipA h1 {
  font-family: var(--display); font-weight: 800;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-size: clamp(50px, 8.4cqw, 112px); line-height: .88; letter-spacing: -0.02em;
  margin: 0;
}
.wipA h1 .pink { color: var(--pink); display: inline-block; transform: rotate(-3deg); }
.a-sub {
  font-size: clamp(15px, 1.7cqmin, 18px); font-weight: 500; line-height: 1.5;
  max-width: 32ch; margin: clamp(14px, 2.2cqmin, 20px) auto clamp(20px, 3.2cqmin, 28px);
  text-wrap: pretty;
}
.a-actions { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 1.8cqmin, 16px); }

/* Colourways — the accent word + login button match the spiral colour.
   Magenta keeps the brand magenta; green + ink follow their spirals. */
.wipA.cw-green h1 .pink { color: var(--green); }
.wipA.cw-green .big-btn.pink { background: var(--green); color: var(--ink); }

.wipA.cw-ink h1 .pink { color: var(--ink); }
.wipA.cw-ink .big-btn.pink { background: var(--ink); color: var(--paper); }

/* =========================================================
   CONCEPT B — "Bijna klaar" : yellow editorial poster, the
   spiral lives in a framed green disc spinning beside the type.
   ========================================================= */
.wipB {
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: clamp(28px, 6cqmin, 76px);
}
.b-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 4cqmin, 48px);
}
.b-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(16px, 2.6cqmin, 26px); }
.b-eyebrow img { height: clamp(38px, 5cqmin, 50px); width: auto; transform: rotate(-6deg); }
.b-eyebrow .t { font-family: var(--hand); font-size: clamp(24px, 3cqmin, 30px); font-weight: 700; white-space: nowrap; }
.wipB h1 {
  font-family: var(--display); font-weight: 800;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-size: clamp(58px, 9.6cqw, 128px); line-height: .86; letter-spacing: -0.025em;
  margin: 0; mix-blend-mode: multiply;
}
.wipB h1 .green { color: var(--green); font-style: italic; display: inline-block; }
.b-sub {
  font-size: clamp(15px, 1.8cqmin, 19px); font-weight: 500; line-height: 1.5;
  max-width: 40ch; margin: clamp(18px, 2.8cqmin, 26px) 0 clamp(22px, 3.4cqmin, 32px);
  text-wrap: pretty;
}
.b-actions { display: flex; align-items: center; gap: clamp(14px, 2.4cqmin, 22px); flex-wrap: wrap; }
.b-discwrap {
  position: relative; justify-self: center;
  width: clamp(200px, 62cqmin, 460px); aspect-ratio: 1;
}
.b-disc {
  position: absolute; inset: 0;
  border: clamp(4px, 0.8cqmin, 6px) solid var(--ink);
  border-radius: 50%;
  overflow: hidden;
  background: var(--green);
  box-shadow: clamp(10px, 2cqmin, 18px) clamp(10px, 2cqmin, 18px) 0 var(--ink);
}
.b-disc .spiral-bleed {
  width: 150%; height: 150%;
  mix-blend-mode: multiply;
}
.b-disc-stamp {
  position: absolute; bottom: -14px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--ink); color: var(--bg);
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(10px, 1.2cqmin, 12px); letter-spacing: 0.2em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 100px;
  border: 3px solid var(--bg);
  z-index: 3; white-space: nowrap;
}

/* Stack the poster when the container gets narrow / portrait */
@container wip (max-width: 820px) {
  .b-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: clamp(20px, 4cqmin, 36px);
  }
  .b-grid .b-left { order: 2; }
  .b-grid .b-discwrap { order: 1; }
  .b-eyebrow { justify-content: center; }
  .b-actions { justify-content: center; }
  .b-sub { margin-left: auto; margin-right: auto; }
  .wipB h1 { font-size: clamp(54px, 15cqw, 104px); }
  .b-discwrap { width: clamp(180px, 46cqmin, 320px); }
}

/* =========================================================
   CONCEPT C — "Even geduld" : dark, app-like preview gate.
   Mini site header, the smiley flower spins over a pink
   spiral halo, a preview-code field unlocks the site.
   ========================================================= */
.wipC { background: var(--ink); color: var(--paper); display: flex; flex-direction: column; }
.c-bar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: clamp(12px, 1.8cqmin, 18px) clamp(18px, 3cqmin, 36px);
  padding-top: max(clamp(12px, 1.8cqmin, 18px), env(safe-area-inset-top));
  background: var(--ink); color: var(--bg);
  border-bottom: 4px solid var(--pink);
}
.c-bar .c-logo { display: flex; align-items: center; gap: 10px; }
.c-bar .c-logo .wm {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(13px, 1.5cqmin, 15px); letter-spacing: 0.06em; text-transform: uppercase;
}
.c-bar .c-pill {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(10px, 1.1cqmin, 11px); letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--pink); color: var(--ink);
  padding: 6px 14px; border-radius: 100px; white-space: nowrap;
}
.c-body {
  flex: 1; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(22px, 3.6cqmin, 44px);
  text-align: center; padding: clamp(24px, 4cqmin, 48px);
}
.c-halo {
  position: relative;
  width: clamp(180px, 34cqmin, 280px); aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pink);
  box-shadow: 0 0 0 6px var(--ink), 0 24px 60px rgba(0,0,0,.5);
  display: grid; place-items: center;
}
.c-halo .spiral-bleed { width: 150%; height: 150%; mix-blend-mode: multiply; }
.c-flower {
  position: relative; z-index: 2;
  width: 66%; height: auto; display: block;
  filter: drop-shadow(4px 5px 0 rgba(0,0,0,.55));
}
.c-stack { display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 2.2cqmin, 26px); }
.wipC h1 {
  font-family: var(--display); font-weight: 800;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-size: clamp(44px, 7cqw, 92px); line-height: .86; letter-spacing: -0.02em;
  margin: 0; color: var(--paper);
}
.wipC h1 .green { color: var(--green); font-style: italic; display: inline-block; }
.c-sub {
  font-size: clamp(14px, 1.7cqmin, 17px); font-weight: 500; line-height: 1.5;
  max-width: 34ch; margin: clamp(12px, 1.8cqmin, 16px) auto clamp(18px, 2.6cqmin, 24px);
  color: rgba(255,253,243,.82); text-wrap: pretty;
}
.c-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 auto; }
.c-actions { display: flex; justify-content: center; }
.c-form input {
  width: min(260px, 70cqw);
  padding: 15px 20px;
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--paper);
  border-radius: 100px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  outline: none; min-height: 48px;
  -webkit-appearance: none; appearance: none;
}
.c-form input:focus { box-shadow: 0 0 0 3px var(--green); }
.c-form input::placeholder { color: rgba(14,14,12,.45); text-transform: none; letter-spacing: 0; }
.c-login { margin-top: clamp(16px, 2.4cqmin, 20px); }
.c-login .text-link { color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .c-login .text-link:hover { color: var(--green); }
}

/* Short / landscape phones: tighten C so it stays composed */
@container wip (max-height: 540px) {
  .c-body { flex-direction: row; gap: clamp(20px, 4cqmin, 48px); }
  .c-halo { width: clamp(150px, 30cqmin, 240px); }
  .wipC h1 { font-size: clamp(38px, 6cqw, 64px); }
}
