/* Auto Body Center Inc. — Bozeman, MT
   Archetype E: long-form story. One narrative column, marginal era rail,
   one photographic frame in the whole document, no gallery, no nav index. */

:root {
  --paper: #edeff2;
  --card:  #f9fafb;
  --ink:   #14181d;
  --muted: #41474e;
  --navy:  #123c5e;
  --teal:  #0b6155;
  --line:  #ced5dd;
  --dark:  #12222e;
  --light: #e9eef2;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.68;
  overflow-x: hidden;
}

/* ---------- shared column ---------- */

.col {
  width: min(100% - 2.25rem, 40rem);
  margin-inline: auto;
}

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 50;
  font-family: var(--sans);
}
.skip:focus { left: 0; }

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

/* ---------- sticky call bar ---------- */

.callbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 3px solid var(--teal);
}
.callbar-in {
  width: min(100% - 1.5rem, 62rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.1rem;
  padding: 0.35rem 0;
}
.callbar-name {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.35;
}
.callbar-name span {
  display: block;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #b9cbdb;
}
.callbar-tel {
  flex: none;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy);
  background: #ffffff;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 3px;
  white-space: nowrap;
}
.callbar-tel:hover { background: var(--light); }

/* ---------- masthead ---------- */

.masthead {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 2.4rem 0 2.6rem;
}

.stamp {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.6rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.4;
}
.stamp b {
  display: block;
  font-weight: 400;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.mark { width: 40px; height: 40px; flex: none; }

h1 {
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-size: clamp(1.52rem, 5.6vw, 2.2rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 22ch;
}

.lede {
  margin: 0 0 1.7rem;
  font-size: 1.12rem;
  line-height: 1.62;
  color: var(--ink);
}

.callblock { margin: 0; }
.callblock-note {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: var(--teal);
  text-decoration: none;
  padding: 0.82rem 1.15rem;
  border-radius: 3px;
}
.btn:hover { background: #094e45; }

.btn-light {
  color: var(--navy);
  background: var(--paper);
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}
.btn-light:hover { background: #ffffff; }

/* ---------- chapters ---------- */

.chapter {
  position: relative;
  padding: 2.5rem 0 0.4rem;
}

.era {
  margin: 0 0 0.55rem;
  width: min(100% - 2.25rem, 40rem);
  margin-inline: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

h2 {
  margin: 0 0 0.9rem;
  font-family: var(--sans);
  font-size: clamp(1.2rem, 4.4vw, 1.45rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--navy);
}

.chapter p { margin: 0 0 1.05rem; }

a { color: var(--navy); }
a:hover { color: var(--teal); }

.plain {
  margin: 0 0 1.15rem;
  padding: 0.9rem 0 0.3rem;
  list-style: none;
  border-top: 1px solid var(--line);
}
.plain li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 1rem;
}
.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 2px;
  background: var(--teal);
}

/* ---------- the one photographic frame ---------- */

.plate {
  margin: 1.6rem auto 0.6rem;
}
.plate svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.plate figcaption {
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--muted);
}
.plate figcaption b {
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
}

/* ---------- mid-story call band ---------- */

.band {
  margin: 2.6rem 0 0;
  background: var(--dark);
  color: var(--light);
  padding: 2rem 0;
  text-align: center;
}
.band-lead {
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--light);
}
.band p { margin: 0; }

/* ---------- services definition list ---------- */

.services { margin: 0 0 1.1rem; }
.services dt {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.services dd {
  margin: 0.45rem 0 1.1rem;
}

.fineprint {
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- form ---------- */

.quote {
  margin: 1.5rem 0 0.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  padding: 1.3rem 1.15rem 0.9rem;
}
.field { margin: 0 0 1rem; }
.quote label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.quote input,
.quote textarea {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #8a949e;
  border-radius: 3px;
  padding: 0.62rem 0.7rem;
}
.quote textarea { resize: vertical; }
.quote button {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--teal);
  border: 0;
  border-radius: 3px;
  padding: 0.8rem 1.15rem;
  cursor: pointer;
  width: 100%;
}
.quote button:hover { background: #094e45; }

/* ---------- facts ---------- */

.facts {
  display: grid;
  gap: 1.35rem;
  margin-bottom: 1rem;
}
.facts h3 {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.facts p { margin: 0 0 0.4rem; font-size: 1rem; }

/* ---------- footer ---------- */

.foot {
  margin-top: 3rem;
  background: var(--dark);
  color: var(--light);
  padding: 2.4rem 0 2.8rem;
}
.foot a { color: #a9d7cf; }
.foot a:hover { color: #ffffff; }
.foot-name {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.foot-addr { margin: 0 0 1rem; font-size: 1rem; line-height: 1.6; }
.foot-cred {
  margin: 0 0 1.4rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #c3ced6;
}
.foot-copy {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.83rem;
  color: #c3ced6;
}
.foot-disc {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid #2c3f4d;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #b3bfc8;
}

/* ---------- wider screens: the era rail moves into the margin ---------- */

@media (min-width: 46em) {
  body { font-size: 1.1rem; }
  .masthead { padding: 3.4rem 0 3.6rem; }
  .chapter { padding-top: 3.2rem; }
  .lede { font-size: 1.2rem; }
  .facts { grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
  .callbar-name { font-size: 0.84rem; }
  .callbar-name span { display: inline; }
  .callbar-tel { font-size: 1rem; padding: 0.55rem 1.05rem; }
}

@media (min-width: 62.5em) {
  .era {
    position: absolute;
    top: 3.55rem;
    left: max(0.75rem, calc(50% - 27rem));
    width: 6.5rem;
    margin: 0;
    text-align: right;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
  }
  h1 { font-size: 2.4rem; }
}
