/* ============================================================
   Sid Mobile Mechanic — warm paper + hand-drawn ink
   ============================================================ */

:root {
  --bg:        #f8f2e2;
  --bg-2:      #f2e8d2;
  --bg-3:      #efe3c8;
  --ink:       #0a0a0a;
  --ink-soft:  #3a352c;
  --ink-faint: #6b6355;
  --rule:      #0a0a0a;
  --accent:    #b8451f;   /* rust / red-oxide */
  --accent-2:  #1f4d3d;   /* deep pine */
  --accent-3:  #c98a12;   /* amber */
  --paper:     #fffaf0;
  --shadow:    4px 4px 0 var(--ink);

  --wrap: 1180px;
  --pad: clamp(1.15rem, 4vw, 3.5rem);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  color-scheme: light;
}

/* ---- dark mode: same paper, but ink becomes the page ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #14120e;
    --bg-2:      #1c1913;
    --bg-3:      #232019;
    --ink:       #f4ecda;
    --ink-soft:  #d6cdb8;
    --ink-faint: #a49a83;
    --rule:      #f4ecda;
    --accent:    #e2703f;
    --accent-2:  #6fbf9c;
    --accent-3:  #e0a83a;
    --paper:     #1c1913;
    --shadow:    4px 4px 0 rgba(244,236,218,.35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:        #14120e;
  --bg-2:      #1c1913;
  --bg-3:      #232019;
  --ink:       #f4ecda;
  --ink-soft:  #d6cdb8;
  --ink-faint: #a49a83;
  --rule:      #f4ecda;
  --accent:    #e2703f;
  --accent-2:  #6fbf9c;
  --accent-3:  #e0a83a;
  --paper:     #1c1913;
  --shadow:    4px 4px 0 rgba(244,236,218,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1rem);
  line-height: 1.62;
  font-variation-settings: "opsz" 14;
  overflow-x: hidden;
  text-wrap: pretty;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  margin: 0 0 .6em;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 1.4rem + 4.6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem); }
h4 { font-size: 1.06rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .45rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- scroll progress strip (part of the layout) ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 5px;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  z-index: 60;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: fill linear both;
  animation-timeline: scroll(root block);
}
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .7rem var(--pad);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand__mark { width: 40px; height: 40px; color: var(--accent); flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; }
.brand__text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.topnav { display: flex; gap: 1.15rem; flex-wrap: wrap; }
.topnav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.topnav a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.callbtn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.callbtn:hover { color: var(--bg); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.callbtn__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-3) 30%, transparent);
}

.themebtn {
  min-height: 44px;
  min-width: 44px;
  padding: .5rem .8rem;
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.themebtn:hover { background: var(--ink); color: var(--bg); }

/* ---------- shared bits ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}

.lede { font-size: clamp(1.05rem, .98rem + .5vw, 1.28rem); color: var(--ink-soft); max-width: 46ch; }

.sectionhead { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sectionhead p { color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn--ink { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.btn--ink:hover { color: var(--bg); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--big { font-size: 1.15rem; padding: 1rem 2rem; }

/* hand-drawn scribble underline */
mark.scribble {
  background: none;
  color: inherit;
  position: relative;
  white-space: nowrap;
  padding-bottom: .12em;
}
mark.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -.06em;
  height: .34em;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 13c22-6 44-8 66-5s44 7 66 4 44-8 64-6' fill='none' stroke='%23b8451f' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M6 18c26-4 50-5 74-3s50 4 74 2 34-4 42-3' fill='none' stroke='%23b8451f' stroke-width='2' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) mark.scribble::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 13c22-6 44-8 66-5s44 7 66 4 44-8 64-6' fill='none' stroke='%23e2703f' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M6 18c26-4 50-5 74-3s50 4 74 2 34-4 42-3' fill='none' stroke='%23e2703f' stroke-width='2' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] mark.scribble::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 13c22-6 44-8 66-5s44 7 66 4 44-8 64-6' fill='none' stroke='%23e2703f' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M6 18c26-4 50-5 74-3s50 4 74 2 34-4 42-3' fill='none' stroke='%23e2703f' stroke-width='2' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
}

/* ---------- HERO ---------- */
.hero {
  background: var(--bg);
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem);
  border-bottom: 2px solid var(--ink);
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 1.8rem; }
.hero__facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
  font-size: .95rem;
  color: var(--ink-soft);
  border-top: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent);
  padding-top: 1.1rem;
}
.hero__facts strong { font-family: var(--font-mono); color: var(--ink); }

.hero__photo { margin: 0; }
.hero__photo img {
  width: 100%;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--accent);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero__photo figcaption,
.area__photo figcaption {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--ink-faint);
  margin-top: .7rem;
  line-height: 1.5;
}

/* ---------- SERVICES (menu-first) ---------- */
.services {
  background: var(--bg-2);
  padding: clamp(3rem, 7vw, 6.5rem) 0;
  border-bottom: 2px solid var(--ink);
}
.menu {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
}
@media (min-width: 860px) {
  .menu { grid-template-columns: 1fr 1fr; column-gap: clamp(2.5rem, 5vw, 5rem); }
}
.menu__group h3 {
  border-bottom: 2px solid var(--ink);
  padding-bottom: .5rem;
  margin-bottom: 1.1rem;
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem);
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .35rem 1.25rem;
  align-items: baseline;
  padding: .85rem 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--ink) 28%, transparent);
}
.item:last-child { border-bottom: none; }
.item__body h4 { margin: 0 0 .2rem; }
.item__body p { margin: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.item__price {
  font-family: var(--font-mono);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--accent);
}
.menu__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.1rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-left-width: 6px;
  font-size: .92rem;
  color: var(--ink-soft);
  max-width: 78ch;
}

/* ---------- HOW IT WORKS ---------- */
.how {
  background: var(--bg-3);
  padding: clamp(3rem, 7vw, 6.5rem) 0;
  border-bottom: 2px solid var(--ink);
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 1.5rem 1.4rem 1.3rem;
  position: relative;
}
.step:nth-child(odd) { box-shadow: 5px 5px 0 var(--accent-2); }
.step:nth-child(even) { box-shadow: 5px 5px 0 var(--accent); }
.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: .6rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ---------- CARDS ---------- */
.cards-section {
  background: var(--bg);
  padding: clamp(3rem, 7vw, 6.5rem) 0;
  border-bottom: 2px solid var(--ink);
}
.footer-cards {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 900px) {
  .footer-cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.card--hours { box-shadow: 6px 6px 0 var(--accent-3); }
.card--place { box-shadow: 6px 6px 0 var(--accent-2); }
.card--call  { box-shadow: 6px 6px 0 var(--accent); }
.card h3 { font-size: 1.2rem; margin-bottom: .9rem; }
.card address { font-style: normal; line-height: 1.7; margin-bottom: .9rem; }
.card__note { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1rem; }
.card__big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800;
  margin: 0 0 .8rem;
}
.card__big a { color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--accent); }
.card__big a:hover { color: var(--accent); }
.card__link {
  font-family: var(--font-mono);
  font-size: .82rem;
  margin-top: auto;
  font-weight: 600;
}

.hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours th, .hours td { text-align: left; padding: .38rem 0; font-weight: 400; }
.hours th { color: var(--ink-soft); }
.hours td { text-align: right; font-family: var(--font-mono); font-size: .82rem; white-space: nowrap; }
.hours tr { border-bottom: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent); }
.hours tr:last-child { border-bottom: none; }

.paylist { list-style: none; padding: 0; margin: 0; font-size: .88rem; color: var(--ink-soft); }
.paylist li { padding-left: 1.1rem; position: relative; }
.paylist li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: .5rem; height: .5rem;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- SERVICE AREA ---------- */
.area {
  background: var(--accent-2);
  color: var(--bg);
  padding: clamp(3rem, 7vw, 6.5rem) 0;
  border-bottom: 2px solid var(--ink);
}
.area h2 { color: var(--bg); }
.area__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .area__grid { grid-template-columns: 1fr 1fr; }
}
.area__copy p { color: color-mix(in srgb, var(--bg) 88%, transparent); }
.area__list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  display: grid;
  gap: .5rem 1.5rem;
  font-size: .95rem;
}
@media (min-width: 520px) { .area__list { grid-template-columns: 1fr 1fr; } }
.area__list li {
  padding-left: 1.2rem;
  position: relative;
  border-bottom: 1px dashed color-mix(in srgb, var(--bg) 30%, transparent);
  padding-bottom: .45rem;
}
.area__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: .55rem; height: .55rem;
  border: 2px solid var(--accent-3);
  border-radius: 50%;
}
.area__note { font-size: .9rem; color: color-mix(in srgb, var(--bg) 78%, transparent); }
.area__photo { margin: 0; }
.area__photo img {
  width: 100%;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--accent-3);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.area__photo figcaption { color: color-mix(in srgb, var(--bg) 70%, transparent); }

/* ---------- WORK ---------- */
.work {
  background: var(--bg-2);
  padding: clamp(3rem, 7vw, 6.5rem) 0;
  border-bottom: 2px solid var(--ink);
}
.work__grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 700px) { .work__grid { grid-template-columns: 1fr 1fr; } }
.work__item { margin: 0; }
.work__item img {
  width: 100%;
  border: 2px solid var(--ink);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease;
}
.work__item:hover img { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--accent); }
.work__item figcaption {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-top: .85rem;
  line-height: 1.55;
}
.work__item figcaption strong { color: var(--ink); font-family: var(--font-display); font-size: 1rem; }

/* ---------- ABOUT ---------- */
.about {
  background: var(--bg);
  padding: clamp(3rem, 7vw, 6.5rem) 0;
  border-bottom: 2px solid var(--ink);
}
.about__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.4fr 1fr; } }
.about__copy p { color: var(--ink-soft); }
.about__side {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-left-width: 8px;
  padding: 1.5rem 1.5rem 1.2rem;
  align-self: start;
}
.about__side h3 { font-size: 1.15rem; }
.about__side ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--ink-soft); }
.about__side li { padding-bottom: .7rem; border-bottom: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent); }
.about__side li:last-child { border-bottom: none; padding-bottom: 0; }
.about__side strong { color: var(--ink); }

/* ---------- CLOSING ---------- */
.closing {
  background: var(--bg-3);
  padding: clamp(3rem, 7vw, 6rem) 0;
  border-bottom: 2px solid var(--ink);
  text-align: center;
}
.closing__inner { max-width: 62ch; margin-inline: auto; }
.closing blockquote { margin: 0 0 2rem; }
.closing blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.05rem + 1.4vw, 2.05rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: .8rem;
}
.closing blockquote footer {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.closing__note { font-size: .88rem; color: var(--ink-soft); margin-top: 1.2rem; }

/* ---------- FOOTER ---------- */
.sitefoot {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(2.5rem, 5vw, 4rem) 0 5.5rem;
}
.sitefoot a { color: var(--accent-3); }
.sitefoot a:hover { color: var(--bg); }
.sitefoot__inner { display: grid; gap: 1.75rem; }
@media (min-width: 800px) {
  .sitefoot__inner { grid-template-columns: repeat(3, 1fr); }
  .sitefoot__col--right { text-align: right; }
}
.sitefoot__col p { font-size: .9rem; color: color-mix(in srgb, var(--bg) 78%, transparent); margin-bottom: .5rem; }
.sitefoot__col strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--bg); display: block; margin-bottom: .5rem; }
.sitefoot__fine { font-size: .78rem !important; color: color-mix(in srgb, var(--bg) 55%, transparent) !important; }

.claimwrap { margin-top: 2.25rem; }
.claim-banner {
  display: inline-block;
  font-size: .78rem;
  padding: .45rem .8rem;
  background: color-mix(in srgb, var(--bg) 12%, transparent);
  color: color-mix(in srgb, var(--bg) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent);
  text-decoration: none;
  border-radius: 3px;
}
.claim-banner:hover { background: color-mix(in srgb, var(--bg) 20%, transparent); color: var(--bg); }

.muted.attribution {
  position: fixed;
  bottom: .5rem;
  right: .75rem;
  margin: 0;
  font-size: .7rem;
  opacity: .55;
  font-family: var(--font-mono);
  z-index: 55;
}
.muted.attribution a { color: inherit; }

/* ---------- flashlight cursor (signature) ---------- */
.flashlight {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
  background: radial-gradient(
    circle 190px at var(--x, 50%) var(--y, 40%),
    rgba(255, 214, 140, 0) 0%,
    rgba(255, 214, 140, .10) 45%,
    rgba(12, 10, 6, .55) 78%,
    rgba(12, 10, 6, .82) 100%
  );
}
body.lit .flashlight { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .flashlight { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress__bar { animation: none; transform: scaleX(1); }
  .flashlight { display: none; }
  .work__item img { transition: none; }
  .btn, .callbtn { transition: none; }
}

@media (max-width: 720px) {
  .topnav { order: 3; width: 100%; gap: .9rem; font-size: .88rem; }
  .callbtn { margin-left: auto; }
}
