:root {
    --paper: #fff9ee;
    --blue: #123267;
    --orange: #ffab55;
    --ink: #142a50;
    --muted: #514b46;
    --edge: #d8c8ac;
    background: var(--paper);
    color: var(--ink);
    font-family: system-ui,sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
[hidden] { display: none !important; }
a { color: #134589; text-underline-offset: .22em; }
a:focus-visible,button:focus-visible,input:focus-visible { outline: 3px solid #bc441e; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3,.brand { line-height: 1.06; }
h2 { font-size: clamp(2.25rem,5.5vw,4.8rem); letter-spacing: -.065em; margin-bottom: .28em; }
.top {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .46rem 1.7rem; min-height: 69px;
    padding: .9rem max(5vw,calc((100vw - 1380px)/2));
    background: var(--blue); border-bottom: 4px solid var(--orange);
}
.top a { color: var(--paper); }
.brand { font-size: clamp(1.3rem,3vw,2.05rem); font-weight: 860; letter-spacing: -.04em; text-decoration: none; }
.brand small { margin-left: .63rem; color: var(--orange); font: 720 .68rem system-ui; letter-spacing: .11em; }
nav { display: flex; flex-wrap: wrap; gap: .42rem 1.12rem; font-size: .88rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: .6rem; top: .6rem; z-index: 4; background: white; padding: .5rem; }
.hero { isolation: isolate; position: relative; min-height: clamp(570px,78vh,820px); display: grid; align-items: center; background: #15233b; color: var(--paper); }
.hero picture,.hero::after { position: absolute; inset: 0; }
.hero picture { z-index: -2; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 61% 44%; }
.hero::after { content: ''; z-index: -1; background: linear-gradient(90deg,#112641ed 0%,#10264193 37%,transparent 76%); }
.hero-copy { margin-inline: max(5vw,calc((100vw - 1380px)/2)); }
.hero h1 { font-size: clamp(4.05rem,9.45vw,10rem); letter-spacing: -.075em; font-weight: 900; }
.hero p { color: var(--paper); font-size: clamp(1rem,1.9vw,1.36rem); margin: 1.12rem 0 1.4rem; max-width: 29ch; }
.cta,button { display: inline-block; color: #132445; background: var(--orange); border: 2px solid transparent; padding: .64rem .98rem; font: 760 1rem/1.28 system-ui; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .55; cursor: default; }
.hero a:focus-visible,.top a:focus-visible { outline-color: white; }
.section,footer,#daily-editorial { width: min(90%,1380px); margin-inline: auto; }
.section { padding-block: clamp(2.8rem,7vw,6.3rem); border-bottom: 1px solid var(--edge); }
.section > p { color: var(--muted); }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
.filters button { color: var(--blue); background: transparent; border-color: var(--blue); }
.filters button[aria-pressed=true] { background: var(--blue); color: white; }
#scene-count { margin-left: .3rem; font-size: .92rem; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.9rem,2vw,1.6rem); margin-top: 1.35rem; }
.card { min-width: 0; border: 1px solid var(--edge); background: #fffdf8; }
.card[data-kind=shop] { border-bottom: 4px solid #d85a2a; }
.card[data-kind=fuel] { border-bottom: 4px solid #225aaf; }
.card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; background: #e2d5c0; }
.card h3 { font-size: 1.27rem; margin: .7rem .8rem .39rem; }
.card p { color: var(--muted); margin: 0 .8rem .95rem; font-size: .94rem; }
.planner { margin-top: 1.3rem; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,.75fr); gap: 1rem; }
#estimate,.packing { min-width: 0; padding: clamp(1rem,3vw,2.6rem); }
#estimate { background: var(--blue); color: white; }
.packing { background: #ffe8c8; border-top: 4px solid #be4f28; }
.planner h3 { font-size: clamp(1.65rem,3.1vw,2.55rem); letter-spacing: -.04em; margin-bottom: .55rem; }
.fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; margin: 1rem 0; }
.fields label { display: flex; flex-direction: column; justify-content: space-between; font-size: .93rem; font-weight: 650; gap: .3rem; }
.fields input { font: inherit; width: 100%; min-width: 0; padding: .53rem .55rem; color: #102341; }
#estimate input:focus-visible,#estimate button:focus-visible { outline-color: #ffdda9; }
.return { display: block; margin-bottom: .7rem; }
input[type=checkbox] { width: 1.13rem; height: 1.13rem; accent-color: #154785; flex-shrink: 0; margin: .2rem .2rem 0 0; }
#estimate-result { display: block; font-size: clamp(1.25rem,2.7vw,2.2rem); font-weight: 820; min-height: 1.7em; margin-top: .8rem; overflow-wrap: anywhere; }
#packing { display: grid; gap: .6rem; margin-bottom: .6rem; }
#packing label { display: flex; gap: .45rem; align-items: start; }
#clear-packing { background: transparent; border-color: var(--blue); margin-top: .65rem; }
.library { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .9rem; margin-top: 1.35rem; }
.library section { padding: 1rem; border-top: 4px solid var(--blue); background: #f1e6d3; }
.library h3 { font-size: 1.25rem; }
.library ul { padding-left: 1.16rem; margin-bottom: 0; }
.library li + li { margin-top: .55rem; }
.entry { width: min(90%,805px); margin: clamp(2rem,8vw,6.2rem) auto; }
.entry h1 { font-size: clamp(2.4rem,8vw,5.4rem); letter-spacing: -.06em; margin-block: .55em; }
.entry h2 { font-size: clamp(1.65rem,3vw,2.4rem); margin-top: .8em; }
.entry p { margin-block: .7em; }
.entry img { width: min(100%,670px); height: auto; }
#daily-editorial,footer { padding-block: 2rem; }
footer { border-top: 1px solid var(--edge); color: var(--muted); }

@media (max-width: 940px) {
    .gallery,.library { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
    .planner { grid-template-columns: 1fr; }
}
@media (max-width: 670px) {
    .hero { min-height: 565px; align-items: end; padding-bottom: 2.2rem; }
    .hero img { object-position: 66% 38%; }
    .hero::after { background: linear-gradient(0deg,#112641 0%,#112641ab 33%,transparent 74%); }
}
@media (max-width: 460px) {
    .gallery,.library,.fields { grid-template-columns: 1fr; }
}
