/* The how-it-works guides for Borrowmere and Megève. Same palette and type as the home page;
   generated by tools/make-routes-no02-no03.py, which supplies the words and the screenshots.
   The screenshots are real: taken from the minted files, with each panel open. */
:root{
  --cream:#f3eee3; --paper:#eaf2f9; --ink:#10292f; --ink2:#12293e; --muted:#4a5f6b;
  --line:#c9c2b3; --accent:#edbb68; --red:#e0392c; --sea:#0e2a3a;
  --serif:Georgia,"Times New Roman",Times,serif;
  --mono:"Courier New",Courier,ui-monospace,monospace;
  --sans:-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font:17px/1.6 var(--sans);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{font-family:var(--serif);font-weight:700;line-height:1.1;margin:0;color:var(--ink2);letter-spacing:.01em}
.eyebrow{font:12px/1.4 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.wrap{max-width:1100px;margin:0 auto;padding-inline:20px}
.btn{display:inline-flex;align-items:center;gap:.55em;padding:.85em 1.25em;border-radius:3px;text-decoration:none;font-weight:600;font-size:15px;border:1.5px solid transparent;cursor:pointer;transition:transform .12s ease,background .15s ease}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--ink);color:var(--cream)}
.btn-primary:hover{background:#1a3d4d}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--ink)}
.btn-ghost:hover{background:rgba(16,41,47,.06)}
.btn-accent{background:var(--accent);color:var(--ink2)}
.btn-accent:hover{background:#f0c77e}

.bar{position:sticky;top:0;z-index:20;background:rgba(243,238,227,.86);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.bar .wrap{display:flex;align-items:center;justify-content:space-between;height:56px;gap:16px}
.brand{font-family:var(--serif);font-weight:700;font-size:17px;text-decoration:none;color:var(--ink2);display:flex;align-items:center;gap:10px;white-space:nowrap}
.brand i{display:inline-block;width:5px;height:20px;background:var(--red)}
.nav{display:flex;gap:22px;font-size:14px;white-space:nowrap}
.nav a{text-decoration:none;color:var(--muted)}
.nav a:hover{color:var(--ink)}
@media(max-width:640px){.nav{gap:14px;font-size:13px}.nav a.hide-sm{display:none}.brand{font-size:16px}}

.hero{background:var(--sea);color:#eef4f6;padding:clamp(40px,7vw,84px) 0 0}
.hero .eyebrow{color:#9db6ca}
.hero h1{color:#f3eee3;font-size:clamp(36px,6vw,68px);margin:.25em 0 .2em;letter-spacing:.03em}
.hero .lede{font-family:var(--serif);font-size:clamp(19px,2.3vw,26px);line-height:1.4;max-width:34ch;color:#dce7ec;margin:0 0 26px}
.hero .actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:clamp(30px,5vw,56px)}
.hero .btn-ghost{color:#eef4f6;border-color:rgba(238,244,246,.6)}
.hero .btn-ghost:hover{background:rgba(255,255,255,.08)}
.hero figure{margin:0;border:1px solid rgba(255,255,255,.12);box-shadow:0 -10px 60px rgba(0,0,0,.35)}
.hero figure img{width:100%}

section{padding:clamp(44px,7vw,84px) 0}
section.alt{background:var(--paper)}
.kicker{display:flex;align-items:baseline;gap:14px;margin-bottom:18px}
.kicker .num{font:13px/1 var(--mono);color:#b52d20;letter-spacing:.1em}
.kicker h2{font-size:clamp(26px,3.2vw,38px)}
.two{display:grid;grid-template-columns:1fr auto;gap:clamp(24px,5vw,64px);align-items:start}
.two.flip{grid-template-columns:auto 1fr}
.two.flip .text{order:2}
@media(max-width:820px){.two,.two.flip{grid-template-columns:1fr}.two.flip .text{order:0}}
.text{max-width:60ch;color:#2b3f49}
.text p{margin:0 0 1em}
.text b{color:var(--ink2)}
figure.shot{margin:0}
figure.shot img{border:1px solid var(--line);box-shadow:0 14px 44px rgba(16,41,47,.16);background:#142425}
figure.shot.narrow img{width:min(100%,340px)}
figure.shot.wide img{width:min(100%,560px)}
figure.shot figcaption{font:12px/1.5 var(--mono);color:var(--muted);margin-top:10px;max-width:46ch}
@media(max-width:820px){figure.shot.narrow img,figure.shot.wide img{width:min(100%,420px)}}

dl.keys{display:grid;grid-template-columns:minmax(150px,auto) 1fr;gap:0;margin:18px 0 0;border-top:1px solid var(--line);max-width:640px}
dl.keys dt,dl.keys dd{margin:0;padding:8px 0;border-bottom:1px solid var(--line)}
dl.keys dt{font:700 14px/1.5 var(--mono);color:var(--ink2);padding-right:18px}
dl.keys dd{font-size:15px;color:#2b3f49}
@media(max-width:520px){dl.keys{grid-template-columns:1fr}dl.keys dt{padding-bottom:0;border-bottom:0}}

.chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.chips li{font:13px/1 var(--mono);letter-spacing:.04em;padding:8px 11px;border:1px solid var(--line);background:rgba(255,255,255,.5);color:var(--ink2)}

.jump{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px;margin-top:26px}
.jump a{display:block;text-decoration:none;background:var(--cream);border:1px solid var(--line);transition:transform .12s ease,box-shadow .15s ease}
.jump a:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(16,41,47,.14)}
.jump img{width:100%;aspect-ratio:320/168;object-fit:cover;background:#cfd8da}
.jump span{display:block;padding:9px 12px 11px;font:700 15px/1.3 var(--serif);color:var(--ink2)}

footer{padding:40px 0 52px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}
footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;align-items:baseline}
footer a{color:var(--ink)}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}.btn,.jump a{transition:none}}
