/* Second locksmith site. One idea: the London street name plate (white enamel, black frame, district code in red).
   It is the hero and the area list; everything else stays quiet, on a cool paper ground, in one type family. */
@font-face { font-family: "Barlow Condensed"; src: url(fonts/barlow-condensed-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(fonts/barlow-condensed-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #F2F3F0;   /* cool pavement-grey white */
  --plate: #FFFFFF;   /* enamel */
  --ink: #1E2226;     /* sign black */
  --red: #C42330;     /* district code red */
  --slate: #59626A;   /* secondary text */
  --rule: #D5D9D4;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, sans-serif;
  --gutter: 20px;
  --col: 640px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: 120px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--body); padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plate); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.i { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 14px var(--gutter); }
.word { font: 700 24px/1 var(--cond); letter-spacing: .01em; text-decoration: none; }
.bar-call { display: inline-flex; align-items: center; gap: 8px; font: 600 17px/1 var(--body); text-decoration: none; color: var(--red); padding: 10px 14px; min-height: 44px; border: 2px solid var(--red); border-radius: 999px; }

main { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* the plate */
.plate { position: relative; background: var(--plate); border-radius: 12px; padding: 18px 20px 22px; box-shadow: inset 0 0 0 4px var(--plate), inset 0 0 0 7px var(--ink), 0 1px 0 rgba(30,34,38,.08), 0 10px 24px -14px rgba(30,34,38,.35); }
.plate-h { margin: 0; }
.plate-top { display: block; margin: 0 0 6px; padding-right: 4.5em; font: 500 15px/1.2 var(--body); color: var(--slate); }
.plate-name { display: block; font: 700 clamp(52px, 16vw, 112px)/.9 var(--cond); text-transform: uppercase; letter-spacing: -.005em; }
.plate-code { position: absolute; right: 20px; top: 16px; margin: 0; font: 700 26px/1 var(--cond); color: var(--red); }

/* hero */
.hero { padding: 12px 0 8px; }
.cta { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; margin: 22px 0 0; padding: 16px 20px; background: var(--red); color: #fff; text-decoration: none; border-radius: 14px; box-shadow: 0 8px 20px -10px rgba(196,35,48,.6); }
.cta .i { grid-row: span 2; width: 34px; height: 34px; }
.cta-n { font: 700 34px/1 var(--cond); letter-spacing: .01em; }
.cta-l { font: 500 16px/1.3 var(--body); opacity: .92; }
.cta:active { transform: translateY(1px); }
.lede { margin: 18px 0 0; font-size: 19px; max-width: 34em; }
/* the small plate bolted under the big one, as on real street signs: the three promises people ask about first */
.subplate { list-style: none; margin: 6px 14px 0; padding: 10px 16px 12px; background: var(--plate); border-radius: 8px; box-shadow: inset 0 0 0 3px var(--plate), inset 0 0 0 5px var(--ink); }
.subplate li { font: 600 20px/1.3 var(--cond); }
.hero.sub h1 { margin: 8px 0 0; font: 700 48px/1 var(--cond); }
.hero.sub .cta { margin-top: 20px; }

/* sections */
.block { padding: 40px 0 8px; border-top: 1px solid var(--rule); margin-top: 36px; }
.block.last { border-top: 0; margin-top: 28px; padding-bottom: 40px; }
h2 { margin: 0 0 14px; font: 700 34px/1.05 var(--cond); }
h3 { margin: 0 0 4px; font: 600 20px/1.25 var(--body); }
.note { margin: 0 0 18px; color: var(--slate); max-width: 34em; }

/* steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 20px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); font: 700 20px/30px var(--cond); text-align: center; }
.steps p { margin: 0; color: var(--slate); }

/* prices */
.prices { width: 100%; border-collapse: collapse; background: var(--plate); border-radius: 12px; overflow: hidden; }
.prices th, .prices td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.prices tr:last-child th, .prices tr:last-child td { border-bottom: 0; }
.prices th { font-weight: 600; }
.prices th span { display: block; font-weight: 400; font-size: 15px; color: var(--slate); margin-top: 2px; }
.prices td { width: auto; white-space: nowrap; padding-left: 8px; font: 700 22px/1.05 var(--cond); text-align: right; }
.door-h { margin: 26px 0 8px; }
.door { list-style: none; margin: 0; padding: 0; }
.door li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.door li:last-child { border-bottom: 0; }
.door b { display: block; font-weight: 600; }
.door span { display: block; font-size: 15px; color: var(--slate); margin-top: 2px; }

/* the terms: one enamel notice with three short lists, each line said once, in the words of the ads */
.notice { background: var(--plate); border-radius: 12px; padding: 20px 22px; box-shadow: inset 0 0 0 4px var(--plate), inset 0 0 0 7px var(--ink); }
.notice h3 { font: 600 16px/1.2 var(--body); color: var(--slate); margin: 18px 0 2px; }
.notice h3:first-child { margin-top: 0; }
.terms { list-style: none; margin: 0; padding: 0; }
.terms li { position: relative; padding: 9px 0 9px 30px; font: 600 21px/1.2 var(--cond); border-bottom: 1px solid var(--rule); }
.terms li:last-child { border-bottom: 0; }
.terms li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 14px; height: 7px; border: solid var(--red); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.notice-more { margin: 12px 0 0; font-size: 16px; }

/* areas: small plates */
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.areas li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; background: var(--plate); border-radius: 8px; padding: 10px 12px; box-shadow: inset 0 0 0 2px var(--plate), inset 0 0 0 3.5px var(--ink); }
.a-name { font: 600 18px/1.1 var(--cond); }
.a-code { font: 700 18px/1 var(--cond); color: var(--red); }

/* questions */
.qs details { border-bottom: 1px solid var(--rule); }
.qs summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; font: 700 24px/1 var(--cond); color: var(--red); }
.qs details[open] summary::after { content: "–"; }
.qs details p { margin: 0 0 16px; color: var(--slate); }

/* legal pages */
.prose h1 { font: 700 44px/1 var(--cond); margin: 8px 0 16px; }
.prose h2 { font-size: 26px; margin: 26px 0 6px; }
.prose p { max-width: 36em; }

/* footer */
.foot { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 24px auto 0; padding: 24px var(--gutter) 32px; border-top: 1px solid var(--rule); color: var(--slate); font-size: 16px; }
.foot p { margin: 0 0 8px; }
.foot a { color: var(--slate); margin-right: 14px; }
.foot-name { font: 700 22px/1 var(--cond); color: var(--ink); }
.foot-tel { color: var(--ink) !important; font-weight: 600; white-space: nowrap; }
.legal { font-size: 14px; }

/* call dock: only on phones, only once the big button has scrolled away */
.dock { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(242,243,240,.94); backdrop-filter: blur(6px); border-top: 1px solid var(--rule); z-index: 10; }
.dock-call { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; background: var(--red); color: #fff; text-decoration: none; font: 700 22px/1 var(--cond); }

@media (min-width: 760px) {
  body { padding-bottom: 0; font-size: 19px; }
  .dock { display: none !important; }
  .hero { padding-top: 28px; }
  .plate { padding: 26px 30px 30px; }
  .plate-code { right: 30px; top: 24px; font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
