/* AeroCab Journal: page layout. Article text is styled in content.css. */
:root {
	--kaali: #000;
	--peeli: #ffd21f;
	--butter: #fff6cc;
	--kerb: #eef1f1;
	--steel: #566063;
	--ink: #17191a;
	--line: #d5dbdc;
	--display: Archivo, 'Arial Nova', Arial, sans-serif;
	--reading: Literata, Georgia, serif;
	--gap: clamp(1.25rem, 2.6vw, 2.25rem);
	--space: clamp(3.25rem, 7vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.0625rem/1.55 var(--display); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3 { margin: 0; color: var(--kaali); font-family: var(--display); font-stretch: 118%; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--kaali); outline-offset: 3px; box-shadow: 0 0 0 3px var(--peeli); }
.wrap { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 99; padding: .75rem 1rem; background: var(--peeli); color: var(--kaali); }
.skip:focus { top: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.35rem; border: 2px solid transparent; border-radius: 6px; background: var(--peeli); color: var(--kaali); font: 650 1rem/1.2 var(--display); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--kaali); color: #fff; }
.btn-dark { background: var(--kaali); color: #fff; }
.btn-dark:hover { background: var(--ink); color: var(--peeli); }
.btn-line { border-color: currentColor; background: transparent; }

/* Header */
.top { position: relative; z-index: 20; background: #fff; }
.top-in { display: flex; align-items: center; gap: 2rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--kaali); font-size: 1.35rem; font-stretch: 118%; font-weight: 750; letter-spacing: -.02em; }
.brand img { width: 60px; height: 60px; object-fit: contain; }
.top-menu { margin-left: auto; }
.menu, .menu ul { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.menu li { position: relative; }
.menu a { display: block; padding: .65rem .8rem; text-decoration: none; font-weight: 550; }
.menu a:hover, .menu .current-menu-item > a { text-decoration: underline; text-decoration-color: var(--peeli); text-decoration-thickness: 4px; text-underline-offset: 7px; }
.menu ul { position: absolute; top: 100%; left: 0; display: none; min-width: 220px; padding: .5rem; background: #fff; border: 2px solid var(--kaali); border-radius: 6px; }
.menu li:hover > ul, .menu li:focus-within > ul { display: block; }
.top-tools { display: flex; align-items: center; gap: .5rem; }
.tool { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--kaali); cursor: pointer; }
.tool:hover { background: var(--kerb); }
.burger, .burger .i-close, .top-search { display: none; }
.burger svg { display: block; }
.burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-close { display: block; }
.top-search.is-open { display: block; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.search { display: flex; gap: .6rem; max-width: 640px; }
.search input { flex: 1; min-width: 0; min-height: 48px; padding: .6rem 1rem; border: 2px solid var(--kaali); border-radius: 6px; background: #fff; color: var(--ink); font: 400 1.0625rem var(--display); }

/* Shared story pieces */
.topic { display: inline-block; font-weight: 650; font-size: .9375rem; color: var(--kaali); text-decoration: underline; text-decoration-color: var(--peeli); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.topic:hover { text-decoration-color: currentColor; }
.meta { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; color: var(--steel); font-size: .9375rem; }
.milestone { position: relative; display: inline-flex; flex: none; flex-direction: column; align-items: center; justify-content: flex-end; width: 76px; height: 100px; padding-bottom: .55rem; border: 2px solid var(--kaali); border-radius: 38px 38px 4px 4px; background: linear-gradient(var(--peeli) 36%, var(--kaali) 36% 38%, #fff 38%); color: var(--kaali); line-height: 1; }
.milestone-n { font-size: 1.85rem; font-stretch: 118%; font-weight: 800; letter-spacing: -.03em; }
.milestone-u { margin-top: .1rem; font-size: .875rem; font-weight: 600; }

/* Cover story */
.cover { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); background: var(--peeli); }
.cover-text { display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3.2vw, 3.5rem) clamp(2rem, 4vw, 4rem) max(1.25rem, calc((100vw - 1200px) / 2)); }
.cover .topic { align-self: flex-start; text-decoration-color: var(--kaali); }
.cover h1 { font-size: clamp(2rem, 3.5vw, 3.35rem); font-weight: 780; line-height: 1.04; }
.cover h1 a { text-decoration: none; }
.cover h1 a:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.cover-dek { max-width: 34rem; font: 400 1.1875rem/1.5 var(--reading); color: var(--kaali); }
.cover-end { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: .6rem; }
.cover .milestone { background: linear-gradient(var(--peeli) 36%, var(--kaali) 36% 38%, #fff 38%); }
.cover-photo { min-height: 100%; aspect-ratio: 16 / 9; }
.cover-photo img, .cover-photo svg { width: 100%; height: 100%; object-fit: cover; }

/* Home sections */
.sec { padding-block: var(--space); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
.sec-head h2, .sec-title, .topics h2, .related h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.sec-title, .related h2 { margin-bottom: 1.75rem; }
.sec-head a { flex: none; font-weight: 650; text-decoration-color: var(--peeli); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.latest { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: repeat(2, auto) 1fr; gap: 1.75rem clamp(1.75rem, 4vw, 3.5rem); }
.latest .card-big { grid-row: 1 / span 3; }
.latest .card-big:only-child { grid-column: 1 / -1; }

/* Cards */
.card { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.card-photo { overflow: hidden; border-radius: 4px; background: var(--kerb); aspect-ratio: 16 / 9; }
.card-photo img, .card-photo svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-text { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.card-title { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.012em; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card-title a:focus-visible { outline: 0; box-shadow: none; }
.card:has(.card-title a:focus-visible) { outline: 3px solid var(--kaali); outline-offset: 6px; }
.card:hover .card-title a { text-decoration: underline; text-decoration-color: var(--peeli); text-decoration-thickness: 4px; text-underline-offset: 4px; }
.card .topic { position: relative; z-index: 1; }
.card-dek { font: 400 1.0625rem/1.55 var(--reading); }
.card-big .card-title, .card-lead .card-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -.02em; }
.card-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; align-items: start; }
.card-row .card-title { font-size: 1.125rem; }
.card-lead { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); gap: clamp(1.5rem, 3vw, 2.75rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.grid { display: grid; gap: clamp(2rem, 4vw, 3.25rem) var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Topics */
.topics { padding-block: clamp(2.75rem, 5vw, 4.5rem); background: var(--kerb); }
.topics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2.25rem var(--gap); margin-top: 1.75rem; }
.topics-col { border-top: 4px solid var(--kaali); padding-top: 1rem; }
.topics-col h3 { font-size: 1.3rem; }
.topics-col h3 a { text-decoration: none; }
.topics-col h3 a:hover, .topics-col li a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.topics-col ul { display: grid; gap: .85rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.topics-col li a { text-decoration: none; line-height: 1.4; }

/* Booking banner */
.band { position: relative; display: flex; align-items: flex-end; min-height: 480px; padding: clamp(2rem, 5vw, 4rem) 0; overflow: hidden; background: var(--peeli); }
.band-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band .wrap { position: relative; }
.band-card { display: grid; gap: 1rem; max-width: 500px; margin-left: auto; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 6px; background: var(--peeli); color: var(--kaali); }
.band-card h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.band-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

/* Lists of stories */
.list-head { padding-block: clamp(2.25rem, 5vw, 4rem) clamp(1.75rem, 3vw, 2.5rem); background: var(--peeli); }
.list-head h1 { max-width: 20ch; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 780; line-height: 1.02; overflow-wrap: anywhere; }
.list-intro { max-width: 40rem; margin-top: 1rem; font: 400 1.1875rem/1.5 var(--reading); color: var(--kaali); }
.list-intro p + p { margin-top: .75rem; }
.list-head .search { margin-top: 1.75rem; }
.filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.9rem; }
.filter a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem 1rem; border: 2px solid var(--kaali); border-radius: 6px; color: var(--kaali); font-weight: 600; text-decoration: none; }
.filter a:hover { background: #fff; }
.filter a[aria-current] { background: var(--kaali); color: #fff; }
.filter span { font-weight: 400; }
.list-body { padding-block: clamp(2.25rem, 5vw, 4rem) var(--space); }
.page-body { padding-block: clamp(2.25rem, 5vw, 4rem) var(--space); }
.page-body .story { max-width: 720px; }
.pages { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.pages .page-numbers, .pages .post-page-numbers { display: grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 .9rem; border: 2px solid var(--kaali); border-radius: 6px; font-weight: 600; text-decoration: none; }
.pages .dots { border-color: transparent; }
.pages a:hover { background: var(--peeli); }
.pages .current { background: var(--kaali); color: #fff; }
.nothing { display: grid; justify-items: start; gap: 1.25rem; padding-block: 3rem; font-size: 1.1875rem; }

/* Article */
.article-head { padding-block: clamp(2rem, 4.5vw, 3.75rem) clamp(1.75rem, 3vw, 2.5rem); }
.article-head-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.article-head-in > div { display: grid; gap: 1.1rem; justify-items: start; max-width: 940px; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 780; line-height: 1.05; }
.article-dek { max-width: 42rem; font: 400 clamp(1.1875rem, 1.7vw, 1.375rem)/1.5 var(--reading); }
.article-photo { margin: 0; }
.article-photo img { width: 100%; border-radius: 4px; }
.article-photo figcaption { margin-top: .6rem; color: var(--steel); font-size: .9375rem; }
.article-body { padding-block: clamp(2rem, 4.5vw, 4rem) var(--space); }
.article-body:not(.has-road) .article-main { max-width: 820px; margin-inline: auto; }
.has-road { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(2.5rem, 5.5vw, 5rem); }
.article-main { min-width: 0; }

.trip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem 1.5rem; margin: 0 0 2.25rem; padding: 1.35rem 1.5rem; border-radius: 4px; background: var(--butter); }
.trip dt { color: #4f5555; font-size: .9375rem; }
.trip dd { margin: .1rem 0 0; color: var(--kaali); font-weight: 650; font-size: 1.0625rem; line-height: 1.35; }

/* The road: each heading is a stop, and the cab follows your reading position. */
.road-side { position: relative; }
.road-box { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; scrollbar-width: thin; }
.road-box summary { margin-bottom: 1rem; font-stretch: 118%; font-weight: 700; font-size: 1.125rem; list-style: none; }
.road-box summary::-webkit-details-marker { display: none; }
.road { position: relative; }
.road-lane { position: absolute; left: 0; top: 0; bottom: 0; width: 38px; border-radius: 6px; background: repeating-linear-gradient(#fff 0 11px, transparent 11px 25px) 50% 8px / 3px 100% no-repeat #26292a; }
.road ol { display: grid; gap: .35rem; margin: 0; padding: 1rem 0 2.25rem; list-style: none; }
.road li { position: relative; padding-left: 58px; }
.road li::before { content: ''; position: absolute; left: 38px; top: 1.05rem; width: 11px; height: 4px; background: var(--kaali); }
.road a { display: block; padding: .5rem 0; color: var(--steel); font-size: .9688rem; line-height: 1.35; text-decoration: none; }
.road a:hover { color: var(--kaali); text-decoration: underline; text-underline-offset: 4px; }
.road a[aria-current] { color: var(--kaali); font-weight: 650; }
.road-cab { position: absolute; left: 8px; top: 0; z-index: 1; width: 22px; height: 40px; will-change: transform; }
.road-mini { display: none; }

.tags { margin-top: 2rem; color: var(--steel); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 4px solid var(--kaali); }
.share p { margin-right: .75rem; font-weight: 700; font-size: 1.125rem; }
.share a, .share button { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .9rem; border: 2px solid var(--line); border-radius: 6px; background: #fff; color: var(--kaali); font: 550 1rem var(--display); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--kaali); background: var(--peeli); }
.author { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 2rem; padding: 1.5rem; border-radius: 4px; background: var(--kerb); }
.author img { flex: none; border-radius: 50%; }
.author-name { margin-bottom: .25rem; font-weight: 700; font-size: 1.125rem; }
.related { padding-block: var(--space); background: var(--kerb); }
.related .card-photo { background: #fff; }

/* Comments and forms */
.comments { margin-top: 3rem; }
.comments h2, .comment-reply-title { margin: 0 0 1.25rem; color: var(--kaali); font-size: 1.5rem; font-stretch: 118%; font-weight: 700; }
.comment-list, .comment-list ol { display: grid; gap: 1.5rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.comment-list ol { margin: 1.5rem 0 0; padding-left: 1.5rem; border-left: 3px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: .7rem; }
.comment-author img { border-radius: 50%; }
.comment-metadata, .says { color: var(--steel); font-size: .9375rem; }
.comment-form, .wpcf7-form { display: grid; gap: 1.1rem; max-width: 680px; }
.comment-form label, .wpcf7-form label { font-weight: 600; }
.comment-form p, .wpcf7-form p { display: grid; gap: .4rem; margin: 0; justify-items: start; }
.comment-form input:not([type="submit"], [type="checkbox"]), .comment-form textarea, .wpcf7-form input:not([type="submit"], [type="checkbox"]), .wpcf7-form textarea { width: 100%; min-height: 48px; margin-top: .35rem; padding: .7rem 1rem; border: 2px solid #7d888b; border-radius: 6px; background: #fff; color: var(--ink); font: 400 1.0625rem var(--display); }
.comment-form input:focus, .comment-form textarea:focus, .wpcf7-form input:focus, .wpcf7-form textarea:focus { border-color: var(--kaali); }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .6rem; }
.comment-form-cookies-consent label { font-weight: 400; }
.wpcf7-form label { display: block; width: 100%; }
.wpcf7-form br { display: none; }
.wpcf7-submit { min-height: 48px; padding: .6rem 1.5rem; border: 0; border-radius: 6px; background: var(--kaali); color: #fff; font: 650 1rem var(--display); cursor: pointer; }
.wpcf7-submit:hover { color: var(--peeli); }
.wpcf7-not-valid-tip, .required { color: #a51d12; }

/* Footer */
.foot { padding-block: clamp(3rem, 6vw, 5rem) 2rem; background: var(--kaali); color: #d9dede; }
.foot-in { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem var(--gap); }
.foot-name { margin-bottom: .75rem; color: var(--peeli); font-size: 1.9rem; font-stretch: 118%; font-weight: 780; letter-spacing: -.02em; line-height: 1; }
.foot-about p:not(.foot-name) { max-width: 24rem; }
.foot-h { margin-bottom: .6rem; color: #fff; font-weight: 700; }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li a { display: inline-block; padding: .35rem 0; text-decoration: none; }
.foot a:hover { color: var(--peeli); text-decoration: underline; text-underline-offset: 4px; }
.foot .foot-social { display: flex; gap: .4rem; margin-top: 1rem; }
.foot .foot-social a { display: grid; place-items: center; width: 44px; height: 44px; }
.foot-end { margin-top: 3rem; color: #a5aeb0; font-size: .9375rem; }
.foot :focus-visible { outline-color: var(--peeli); box-shadow: none; }

@media (max-width: 1000px) {
	.burger { display: grid; }
	.top-in { gap: .75rem; min-height: 72px; }
	.brand img { width: 52px; height: 52px; }
	.top-tools { margin-left: auto; }
	.top-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: .5rem 1.25rem 1.25rem; background: #fff; border-bottom: 4px solid var(--kaali); }
	.top-menu.is-open { display: block; }
	.menu, .menu ul { flex-direction: column; gap: 0; }
	.menu a { padding: .85rem 0; font-size: 1.25rem; border-bottom: 1px solid var(--line); }
	.menu ul { display: block; position: static; padding: 0 0 0 1rem; border: 0; }

	.cover { grid-template-columns: 1fr; }
	.cover-photo { order: -1; min-height: 0; }
	.cover-text { padding: 1.75rem 1.25rem 2.25rem; }
	.latest, .card-lead { grid-template-columns: minmax(0, 1fr); }
	.latest .card-big { grid-row: auto; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.foot-about { grid-column: 1 / -1; }

	.has-road { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.road-box { position: static; max-height: none; border: 2px solid var(--kaali); border-radius: 6px; }
	.road-box summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin: 0; padding: .5rem 1rem; cursor: pointer; }
	.road-box summary::after { content: ''; width: 10px; height: 10px; margin-right: 4px; border: solid var(--kaali); border-width: 0 3px 3px 0; transform: rotate(45deg) translateY(-3px); }
	.road-box[open] summary::after { transform: rotate(225deg) translateY(-3px); }
	.road { margin: 0 1rem 1rem; }
	.road-mini { position: fixed; inset: 0 0 auto; z-index: 30; height: 24px; background: repeating-linear-gradient(90deg, #fff 0 12px, transparent 12px 28px) 0 50% / 100% 3px no-repeat #26292a; visibility: hidden; }
	.road-mini.is-on { display: block; visibility: visible; }
	.road-mini svg { position: absolute; left: 0; top: -7px; width: 20px; height: 38px; }
	.story :is(h2, h3) { scroll-margin-top: 44px; }
}

@media (max-width: 640px) {
	.btn-top { min-height: 44px; padding: .5rem .85rem; font-size: .9375rem; }
	.top-in { gap: .35rem; }
	.top-tools { gap: 0; }
	.tool { width: 44px; height: 44px; }
	.brand span { font-size: 1.125rem; }
	.brand { gap: .5rem; }
	.brand img { width: 46px; height: 46px; }
	.grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
	.foot-in, .trip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article-head-in { align-items: flex-start; }
	.article-head .milestone { display: none; }
	.article-photo .wrap { width: 100%; }
	.article-photo img { border-radius: 0; }
	.article-photo figcaption { padding-inline: 1.25rem; }
	.share p { width: 100%; }
	.band { flex-direction: column; align-items: stretch; min-height: 0; padding: 0; }
	.band-photo { position: static; height: auto; aspect-ratio: 16 / 10; }
	.band .wrap { width: 100%; }
	.band-card { max-width: none; padding: 2rem 1.25rem 2.5rem; border-radius: 0; }
}
@media (max-width: 400px) {
	.brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
@media print {
	.top, .road-side, .road-mini, .share, .comments, .related, .band, .foot { display: none !important; }
	.has-road { display: block; }
}
