:root {
  --paper: #f4efe4;
  --ink: #1c1612;
  --ink-soft: #5c5148;
  --line: rgba(28, 22, 18, .14);
  --tomato: #e23b2b;
  --gold: #e6a11a;
  --leaf: #0e8a62;
  --shadow: 0 28px 70px rgba(58, 32, 12, .18);
  --display: "Literata", Georgia, serif;
  --sans: "Onest", "Segoe UI", sans-serif;
  --mark: "Unbounded", "Onest", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: -20vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(420px 320px at 12% 18%, rgba(226, 59, 43, .22), transparent 70%),
    radial-gradient(480px 360px at 88% 8%, rgba(44, 111, 228, .18), transparent 70%),
    radial-gradient(380px 300px at 78% 86%, rgba(230, 161, 26, .22), transparent 70%),
    radial-gradient(320px 280px at 8% 90%, rgba(14, 138, 98, .14), transparent 70%);
  animation: wash 16s ease-in-out infinite alternate;
}
@keyframes wash {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
}
button, input { font-family: inherit; color: inherit; }
a { color: inherit; }
.wrap { position: relative; z-index: 2; }
header, .appbar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mark);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 14px;
}
.brand i {
  width: 18px; height: 18px; border-radius: 50%;
  background: conic-gradient(from 20deg, var(--tomato), var(--gold), var(--leaf), #2c6fe4, #8b3d72, var(--tomato));
  box-shadow: 0 0 0 4px rgba(226, 59, 43, .12);
}
nav { margin-left: auto; display: flex; gap: 18px; align-items: center; color: var(--ink-soft); font-size: 14px; }
nav a { text-decoration: none; }
.btn {
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 12px 18px; font-weight: 700; font-size: 14px;
}
.btn-hot { background: var(--ink); color: #f7f1e6; }
.btn-hot:hover { background: var(--tomato); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-leaf { background: var(--leaf); color: white; }
.btn:disabled { opacity: .55; cursor: wait; }
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(380px, .95fr);
  gap: 24px; align-items: center;
  padding: 8px 64px 48px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--tomato); }
h1 {
  font-family: var(--display); font-weight: 520;
  font-size: clamp(64px, 7vw, 104px);
  line-height: .88; letter-spacing: -0.035em; margin: 0 0 22px;
}
h1 em { font-style: italic; font-weight: 560; color: var(--tomato); }
.lead { max-width: 480px; font-size: 18px; color: var(--ink-soft); margin: 0 0 28px; }
.cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fine { margin-top: 22px; display: flex; gap: 18px; color: var(--ink-soft); font-size: 13px; }
.fine b { color: var(--ink); }
.stage { position: relative; height: min(78vh, 760px); }
.poster {
  position: absolute; left: 50%; top: 48%;
  transform: translate(-50%, -50%) rotate(-2.5deg);
  width: min(390px, 46vh);
  background: #d7d4cc; padding: 14px; border-radius: 22px;
  box-shadow: var(--shadow);
}
.poster img { width: 100%; display: block; border-radius: 12px; }
.tape {
  position: absolute; height: 22px; width: 86px;
  background: rgba(226, 59, 43, .72); top: -10px; left: 36px;
  transform: rotate(-8deg);
}
.tape.b { background: rgba(230, 161, 26, .78); left: auto; right: 28px; transform: rotate(7deg); }
.blob {
  position: absolute; border-radius: 50%;
  background-image: url("/static/sheet.jpg");
  background-size: 640px auto;
  box-shadow: 0 16px 30px rgba(40, 24, 8, .2);
  mask-image: radial-gradient(circle, #000 62%, transparent 78%);
  animation: float 7s ease-in-out infinite;
}
.b1 { width: 112px; height: 112px; left: 4%; top: 10%; background-position: 8% 12%; }
.b2 { width: 84px; height: 84px; right: 6%; top: 16%; background-position: 70% 20%; animation-delay: 1.1s; }
.b3 { width: 96px; height: 96px; left: 0; bottom: 18%; background-position: 30% 60%; animation-delay: .6s; }
.b4 { width: 74px; height: 74px; right: 2%; bottom: 14%; background-position: 80% 78%; animation-delay: 1.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.chip {
  position: absolute; background: #fffdf8; border-radius: 999px;
  padding: 8px 12px; font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(40,24,8,.12);
}
.chip.s { right: 8%; top: 28%; }
.chip span { color: var(--tomato); }
.chip.m { left: 8%; bottom: 8%; }
.band { position: relative; z-index: 2; padding: 20px 64px 72px; }
.band h2 {
  font-family: var(--display); font-weight: 560; font-size: 48px;
  letter-spacing: -0.03em; margin: 0 0 8px;
}
.band .sub { color: var(--ink-soft); margin: 0 0 28px; max-width: 640px; }
.steps { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.step { padding: 22px 22px 26px 0; }
.step + .step { border-left: 1.5px solid var(--ink); padding-left: 22px; }
.num { font-family: var(--mark); font-size: 12px; letter-spacing: .14em; color: var(--tomato); }
.step h3 { margin: 8px 0 6px; font-size: 22px; font-family: var(--display); font-weight: 560; }
.step p { margin: 0; color: var(--ink-soft); }
.papers { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.paper {
  background: rgba(255,253,248,.72); border-radius: 18px; padding: 14px;
  box-shadow: 0 10px 30px rgba(40,24,8,.06); min-width: 132px;
}
.sheetlet {
  background:
    radial-gradient(circle at 30% 30%, #fff, #c9c9c4 42%, transparent 43%),
    radial-gradient(circle at 62% 48%, #f2d2c4, #c9c9c4 40%, transparent 41%),
    #cfcbc3;
  border-radius: 8px; margin-bottom: 10px;
}
.paper strong { display: block; }
.paper em { font-style: normal; color: var(--ink-soft); font-size: 13px; }

#app { display: none; height: 100vh; position: relative; z-index: 2; }
body.workshop .wrap { display: none; }
body.workshop #app { display: grid; grid-template-rows: 72px 1fr; }
.appbar {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 228, .92);
  backdrop-filter: blur(8px);
}
.proj { display: flex; gap: 4px; background: rgba(28,22,18,.06); border-radius: 999px; padding: 4px; max-width: 46vw; overflow: auto; }
.proj button, .seg button {
  border: 0; background: transparent; border-radius: 999px;
  padding: 7px 12px; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--ink-soft);
  white-space: nowrap;
}
.proj button.on, .seg button.on { background: white; color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.spacer { flex: 1; }
.countpill, .who { font-size: 13px; background: white; border-radius: 999px; padding: 8px 12px; }
.countpill b { color: var(--leaf); }
.studio { display: grid; grid-template-columns: 300px 1fr 320px; min-height: 0; }
.col { min-height: 0; overflow: auto; padding: 16px; }
.col h3, .side h3 {
  margin: 14px 0 8px; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.drop {
  border: 1.5px dashed rgba(28,22,18,.35); border-radius: 16px;
  padding: 14px; text-align: center; background: rgba(255,253,248,.55); cursor: pointer;
}
.drop.over { border-color: var(--tomato); background: white; }
.drop b { display: block; }
.drop span, .note, .hint { color: var(--ink-soft); font-size: 13px; }
.hint { margin: 6px 0 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb { position: relative; border: 0; padding: 0; background: transparent; cursor: pointer; text-align: left; }
.thumb img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  mask-image: radial-gradient(circle, #000 68%, transparent 80%);
  background: #c9c9c4;
}
.thumb small { display: block; text-align: center; color: var(--ink-soft); font-size: 11px; }
.thumb.on img { box-shadow: 0 0 0 3px var(--tomato); }
.thumb.center img { box-shadow: 0 0 0 3px var(--leaf); }
.mark {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 4px; background: white; box-shadow: inset 0 0 0 1.5px var(--ink);
}
.thumb .mark.on { background: var(--tomato); box-shadow: none; }
.lib-actions { display: flex; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.lib-actions button, .quiet {
  background: transparent; border: 0; color: var(--tomato); font-weight: 700;
  cursor: pointer; padding: 0; font-size: 13px;
}
.canvas {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; min-width: 0; padding: 12px;
}
.mat {
  position: relative; background: #d8d5cd; padding: 14px; border-radius: 20px; box-shadow: var(--shadow);
}
.mat img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: #b9b9b4; }
.mat img[src=""] { display: none; }
.empty {
  display: none; margin: 0; max-width: 220px; text-align: center; color: var(--ink-soft);
  position: absolute; inset: 24px; place-items: center;
}
.mat.empty-on .empty { display: grid; }
.canvas p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.side { border-left: 1px solid var(--line); background: rgba(255,253,248,.45); }
.block { margin-bottom: 16px; }
.presets, .swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button {
  border: 0; background: white; border-radius: 999px; padding: 7px 10px;
  cursor: pointer; font-weight: 700; font-size: 13px;
}
.presets button.on { background: var(--ink); color: #f4efe4; }
.seg { display: flex; background: rgba(28,22,18,.06); border-radius: 999px; padding: 4px; margin: 10px 0; }
.dims { display: flex; gap: 8px; }
.dim-label { display: block; flex: 1; font-size: 12px; color: var(--ink-soft); }
.dim-label input, #account-email, .card input {
  width: 100%; margin-top: 4px; border: 0; background: white; border-radius: 10px;
  padding: 8px 10px; font-size: 15px; font-weight: 700;
}
.limit { margin-top: 10px; background: white; border-radius: 14px; padding: 10px 12px; }
.limit b { font-family: var(--display); font-size: 22px; }
.limit.warn { box-shadow: inset 0 0 0 1.5px var(--gold); }
.limit.bad { box-shadow: inset 0 0 0 1.5px var(--tomato); }
.slider { width: 100%; accent-color: var(--tomato); }
.rowline { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); margin: 8px 0 4px; }
.swatches button {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid white; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.swatches button.on { box-shadow: 0 0 0 2px var(--ink); }
.export { width: 100%; margin-top: 8px; }
.danger { margin-top: 14px; }
.error { color: var(--tomato); font-size: 13px; min-height: 1em; }
.auth {
  position: fixed; inset: 0; z-index: 6; background: rgba(28,22,18,.35);
  display: grid; place-items: center;
}
.auth[hidden], [hidden] { display: none !important; }
.card {
  width: min(420px, calc(100% - 32px)); background: var(--paper);
  border-radius: 24px; padding: 28px; box-shadow: var(--shadow);
}
.card h2 { font-family: var(--display); font-weight: 560; letter-spacing: -0.03em; margin: 0 0 8px; font-size: 36px; }
.card p { color: var(--ink-soft); margin: 0 0 16px; }
.card label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.card .btn { width: 100%; margin-top: 6px; }
.switch-auth {
  display: inline-block; margin: 12px 12px 0 0; color: var(--tomato);
  font-weight: 700; cursor: pointer; background: none; border: 0; padding: 0;
}
@media (max-width: 980px) {
  .hero, .band { padding-left: 20px; padding-right: 20px; }
  .hero { grid-template-columns: 1fr; }
  .stage { height: 520px; }
  .steps, .studio { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  header, .appbar { height: auto; flex-wrap: wrap; padding: 12px; row-gap: 8px; }
  body.workshop #app { grid-template-rows: auto 1fr; height: auto; min-height: 100vh; }
  .who { display: none; }
  .proj { max-width: none; }
}
