/* South Lanarkshire Trailers: no JavaScript, no outside requests.
   The look is the road: galvanised-steel grey, signage black, and the yellow of a rear number plate as the only colour, used for
   the phone number on the home page and for the mark. Display type is Barlow Condensed, a highway-signage face; text is Barlow.
   Both are SIL OFL (the licence is beside the files in static/fonts). */

@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/barlow-condensed-600-latin.5bc49d41f3.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/barlow-condensed-800-latin.89eec21b1a.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/barlow-400-latin.7a686e7631.woff2) format("woff2")}

:root{
  --paper:#e3e6e2;                /* galvanised steel */
  --ink:#000;                     /* signage black */
  --plate:#f6c900;                /* rear-plate yellow */
  --steel:#474c47;                /* second-line text */
  --field:#f3f4f1;                /* the inside of a form box: steel, lighter */
  --rule:rgba(0,0,0,.25);
  --gap:clamp(72px,10vw,140px);   /* the one rhythm between sections */
  --pad:max(24px,4vw);            /* side padding: copy never touches the edge */
  --display:"Barlow Condensed","Arial Narrow",Arial,sans-serif;
  --text:"Barlow",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{display:flex;flex-direction:column;min-height:100svh;margin:0;background:var(--paper);color:var(--ink);font:400 clamp(1.0625rem,.9rem + .5vw,1.25rem)/1.55 var(--text);-webkit-font-smoothing:antialiased}
main{flex:1 0 auto}
a{color:inherit;text-underline-offset:.18em}
a:focus-visible{outline:3px solid var(--ink);outline-offset:4px;border-radius:2px}
.wrap{max-width:1200px;margin-inline:auto;padding-inline:var(--pad)}
h1,h2,h3{text-wrap:balance}

/* header: the name on the left, three links on the right (they wrap under the name on a phone) */
.top{padding-block:clamp(20px,3vw,32px)}
.top .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 2.5rem}
.brand{display:inline-flex;align-items:center;gap:.7rem;text-decoration:none;font:800 clamp(1.15rem,2.4vw,1.5rem)/1 var(--display);letter-spacing:.03em;text-transform:uppercase}
.mark{display:block;width:clamp(30px,4vw,38px);height:auto}
.nav{display:flex;flex-wrap:wrap;gap:0 1.75rem;margin:0;padding:0;list-style:none}
.nav a{display:inline-block;padding:.6rem 0;font:600 1.375rem/1 var(--display);letter-spacing:.01em;text-decoration:none}
.nav a:hover,.nav a[aria-current]{text-decoration:underline;text-decoration-thickness:.1em;text-underline-offset:.22em}

/* hero (home): the heading, then the words and the number side by side */
.hero{padding-top:clamp(24px,5vw,64px)}
h1{margin:0;font:800 clamp(2.75rem,10vw,7rem)/.88 var(--display);text-transform:uppercase;letter-spacing:-.005em}
.hero-row{display:grid;gap:clamp(28px,4vw,40px);margin-top:clamp(28px,4vw,48px);align-items:start}
.lede{margin:0;max-width:24em;font-size:clamp(1.2rem,1rem + 1vw,1.6rem);line-height:1.4}
.plate{display:inline-block;padding:.22em .32em .26em;background:var(--plate);color:var(--ink);text-decoration:none;white-space:nowrap;border-radius:.14em;box-shadow:inset 0 0 0 .05em var(--ink);font:800 clamp(2.5rem,12vw,5.25rem)/1 var(--display);letter-spacing:.015em}
.call-note{margin:.75rem 0 0;color:var(--steel);font-size:1.0625rem}
@media (min-width:960px){.hero-row{grid-template-columns:minmax(0,1fr) auto;gap:4rem}}

/* the other pages start the same way, a size down */
.head{padding-top:clamp(24px,5vw,64px)}
.head h1{font-size:clamp(2.6rem,8.5vw,5.5rem)}
.head .lede{max-width:30em}
.head .plate{font-size:clamp(2.25rem,10vw,4rem)}

/* the sections: a heading on the left, the content on the right */
.sell,.advice,.contact,.checks,.guide{margin-top:var(--gap)}
.split{display:grid;gap:1.75rem 4rem}
@media (min-width:960px){.split{grid-template-columns:minmax(0,5fr) minmax(0,8fr)}}
h2{margin:0 0 1rem;font:800 clamp(1.9rem,1.4rem + 1.6vw,2.6rem)/1 var(--display)}
.brands{margin:0;max-width:22em;font-size:1.25rem;line-height:1.45}
.make{font:600 1.15em/1 var(--display);letter-spacing:.02em;white-space:nowrap}

/* the range: one ruled row per type, each a link */
.range{margin:0;padding:0;list-style:none}
.range li{border-top:1px solid var(--rule)}
.range li:last-child{border-bottom:1px solid var(--rule)}
.range a{display:block;padding:.8rem 0 .95rem;text-decoration:none}
.r-name{display:block;font:600 clamp(1.55rem,1.1rem + 1.6vw,2.3rem)/1.05 var(--display);letter-spacing:.01em}
.r-short{display:block;margin-top:.2rem;color:var(--steel);font-size:1.0625rem}
.range a:hover .r-name{text-decoration:underline;text-decoration-thickness:.07em;text-underline-offset:.14em}

/* words: a short measure, and the one big link on the home page */
.prose p{margin:0 0 1rem;max-width:34em}
.prose p:last-child{margin-bottom:0}
.more{display:inline-block;margin-top:.5rem;font:600 clamp(1.4rem,1.1rem + 1vw,1.8rem)/1.1 var(--display);letter-spacing:.01em}

/* what to look at: ruled rows, a short heading and a line or two under it */
.points{margin:0;padding:0;list-style:none}
.points li{padding:1.1rem 0 1.25rem;border-top:1px solid var(--rule)}
.points li:last-child{border-bottom:1px solid var(--rule)}
.points h3{margin:0 0 .35rem;font:600 clamp(1.5rem,1.1rem + 1.3vw,2rem)/1.05 var(--display);letter-spacing:.01em}
.points p{margin:0;max-width:34em}
.after{margin:1.5rem 0 0;max-width:34em}

/* the buying advice: sections separated by space, the ruled rows only where there is a list */
.block{margin-top:clamp(44px,6vw,80px)}
.block:first-child{margin-top:0}
.links{margin:0;padding:0;list-style:none}
.links li{margin:0 0 .6rem}

/* photographs: the business's own, from its old site. Left quiet: no frame, no caption, and the plate stays the one bold thing */
.banner{margin:clamp(28px,4vw,48px) 0 0}
.banner img{display:block;width:100%;height:auto;aspect-ratio:5/2;object-fit:cover;object-position:40% 50%}
@media (min-width:960px){.banner img{aspect-ratio:2000/369}}
.photo{margin:1.25rem 0 0}
.photo img{display:block;width:100%;max-width:250px;height:auto}

/* contact: the number again, in plain type, and the two other ways to reach them */
.contact-phone{display:inline-block;font:800 clamp(2.5rem,8vw,4.25rem)/1 var(--display);letter-spacing:.015em;text-decoration:none;white-space:nowrap}
.contact-phone:hover{text-decoration:underline;text-decoration-thickness:.06em;text-underline-offset:.1em}
.contact p{margin:1rem 0 0;font-size:1.25rem}

/* the enquiry form: plain boxes with a black edge, big enough to tap; the send button turns into a plate when you point at it */
.enquiry{margin-top:var(--gap)}
.form{max-width:36rem}
.field{margin:0 0 1.25rem}
.field label{display:block;margin:0 0 .4rem;font:600 1.375rem/1 var(--display);letter-spacing:.01em}
.opt{color:var(--steel);font:400 1rem/1 var(--text);letter-spacing:0}
input,textarea{display:block;width:100%;padding:.7rem .8rem;border:2px solid var(--ink);border-radius:0;background:var(--field);color:var(--ink);font:inherit;-webkit-appearance:none;appearance:none}
textarea{min-height:10rem;resize:vertical}
input:focus-visible,textarea:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.form-note{margin:0 0 1.25rem;max-width:34em;color:var(--steel);font-size:1.0625rem}
.send{display:inline-block;padding:.55em 1.1em .6em;border:2px solid var(--ink);border-radius:.14em;background:var(--ink);color:var(--paper);font:800 1.75rem/1 var(--display);letter-spacing:.03em;text-transform:uppercase;cursor:pointer}
.send:hover,.send:focus-visible{background:var(--plate);color:var(--ink)}
.send:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
/* the spam check (form_check() and formcheck.js): Cloudflare's "Verify you are human" box, only when it is unsure, and a line of text.
   The box's frame has no height when Cloudflare is sure, so its bottom margin then collapses into the note's: no extra gap. */
.formcheck:empty{display:none}
.formcheck__widget{margin:0 0 1.25rem;line-height:0}
.formcheck__msg,.formcheck__noscript{max-width:34em;margin:0 0 1.25rem;font-size:1.0625rem}
.formcheck__msg{color:var(--steel)}
.formcheck__msg--error,.formcheck__noscript{padding:.75rem 1rem;border:2px solid var(--ink);background:var(--plate);color:var(--ink)}

/* footer: every page of the site, then the name */
.foot{margin-top:var(--gap);color:var(--steel);font-size:.9375rem}
.foot-list{margin:0;padding:clamp(20px,3vw,28px) 0 0;border-top:1px solid var(--rule);list-style:none}
.foot-list li{margin:0 0 .55rem;break-inside:avoid}
.foot-list a{text-decoration:none}
.foot-list a:hover{text-decoration:underline}
.legal{margin:.75rem 0 0;padding-bottom:clamp(28px,4vw,40px)}
@media (min-width:640px){.foot-list{columns:2;column-gap:2.5rem}}
@media (min-width:960px){.foot-list{columns:3}}

/* the short pages: not found, thank you, message not sent */
.plain{padding-block:clamp(40px,7vw,88px) 0}
.plain h1{font-size:clamp(3rem,10vw,6rem)}
.plain .wrap>p{margin:1.25rem 0 0;max-width:34em;font-size:1.25rem}
