/* Somspec Luxe — shared "Studio" tokens and controls for customer-facing pages. Mirrors /admin/admin.css. */
:root {
  --cream: #f6f2ea;
  --panel: #fffdf9;
  --tint: #ebe4d6;
  --tint-2: #f0eadf;
  --line: #e3dccf;
  --line-soft: #ede6d9;
  --ink: #1c1a17;
  --ink-2: #605850;
  --muted: #736a5f;
  --brass: #9a6b2f;
  --brass-dark: #7a5322;
  --brass-line: #c9a77b;
  --brass-tint: #f3e9d9;
  --green: #3d6b4a;
  --green-line: #9fc2a9;
  --green-tint: #e3efe6;
  --red: #9b3b32;
  --red-line: #d9a39d;
  --red-tint: #f7e6e3;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 10px 30px rgba(28, 26, 23, 0.10);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--brass-dark); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; display: block; }
::selection { background: #e6d3b3; color: var(--ink); }
input, textarea { caret-color: var(--brass); }
::placeholder { color: #7a7267; opacity: 1; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
* { scrollbar-width: thin; scrollbar-color: #cfc6b6 transparent; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 400; }
p { text-wrap: pretty; margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn-primary { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-ghost { border-color: transparent; background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: #cfc6b6; background: #fff; }
  .btn:not(:disabled).btn-primary:hover { background: var(--brass-dark); border-color: var(--brass-dark); }
  .btn:not(:disabled).btn-dark:hover { background: #000; border-color: #000; color: var(--cream); }
  .btn-ghost:hover { background: var(--tint-2); border-color: transparent; }
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); outline: none; width: 100%; font-size: 16px; }
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23736a5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass-line); box-shadow: 0 0 0 3px var(--brass-tint); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red-line); box-shadow: 0 0 0 3px var(--red-tint); }
.field .help { font-size: 13px; color: var(--muted); }
.field .error { font-size: 13px; color: var(--red); }
.field .error:empty { display: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; color: var(--muted); white-space: nowrap; line-height: 1.2; }
.chip-brass { color: var(--brass-dark); border-color: var(--brass-line); }
.chip-green { color: var(--green); border-color: var(--green-line); }
.chip-slate { color: #4d5a6b; border-color: #b9c2cf; }

@media (prefers-reduced-motion: reduce) { .btn { transition-duration: 1ms; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
