/* edinburghmanwithavan.com: a painted shopfront, a shop window with the drivers in it, and the questions answered */
:root {
  --haar: #EEF1F1;
  --ink: #24292E;
  --blue: #1F4A7A;
  --blue-dk: #173A61;
  --red: #9B2335;
  --red-dk: #7E1C2B;
  --gilt: #C8A24A;
  --stone: #CDBFA3;
  --slate: #5A636B;
  --rule: #CFD5D6;
  --serif: "Source Serif 4", Georgia, serif;
  --sign: "Old Standard TT", "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--haar); color: var(--ink); font: 400 18px/1.66 var(--serif); font-optical-sizing: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dk); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gilt); outline-offset: 2px; }
.rl-skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.rl-skip:focus { left: 12px; top: 12px; }

/* ---- the shopfront ---- */
.rl-cornice { height: 10px; background: var(--stone); border-bottom: 2px solid #B3A588; }
.rl-fascia { background: var(--blue); padding: 8px 16px; }
/* one board: the name, the menu and the button sit on it together, inside the gilt keylines */
.rl-board { position: relative; max-width: 1240px; margin: 0 auto; padding: 16px 52px; box-sizing: border-box;
  display: flex; align-items: center; gap: 12px 28px;
  border: 2px solid var(--gilt); box-shadow: inset 0 0 0 5px var(--blue), inset 0 0 0 6px var(--gilt); }
.rl-orn { position: absolute; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='11' fill='none' stroke='%23C8A24A' stroke-width='1.1'/%3E%3Cellipse cx='12' cy='6.3' rx='1.9' ry='3.6' fill='%23C8A24A' transform='rotate(0 12 12)'/%3E%3Cellipse cx='12' cy='6.3' rx='1.9' ry='3.6' fill='%23C8A24A' transform='rotate(45 12 12)'/%3E%3Cellipse cx='12' cy='6.3' rx='1.9' ry='3.6' fill='%23C8A24A' transform='rotate(90 12 12)'/%3E%3Cellipse cx='12' cy='6.3' rx='1.9' ry='3.6' fill='%23C8A24A' transform='rotate(135 12 12)'/%3E%3Cellipse cx='12' cy='6.3' rx='1.9' ry='3.6' fill='%23C8A24A' transform='rotate(180 12 12)'/%3E%3Cellipse cx='12' cy='6.3' rx='1.9' ry='3.6' fill='%23C8A24A' transform='rotate(225 12 12)'/%3E%3Cellipse cx='12' cy='6.3' rx='1.9' ry='3.6' fill='%23C8A24A' transform='rotate(270 12 12)'/%3E%3Cellipse cx='12' cy='6.3' rx='1.9' ry='3.6' fill='%23C8A24A' transform='rotate(315 12 12)'/%3E%3Ccircle cx='12' cy='12' r='2.6' fill='%231F4A7A' stroke='%23C8A24A' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center / contain; }
.rl-orn-tl { top: 10px; left: 10px; } .rl-orn-tr { top: 10px; right: 10px; }
.rl-orn-bl { bottom: 10px; left: 10px; } .rl-orn-br { bottom: 10px; right: 10px; }
.rl-sign { flex: none; display: inline-flex; align-items: center; gap: 14px; font: 700 25px/1.1 var(--sign); color: var(--gilt); letter-spacing: .02em; white-space: nowrap;
  text-decoration: none; text-shadow: 0 1px 0 #10283F; }
.rl-sign:hover { color: #D9B860; text-decoration: none; }

/* ---- the menu, on the board ---- */
.rl-nav { flex: 1; min-width: 0; }
.rl-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 32px; }
@media (min-width: 1300px) { .rl-nav ul { flex-wrap: nowrap; justify-content: flex-end; } .rl-nav li a { white-space: nowrap; } }
.rl-nav li a { display: block; padding: 10px 0; color: #fff; text-decoration: none; font: 600 17px/1.2 var(--serif); }
.rl-nav li a:hover { color: var(--gilt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.rl-nav-go { flex: none; padding: 11px 22px 12px; font-size: 16.5px; }
/* from 760px the whole header stays pinned at the top as you scroll */
@media (min-width: 760px) {
  :root { --rl-headh: 114px; }  /* the pinned header's height: one row */
  .rl-shop { position: sticky; top: 0; z-index: 40; }
  html { scroll-padding-top: var(--rl-headh); }
}
@media (min-width: 760px) and (max-width: 1299.98px) {
  .rl-board { flex-wrap: wrap; padding: 14px 44px 8px; }
  .rl-sign { margin-right: auto; }
  .rl-nav { order: 3; flex-basis: 100%; border-top: 1px solid rgba(200, 162, 74, .55); }
  .rl-nav ul { gap: 0 28px; }
  :root { --rl-headh: 157px; }  /* two rows */
}
.rl-menu-btn { display: none; }
.rl-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* phones: one slim row, the name and three gilt bars; the bars open the links as a drop-down inside the board */
@media (max-width: 759.98px) {
  .rl-shop { position: sticky; top: 0; z-index: 40; }
  html { scroll-padding-top: 92px; }
  .rl-fascia { padding: 6px 10px; }
  .rl-board { flex-wrap: wrap; justify-content: space-between; gap: 0 10px; padding: 9px 34px 9px 28px; }
  .rl-sign { flex: 1 1 auto; min-width: 0; font-size: 17px; letter-spacing: .01em; white-space: nowrap; }
  .rl-board .rl-nav-go { display: none; }
  .rl-js .rl-menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; flex: none; width: 44px; height: 42px;
    padding: 0 10px; background: none; border: 1px solid rgba(200, 162, 74, .7); border-radius: 2px; cursor: pointer; }
  .rl-menu-btn i { display: block; height: 2px; background: var(--gilt); transition: transform .2s ease, opacity .2s ease; }
  .rl-open .rl-menu-btn i:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .rl-open .rl-menu-btn i:nth-child(3) { opacity: 0; }
  .rl-open .rl-menu-btn i:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .rl-nav { flex-basis: 100%; order: 3; margin-top: 10px; border-top: 1px solid rgba(200, 162, 74, .55); }
  .rl-js .rl-nav { display: none; }
  .rl-js .rl-open .rl-nav { display: block; }
  .rl-nav ul { display: block; }
  .rl-nav li a { padding: 13px 0; font-size: 17px; border-bottom: 1px solid rgba(200, 162, 74, .3); }
  .rl-nav li:last-child a { border-bottom: 0; padding-bottom: 6px; }
  .rl-board:not(:has(.rl-nav)) { justify-content: center; }
}
@media (max-width: 759.98px) and (prefers-reduced-motion: reduce) { .rl-menu-btn i { transition: none; } }


/* ---- buttons: a small painted sign ---- */
.rl-go { display: inline-block; padding: 14px 28px 15px; background: var(--red); color: #fff; font: 600 19px/1.2 var(--serif);
  text-decoration: none; border-radius: 2px; box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px var(--gilt); }
.rl-go:hover { background: var(--red-dk); color: #fff; box-shadow: inset 0 0 0 3px var(--red-dk), inset 0 0 0 4px var(--gilt); text-decoration: none; }
.rl-act { margin: 26px 0 8px; }
.rl-under { font-size: 15.5px; color: var(--slate); margin: 20px 0 0; }
.rl-under a { color: var(--blue); }

/* ---- type ---- */
h1 { font: 700 clamp(36px, 5.2vw, 54px)/1.06 var(--sign); margin: 0 0 18px; letter-spacing: -.005em; }
h2 { font: 700 clamp(27px, 3.4vw, 38px)/1.14 var(--sign); color: var(--blue); margin: 0 0 16px; letter-spacing: -.005em; }
h3 { font: 700 22px/1.25 var(--sign); margin: 0 0 8px; }
p { margin: 0 0 16px; }
.rl-open { font-size: 21px; line-height: 1.55; }
.rl-lede { font-size: 19.5px; line-height: 1.58; }
.rl-more { margin: 0 0 6px; }
.rl-more a { font-style: italic; }
.rl-places { font-size: 19px; }

/* ---- first screen: the words and the shop window ---- */
.rl-hero { overflow: hidden; }
.rl-hero-in { max-width: 1120px; margin: 0 auto; padding: 32px 16px 44px; display: grid; gap: 20px;
  grid-template-areas: "head" "van" "text"; }
/* the page's one enamel sign: red letters on a white plate, blue border with a blue keyline inside it */
.rl-hero-h1 { grid-area: head; justify-self: start; margin: 0; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; color: var(--red);
  background: #fff; padding: .24em .42em .3em; border: 5px solid var(--blue); border-radius: 10px;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px var(--blue); }
@media (max-width: 599px) { .rl-hero-h1 { border-width: 4px; border-radius: 8px; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--blue); } }
.rl-hero-text { grid-area: text; }
.rl-hero .rl-open { max-width: 34em; }
.rl-hero-van { grid-area: van; max-width: 520px; }
.rl-hero-van .rl-van, .rl-hero-photo { width: 100%; height: auto; display: block; }
@media (min-width: 1000px) {
  .rl-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 550px); grid-template-areas: "head van" "text van";
    grid-template-rows: auto 1fr; gap: 20px 56px; padding: 60px 16px 64px; align-items: start; }
  .rl-hero-h1 { align-self: end; }
  .rl-hero-van { max-width: none; align-self: center; margin-right: -24px; }
}
.rl-van { display: block; width: 100%; height: auto; }

/* ---- sections: the question on the left, the answer on the right ---- */
.rl-sec { border-top: 1px solid var(--rule); }
.rl-sec-in { max-width: 1120px; margin: 0 auto; padding: 56px 16px 60px; }
@media (min-width: 1000px) {
  .rl-sec-in { display: grid; grid-template-columns: 340px minmax(0, 680px); gap: 0 64px; }
  .rl-sec-in > h2 { position: sticky; top: calc(var(--rl-headh, 114px) + 56px); align-self: start; }
  .rl-sec-wide .rl-sec-in { display: block; }
  .rl-sec-wide .rl-sec-in > h2 { position: static; max-width: 760px; }
  .rl-sec-wide .rl-sec-body > p { max-width: 720px; }
}
.rl-sec-white { background: #fff; }
.rl-qa { margin-top: 34px; }
.rl-qa:first-child { margin-top: 0; }
.rl-qa .rl-lede { font-size: 18.5px; }

/* how it works: a real sequence, so numbers */
.rl-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.rl-steps li { counter-increment: s; position: relative; padding: 0 0 18px 58px; }
.rl-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border: 2px solid var(--blue);
  color: var(--blue); font: 700 22px/36px var(--sign); text-align: center; border-radius: 50%; }
.rl-steps b { font-weight: 600; }

/* ---- the drivers: rows line up across the cards ---- */
.rl-cards { display: grid; gap: 28px; margin: 28px 0 20px; }
@media (min-width: 700px) {
  .rl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); column-gap: 32px; max-width: 920px; }
  .rl-card { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
  .rl-card dl { display: contents; }
}
.rl-card { background: #fff; border: 1px solid var(--rule); padding: 22px; }
.rl-card-head { display: flex; gap: 18px; align-items: flex-end; margin-bottom: 14px; }
.rl-card-head img { width: 150px; height: 150px; object-fit: cover; flex: none; }
.rl-card h3 { font-size: 28px; margin: 0; }
.rl-card .rl-card-area { margin: 2px 0 4px; font-style: italic; color: var(--slate); }
.rl-card dl { margin: 0 0 12px; }
.rl-card dl div:first-of-type { border-top: 1px solid var(--rule); }
.rl-card dl div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.rl-card dt { font-weight: 600; }
.rl-card dd { margin: 0; }
.rl-card > p { margin: 10px 0 0; }

/* ---- the vans, drawn to one scale ---- */
.rl-vans { display: grid; grid-template-columns: 290fr 340fr 380fr; grid-template-rows: auto auto; gap: 10px 28px; margin: 30px 0 34px; max-width: 1060px; }
.rl-vanfig { margin: 0; min-width: 0; display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.rl-vanfig svg { align-self: end; }
.rl-vanfig figcaption { margin-top: 0; font-size: 16.5px; line-height: 1.45; }
.rl-vanfig figcaption b { display: block; font: 700 21px/1.2 var(--sign); margin-bottom: 2px; }
@media (max-width: 759.98px) { .rl-vans { grid-template-columns: 1fr; gap: 26px; } .rl-vanfig { grid-row: auto; display: block; } .rl-vanfig svg { max-width: 380px; } .rl-vanfig-m svg { width: 76%; } .rl-vanfig-l svg { width: 89%; } }
.rl-split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 760px) { .rl-split { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 48px; max-width: 1000px; } }
.rl-fig { margin: 0; }
.rl-fig figcaption { font: italic 400 15.5px/1.45 var(--serif); color: var(--slate); margin-top: 8px; }

/* ---- the last word ---- */
.rl-ask { background: var(--blue); color: #fff; }
.rl-ask-in { max-width: 1120px; margin: 0 auto; padding: 30px 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px 48px; flex-wrap: wrap; }
.rl-ask-text { flex: 1 1 520px; }
.rl-ask h2 { color: #fff; font-size: clamp(23px, 2.6vw, 28px); margin: 0 0 6px; }
.rl-ask p { margin: 0; color: #DCE4EC; }
.rl-ask .rl-go { flex: none; }
.rl-ask a { color: #fff; }
.rl-ask .rl-go { box-shadow: 0 0 0 2px #fff, inset 0 0 0 3px var(--red), inset 0 0 0 4px var(--gilt); }
.rl-ask .rl-go:hover { box-shadow: 0 0 0 2px #fff, inset 0 0 0 3px var(--red-dk), inset 0 0 0 4px var(--gilt); }
.rl-ask .rl-under { color: #DCE4EC; }
.rl-mail-big { font: 400 clamp(20px, 2.8vw, 27px)/1.3 var(--sign); word-break: break-word; }

/* ---- answer and legal pages ---- */
.rl-wrap { max-width: 712px; margin: 0 auto; padding: 0 16px; }
.rl-col { padding: 8px 0 72px; }
.rl-crumb { font-size: 15px; color: var(--slate); margin: 30px 0 10px; }
.rl-col h1 { font-size: clamp(32px, 4.6vw, 46px); margin-top: 10px; }
.rl-col > h2, .rl-legal h2 { margin-top: 40px; }
.rl-legal h1 { margin-top: 40px; }
.rl-list { padding-left: 1.2em; margin: 0 0 18px; }
.rl-list li { margin-bottom: 8px; }
.rl-table { border-collapse: collapse; width: 100%; margin: 6px 0 18px; font-size: 16.5px; }
.rl-table th, .rl-table td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); }
.rl-table th { font-weight: 600; width: 46%; }
@media (max-width: 520px) { .rl-table th, .rl-table td { display: block; width: auto; padding: 0; border: 0; } .rl-table td { padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); } .rl-table th { padding-top: 6px; } }
.rl-sources { margin-top: 44px; font-size: 16px; color: var(--slate); }
.rl-sources h2 { font-size: 24px; }
.rl-sources ul { padding-left: 1.1em; }
.rl-sources li { margin-bottom: 6px; }
.rl-end { margin-top: 44px; padding: 28px 0 0; border-top: 1px solid var(--rule); }
.rl-end > p:first-child { font: italic 400 24px/1.3 var(--sign); }
.rl-back { font-size: 15px; margin-top: 30px; }

/* ---- booking page ---- */
.rl-booking-main { max-width: 1272px; margin: 0 auto; padding: 0 16px 56px; }
.rl-book-head h1 { margin: 34px 0 8px; font-size: clamp(32px, 4.6vw, 46px); }
.rl-book-note { font-size: 19px; margin: 0 0 22px; max-width: 720px; }
.rl-form { position: relative; }
.rl-form iframe { width: 100%; min-height: 760px; border: 0; display: block; position: relative; z-index: 1; }
/* while the form loads: a line behind the frame, covered when the form paints, removed on load */
.rl-wait { position: absolute; left: 16px; right: 16px; top: 56px; margin: 0; text-align: center; font: italic 400 22px/1.3 var(--sign); color: var(--blue); }
.rl-wait::after { content: ""; display: block; width: 120px; height: 1px; margin: 14px auto 0; background: var(--gilt); transform-origin: center; animation: rl-wait 1.6s ease-in-out infinite alternate; }
@keyframes rl-wait { from { transform: scaleX(.2); } to { transform: scaleX(1); } }
.rl-ready .rl-wait { display: none; }
@media (prefers-reduced-motion: reduce) { .rl-wait::after { animation: none; } }
.rl-book-ask { margin-top: 18px; font-size: 16px; color: var(--slate); }

/* ---- footer and the phone bar ---- */
.rl-foot { background: var(--ink); color: #DDE2E5; padding: 36px 16px 40px; font-size: 16px; }
.rl-foot-in { max-width: 1120px; margin: 0 auto; }
.rl-foot a { color: #fff; }
.rl-foot-mail { font: 400 21px/1.35 var(--sign); margin-bottom: 20px; word-break: break-word; }
.rl-foot-mail a { color: var(--gilt); }
.rl-foot-h { font: italic 400 18px/1.3 var(--sign); margin: 0 0 8px; color: #fff; }
.rl-foot ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.rl-foot-small { font-size: 14.5px; }
.rl-bar { display: none; }
@media (max-width: 759.98px) {
  .rl-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); }
  .rl-bar a { text-align: center; padding: 12px 8px; font: 600 17px/1.2 var(--serif); text-decoration: none; border-radius: 2px; color: #fff; }
  .rl-bar-go { flex: 2; background: var(--red); box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px var(--gilt); }
  .rl-bar-ask { flex: 1; border: 2px solid #8C969E; }
  body.rl-home .rl-foot, body.rl-read .rl-foot { padding-bottom: 116px; }
  html { scroll-padding-bottom: 84px; }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (max-width: 600px) {
  body { font-size: 17.5px; }
  .rl-board { box-shadow: inset 0 0 0 4px var(--blue), inset 0 0 0 5px var(--gilt); }
  .rl-orn { width: 16px; height: 16px; }
  .rl-orn-tl { top: 8px; left: 8px; } .rl-orn-tr { top: 8px; right: 8px; }
  .rl-orn-bl { bottom: 8px; left: 8px; } .rl-orn-br { bottom: 8px; right: 8px; }
  .rl-open { font-size: 19.5px; }
  .rl-lede { font-size: 18.5px; }
  .rl-go { display: block; text-align: center; }
  .rl-board .rl-nav-go { display: none; }
  .rl-sec-in { padding: 44px 16px 48px; }
  .rl-card dl div { grid-template-columns: 78px 1fr; }
  .rl-card-head img { width: 112px; height: 112px; }
}


/* routes to other cities */
.rl-routes { list-style: none; margin: 22px 0 8px; padding: 0; display: grid; gap: 0 32px; }
@media (min-width: 760px) { .rl-routes { grid-template-columns: 1fr 1fr; } }
.rl-routes li { padding: 12px 0 13px; border-bottom: 1px solid var(--rule); }
.rl-routes a { font: 700 21px/1.25 var(--sign); }
.rl-routes span { display: block; font-size: 16.5px; color: var(--slate); margin-top: 2px; }

/* the hero photo: a whinstone band hazes up from the bottom and covers the van's number plate; with the booking link on it */
.rl-hero-shot { position: relative; container-type: inline-size; overflow: hidden; }
.rl-band { position: absolute; left: 0; right: 0; bottom: 0; height: 44%; display: flex; align-items: flex-end;
  padding: 0 6cqw 5.5cqw; box-sizing: border-box; text-decoration: none; color: #fff; isolation: isolate;
  background: linear-gradient(to bottom, rgba(36,41,46,0) 0%, rgba(36,41,46,.38) 22%, rgba(36,41,46,.8) 40%, #24292E 56%); }
.rl-band::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%); }
.rl-band span { font: 700 clamp(20px, 6.2cqw, 34px)/1.1 var(--sign); padding-bottom: 0.9cqw; border-bottom: 2px solid var(--gilt); }
.rl-band:hover, .rl-band:focus-visible { color: var(--gilt); text-decoration: none; }
.rl-band:focus-visible { outline: 3px solid var(--gilt); outline-offset: -3px; }
.rl-booking .rl-board { justify-content: center; }
/* the badge beside the name on the fascia */
.rl-badge { flex: none; width: 58px; height: 58px; display: block; }
@media (min-width: 1300px) { .rl-sign { font-size: 22px; gap: 12px; } .rl-board .rl-nav ul { gap: 0 24px; } }
@media (max-width: 759.98px) {
  .rl-badge { width: 44px; height: 44px; }
  .rl-board .rl-sign { gap: 10px; font-size: 16.5px; line-height: 1.12; white-space: normal; }
  .rl-sign span { max-width: 8.6em; }
}
@media (max-width: 359.98px) { .rl-sign span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

