/* Dock & Lift Service — Nisswa / Gull Lake, MN
   Archetype F (service index). Twelve numbered service blocks behind a
   three-column contents TABLE. No nav bar, nothing sticky or fixed anywhere,
   zero <img> tags — every picture slot is a marked CSS placeholder, because the
   whole argument of this rebuild is that their live site's pictures are hosted
   somewhere they do not control. */

:root {
  --paper: #f1efe8;
  --card: #fbfaf6;
  --ink: #171c19;
  --muted: #545c56;
  --line: #d6d3c8;
  --line-soft: #e5e2d8;
  --pine: #16463a;
  --pine-dk: #0d2b23;
  --pine-mid: #1d5b4a;
  --sand: #e3d3ab;
  --brass: #6d4f18;
  --measure: 62ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.02rem/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }

h1 {
  font-size: clamp(2.05rem, 7.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
  max-width: 17ch;
}

h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); line-height: 1.15; margin: 0; }
h3 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 1.6rem 0 0.5rem;
}

p { margin: 0 0 1rem; max-width: var(--measure); }

a { color: var(--pine); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1.15rem; }

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

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

.masthead {
  background: var(--pine);
  color: var(--paper);
  padding: 1.1rem 0 2.2rem;
  border-bottom: 6px solid var(--sand);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.brand svg { flex: none; }
.brand-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}
.brand-name b { display: block; color: #fff; letter-spacing: 0.13em; }

.masthead h1 { color: #fff; }
.lede {
  font-size: 1.1rem;
  color: var(--sand);
  max-width: 46ch;
  margin-bottom: 1.5rem;
}
.lede b { color: #fff; font-weight: 600; }

/* the call block — first thing on the screen at 390px */
.callblock {
  background: var(--pine-dk);
  border: 1px solid var(--pine-mid);
  border-radius: 4px;
  padding: 1rem;
  max-width: 30rem;
}
.calllabel {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 0.6rem;
}
.callbtn {
  display: block;
  background: var(--sand);
  color: #17130a;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.2rem, 5.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.85rem 0.5rem;
  border-radius: 3px;
  border: 2px solid var(--sand);
}
.callbtn:hover { background: #f2e6c6; }
.callbtn span { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; margin-top: 0.3rem; }
.callblock .alt { margin: 0.75rem 0 0; font-size: 0.92rem; color: var(--sand); max-width: none; }
.callblock .alt a { color: #fff; }

.factrow {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--sand);
  text-transform: uppercase;
}
.factrow li { border-left: 2px solid var(--pine-mid); padding-left: 0.6rem; }

/* ---------- the index table ---------- */

.indexsec { padding: 2.4rem 0 1rem; }
.seclabel {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.5rem;
}
.indexsec > .wrap > p { color: var(--muted); }

table.index {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.2rem;
  font-size: 0.98rem;
}
table.index caption {
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.5rem;
}
table.index th, table.index td { text-align: left; vertical-align: top; }
table.index thead th {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 2px solid var(--ink);
  padding: 0 0.6rem 0.4rem 0;
}
table.index tbody th,
table.index tbody td {
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.6rem 0.6rem 0;
}
table.index tbody th { font-weight: 600; }
table.index .num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--brass);
  width: 3.2rem;
  white-space: nowrap;
}
table.index .when {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}
table.index a { font-weight: 600; }

/* narrow: the table keeps its semantics but stacks */
@media (max-width: 640px) {
  table.index thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.index tr { display: grid; grid-template-columns: 3.2rem 1fr; border-bottom: 1px solid var(--line); padding: 0.55rem 0; }
  table.index tbody th, table.index tbody td { border: 0; padding: 0; }
  table.index .num { grid-row: span 2; }
  table.index .when { padding-top: 0.15rem; }
}

/* ---------- service blocks ---------- */

.part {
  margin: 3rem 0 0;
  padding-top: 1.2rem;
  border-top: 3px solid var(--ink);
}
.part h2 {
  font-size: clamp(1.15rem, 4.2vw, 1.45rem);
  letter-spacing: 0.01em;
}
.part p { color: var(--muted); margin-top: 0.4rem; }

.svc {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.4rem;
  scroll-margin-top: 1rem;
}
.svc-head { display: flex; gap: 0.9rem; align-items: baseline; margin-bottom: 0.9rem; }
.svc-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  color: var(--brass);
  flex: none;
  padding-top: 0.35rem;
}
.svc-when {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.35rem 0 0;
}
.svc-lead { font-size: 1.08rem; }

.svc ul.spec {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  max-width: var(--measure);
}
.svc ul.spec li {
  padding: 0.42rem 0 0.42rem 1.35rem;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  font-size: 0.97rem;
}
.svc ul.spec li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.speclist {
  margin: 0 0 1.2rem;
  max-width: var(--measure);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 3px;
  padding: 0.2rem 0.9rem;
}
.speclist div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.speclist div:last-child { border-bottom: 0; }
.speclist dt {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  flex: 0 0 8.5rem;
  padding-top: 0.15rem;
}
.speclist dd { margin: 0; flex: 1 1 12rem; font-size: 0.96rem; }

/* per-block tap-to-call */
.svc-call {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.6rem;
  background: var(--pine);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.3rem;
}
.svc-call em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sand);
}
.svc-call:hover { background: var(--pine-dk); }

/* ---------- picture placeholders ---------- */

.plate { margin: 1.5rem 0 0; }
.plate-frame {
  border: 2px dashed var(--brass);
  border-radius: 3px;
  background:
    repeating-linear-gradient(135deg, rgba(109, 79, 24, 0.07) 0 10px, rgba(109, 79, 24, 0) 10px 20px),
    var(--card);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.4rem 1rem;
  text-align: center;
}
.plate--tall .plate-frame { min-height: 260px; }
.plate-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--card);
  background: var(--brass);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}
.plate--ready .plate-frame { border-color: var(--pine-mid); background:
    repeating-linear-gradient(135deg, rgba(29, 91, 74, 0.08) 0 10px, rgba(29, 91, 74, 0) 10px 20px),
    var(--card); }
.plate--ready .plate-tag { background: var(--pine); }
.plate-note {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--ink);
  max-width: 34ch;
}
.plate figcaption {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
  padding: 0.55rem 0 0;
  max-width: 52ch;
}
.plate figcaption b { color: var(--ink); }
.plate figcaption code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
  background: #e8e5da;
  color: #2f2a1c;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
  word-break: break-all;
}

/* ---------- call band (their own banner, made to work) ---------- */

.band {
  background: var(--pine-dk);
  color: #fff;
  margin: 3rem 0 0;
  padding: 2rem 0;
}
.band h2 { color: #fff; font-size: clamp(1.35rem, 5.2vw, 1.9rem); margin-bottom: 0.6rem; }
.band p { color: var(--sand); max-width: 48ch; }
.band .callbtn { display: inline-block; margin-top: 0.5rem; }

/* ---------- service area ---------- */

.area { padding: 3rem 0 0; }
.area .wrap { display: flex; flex-direction: column; gap: 1.6rem; }
.mapfig { margin: 0; }
.mapfig svg { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 3px; background: var(--card); }
.mapfig figcaption { font-size: 0.85rem; color: var(--muted); padding-top: 0.5rem; }
.townlist {
  list-style: none;
  margin: 0.8rem 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.townlist li {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 2px;
  padding: 0.3rem 0.6rem;
}

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

.quote { padding: 3rem 0 0; }
form.quote-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.2rem;
  max-width: 34rem;
  margin-top: 1.2rem;
}
form.quote-form label {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.35rem;
}
form.quote-form input,
form.quote-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #a9a496;
  border-radius: 3px;
  padding: 0.65rem 0.7rem;
  margin-bottom: 1rem;
}
form.quote-form textarea { min-height: 6.5rem; resize: vertical; }
form.quote-form button {
  font: inherit;
  font-weight: 700;
  background: var(--pine);
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  width: 100%;
}
form.quote-form button:hover { background: var(--pine-dk); }
.formnote { font-size: 0.85rem; color: var(--muted); margin: 0.9rem 0 0; }

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

footer.site {
  background: var(--pine);
  color: var(--paper);
  margin-top: 3.5rem;
  padding: 2.4rem 0 2.6rem;
  border-top: 6px solid var(--sand);
}
footer.site h2 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.7rem;
}
footer.site p { color: var(--sand); font-size: 0.95rem; max-width: 46ch; }
footer.site a { color: #fff; }
footer.site address { font-style: normal; }
.fmeta {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--pine-mid);
}
.fmeta p { font-size: 0.82rem; line-height: 1.55; color: var(--sand); max-width: 60ch; }

/* ---------- wider screens ---------- */

@media (min-width: 720px) {
  body { font-size: 1.05rem; }
  .masthead { padding: 1.6rem 0 3rem; }
  .svc-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
  .svc--wide .svc-body { display: block; }
  .plate { margin-top: 0; }
  .area .wrap { flex-direction: row; align-items: flex-start; gap: 2.5rem; }
  .area .areatext { flex: 1 1 55%; }
  .mapfig { flex: 1 1 45%; }
  form.quote-form { padding: 1.6rem; }
}

@media (min-width: 960px) {
  .masthead .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; align-items: end; }
  .masthead .brand { grid-column: 1 / -1; margin-bottom: 0.6rem; }
  .masthead .factrow { grid-column: 1 / -1; }
  .callblock { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
