:root {
  --navy: #1f4678;
  --cream: #fff8e9;
  --cream-shade: #efe3c8;
  --ink: #17345a;
  --stitch-dark: rgba(23,52,90,.5);
  --stitch-light: rgba(255,248,233,.6);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* The whole page is the card's plaid: navy ground, darker bands both ways, a thin light
   overcheck, and a diagonal twill grain. Everything else is sewn onto it. */
body {
  margin: 0;
  color: var(--cream);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.6;
  background-color: var(--navy);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(90deg, transparent 0 96px, rgba(42,85,144,.4) 96px 100px, transparent 100px 196px, rgba(14,38,70,.28) 196px 260px, transparent 260px 300px),
    repeating-linear-gradient(0deg, transparent 0 96px, rgba(42,85,144,.4) 96px 100px, transparent 100px 196px, rgba(14,38,70,.28) 196px 260px, transparent 260px 300px);
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; border-radius: 4px; }
.patch a:focus-visible, .label a:focus-visible { outline-color: var(--ink); }

/* Header: the business card, as it is printed. */
.hero { text-align: center; padding: 56px 20px 120px; }
.machine { width: min(42vw, 200px); height: auto; display: block; margin: 0 auto 24px; }
.home-link { text-decoration: none; }
h1, .brand { font-weight: 400; font-size: clamp(2.75rem, 9vw, 4.75rem); line-height: 1.05; margin: 0; letter-spacing: .01em; }
.trade { font-size: clamp(1.35rem, 4vw, 1.9rem); line-height: 1.25; letter-spacing: .03em; margin: 12px 0 0; }

/* A patch: cream cloth stitched onto the plaid, with a running stitch just inside its edge. */
.patch {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0,0,0,.12), 0 14px 30px rgba(8,22,45,.35);
}
.patch::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed var(--stitch-dark);
  border-radius: 2px;
  pointer-events: none;
}

.sheet { max-width: 60rem; margin: 0 auto; padding: 0 16px; }
.intro { margin-top: -80px; padding: 44px clamp(28px, 6vw, 64px) 40px; }
.intro-grid { display: grid; gap: 28px 48px; }
.ask { margin-top: 18px; }
@media (min-width: 52rem) { .intro-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }

.lede { font-size: clamp(1.3rem, 3.4vw, 1.6rem); line-height: 1.35; margin: 0 0 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-size: 1.05rem; text-decoration: none; border: 2px solid var(--ink); }
.btn-solid { background: var(--ink); color: var(--cream); font-weight: 600; }
.btn:hover { box-shadow: 0 0 0 3px rgba(23,52,90,.2); }

h2 { font-weight: 600; font-size: 1.5rem; line-height: 1.2; margin: 0 0 14px; }
p { margin: 0 0 1em; }
ul.fixes { list-style: none; padding: 0; margin: 0 0 18px; }
ul.fixes li { padding: 9px 0 9px 28px; position: relative; border-bottom: 1px dashed var(--cream-shade); }
ul.fixes li::before { content: ""; position: absolute; left: 2px; top: 1.2em; width: 14px; height: 2px; background: var(--ink); }
.aside { font-size: 1rem; }

/* How a repair works: the steps are sewing buttons stitched along one seam on the plaid. */
.steps-wrap { padding: 72px 0 24px; }
.steps-wrap h2 { color: var(--cream); font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.4rem); text-align: center; margin-bottom: 32px; }
ol.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 52rem; display: grid; gap: 28px; position: relative; }
ol.steps::before {
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px;
  border-left: 2px dashed var(--stitch-light);
}
ol.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; align-items: center; position: relative; }
.button-mark { width: 56px; height: 56px; display: block; }
ol.steps strong { display: block; font-size: 1.3rem; font-weight: 600; }
@media (min-width: 52rem) {
  ol.steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  ol.steps::before { left: 16%; right: 16%; top: 27px; bottom: auto; border-left: 0; border-top: 2px dashed var(--stitch-light); }
  ol.steps li { grid-template-columns: 1fr; justify-items: center; align-content: start; text-align: center; gap: 14px; }
}

/* Contact: a woven label, sewn down at both ends like the one inside a collar. */
.label-wrap { padding: 56px 0 40px; }
.label {
  max-width: 34rem; margin: 0 auto; text-align: center;
  padding: 36px 64px 30px;
}
.label::before { border-top: 0; border-bottom: 0; inset: 0 18px; border-radius: 0; }
.label h2 { font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.3rem); margin-bottom: 8px; }
.contact-lines { font-size: clamp(1.15rem, 4vw, 1.5rem); line-height: 1.6; margin: 0 0 12px; overflow-wrap: anywhere; }
.contact-lines a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.area { font-size: 1rem; margin: 0; }
.label-actions { justify-content: center; margin: 18px 0 4px; }
.actions-center { justify-content: center; }
@media (max-width: 30rem) { .label { padding: 32px 40px 28px; } .label::before { inset: 0 12px; } }

footer { text-align: center; padding: 8px 20px 40px; font-size: .95rem; }

/* Site nav: a row of stitched tabs across the top of the plaid. */
.site-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 10px; padding: 14px 16px 0; margin: 0; list-style: none; font-size: 1rem; }
.site-nav a { display: inline-block; padding: 6px 16px; border-radius: 999px; text-decoration: none; border: 2px dashed var(--stitch-light); }
.site-nav a:hover { border-color: var(--cream); }
.site-nav a[aria-current="page"] { border-color: var(--cream); border-style: solid; }
@media (max-width: 26rem) { .site-nav { gap: 4px; font-size: .9rem; padding-inline: 8px; } .site-nav a { padding: 5px 10px; } }

/* Inner pages: the same card, smaller, so the content starts sooner. */
.hero-small { padding: 28px 20px 100px; }
.hero-small .machine { width: min(24vw, 96px); margin-bottom: 12px; }
.hero-small .brand { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.hero-small .trade { font-size: clamp(1.1rem, 3.2vw, 1.35rem); margin-top: 6px; }
.page-body { margin-top: -70px; padding: 44px clamp(28px, 6vw, 64px) 40px; }
.page-body h1 { font-weight: 600; font-size: clamp(1.9rem, 5.5vw, 2.4rem); line-height: 1.15; margin-bottom: 16px; }
.page-body h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.more { margin: 0; }
.notice { font-weight: 600; border-left: 4px solid var(--ink); padding: 6px 0 6px 14px; margin: 0 0 18px; }

/* Price list: dotted leaders between service and price, like a tailor's ticket. */
.prices { list-style: none; padding: 0; margin: 0 0 8px; }
.prices li { padding: 14px 0; border-bottom: 1px dashed var(--cream-shade); }
.price-line { display: flex; align-items: baseline; gap: 10px; }
.price-line strong { font-weight: 600; }
.price-line .leader { flex: 1; border-bottom: 2px dotted var(--stitch-dark); transform: translateY(-5px); min-width: 16px; }
.price-line .tier { display: block; font-weight: 400; font-size: .95rem; font-style: italic; }
.price-line .price { white-space: nowrap; font-weight: 600; }
.prices p { margin: 4px 0 0; font-size: 1rem; }
.includes { list-style: none; padding: 0; margin: 10px 0 0; font-size: 1rem; display: grid; gap: 4px 28px; }
@media (min-width: 44rem) { .includes { grid-template-columns: 1fr 1fr; } }
.includes li { position: relative; padding: 2px 0 2px 26px; }
.includes li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.hazards li::before { width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--ink); transform: none; top: .6em; left: 5px; }
.notes { margin: 0; padding-left: 1.2em; }
.notes li { margin-bottom: 8px; }
.cta { margin-top: 32px; padding-top: 24px; border-top: 2px dashed var(--cream-shade); }

/* Inquiry form. */
.form-grid { display: grid; gap: 18px 24px; margin: 24px 0 8px; }
@media (min-width: 44rem) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .wide { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field .hint { font-weight: 400; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fffdf7; border: 2px solid rgba(23,52,90,.35); border-radius: 6px; padding: 10px 12px;
}
.field textarea { min-height: 8em; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,52,90,.2); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.choices label { font-weight: 400; display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.choices input { width: 1.15em; height: 1.15em; accent-color: var(--ink); }
.form-error { color: #8a1c1c; font-weight: 600; min-height: 1.6em; margin: 0 0 8px; }
button.btn { font: inherit; font-size: 1.05rem; cursor: pointer; }
.sent { display: none; }
.sent:target, .sent.show { display: block; }

.todo { background: #ffe58a; color: #3a2b00; padding: 0 .3em; border-radius: 3px; font-style: italic; }

@media (prefers-reduced-motion: no-preference) {
  .intro { animation: lay-down .7s .15s ease-out both; }
  @keyframes lay-down { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
