:root{
  --bg:#F3F5F1;
  --bg-raised:#FFFFFF;
  --bg-sunken:#EAEDE4;
  --ink:#22271F;
  --ink-soft:#565C4F;
  --ink-faint:#7C826F;
  --line:#DBE0D2;
  --accent:#C8760A;
  --accent-ink:#8C5407;
  --accent-deep:#8A3324;
  --accent-soft-bg:#FBF0DE;
  --ok:#3E7A4C;
  --ok-bg:#E4F1E6;
  --accent-light:#E8A23C;
  --radius:10px;
  --shadow: 0 1px 2px rgba(34,39,31,0.06), 0 8px 24px -12px rgba(34,39,31,0.18);
  --shadow-lift: 0 4px 8px rgba(34,39,31,0.08), 0 16px 32px -14px rgba(34,39,31,0.28);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"Work Sans", ui-sans-serif, system-ui, sans-serif;
  font-size:16px;
  line-height:1.6;
}
h1,h2,h3{
  font-family:"Fraunces", ui-serif, Georgia, serif;
  font-weight:600;
  margin:0 0 8px;
}
a{ color:var(--accent-ink); }
p{ margin:0 0 12px; color:var(--ink-soft); }
code, .mono{ font-family:"IBM Plex Mono", ui-monospace, monospace; }

/* A11Y-001 / WEB-001: every interactive element gets a visible keyboard focus state */
a:focus-visible, button:focus-visible, input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible{
  outline:2px solid var(--accent); outline-offset:2px; border-radius:2px;
}

.shell{ max-width:1080px; margin:0 auto; padding:32px 24px 96px; }
.shell-narrow{ max-width:620px; }
.center-page{ padding-top:80px; }

/* header */
.site-header{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
  padding:12px 24px; border-bottom:1px solid var(--line); background:var(--bg-raised);
}
.site-header.admin{ background:var(--ink); }
.site-header.admin .site-nav a{ color:#F3F5F1; }
.admin-tag{ font-family:"IBM Plex Mono", monospace; font-size:13px; background:var(--accent); color:#fff; padding:3px 9px; border-radius:20px; margin-left:10px; }
.brand-block{ display:flex; flex-direction:column; gap:4px; }
.brand{ display:inline-flex; align-items:center; text-decoration:none; }
.brand-logo{ height:132px; width:auto; display:block; }
.site-header.admin .brand-logo{ background:#fff; padding:8px 14px; border-radius:10px; }
.brand-contact{ margin:0; font-size:13px; color:var(--ink-faint); }
.brand-contact a{ color:var(--accent-ink); text-decoration:none; font-weight:600; }
.brand-contact a:hover{ text-decoration:underline; }
@media (max-width:640px){
  .brand-logo{ height:120px; }
  .brand-contact{ font-size:12px; }
}
.site-nav{ display:flex; gap:20px; align-items:center; font-size:14.5px; }
.site-nav a{ text-decoration:none; color:var(--ink-soft); padding:6px 2px; }
.site-nav a:hover{ color:var(--ink); }

/* hero */
.hero-band{ position:relative; background:var(--ink); padding:52px 24px 60px; margin-bottom:8px; overflow:hidden; }
.hero-inner{ position:relative; max-width:1080px; margin:0 auto; }
.hero-inner > *{ max-width:640px; }
.hero-band h1{ color:#F6F7F3; font-size:2.1rem; margin-bottom:14px; }
.hero-sub{ color:#C7CDBC; margin-bottom:18px; }
.hero-inner > .hero-features{ max-width:900px; }
.hero-features{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; margin-bottom:24px; }
.hero-feature{
  display:block; text-decoration:none; padding:16px 18px; border-radius:10px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14);
  transition:background 0.15s ease, border-color 0.15s ease;
}
.hero-feature:hover, .hero-feature:focus-visible{ background:rgba(255,255,255,0.1); border-color:var(--accent-light); }
.hero-feature h3{ font-family:"Fraunces", serif; font-size:1rem; font-weight:600; color:#F6F7F3; margin:0 0 6px; }
.hero-feature p{ font-size:12.5px; line-height:1.5; color:#C7CDBC; margin:0; }
.hero-cta{ margin-bottom:22px; }
@media (max-width:820px){
  .hero-features{ grid-template-columns:1fr; }
}

/* HOM-002: a single subtle, static, decorative arch motif — never competes with product photography */
.hero-motif{
  position:absolute; top:-30px; right:-20px; width:260px; height:260px;
  color:var(--accent-light); opacity:0.14; pointer-events:none;
}
@media (max-width:720px){ .hero-motif{ width:170px; height:170px; top:-15px; right:-25px; } }

/* intro / filters */
.page-intro{ max-width:60ch; margin-bottom:24px; }

.price-filter{ margin-bottom:28px; }
.price-filter .label{ display:block; margin-bottom:10px; }
.chip-row{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.chip{
  text-decoration:none; font-size:13.5px; color:var(--ink-soft);
  background:var(--bg-raised); border:1px solid var(--line); border-radius:20px; padding:6px 14px;
}
.chip:hover{ border-color:var(--accent); color:var(--ink); }
.chip-active{ background:var(--accent); color:#fff !important; border-color:var(--accent); }
.price-range-form{ display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; }
.price-range-form label{ display:flex; flex-direction:column; gap:4px; font-size:12.5px; color:var(--ink-faint); }
.price-range-form input{ width:110px; }
.price-range-form .btn-primary{ padding:10px 20px; }

/* product grid */
.product-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:22px; }
.product-card{
  display:block; text-decoration:none; color:var(--ink); background:var(--bg-raised);
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  transition:transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover, .product-card:focus-visible{ transform:translateY(-3px); box-shadow:var(--shadow-lift); }
.product-photo{ aspect-ratio:4/5; background:var(--bg-sunken); }
.product-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.no-photo{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:var(--ink-faint); font-size:13px; }
.no-photo.large{ aspect-ratio:4/3; }
.no-photo.small{ width:56px; height:56px; border-radius:6px; background:var(--bg-sunken); font-size:10px; }
.product-info{ padding:16px 18px; display:flex; flex-direction:column; }
/* CAT-001: reserve two lines for the name so a one-line and a two-line title produce identical card heights */
.product-info h3{
  font-size:1.05rem; margin-bottom:5px; min-height:2.5em; line-height:1.25;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.dims{ font-family:"IBM Plex Mono", monospace; font-size:12.5px; color:var(--ink-faint); margin-bottom:8px; }
.price{ font-weight:500; color:var(--accent-deep); margin:0; margin-top:auto; }
.price-note{ font-size:12px; color:var(--ink-faint); margin:2px 0 0; }
.availability-badge{
  display:inline-block; margin-top:6px; font-family:"IBM Plex Mono", monospace; font-size:11px;
  text-transform:uppercase; letter-spacing:0.03em; padding:3px 9px; border-radius:20px; border:1px solid var(--line);
  width:fit-content;
}
.availability-badge.in-stock{ background:var(--ok-bg); color:var(--ok); border-color:var(--ok); }
.availability-badge.out-of-stock{ background:var(--bg-sunken); color:var(--ink-faint); text-decoration:line-through; }
.availability-badge.made-to-order{ background:var(--accent-soft-bg); color:var(--accent-ink); border-color:var(--accent); }
.price.large{ font-size:1.3rem; }

@media (max-width:640px){
  .hero-band{ padding:40px 0 44px; }
  .hero-band h1{ font-size:1.7rem; }
}

/* product detail */
.back-link{ display:inline-block; margin-bottom:20px; text-decoration:none; font-size:14px; }
.product-detail{ display:grid; grid-template-columns:1fr 1fr; gap:36px; align-items:start; }
.product-detail-photo img{ width:100%; border-radius:var(--radius); box-shadow:var(--shadow); }
.eyebrow-label{ font-family:"IBM Plex Mono", monospace; font-size:12px; text-transform:uppercase; letter-spacing:0.06em; color:var(--accent-ink); margin-bottom:6px; }
.eyebrow-label.on-dark{ color:var(--accent-light); margin-bottom:10px; }
.spec-list{ display:flex; gap:24px; margin:18px 0; padding:16px; background:var(--bg-raised); border:1px solid var(--line); border-radius:var(--radius); flex-wrap:wrap; }
.spec-list dt{ font-family:"IBM Plex Mono", monospace; font-size:11px; text-transform:uppercase; color:var(--ink-faint); }
.spec-list dd{ margin:2px 0 0; font-weight:500; }
.dimension-note{ font-size:12.5px; color:var(--ink-faint); margin:-10px 0 16px; }
.description{ margin:16px 0; }
@media (max-width: 720px){ .product-detail{ grid-template-columns:1fr; } }

/* MED-002: photo gallery — a main image plus a keyboard-operable thumbnail strip */
.gallery-thumbs{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.gallery-thumb{
  width:64px; height:64px; padding:0; border-radius:6px; overflow:hidden; cursor:pointer;
  border:2px solid var(--line); background:none; flex-shrink:0;
}
.gallery-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.gallery-thumb[aria-pressed="true"]{ border-color:var(--accent); }

/* PDP-001: specifications list — only populated fields ever render */
.specs-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(160px,1fr)); gap:14px 20px;
  margin:18px 0; padding:16px; background:var(--bg-raised); border:1px solid var(--line); border-radius:var(--radius);
}
.specs-grid dt{ font-family:"IBM Plex Mono", monospace; font-size:11px; text-transform:uppercase; color:var(--ink-faint); }
.specs-grid dd{ margin:2px 0 0; }
.quote-note{ font-size:13.5px; color:var(--ink-faint); margin-top:4px; }

.promo-inline{ display:flex; flex-direction:column; gap:8px; margin-top:16px; }
.promo-inline label{ display:flex; flex-direction:column; gap:6px; font-size:14px; font-weight:500; color:var(--ink); }

/* order form product context (ORD-002) */
.order-context{
  display:flex; gap:14px; align-items:center; background:var(--bg-sunken); border:1px solid var(--line);
  border-radius:var(--radius); padding:12px 14px; margin-bottom:18px;
}
.order-context img{ width:64px; height:64px; object-fit:cover; border-radius:6px; flex-shrink:0; }
.order-context .no-photo{ width:64px; height:64px; border-radius:6px; flex-shrink:0; }
.order-context-info strong{ display:block; font-size:15px; }
.order-context-info span{ display:block; font-size:12.5px; color:var(--ink-faint); font-family:"IBM Plex Mono", monospace; }

/* admin multi-photo manager (MED-002) */
.photo-manager-grid{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:6px; }
.photo-manager-item{ width:110px; text-align:center; font-size:11.5px; }
.photo-manager-item img{ width:110px; height:110px; object-fit:cover; border-radius:6px; border:1px solid var(--line); margin-bottom:6px; }
.photo-manager-item.is-cover img{ border-color:var(--accent); border-width:2px; }
.photo-manager-item label{ flex-direction:row !important; justify-content:center; gap:4px !important; font-weight:400 !important; }

/* buttons / forms */
.btn-primary{
  display:inline-block; background:var(--accent); color:#fff !important; text-decoration:none;
  padding:12px 22px; border-radius:8px; font-weight:500; border:none; cursor:pointer; font-size:15px;
  font-family:inherit;
}
.btn-primary.full-width{ width:100%; text-align:center; }
.form-card{
  background:var(--bg-raised); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px; box-shadow:var(--shadow);
}
.form-lede{ margin-top:-4px; }
.stacked-form{ display:flex; flex-direction:column; gap:16px; margin-top:16px; }
.stacked-form label{ display:flex; flex-direction:column; gap:6px; font-size:14px; font-weight:500; color:var(--ink); }
.stacked-form fieldset{ min-width:0; }
.required{ color:var(--accent-deep); }
.optional{ color:var(--ink-faint); font-weight:400; font-size:12.5px; }
input, select, textarea{
  font-family:inherit; font-size:15px; padding:10px 12px; border:1px solid var(--line);
  border-radius:7px; background:var(--bg); color:var(--ink);
}
input:focus, select:focus, textarea:focus{ outline:2px solid var(--accent); outline-offset:1px; }
.dims-group{ border:1px solid var(--line); border-radius:8px; padding:14px; display:flex; gap:14px; flex-wrap:wrap; }
.specs-form-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(180px,1fr)); gap:14px; width:100%; }
.dims-group legend{ font-size:13px; font-weight:500; padding:0 6px; }
.dim-field{ flex:1 1 110px; min-width:0; }
.status-group{ border:1px solid var(--line); border-radius:8px; padding:14px; }
.status-group legend{ font-size:13px; font-weight:500; padding:0 6px; }
.radio-option{ flex-direction:row !important; align-items:center; gap:8px !important; font-weight:400 !important; font-size:14px !important; margin-bottom:6px; }
.radio-option input{ width:auto; }
.form-error{ background:#F6E4DE; color:var(--accent-deep); padding:10px 14px; border-radius:7px; font-size:14px; margin-bottom:16px; }
.hint{ font-size:12.5px; color:var(--ink-faint); margin-top:16px; margin-bottom:0; }
.current-photo{ display:flex; align-items:center; gap:10px; }
.current-photo img{ width:64px; height:64px; object-fit:cover; border-radius:6px; border:1px solid var(--line); }

/* confirmation */
.confirm-card{ text-align:center; padding:48px 24px; }
.confirm-icon{ font-size:40px; margin-bottom:12px; }
.reference{ font-size:14px; color:var(--ink-faint); margin-bottom:24px; }

/* admin dashboard */
.stat-row{ display:flex; gap:16px; margin-bottom:32px; flex-wrap:wrap; }
.stat-tile{
  background:var(--bg-raised); border:1px solid var(--line); border-radius:var(--radius);
  padding:18px 22px; min-width:140px; box-shadow:var(--shadow);
}
.stat-tile.stat-attention{ border-color:var(--accent); background:var(--accent-soft-bg); }
.stat-value{ display:block; font-family:"Fraunces", serif; font-size:2rem; font-weight:600; }
.stat-label{ font-size:13px; color:var(--ink-faint); }
.panel{ background:var(--bg-raised); border:1px solid var(--line); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); }
.panel-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px; }
.panel-actions{ margin-top:24px; }
.empty-state{ color:var(--ink-faint); font-style:italic; }

/* tables */
.table-scroll{ overflow-x:auto; }
.data-table{ width:100%; border-collapse:collapse; font-size:14px; }
.data-table th, .data-table td{ text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top; white-space:nowrap; }
.data-table td:nth-child(2), .data-table td:nth-child(6){ white-space:normal; }
.muted{ color:var(--ink-faint); }
.muted.small, .small{ font-size:12px; }

.status-pill{
  display:inline-block; font-family:"IBM Plex Mono", monospace; font-size:11px; text-transform:uppercase;
  letter-spacing:0.04em; padding:3px 10px; border-radius:20px; border:1px solid var(--line); color:var(--ink-soft);
}
.status-pill.status-new{ background:var(--accent-soft-bg); color:var(--accent-ink); border-color:var(--accent); }
.status-pill.status-contacted{ background:var(--bg-sunken); color:var(--ink-soft); border-color:var(--line); }
.status-pill.status-confirmed{ background:var(--ok-bg); color:var(--ok); border-color:var(--ok); }
.status-pill.status-fulfilled{ background:var(--ok); color:#fff; border-color:var(--ok); }
.status-pill.status-cancelled{ background:var(--bg-sunken); color:var(--ink-faint); text-decoration:line-through; }
.status-pill.status-active{ background:var(--ok-bg); color:var(--ok); border-color:var(--ok); }
.status-pill.status-draft{ background:var(--bg-sunken); color:var(--ink-faint); }
.status-pill.status-archived{ background:var(--bg-sunken); color:var(--ink-faint); text-decoration:line-through; }
.status-pill.as-button{ cursor:pointer; font-family:"IBM Plex Mono", monospace; }

/* admin product list */
.admin-product-list{ display:flex; flex-direction:column; gap:10px; }
.admin-product-row{
  display:flex; align-items:center; gap:16px; background:var(--bg-raised); border:1px solid var(--line);
  border-radius:var(--radius); padding:10px 16px; box-shadow:var(--shadow);
}
.row-photo img{ width:56px; height:56px; object-fit:cover; border-radius:6px; }
.row-info{ display:flex; flex-direction:column; flex:1; min-width:0; }
.row-actions{ display:flex; gap:14px; font-size:13.5px; }
.inline-form{ display:inline; margin:0; }
.link-button{ background:none; border:none; color:var(--accent-ink); text-decoration:underline; cursor:pointer; font:inherit; padding:0; }
.link-button.muted-link{ color:var(--ink-faint); }

@media (max-width: 640px){
  .admin-product-row{ flex-wrap:wrap; }
  .stat-row{ flex-direction:column; }
}

/* public footer */
.site-footer{
  max-width:1080px; margin:48px auto 0; padding:20px 24px; border-top:1px solid var(--line);
  color:var(--ink-faint); font-size:13px; display:flex; gap:8px; align-items:center;
}
.site-footer .sep{ color:var(--line); }
.site-footer a{ color:var(--ink-faint); text-decoration:underline; text-underline-offset:2px; }
.site-footer a:hover{ color:var(--ink-soft); }

/* about page */
.about-section{ margin-bottom:36px; }
.about-section h2{ font-size:1.3rem; margin-bottom:10px; }
.about-section p{ margin-bottom:14px; }
.about-section p:last-child{ margin-bottom:0; }
