/* American Heritage Link LLC — shared styles
   Seed 1-3-5-6-5-1-2: muted natural auto-paint palette (slate blue, primer grey, sage, sand, brick) · pale slate
   tint base · editorial columns with a narrow side column · monospace labels and prices (JetBrains Mono) + Outfit
   body · pill-button nav · category index column + item rows · sharp corners, 1px rules · motif: paint-chip strip */

@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --tint: #eef2f5;
  --paper: #f8fafb;
  --slate: #4a6178;
  --slate-deep: #17222d;
  --primer: #8b8f92;
  --sage: #6f8062;
  --sand: #e8dcc4;
  --brick: #a35d48;
  --brick-deep: #8a4a37;
  --ink: #17222d;
  --muted: #4f5d69;
  --line: #ccd5dd;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --chips: url("assets/motif-chips.svg") 0 0 / 96px 10px repeat-x;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--tint); }
body { margin: 0; font-family: var(--sans); font-size: 1.08rem; line-height: 1.66; color: var(--ink); background: var(--tint); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
strong { font-weight: 700; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.45em; color: var(--slate-deep); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1em; }
a { color: var(--brick-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--slate-deep); }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: clamp(1.1rem, 4vw, 2.4rem); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.45rem 1rem; background: var(--brick); color: #ffffff; font-family: var(--mono); }
.skip-link:focus { top: 1rem; }
.chips { height: 10px; background: var(--chips); }
.mono { font-family: var(--mono); }

/* ---------- header: logo + pill-button nav ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 2rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--slate-deep); text-decoration: none; }
.brand img { width: 64px; height: auto; flex: none; }
.brand-name { font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.1; }
.brand:hover .brand-name { color: var(--brick-deep); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-block; padding: 0.38rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #ffffff; color: var(--slate-deep); font-family: var(--mono); font-weight: 700; font-size: 0.86rem; text-decoration: none; }
.main-nav a:hover { border-color: var(--slate); }
.main-nav a[aria-current="page"] { background: var(--slate-deep); border-color: var(--slate-deep); color: #ffffff; }

/* ---------- editorial frame: main column + narrow side column (right) ---------- */
.section { padding-block: clamp(2.4rem, 5.5vw, 4rem); }
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; }
.side { border-top: 1px solid var(--slate-deep); padding-top: 0.9rem; }
.side > * + * { margin-top: 1.1rem; }
.side h2, .side h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.side p { color: var(--muted); font-size: 0.98rem; }
.cols { column-count: 2; column-gap: 2.6rem; column-rule: 1px solid var(--line); }
.cols > * { break-inside: avoid; }
.hero { padding-block: clamp(2.2rem, 5vw, 3.4rem); }
.hero-art { display: block; width: 100%; margin-top: 1.6rem; border: 1px solid var(--line); }
.label { display: inline-block; margin: 0 0 1rem; padding: 0.2rem 0.6rem; border: 1px solid var(--slate-deep); background: #ffffff; color: var(--slate-deep); font-family: var(--mono); font-size: 0.8rem; font-weight: 700; line-height: 1.5; }
.lede { font-size: clamp(1.12rem, 2vw, 1.3rem); color: var(--muted); max-width: 50ch; }
.kicker { margin: 0 0 0.35rem; color: var(--brick-deep); font-family: var(--mono); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.68rem 1.25rem; background: var(--slate-deep); color: #ffffff; font-family: var(--mono); font-weight: 700; font-size: 0.92rem; line-height: 1.25; text-align: center; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; border: 1px solid var(--slate-deep); }
.btn:hover { background: var(--brick); border-color: var(--brick); color: #ffffff; }
.btn-line { background: transparent; color: var(--slate-deep); }
.btn-line:hover { background: var(--slate-deep); color: #ffffff; border-color: var(--slate-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.side .btn { width: 100%; }
.band { background: var(--paper); border-block: 1px solid var(--line); }

.mini-hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.mini-hours caption { caption-side: top; text-align: left; padding-bottom: 0.3rem; color: var(--brick-deep); font-family: var(--mono); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.mini-hours th, .mini-hours td { padding: 0.3rem 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini-hours th { font-weight: 400; color: var(--muted); padding-right: 0.5rem; }
.mini-hours td { font-family: var(--mono); font-size: 0.82rem; text-align: right; }
.note { display: block; font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }
.closed { color: var(--brick-deep); font-weight: 700; }

/* ---------- home ---------- */
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { break-inside: avoid; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.lines a { display: flex; align-items: center; gap: 0.85rem; color: var(--ink); text-decoration: none; }
.lines img { width: 50px; height: 50px; flex: none; }
.lines .l-name { display: block; font-weight: 700; font-size: 1.06rem; line-height: 1.25; color: var(--slate-deep); }
.lines .l-count { display: block; font-family: var(--mono); color: var(--muted); font-size: 0.8rem; }
.lines a:hover .l-name { color: var(--brick-deep); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { break-inside: avoid; position: relative; padding: 0 0 0.95rem 1.5rem; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.65rem; height: 0.65rem; background: var(--brick); }
.ticks strong { color: var(--ink); }
.spot { padding: 0.9rem 0 0; border-top: 1px solid var(--brick); }
.spot h3 { margin-bottom: 0.2rem; }
.spot .price { display: inline-block; margin-top: 0.35rem; font-family: var(--mono); font-weight: 700; color: var(--brick-deep); }

/* ---------- catalog: category index column + item rows ---------- */
.catalog { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(1.4rem, 3.5vw, 2.8rem); align-items: start; }
.index { position: sticky; top: 1.2rem; border-top: 1px solid var(--slate-deep); padding-top: 0.8rem; }
.index p { margin: 0 0 0.5rem; color: var(--brick-deep); font-family: var(--mono); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.index ol { list-style: none; margin: 0; padding: 0; counter-reset: ix; }
.index li { counter-increment: ix; border-bottom: 1px solid var(--line); }
.index a { display: flex; gap: 0.6rem; padding: 0.55rem 0; color: var(--ink); font-weight: 700; font-size: 0.98rem; line-height: 1.3; text-decoration: none; }
.index a::before { content: counter(ix, decimal-leading-zero); flex: none; font-family: var(--mono); font-size: 0.82rem; color: var(--brick-deep); padding-top: 0.1rem; }
.index a:hover { color: var(--brick-deep); }
.cat { scroll-margin-top: 1rem; }
.cat + .cat { margin-top: clamp(2.2rem, 5vw, 3rem); }
.cat-head { display: flex; align-items: center; gap: 0.85rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--slate-deep); }
.cat-head img { width: 52px; height: 52px; flex: none; }
.cat-head h2 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.irow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1.6rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.irow h3 { margin: 0 0 0.12rem; font-size: 1.08rem; }
.irow p { margin: 0; color: var(--muted); font-size: 1rem; }
.irow .fee { align-self: start; text-align: right; font-family: var(--mono); font-weight: 700; font-size: 1.04rem; color: var(--slate-deep); white-space: nowrap; }
.irow .fee.quote { white-space: normal; max-width: 13rem; font-size: 0.82rem; line-height: 1.4; color: var(--brick-deep); }
.irow .fee.quote a { display: block; color: var(--slate-deep); white-space: nowrap; }
.offers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.offers li { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.offers h3 { margin-bottom: 0.2rem; }
.offers p { margin: 0; color: var(--muted); }
.offers .price { font-family: var(--mono); font-weight: 700; color: var(--brick-deep); white-space: nowrap; }

/* ---------- about / contact ---------- */
.facts { margin: 0; }
.facts div { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--brick-deep); font-family: var(--mono); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 700; }
.story p { color: var(--muted); }
.story .first { color: var(--ink); font-size: 1.2rem; }
.story .kicker { color: var(--brick-deep); }
.story .label { color: var(--slate-deep); }
.details { margin: 0; border-top: 1px solid var(--slate-deep); }
.details div { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--brick-deep); font-family: var(--mono); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.details dd { margin: 0; font-weight: 700; }
.details address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.4rem; font-weight: 700; font-size: 1.25rem; }
.hours th, .hours td { padding: 0.45rem 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours thead th { color: var(--brick-deep); font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hours tbody th { font-weight: 700; padding-right: 0.8rem; }
.hours td { font-family: var(--mono); font-size: 0.92rem; }
.map-frame { display: block; width: 100%; height: 380px; border: 1px solid var(--line); background: var(--paper); }
.map-link { margin-top: 0.8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--slate-deep); color: #c3ced8; font-size: 0.97rem; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: var(--sand); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 1.6rem; padding-block: 2rem 1.3rem; }
.footer-name { margin: 0 0 0.3rem; font-weight: 700; font-size: 1.3rem; color: #ffffff; }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.45rem; color: var(--sand); font-family: var(--mono); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-bottom { margin: 0; padding-block: 0.9rem 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-family: var(--mono); font-size: 0.78rem; }

@media (max-width: 960px) {
  .ed, .catalog { grid-template-columns: 1fr; }
  .index { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1.03rem; }
  .brand img { width: 54px; }
  .cols { column-count: 1; }
  .irow { grid-template-columns: 1fr; }
  .irow .fee { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .map-frame { height: 300px; }
}

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