/* The Dynamic Bay Auto Repair LLC: bright white with brick red, olive drab, slate and sand; side rail header,
   split hero, dotted-leader menu rows, sharp corners and 1px rules */
@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-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --ink: #26211d;
  --umber: #3a302a;
  --brick: #b0442c;
  --brick-2: #d66042;
  --olive: #6d6a4e;
  --slate: #5f6b6e;
  --sand: #f4eee3;
  --rule: #d9d1c3;
  --muted: #5b544d;
  --serif: "Andiron Serif", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1060px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.wrap { width: min(var(--wrap), 100% - 56px); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px;
  background: var(--brick); color: var(--white); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* vertical side rail */
.frame { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.site-header { border-left: 8px solid var(--brick-2); border-right: 1px solid var(--rule); background: var(--white); }
.rail { position: sticky; top: 0; display: flex; flex-direction: column; min-height: 100vh; padding: 28px 22px 24px; }
.brand { display: block; color: var(--ink); text-decoration: none; }
.brand img { width: 120px; height: 120px; }
.brand-name { display: block; margin-top: 12px; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.main-nav { margin-top: 26px; border-top: 1px solid var(--ink); counter-reset: nav; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { border-bottom: 1px solid var(--rule); counter-increment: nav; }
.main-nav a { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.main-nav a::before { content: "0" counter(nav); color: var(--olive); font-size: 0.78rem; letter-spacing: 0.08em; }
.main-nav a:hover { color: var(--brick); }
.main-nav a[aria-current="page"] { color: var(--brick); box-shadow: inset 0 -3px 0 var(--brick-2); }
.rail-contact { margin-top: auto; padding-top: 24px; font-size: 0.92rem; color: var(--muted); }
.rail-contact p { margin: 0 0 6px; }
.rail-contact .phone { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.main-col { min-width: 0; }

/* sections */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.sand { background: var(--sand) url("assets/motif-lane.svg") 0 0 / 120px 40px; }
.tag { display: inline-block; margin: 0 0 16px; padding: 3px 10px; border: 1px solid var(--olive); color: var(--olive); font-weight: 600; font-size: 0.86rem; }
.kicker { display: block; margin-bottom: 6px; color: var(--brick); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.lede { font-size: 1.12rem; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn { display: inline-block; padding: 12px 22px; background: var(--brick); color: var(--white); font-weight: 600; text-decoration: none; border: 1px solid var(--brick); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-line { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }

/* split hero */
.split { display: grid; grid-template-columns: 1fr 1.08fr; gap: 44px; align-items: center; }
.hero-art { width: 100%; border: 1px solid var(--ink); }
.cat-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.cat-strip li + li { border-left: 1px solid var(--rule); }
.cat-strip a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 18px; color: var(--ink); text-decoration: none; }
.cat-strip a:hover { background: var(--sand); }
.cat-strip img { width: 56px; height: 56px; }
.cat-strip strong { font-family: var(--serif); font-size: 1.12rem; }
.cat-strip span { color: var(--muted); font-size: 0.9rem; }
.two { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: start; }
.numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; border-top: 1px solid var(--ink); }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.numbered li::before { content: counter(n, decimal-leading-zero); color: var(--brick); font-weight: 600; font-size: 0.9rem; padding-top: 2px; }
.numbered strong { color: var(--ink); }
.spot { border: 1px solid var(--ink); border-top: 6px solid var(--brick-2); padding: 28px; background: var(--white); }
.spot p { color: var(--muted); }
.amount { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--brick); }

/* menu rows with dotted leaders */
.menu-cat { padding-top: 10px; margin-bottom: 40px; scroll-margin-top: 16px; }
.menu-cat:last-child { margin-bottom: 0; }
.menu-head { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.menu-head img { width: 52px; height: 52px; }
.menu-head h2 { margin: 0; font-size: clamp(1.25rem, 2.3vw, 1.6rem); letter-spacing: 0.03em; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.leader { display: flex; align-items: baseline; gap: 10px; }
.leader h3 { margin: 0; flex: 0 1 auto; }
.leader .dots { flex: 1 1 40px; min-width: 24px; border-bottom: 2px dotted var(--slate); transform: translateY(-5px); }
.leader .price { flex: 0 0 auto; font-family: var(--serif); font-weight: 700; color: var(--brick); white-space: nowrap; }
.leader .price.quote { white-space: normal; max-width: 15em; text-align: right; font-size: 0.98rem; }
.menu p { margin: 4px 0 0; color: var(--muted); font-size: 0.97rem; max-width: 46em; }
.menu .call { display: inline-block; margin-top: 6px; font-weight: 600; font-size: 0.92rem; }
.jump { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.jump li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.jump a { display: block; padding: 9px 16px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.94rem; }
.jump a:hover { background: var(--sand); color: var(--brick); }
.offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.offers li { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--rule); }
.offers li:nth-child(even) { padding: 22px 0 22px 24px; border-left: 1px solid var(--rule); }
.offers p { margin: 0 0 8px; color: var(--muted); }
.offers p:last-child { margin-bottom: 0; }

/* about */
.story p { color: var(--muted); font-size: 1.05rem; }
.story p.first { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.3rem; line-height: 1.5; }
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--olive); font-weight: 600; font-size: 0.86rem; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.why li { padding: 24px 24px 24px 0; color: var(--muted); }
.why li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.why strong { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }

/* contact */
.details { margin: 0 0 20px; border-top: 1px solid var(--ink); }
.details div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.details dt { color: var(--olive); font-weight: 600; font-size: 0.86rem; }
.details dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-family: var(--serif); font-weight: 700; font-size: 1.6rem; margin-bottom: 10px; }
.hours thead th { text-align: left; padding: 8px 0; color: var(--olive); font-size: 0.86rem; border-bottom: 1px solid var(--ink); }
.hours tbody th, .hours tbody td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.hours tbody th { font-weight: 600; padding-right: 14px; }
.hours td { white-space: nowrap; }
.hours td.closed { color: var(--muted); }
.hours .note { display: block; white-space: normal; color: var(--muted); font-size: 0.92rem; }
.hours-note { margin: 16px 0 0; padding: 12px 16px; border-left: 4px solid var(--brick-2); background: var(--sand); }
.map-frame { display: block; width: 100%; height: 420px; border: 1px solid var(--ink); background: var(--sand); }
.map-link { margin: 12px 0 0; }

/* footer */
.site-footer { background: var(--umber); color: #e6dccb; padding: 40px 0 24px; }
.site-footer a { color: #f3b49f; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 28px; }
.footer-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--white); margin-bottom: 6px; }
.footer-title { color: var(--white); font-weight: 600; margin-bottom: 8px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid rgba(230, 220, 203, 0.25); font-size: 0.88rem; }

@media (max-width: 1100px) {
  .split, .two { grid-template-columns: 1fr; gap: 28px; }
  .cat-strip { grid-template-columns: 1fr 1fr; }
  .cat-strip li:nth-child(3) { border-left: 0; }
  .cat-strip li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 860px) {
  .frame { grid-template-columns: 1fr; }
  .site-header { border-left: 0; border-right: 0; border-top: 8px solid var(--brick-2); border-bottom: 1px solid var(--ink); }
  .rail { position: static; min-height: 0; padding: 16px 20px 0; display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: center; }
  .brand { display: contents; }
  .brand img { width: 64px; height: 64px; }
  .brand-name { margin: 0; font-size: 1.1rem; }
  .main-nav { grid-column: 1 / -1; margin: 14px -20px 0; border-top: 1px solid var(--rule); }
  .main-nav ul { display: grid; grid-template-columns: 1fr 1fr; }
  .main-nav li:nth-child(odd) { border-right: 1px solid var(--rule); }
  .main-nav a { padding: 11px 20px; }
  .rail-contact { display: none; }
  .wrap { width: min(var(--wrap), 100% - 40px); }
}
@media (max-width: 680px) {
  .section { padding: 40px 0; }
  .offers, .why, .footer-grid { grid-template-columns: 1fr; }
  .offers li, .offers li:nth-child(even) { padding: 18px 0; border-left: 0; }
  .why li, .why li + li { padding: 20px 0; border-left: 0; }
  .why li + li { border-top: 1px solid var(--rule); }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .cat-strip { grid-template-columns: 1fr; }
  .cat-strip li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .leader { flex-wrap: wrap; }
  .leader .dots { display: none; }
  .leader h3 { flex-basis: 100%; }
  .leader .price.quote { text-align: left; }
  .map-frame { height: 320px; }
}
