/* Ink, paper and a small amount of brick red. */
:root {
  color-scheme: light;
  --paper: #f6f0e4;
  --alt: #eee5d6;
  --card: #fffbf2;
  --ink: #17262e;
  --muted: #4f5554;
  --line: #cbbfaf;
  --field: #fffdf6;
  --field-line: #777c76;
  --label: #913d31;
  --night: #192831;
  --night-deep: #111c23;
  --night-line: #67767a;
  --night-muted: #e1d8c8;
  --white: #fff3da;
  --light-accent: #edbfa4;
  --button: #21343f;
  --button-hover: #304751;
  --button-text: #fff3da;
  --closing: #e9d9be;
  --display: "Newsreader", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #202c33;
    --alt: #25343c;
    --card: #2d3d46;
    --ink: #faf0da;
    --muted: #ded4c3;
    --line: #687578;
    --field: #202b32;
    --field-line: #969e9a;
    --label: #edbfa4;
    --button: #f2e3c9;
    --button-hover: #fff3da;
    --button-text: #192831;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.55 var(--body); overflow-wrap: break-word; }
h1, h2, h3, p, ul, ol { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--display); line-height: 1; text-wrap: balance; }
h1, h2 { font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: clamp(2.45rem, 4.4vw, 4rem); margin-bottom: 14px; }
h3 { font-size: clamp(1.42rem, 2.5vw, 1.82rem); font-weight: 600; margin-bottom: 10px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--label); outline-offset: 4px; }
.site-footer :focus-visible, .callbar :focus-visible { outline-color: var(--light-accent); }
.closing :focus-visible { outline-color: var(--night); }
.wrap { width: min(100%, 1320px); margin-inline: auto; padding-inline: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; z-index: 10; top: 8px; left: 16px; transform: translateY(calc(-100% - 16px)); padding: 10px 16px; background: var(--light-accent); color: var(--night); }
.skip:focus { transform: none; }
.muted { color: var(--muted); }
.mono-label, .hero-kicker { font: 600 0.76rem/1.4 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; }
.mono-label { display: block; color: var(--label); margin-bottom: 10px; }

/* Wordmark and navigation */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 26px; padding-block: 14px; }
.brand-block { flex: 1 1 15rem; min-width: 0; }
.brand { display: flex; gap: 12px; align-items: center; width: fit-content; text-decoration: none; }
.brand-mark { flex: none; width: 42px; height: 42px; padding: 5px; color: var(--label); }
.bm-ring, .bm-hand { fill: none; stroke: currentColor; }
.bm-dot { fill: currentColor; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: 600 1.9rem/0.95 var(--display); }
.brand-sub { font: 700 0.68rem/1.3 var(--mono); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 4px; }
.brand-tagline { margin: 5px 0 0 54px; color: var(--muted); font-size: 0.84rem; line-height: 1.25; text-wrap: pretty; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px clamp(13px, 1.7vw, 26px); }
.nav a:not(.btn) { padding: 8px 0 6px; border-bottom: 2px solid transparent; text-decoration: none; font-weight: 700; }
.nav a:not(.btn):is(:hover, [aria-current="page"]) { border-bottom-color: var(--label); }
.nav .btn { margin-left: 4px; }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 11px 20px; background: var(--button); color: var(--button-text); border: 1px solid transparent; border-radius: 2px; font: 700 1.03rem/1.2 var(--body); text-decoration: none; text-align: center; cursor: pointer; transition: background-color 180ms ease; }
.btn:hover { background: var(--button-hover); }
.btn-arrow::after { content: ""; width: 0.49em; height: 0.49em; margin-right: 2px; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
.btn-block { width: 100%; }
.link, .more { font-weight: 700; text-decoration-color: var(--label); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link:hover, .more:hover { color: var(--label); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* The homepage reads as a shop sign and a short price board. */
.hero, .contact-board { background: var(--night); color: var(--white); }
.hero { padding-block: clamp(26px, 4vw, 56px) clamp(24px, 3.5vw, 48px); }
.hero-masthead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding-block: 11px; border-block: 1px solid var(--night-line); }
.hero-kicker { margin: 0; color: var(--light-accent); }
.hero h1 { color: var(--white); font-size: clamp(3.25rem, 13.4vw, 12rem); line-height: 0.87; letter-spacing: -0.055em; margin: clamp(22px, 4vw, 55px) 0 20px; text-wrap: initial; }
.lede { max-width: 36em; margin-bottom: 24px; color: var(--muted); font-size: 1.16rem; line-height: 1.5; }
.hero-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 38px; }
.hero-intro .lede { max-width: 49ch; margin: 0; color: var(--night-muted); }
.hero :focus-visible, .contact-board :focus-visible { outline-color: var(--light-accent); }
.hero .btn, .contact-board .btn { background: var(--white); color: var(--night); }
.hero .btn:hover, .contact-board .btn:hover { background: var(--closing); }
.hero .link, .contact-board .link { color: var(--white); text-decoration-color: var(--light-accent); }
.hero .link:hover, .contact-board .link:hover { color: var(--light-accent); }
.hero-rates { margin-top: clamp(28px, 5vw, 62px); }
.hero-rate-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-bottom: 8px; }
.hero-rate-heading h2 { margin: 0; color: var(--white); font-size: clamp(1.45rem, 2.5vw, 2rem); }
.hero-rate-heading p { color: var(--night-muted); margin: 0; font-size: 0.9rem; }
.hero-jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-block: 1px solid var(--night-line); }
.hero-jobs li + li { border-left: 1px solid var(--night-line); }
.hero-jobs a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; align-items: baseline; gap: 0 10px; height: 100%; padding: 13px clamp(10px, 1.6vw, 22px); text-decoration: none; }
.hero-jobs a:hover { background: #263740; }
.hero-jobs a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.hero-jobs span { font-weight: 700; }
.hero-jobs strong { grid-column: 2; grid-row: span 2; color: var(--white); font: 600 clamp(1.8rem, 3vw, 2.55rem)/1 var(--display); }
.hero-jobs small { grid-column: 1; color: var(--night-muted); font-size: 0.85rem; }

.route-strip { background: var(--closing); color: var(--night); border-bottom: 1px solid #c2ad8b; }
.route-strip-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-block: 13px; }
.route-strip .mono-label { margin: 0; color: var(--night); }
.route-strip ul { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 2px 16px; list-style: none; margin: 0; padding: 0; font-weight: 700; }
.route-strip .more { color: var(--night); text-decoration-color: #913d31; }
.route-strip a:focus-visible { outline-color: var(--night); }

.page-head { padding-block: clamp(30px, 4vw, 58px); background: var(--alt); border-bottom: 1px solid var(--line); }
.page-head-in { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 12px 44px; }
.page-head h1 { font-size: clamp(3rem, 5.5vw, 5.4rem); line-height: 0.95; margin: 0; }
.page-head .lede { margin-bottom: 0; }

.contact-board { padding-block: clamp(38px, 7vw, 100px); border-bottom: 1px solid var(--night-line); }
.contact-board-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 38px clamp(32px, 7vw, 90px); align-items: start; }
.contact-board .mono-label { color: var(--light-accent); }
.contact-direct h1 { color: var(--white); font-size: clamp(2.9rem, 6.2vw, 6rem); margin-bottom: 17px; }
.contact-number { display: inline-block; color: var(--white); font: 600 clamp(2.1rem, 4.1vw, 4rem)/1 var(--display); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--light-accent); text-underline-offset: 6px; }
.contact-direct > p:not(.mono-label) { max-width: 44ch; margin: 22px 0 18px; color: var(--night-muted); }
.contact-area { padding-top: 13px; border-top: 2px solid var(--light-accent); }
.contact-area h2 { color: var(--white); margin-bottom: 12px; font-size: clamp(2rem, 3.9vw, 3.4rem); }
.contact-area ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; list-style: none; margin: 0 0 14px; padding: 0; }
.contact-area li { padding-block: 8px; border-bottom: 1px solid var(--night-line); font-weight: 700; }
.contact-area > p:last-child { color: var(--night-muted); margin-bottom: 0; }

/* Service directory and work order */
.section { padding-block: clamp(43px, 6.3vw, 84px); }
.alt { background: var(--alt); border-block: 1px solid var(--line); }
.section-head { max-width: 42em; margin-bottom: 24px; }
.section-head p { color: var(--muted); margin: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px clamp(30px, 6vw, 86px); align-items: start; }
.service-directory { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px clamp(32px, 7vw, 92px); }
.service-directory .section-head { margin-bottom: 0; }
.service-directory .section-head p { max-width: 32ch; }
.service-grid { border-top: 2px solid var(--ink); }
.service-link { display: grid; grid-template-columns: 30px minmax(0, 1fr) 10px; align-items: center; gap: 14px; padding: 15px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: color 180ms ease; }
.service-link:hover, .service-art { color: var(--label); }
.service-art svg, .icon svg { display: block; width: 30px; height: 30px; }
.service-link h3 { margin-bottom: 3px; }
.service-link:hover h3 { color: inherit; }
.service-link::after { content: ""; width: 8px; height: 8px; border-top: 2px solid var(--label); border-right: 2px solid var(--label); transform: rotate(45deg); }
.service-link p { color: var(--muted); margin: 0; }
.pricelist { list-style: none; margin: 0; padding: 0 clamp(13px, 2vw, 25px); min-width: 0; border: 1px solid var(--line); border-top: 4px solid var(--label); background: var(--card); }
.pricelist li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 45%); align-items: baseline; gap: 12px; padding-block: 13px; border-bottom: 1px dashed var(--line); }
.pricelist li:last-child { border: 0; }
.pl-job { min-width: 0; font-weight: 700; }
.pl-price { color: var(--ink); text-align: right; font: 700 clamp(1.4rem, 2.5vw, 1.9rem)/1 var(--display); }
.pl-price small { display: block; margin-top: 4px; color: var(--muted); font: 400 0.83rem/1.25 var(--body); }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; padding: 5px 6px; background: var(--alt); color: var(--label); border: 1px solid var(--line); font: 700 0.77rem var(--mono); }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }
.area-panel { padding: clamp(19px, 3vw, 36px); background: var(--alt); border: 1px solid var(--line); border-left: 4px solid var(--label); }

/* Forms, detailed services and pricing */
.card { min-width: 0; padding: clamp(17px, 3vw, 30px); background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--label); }
.quote h2 { font-size: 2.1rem; margin-bottom: 10px; }
.field { margin-bottom: 14px; min-width: 0; }
.field label { display: block; margin-bottom: 5px; font-weight: 700; font-size: 0.95rem; }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; background: var(--field); color: var(--ink); border: 1px solid var(--field-line); border-radius: 2px; font: inherit; }
textarea { min-height: 112px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 0 14px; }
.note-small { margin: 0 0 13px; color: var(--muted); font-size: 0.9rem; }
.status { margin: 14px 0 0; padding: 10px 12px; border-left: 4px solid var(--label); background: var(--alt); font-weight: 600; }
.checks, .jobs, .contact-list { list-style: none; padding: 0; margin: 0 0 16px; }
.checks li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 1px; top: 0.68em; width: 6px; height: 6px; background: var(--label); transform: rotate(45deg); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 0 0 10px; border-bottom: 2px solid var(--ink); color: var(--label); font: 700 0.78rem/1.4 var(--mono); text-transform: uppercase; }
td { padding: 14px 0; border-bottom: 1px solid var(--line); }
th:last-child, td:last-child { text-align: right; padding-left: 12px; }
td:last-child { vertical-align: top; }
td .p { display: block; font: 700 1.55rem/1 var(--display); }
td .pn { display: block; margin-top: 4px; color: var(--muted); font-size: 0.85rem; }
.price-notes { margin-top: 30px; }
.price-notes h2 { font-size: 2.15rem; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 56px; padding-block: 32px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.detail:first-child { border-top: 0; padding-top: 0; }
.detail-intro { min-width: 0; }
.detail-intro h2 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); }
.detail-intro p, .jobs span { color: var(--muted); }
.icon { width: fit-content; color: var(--label); margin-bottom: 12px; }
.jobs li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.jobs li:first-child { padding-top: 0; }
.jobs li:last-child { border-bottom: 0; }
.jobs strong { display: block; }
.nots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0 26px; }
.nots li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.nots li::before { content: "×"; color: var(--label); font-weight: 700; }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.faq details p { color: var(--muted); margin: 0 0 16px; }
.prose p { max-width: 38em; }
.contact-list li { margin-bottom: 16px; }
.contact-list .mono-label { margin-bottom: 3px; }
.contact-list .big, .phone { font: 700 2.25rem/1 var(--display); text-decoration: none; }
.contact-list .big:hover, .phone:hover { text-decoration: underline; text-underline-offset: 4px; }

.closing { background: var(--closing); color: var(--night); padding-block: clamp(32px, 5vw, 60px); }
.closing-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.closing-copy { flex: 1 1 390px; min-width: 0; }
.closing h2 { color: var(--night); font-size: clamp(2.5rem, 4.8vw, 4.2rem); margin-bottom: 8px; }
.closing p { margin: 0; }
.closing-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.closing .btn { background: var(--night); color: var(--white); }
.closing .btn:hover { background: #304751; }
.site-footer { background: var(--night-deep); color: var(--night-muted); padding-top: 36px; font-size: 0.96rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 22px; padding-bottom: 26px; }
.footer-grid h2 { margin-bottom: 10px; color: var(--light-accent); font: 700 0.78rem/1.4 var(--mono); letter-spacing: 0.08em; }
.footer-grid p { margin: 0 0 6px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: var(--white); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-name { font: 700 1.6rem/1.15 var(--display); color: var(--white); }
.footer-base { padding-block: 16px; border-top: 1px solid var(--night-line); font-size: 0.88rem; }
.callbar { display: none; }

/* Keep navigation still while the next page heading comes into view. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  .site-header { view-transition-name: site-header; }
  .callbar { view-transition-name: callbar; }
  :is(.hero, .page-head, .contact-board) { view-transition-name: page-heading; }

  ::view-transition { background: var(--paper); }

  ::view-transition-group(root),
  ::view-transition-group(page-heading) { animation-duration: 280ms; }

  ::view-transition-group(site-header),
  ::view-transition-group(callbar),
  ::view-transition-new(site-header),
  ::view-transition-new(callbar) { animation: none; }

  ::view-transition-old(site-header),
  ::view-transition-old(callbar) { animation: none; opacity: 0; }

  ::view-transition-old(root) { animation: page-out 90ms ease-in both; }
  ::view-transition-new(root) { animation: page-in 190ms ease-out 90ms both; }
  ::view-transition-old(page-heading) { animation: heading-out 90ms ease-in both; }
  ::view-transition-new(page-heading) { animation: heading-in 190ms cubic-bezier(.2, .7, .2, 1) 90ms both; }
}

@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } }
@keyframes heading-out { to { opacity: 0; transform: translateY(-7px); } }
@keyframes heading-in { from { opacity: 0; transform: translateY(14px); } }

@media (min-width: 800px) {
  .page-head-in { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .contact-board-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .service-directory { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); align-items: start; }
  .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rates .two-col { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
  .detail { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
}
@media (max-width: 640px) {
  .header-in { gap: 5px; }
  .brand-block { flex-basis: 100%; }
  .nav { width: 100%; justify-content: space-between; gap: 0 9px; font-size: 0.95rem; }
  .nav a:not(.btn) { display: flex; align-items: center; min-height: 44px; }
  .nav .btn { display: none; }
  .hero .actions { gap: 12px; }
  .hero .btn { padding-inline: 16px; }
  .hero-jobs { grid-template-columns: minmax(0, 1fr); }
  .hero-jobs li + li { border-left: 0; border-top: 1px solid var(--night-line); }
  .hero-jobs a { padding-inline: 3px; }
  .callbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: fixed; inset: auto 0 0; z-index: 5; padding: 7px max(16px, env(safe-area-inset-right, 0px)) calc(7px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--night-deep); color: var(--white); border-top: 1px solid var(--night-line); }
  .callbar-call { display: flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
  .callbar .btn { min-height: 44px; padding-inline: 15px; background: var(--closing); color: var(--night); }
  .callbar .btn:hover { background: var(--white); }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); background: var(--night-deep); }
  main { background: var(--paper); }
  html { scroll-padding-bottom: 72px; }
}
@media (max-width: 370px) {
  .hero-masthead p + p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service-link { transition: none; }
}
