/* Doty Boutique LLC — shared styles
   Seed 4-5-7-5-4-1-1: earthy, dusty hearth colours (soot, brick, ember, brass, ash) · near-black base, light text ·
   narrow document-like column · serif throughout · pill-button nav · two-column grouped catalog list ·
   sharp corners and 1px rules everywhere except the nav pills · motif: faint brick courses */

@font-face { font-family: "Andiron Serif"; src: url("fonts/andiron-serif-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Andiron Serif"; src: url("fonts/andiron-serif-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Andiron Serif"; src: url("fonts/andiron-serif-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --soot: #171413;
  --surface: #201c1a;
  --ash: #ece4da;
  --muted: #b8ada1;
  --rule: rgba(236, 228, 218, 0.17);
  --rule-strong: rgba(236, 228, 218, 0.4);
  --ember: #e0703a;
  --ember-soft: #f0a050;
  --brick: #a65a43;
  --brass: #c2a46e;
  --serif: "Andiron Serif", Georgia, "Times New Roman", serif;
  --col: 48rem;
  --brickwork: url("assets/motif-brick.svg") 0 0 / 60px 30px repeat;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ash);
  background: var(--soot);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
strong { font-weight: 600; }

h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--ash); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.85rem); }
h3 { font-size: 1.1rem; line-height: 1.35; }
p { margin: 0 0 1em; }

a { color: var(--ember-soft); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ash); }
:focus-visible { outline: 2px solid var(--ember-soft); outline-offset: 3px; }

.col { width: 100%; max-width: var(--col); margin: 0 auto; padding-inline: clamp(1.1rem, 5vw, 2rem); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.5rem 1rem; background: var(--ember); color: var(--soot); font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- header: logo and name, pill-button nav ---------- */
.site-header { background: var(--soot) var(--brickwork); border-bottom: 1px solid var(--rule); }
.header-inner { padding-block: 1.4rem 1.1rem; }
.brand { display: flex; align-items: center; gap: 1rem; color: var(--ash); text-decoration: none; }
.brand img { width: 76px; height: auto; flex: none; }
.brand-name { font-weight: 600; font-size: clamp(1.55rem, 4vw, 2.1rem); line-height: 1.1; }
.brand:hover .brand-name { color: var(--ember-soft); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1.1rem 0 0; padding: 0; }
.main-nav a {
  display: inline-block; padding: 0.3rem 1rem;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  color: var(--ash); font-size: 1rem; line-height: 1.4; text-decoration: none;
}
.main-nav a:hover { border-color: var(--ember-soft); color: var(--ember-soft); }
.main-nav a[aria-current="page"] { background: var(--ember); border-color: var(--ember); color: var(--soot); font-weight: 600; }

/* ---------- document column ---------- */
main { padding-block: clamp(2rem, 5vw, 3rem) 0; }
.industry { margin: 0 0 0.6rem; color: var(--brass); font-style: italic; font-size: 1rem; }
.lede { font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.3rem); color: var(--muted); }
.doc-section { margin-top: clamp(2.5rem, 5vw, 3.25rem); padding-top: clamp(1.6rem, 3.5vw, 2rem); border-top: 1px solid var(--rule); }
.doc-section > h2 { margin-bottom: 0.9rem; }
.hero-fig { margin: 1.75rem 0 0; border: 1px solid var(--rule); background: var(--surface) var(--brickwork); }
.hero-art { display: block; width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.25rem; border: 1px solid var(--ember);
  background: var(--ember); color: var(--soot);
  font-weight: 600; font-size: 1.02rem; line-height: 1.3; text-decoration: none; text-align: center;
  max-width: 100%; overflow-wrap: anywhere;
}
.btn:hover { background: var(--ember-soft); border-color: var(--ember-soft); color: var(--soot); }
.btn-line { background: transparent; color: var(--ember-soft); }
.btn-line:hover { background: transparent; color: var(--ash); border-color: var(--ash); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { border-bottom: 1px solid var(--rule); }
.cat-links a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.7rem 0; color: var(--ash); text-decoration: none; }
.cat-links a:hover .cl-name { color: var(--ember-soft); }
.cat-links img { width: 48px; height: 48px; }
.cl-name { font-weight: 600; letter-spacing: 0.03em; }
.cl-count { color: var(--muted); font-size: 0.95rem; font-style: italic; }
.text-rows li { padding: 0.75rem 0; color: var(--muted); }
.text-rows strong { color: var(--ash); }

/* ---------- catalog: two-column grouped list ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: 0.98rem; }
.group { scroll-margin-top: 1rem; }
.group-head { display: flex; align-items: center; gap: 0.9rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--rule-strong); }
.group-head img { width: 48px; height: 48px; flex: none; }
.group-head h2 { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.45rem); letter-spacing: 0.04em; }
.group-head .count { margin-left: auto; color: var(--muted); font-style: italic; font-size: 0.95rem; white-space: nowrap; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; list-style: none; margin: 0; padding: 0; }
.item { padding: 0.95rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.item-line { display: flex; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.item h3 { margin: 0; font-size: 1.05rem; }
.price { margin: 0; color: var(--brass); font-weight: 600; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.item .desc { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.item.quote .item-line { display: block; }
.quote-price { margin: 0.45rem 0 0; color: var(--brass); font-weight: 600; font-size: 1rem; }
.quote-price a { font-weight: 400; white-space: nowrap; }
.offers li { padding: 0.85rem 0; }
.offers h3 { margin: 0 0 0.2rem; color: var(--ember-soft); }
.offers p { margin: 0; color: var(--muted); }
.note { padding: 1.1rem 1.25rem; border: 1px solid var(--rule-strong); background: var(--surface); }
.note h2 { margin-bottom: 0.3rem; font-size: 1.35rem; }
.note p { margin: 0; color: var(--muted); }

/* ---------- about ---------- */
.facts { margin: 1.5rem 0 0; border-top: 1px solid var(--rule-strong); }
.facts div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.2rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--brass); font-style: italic; }
.facts dd { margin: 0; font-weight: 600; }
.story p { color: var(--muted); }
.story .first { color: var(--ash); }
.story .first::first-letter { float: left; margin: 0.06em 0.1em 0 0; font-weight: 600; font-size: 3.5em; line-height: 0.82; color: var(--ember); }

/* ---------- contact ---------- */
.details { margin: 0; border-top: 1px solid var(--rule-strong); }
.details div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.2rem 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--rule); }
.details dt { color: var(--brass); font-style: italic; }
.details dd { margin: 0; font-weight: 600; }
.details address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule-strong); }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.6rem; font-weight: 600; font-size: clamp(1.45rem, 2.8vw, 1.85rem); line-height: 1.15; }
.hours th, .hours td { padding: 0.55rem 0.25rem; text-align: left; border-bottom: 1px solid var(--rule); }
.hours thead th { color: var(--brass); font-weight: 400; font-style: italic; font-size: 0.95rem; }
.hours tbody th { font-weight: 600; }
.hours td { font-variant-numeric: lining-nums tabular-nums; }
.hours .closed { color: var(--ember-soft); font-style: italic; }
.map-frame { display: block; width: 100%; height: 380px; border: 1px solid var(--rule); background: var(--surface); }
.map-link { margin-top: 0.8rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(3rem, 6vw, 4rem); border-top: 1px solid var(--rule); background: var(--surface) var(--brickwork); color: var(--muted); font-size: 1rem; }
.footer-inner { padding-block: 2rem 1.5rem; }
.footer-name { margin: 0 0 0.3rem; font-weight: 600; font-size: 1.35rem; color: var(--ash); }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--ash); }
.site-footer a:hover { color: var(--ember-soft); }
.footer-contact { margin: 0.6rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--rule); }
.footer-bottom { margin: 1rem 0 0; font-size: 0.9rem; font-style: italic; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 1.06rem; }
  .brand img { width: 60px; }
  .main-nav a { padding: 0.28rem 0.85rem; }
  .items { grid-template-columns: 1fr; }
  .cat-links a { grid-template-columns: 40px minmax(0, 1fr); }
  .cat-links img { width: 40px; height: 40px; }
  .cl-count { grid-column: 2; margin-top: -0.4rem; }
  .group-head { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0.1rem 0.8rem; }
  .group-head img { width: 40px; height: 40px; grid-row: span 2; }
  .group-head .count { grid-column: 2; margin-left: 0; }
  .facts div, .details div { grid-template-columns: 1fr; }
  .map-frame { height: 300px; }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
