:root {
  --ink: #1c1915;
  --muted: #6b645c;
  --paper: #f6f1e8;
  --card: #fffdf9;
  --line: #e6ddd0;
  --accent: #8c3a2f;
  --accent-ink: #fff8f4;
  --ok: #2f6b4f;
  --warn: #8a5a12;
  --shadow: 0 16px 40px rgba(48, 36, 22, 0.07);
  --sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
nav.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; position: sticky; top: 0; z-index: 2;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
}
.brand { font-family: var(--serif); font-weight: 700; letter-spacing: 0.02em; text-decoration: none; font-size: 22px; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.btn {
  border: 0; border-radius: 999px; padding: 12px 18px; background: var(--ink); color: white;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 28px 0 56px; }
h1, h2, h3 { font-family: var(--serif); }
h1 { font-size: clamp(42px, 6vw, 72px); line-height: 0.96; margin: 8px 0 16px; letter-spacing: -0.03em; }
h2 { margin: 0 0 8px; font-size: 32px; letter-spacing: -0.02em; }
.lede { font-size: 18px; line-height: 1.5; color: #3c352d; max-width: 38rem; }
.note { color: var(--muted); font-size: 14px; line-height: 1.45; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; }
.sim-stage { height: 280px; border-radius: 16px; background: linear-gradient(180deg, #f3eadc, #efe4d2); position: relative; overflow: hidden; }
.cut { position: absolute; border-radius: 8px; display: grid; place-items: center; color: white; font-size: 13px; box-shadow: 0 10px 24px rgba(28, 25, 21, 0.12); }
.cut.a { width: 120px; height: 150px; background: #8c3a2f; left: 42px; top: 58px; transform: rotate(-8deg); }
.cut.b { width: 110px; height: 140px; background: #245c74; left: 150px; top: 42px; transform: rotate(6deg); }
.cut.c { width: 130px; height: 90px; background: #c4a15a; left: 108px; top: 150px; color: #1c1915; }
.sim-stage.ruined .cut.a { opacity: 0.15; }
.sim-stage.ruined .cut.b { font-family: "Comic Sans MS", cursive; }
.sim-stage.ruined::after { content: ""; position: absolute; inset: 10px; border: 14px solid #111; pointer-events: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.prices { display: flex; gap: 8px; flex-wrap: wrap; }
.price { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 12px 16px; cursor: pointer; min-width: 72px; }
.price.on { border-color: var(--accent); background: #f8ece8; color: var(--accent); }
label { display: block; font-size: 13px; color: var(--muted); margin: 16px 0 6px; }
input[type="email"], input[type="text"], input[type="file"], select { width: 100%; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 40px; }
.card h3 { margin: 0 0 8px; font-size: 22px; }
.card p { margin: 0; color: var(--muted); line-height: 1.5; }
#waitlist { margin-bottom: 8px; }
.studio { display: grid; grid-template-columns: 240px 1fr 280px; min-height: 100vh; }
.side, .inspector { background: var(--card); border-right: 1px solid var(--line); padding: 20px; }
.inspector { border-right: 0; border-left: 1px solid var(--line); }
.stage-wrap { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#board { width: min(100%, 720px); height: auto; aspect-ratio: 1; background: white; border-radius: 16px; box-shadow: var(--shadow); touch-action: none; margin: 0 auto; border: 1px solid var(--line); }
.layer { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.layer.on { background: #f8ece8; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.pro { margin: 8px 0 28px; padding-left: 18px; color: #3c352d; line-height: 1.55; }
.pro li { margin: 8px 0; }
footer { padding: 8px 0 48px; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) {
  .hero, .grid-3, .studio { grid-template-columns: 1fr; }
  .inspector { border-left: 0; border-top: 1px solid var(--line); }
  nav.top { position: static; }
}
