:root {
  --paper: #f3eee4;
  --ink: #1b1914;
  --muted: #6d675c;
  --line: #d8d0c2;
  --accent: #b5441a;
  --accent-2: #2f4a3c;
  --studio: #161411;
  --studio-2: #221f1a;
  --gold: #d7b56a;
  --ok: #2f4a3c;
  --warn: #8a4b12;
  --shadow: 0 18px 40px rgba(27, 25, 20, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; }

.wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.site-header nav, .site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header a, .site-footer a { text-decoration: none; color: var(--muted); font-size: 14px; }
.site-header a:hover, .site-footer a:hover { color: var(--ink); }
.brand { font-family: var(--serif); font-size: 22px; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.brand span { color: var(--accent); }

.hero { padding: 56px 0 24px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  max-width: 14ch;
}
.lede { font-size: 20px; max-width: 42ch; color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--ink); }
.btn.gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 40px 0 64px; }
.card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { font-family: var(--serif); margin: 0 0 8px; }
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--accent); font-weight: 700; }

.price { font-family: var(--serif); font-size: 44px; margin: 8px 0; }
.price small { font-size: 16px; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }

.notice {
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}

.studio {
  background: var(--studio);
  color: #efe8d8;
  min-height: 100vh;
}
.studio a { color: inherit; }
.studio .brand { color: #efe8d8; }
.studio .site-header a, .studio .site-footer a { color: #b8b09f; }
.studio-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 140px); }
.side { border-right: 1px solid #2c2822; padding: 18px; }
.side button, .mode-tab {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #efe8d8;
  border: 0;
  padding: 10px 8px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}
.side button.active, .mode-tab.active { background: #2a261f; color: var(--gold); }
.canvas { padding: 24px; }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.slot {
  min-height: 160px;
  border: 1px dashed #4a4338;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #b8b09f;
  background: var(--studio-2);
  padding: 12px;
  text-align: center;
}
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.hidden { display: none !important; }
.badge { font-size: 11px; border: 1px solid currentColor; border-radius: 999px; padding: 2px 8px; }
.staff-only { border: 1px solid #5c4a22; background: #2a2416; padding: 12px; border-radius: 12px; margin-top: 18px; }
.err { color: #e8b4a0; }
.ok { color: #c8d7c4; }

@media (max-width: 800px) {
  .studio-shell { grid-template-columns: 1fr; }
  .site-header, .site-footer { flex-direction: column; align-items: flex-start; }
}
