/* Brielle Evermore: Emerald #164A41, Champagne Gold #C6A15B, Dusty Rose #D8AAA4, Deep Plum #563D56, Soft Ivory #FAF7F0 */
:root {
  --emerald: #164A41; --gold: #C6A15B; --rose: #D8AAA4; --plum: #563D56; --ivory: #FAF7F0;
  --ink: #1F2A27; --muted: #4A4F4C; --line: #E4D9BF; --soft-line: #F0E9D8; --card: #FFFFFF;
  --rose-bg: #F3E3E0; --ok-bg: #E8F1EC; --warn-bg: #FBF1DE;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
a { color: var(--emerald); } a:hover { color: var(--plum); }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 24px; background: var(--emerald); color: var(--ivory); }
.brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: .5px; color: var(--ivory); text-decoration: none; }
.tagline { font-size: 13px; color: #E9DFC6; }
.who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.badge { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 600; }
.layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; padding: 24px; max-width: 1360px; margin: 0 auto; }
.nav { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.nav a { display: block; padding: 12px 14px; min-height: 44px; border-radius: 10px; font-weight: 600; text-decoration: none;
  background: var(--card); color: var(--emerald); border: 1px solid var(--line); }
.nav a[aria-current="page"] { background: var(--emerald); color: var(--ivory); border-color: var(--emerald); }
.content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.narrow { max-width: 520px; margin: 40px auto; padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }
h1 { margin: 0; font-family: var(--serif); font-size: 38px; font-weight: 600; color: var(--emerald); line-height: 1.15; }
h2 { margin: 0 0 10px; font-size: 18px; color: var(--emerald); }
.lead { margin: 4px 0 0; color: var(--muted); }
.card { padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--plum); line-height: 1.1; }
.small { font-size: 13px; color: var(--muted); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #EDEFEA; color: var(--muted); }
.chip.rose { background: var(--rose-bg); color: var(--plum); }
.chip.ok { background: var(--ok-bg); color: var(--emerald); }
.chip.warn { background: var(--warn-bg); color: #6B4A12; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
td { padding: 9px 6px; border-bottom: 1px solid var(--soft-line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; min-height: 44px; border-radius: 10px;
  border: 1px solid var(--emerald); background: var(--emerald); color: var(--ivory); font: 600 15px var(--sans); cursor: pointer; text-decoration: none; }
.btn.secondary { background: var(--card); color: var(--emerald); }
.btn.plum { background: var(--plum); border-color: var(--plum); }
.btn:disabled { background: #F1EDE4; color: #5E625F; border-color: #C9C2B1; cursor: not-allowed; }
.btn.link { background: none; border: 0; color: var(--ivory); text-decoration: underline; padding: 0 4px; min-height: 32px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
input[type=text], input[type=password] { padding: 10px 12px; min-height: 44px; border: 1px solid #C9C2B1; border-radius: 10px; font: 15px var(--sans); background: #fff; color: var(--ink); }
input:focus-visible, .btn:focus-visible, .nav a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.message { padding: 12px 14px; border-radius: 10px; }
.message.error { background: var(--rose-bg); color: #5A1F2A; }
.message.ok { background: var(--ok-bg); color: var(--emerald); }
.message[hidden] { display: none; }
.swatch { display: inline-block; width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0,0,0,.15); vertical-align: middle; margin-right: 8px; }
.art { width: 100%; max-height: 320px; object-fit: contain; background: #F3EEE2; border-radius: 10px; border: 1px solid var(--line); }
.footer { text-align: center; font-size: 12px; color: var(--muted); padding: 24px 16px 32px; }
@media (max-width: 640px) {
  .topbar { padding: 12px 16px; }
  .layout { padding: 16px; gap: 16px; }
  .nav { max-width: none; flex-direction: row; flex-wrap: wrap; }
  .nav a { flex: 1 1 140px; text-align: center; }
  h1 { font-size: 30px; }
  .stat { font-size: 34px; }
}
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack > p, .stack > h2 { margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.product-card:hover { border-color: var(--gold); }
.product-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.product-name { font-weight: 600; color: var(--emerald); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.list.checks { list-style: none; padding-left: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pre { white-space: pre-line; }
details summary { cursor: pointer; font-weight: 600; color: var(--emerald); min-height: 32px; }
code { font-size: 13px; background: #F3EEE2; padding: 1px 5px; border-radius: 5px; }
code.wrap { word-break: break-all; }
input[type=file] { padding: 10px; border: 1px dashed #C9C2B1; border-radius: 10px; background: #fff; font: 14px var(--sans); }
.small-btn { min-height: 36px; padding: 6px 12px; font-size: 13px; }
