/* Design tokens, reset, typography, buttons, form controls */

/* ------------------------------------------------------------ tokens --- */
:root {
  --bg: #faf7f2;
  --soft: #f2ece3;
  --card: #ffffff;
  --ink: #2a2521;
  /* text colours meet WCAG AA (4.5:1) on both --bg and --soft */
  --muted: #6b6158;
  --line: #e5ddd1;
  --accent: #a35532;
  --accent-dark: #873f22;
  --gold: #b07a1f;
  --sale: #b23a32;
  --ok: #3f6e4f;
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(42, 37, 33, .25);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); overflow-x: hidden; }
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, .h1 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
h1, .h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .8em; color: var(--muted); font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.strong { font-weight: 600; }
.center-block { display: block; text-align: center; margin: 10px 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.only-m { display: none !important; }
@media (max-width: 960px) { .only-m { display: inline-flex !important; } }

/* ---------------------------------------------------------- controls --- */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; letter-spacing: .02em; transition: background .2s, transform .2s; border: 1px solid var(--ink); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.block { display: flex; width: 100%; }
.btn.grow { flex: 1; }
.link { text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.link:hover { color: var(--accent); }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--accent); font-size: .92rem; white-space: nowrap; }
.more .ic { width: 16px; height: 16px; transition: transform .2s; }
.more:hover .ic, a:hover > .more .ic, .svc:hover .more .ic { transform: translateX(3px); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; position: relative; }
.icon-btn:hover { background: var(--soft); }
.fld { display: block; margin-bottom: 14px; }
.fld > span { display: block; font-size: .82rem; font-weight: 500; margin-bottom: 6px; }
.fld input, .fld select, .fld textarea, .sort select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.check { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; }
.badge { display: inline-block; background: #fff; color: var(--ink); font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; }
.badge.sale { background: var(--sale); color: #fff; }
.badge.dark { background: var(--ink); color: #fff; }
.ph { background: repeating-linear-gradient(45deg, var(--soft), var(--soft) 10px, #ebe3d7 10px, #ebe3d7 20px); width: 100%; height: 100%; min-height: 120px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: #ddd3c4; }
.stars svg.on { fill: var(--gold); }
