/* ============================================================
   Cannelle Richter — personal site mockup
   Global design system
   ============================================================ */

:root {
  /* paper / ink */
  --paper:      #faf7f1;
  --paper-2:    #f3efe6;
  --card:       #ffffff;
  --ink:        #211e1a;
  --ink-soft:   #4f4a42;
  --muted:      #8a8478;
  --line:       #e3ddd1;
  --line-strong:#cfc7b6;

  /* default accent (overridden per-domain) */
  --accent:     #2f6bdb;
  --accent-ink: #1f4fb0;
  --accent-wash:#eaf0fc;

  /* fixed brand pops (the multi-colour signature) */
  --c-blue:   #2f6bdb;
  --c-amber:  #e08a1e;
  --c-green:  #1f9e72;
  --c-coral:  #e1543f;
  --c-violet: #7a4fe0;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --ebar-h: 48px;

  --shadow-sm: 0 1px 2px rgba(33,30,26,.06), 0 2px 6px rgba(33,30,26,.05);
  --shadow-md: 0 6px 20px -8px rgba(33,30,26,.18), 0 2px 6px rgba(33,30,26,.06);
  --shadow-lg: 0 24px 60px -24px rgba(33,30,26,.30);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint paper grid */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(33,30,26,.05) 1px, transparent 0);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

#root { position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -.02em; }
p { line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.mono { font-family: var(--font-mono); }

::selection { background: var(--accent); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  box-shadow: 2px 2px 0 var(--ink);
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent-ink); box-shadow: 2px 2px 0 var(--accent-ink); }
.btn.accent:hover { box-shadow: 3px 3px 0 var(--accent-ink); }
.btn.ghost { box-shadow: none; border-color: var(--line-strong); }
.btn.ghost:hover { box-shadow: none; background: var(--paper-2); transform: none; }
.btn.sm { font-size: 13px; padding: 6px 12px; box-shadow: 1.5px 1.5px 0 var(--ink); }

/* ---------- chips / tags ---------- */
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--card);
  color: var(--ink-soft);
  white-space: nowrap;
}
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent-ink); }

/* ---------- hand-drawn helpers ---------- */
.wobble { border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; }
.tilt-1 { transform: rotate(-1.2deg); }
.tilt-2 { transform: rotate(1.4deg); }
.tilt-3 { transform: rotate(-.6deg); }

.scribble { display: inline-block; position: relative; }
.scribble svg { position: absolute; left: -4%; bottom: -.64em; width: 108%; height: .5em; overflow: visible; }
.scribble svg path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
/* Shared-pages title: lift the wave so it hugs the word instead of dropping toward the subtitle */
.shared-title { display: inline-block; padding-bottom: .18em; }
.shared-title .scribble svg { bottom: -.30em; }

/* placeholder frames (replaceable art) */
.ph {
  position: relative;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(45deg, transparent 0 11px, rgba(33,30,26,.035) 11px 12px);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  overflow: hidden;
}
.ph .ph-tag {
  position: absolute; bottom: 8px; right: 8px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 7px; border-radius: 999px;
}

/* card */
.surface {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

/* scroll snapping for the 3 windows */
.windows {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}
.window {
  min-height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
}
.win-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 56px); flex: 1; display: flex; flex-direction: column; }

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,6px);} }

/* utilities */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.grow { flex: 1; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { scrollbar-width: none; }

.fade-up { animation: fadeUp .6s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { .fade-up { animation: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px);} to { opacity:1; transform: none;} }

input, textarea, select {
  font-family: var(--font-body);
  font-size: 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  background: var(--card);
  color: var(--ink);
  width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
label { font-size: 12px; font-weight: 700; color: var(--ink-soft); display: block; margin-bottom: 5px; font-family: var(--font-display); }

/* toggle */
.toggle { width: 42px; height: 24px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .15s; border: none; padding: 0; flex: none; }
.toggle.on { background: var(--accent); }
.toggle::after { content:""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: var(--shadow-sm); }
.toggle.on::after { transform: translateX(18px); }

.dim { color: var(--muted); }
.sep { height: 1px; background: var(--line); border: none; margin: 0; }
