/*
Theme Name: Yolmatik Road
Theme URI: https://yolmatik.com.tr/
Description: Stories from the road. A night-drive reading theme with large type, a road that runs through every story, and quiet ad placements.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: yolmatik-road
*/

@font-face { font-family: "Besley"; src: url("assets/fonts/besley.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("assets/fonts/overpass.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }

:root {
	--night: #0f1524;
	--night-2: #182036;
	--asphalt: #2a3144;
	--asphalt-edge: #454e65;
	--dash-dim: #626b82;
	--accent: #f6bf26;
	--beam: #fff5df;
	--beam-2: #f6e6c6;
	--ink: #1b1a18;
	--ink-2: #4c4637;
	--on-night: #fff5df;
	--on-night-2: #c9cede;
	--neon: #ff7a72;
	--sign: #0b6b4a;
	--sign-blue: #234a96;
	--sign-brown: #6a3d1e;
	--sign-red: #b9303f;
	--pole: #8b94a7;
	--gut: 40px;
	--fs-body: 21px;
	--display: "Besley", Georgia, "Times New Roman", serif;
	--road: "Overpass", "Helvetica Neue", Arial, sans-serif;
}
html.hs-large { --fs-body: 25px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--on-night); font: 400 18px/1.5 var(--road); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--beam); color: var(--ink); padding: 12px 16px; }
.icon { width: 1.5em; height: 1.5em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Top of the road */
.topbar { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; min-height: 70px; max-width: 1500px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--on-night); text-decoration: none; min-height: 48px; }
.brand-mark { width: 46px; height: 46px; transition: transform .35s ease; }
.brand-word { width: 164px; height: 26px; }
.stops { position: static; }
.stops summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 48px; padding: 0 14px; font: 800 18px/1 var(--road); color: var(--night); background: var(--accent); border-radius: 8px; cursor: pointer; user-select: none; }
.stops summary::-webkit-details-marker { display: none; }
.stops summary .icon { width: 24px; height: 24px; stroke-width: 3; }
.stops-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--night-2); padding: 20px 16px 26px; box-shadow: 0 24px 40px rgba(0, 0, 0, .5); }
.stops-panel h2 { font: 900 30px/1.1 var(--display); color: var(--neon); margin-bottom: 8px; }
.stops-panel ul { list-style: none; margin: 0 0 18px; padding: 0; }
.stops-panel li a { display: flex; align-items: center; gap: 14px; min-height: 58px; font: 700 21px/1.2 var(--road); text-decoration: none; }
.stops-panel li .icon { color: var(--accent); width: 30px; height: 30px; }
.stops-panel .text-size { margin-top: 14px; width: 100%; color: var(--on-night); background: var(--asphalt); }
@media (min-width: 1024px) {
	.topbar { padding: 14px 40px; }
	.brand-mark { width: 54px; height: 54px; }
	.brand-word { width: 202px; height: 32px; }
	.stops { position: relative; }
	.stops-panel { left: auto; width: 400px; top: calc(100% + 10px); border-radius: 10px; }
	.brand:hover .brand-mark { transform: rotate(-8deg); }
}

/* Text-size switch and search */
.text-size { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; min-width: 48px; padding: 0 14px; font: 800 18px/1 var(--road); color: var(--ink); background: var(--beam-2); border: 0; border-radius: 8px; cursor: pointer; }
.text-size[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.search-line { display: flex; gap: 8px; }
.search-line input { flex: 1; min-width: 0; min-height: 56px; padding: 0 14px; font: 500 19px var(--road); color: var(--ink); background: #fff; border: 0; border-radius: 8px; }
.search-line button { display: inline-flex; align-items: center; min-height: 56px; padding: 0 18px; font: 800 18px var(--road); color: var(--night); background: var(--accent); border: 0; border-radius: 8px; cursor: pointer; }

/* Lead story */
.lead { position: relative; display: block; color: var(--on-night); text-decoration: none; }
.lead-photo { position: relative; aspect-ratio: 4 / 3; background: var(--night-2); }
.lead-photo img { width: 100%; height: 100%; object-fit: cover; }
.lead-text { position: relative; margin-top: -64px; padding: 76px 16px 26px; background: linear-gradient(to top, var(--night) calc(100% - 76px), rgba(15, 21, 36, 0)); }
.lead-title { font: 900 clamp(35px, 10.2vw, 92px)/1.07 var(--display); letter-spacing: -.012em; max-width: 17em; }
.lead-title span, .stop-title span { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 4px no-repeat; transition: background-size .45s ease; }
.lead-sum { display: none; }
.lead-go { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.go-sign { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 2px 22px 0; font: 800 21px/1 var(--road); color: var(--night); background: var(--accent); border-radius: 8px; transition: transform .2s ease; }
.go-sign .icon { width: 26px; height: 26px; stroke-width: 3.2; transition: transform .25s ease; }
.lead:active .go-sign { transform: scale(.97); }
@media (hover: hover) {
	.lead:hover .lead-title span, .stop-link:hover .stop-title span { background-size: 100% 4px; }
	.lead:hover .go-sign .icon { transform: translateX(6px); }
}
.lead:focus-visible .lead-title span, .stop-link:focus-visible .stop-title span { background-size: 100% 4px; }
@media (min-width: 1024px) {
	.lead { display: flex; flex-direction: column; justify-content: flex-end; min-height: min(86vh, 820px); }
	.lead-photo { position: absolute; inset: 0; aspect-ratio: auto; }
	.lead-text { margin-top: 0; padding: 170px max(6%, calc((100% - 1320px) / 2)) 42px; background: linear-gradient(to top, var(--night) 34%, rgba(15, 21, 36, .74) 68%, rgba(15, 21, 36, 0)); }
	.lead-title { font-size: clamp(54px, 5.3vw, 80px); max-width: 17em; }
	.lead-sum { display: block; font: 400 22px/1.5 var(--display); max-width: 40em; margin-top: 18px; color: var(--on-night); }
	.lead-go { justify-content: flex-start; gap: 26px; margin-top: 26px; }
}

/* Mile marker */
.mile { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 60px; padding: 8px 9px 5px; color: #fff; background: var(--sign); border-radius: 6px; box-shadow: inset 0 0 0 2px #fff, 0 3px 10px rgba(0, 0, 0, .35); font: 800 16px/1 var(--road); }
.mile b { font-size: 25px; font-weight: 800; line-height: 1.05; }

/* The route: stories along the road */
.route { position: relative; --dash-c: var(--accent); padding-bottom: 8px; }
.route::before { content: ""; position: absolute; top: 0; bottom: 0; left: 9px; width: 14px; background: repeating-linear-gradient(to bottom, var(--dash-c) 0 22px, transparent 22px 42px) center / 3px 100% no-repeat, var(--asphalt); }
.route-row { position: relative; }
.stop { position: relative; margin-bottom: 42px; }
.stop-link { display: block; color: inherit; text-decoration: none; }
.stop-photo { position: relative; aspect-ratio: 16 / 9; background: var(--night-2); overflow: hidden; }
.stop--big .stop-photo { aspect-ratio: 4 / 3; }
.stop-photo img { width: 100%; height: 100%; object-fit: cover; transition: filter .7s ease, transform .6s ease; }
.js .stop:not(.is-lit) .stop-photo img { filter: brightness(.74) saturate(.85); }
.stop-link:active .stop-photo img { transform: scale(1.02); }
.stop-photo .mile { position: absolute; left: 10px; bottom: 10px; }
.stop-text { position: relative; padding: 16px 16px 0 36px; }
.stop-title { font: 800 27px/1.17 var(--display); letter-spacing: -.006em; }
.stop--big .stop-title { font-size: 32px; font-weight: 900; line-height: 1.12; }
.stop-sum { font: 400 19px/1.5 var(--display); margin-top: 10px; color: var(--on-night); }
.stop-cat { display: flex; align-items: center; gap: 8px; min-height: 32px; margin-top: 10px; font: 700 18px/1.2 var(--road); color: var(--accent); }
.stop-cat .icon { width: 24px; height: 24px; }
@media (hover: hover) { .stop-link:hover .stop-photo img { transform: scale(1.025); } }

.route-row--ad { padding: 0 0 42px; }
.bend { display: none; }

@media (min-width: 1024px) {
	.route { max-width: 1500px; margin: 0 auto; padding-bottom: 0; }
	.route::before { display: none; }
	.route-row::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--rx) - 34px); width: 68px; background: repeating-linear-gradient(to bottom, var(--dash-c) 0 22px, transparent 22px 42px) center / 4px 100% no-repeat, var(--asphalt); box-shadow: inset 2px 0 0 var(--asphalt-edge), inset -2px 0 0 var(--asphalt-edge); }
	.route-row--L { --rx: 6%; padding: 44px 6% 44px 12%; }
	.route-row--R { --rx: 94%; padding: 44px 12% 44px 6%; }
	.route-row--C { --rx: 50%; display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(68px + 96px); padding: 44px 6%; }
	.stop { margin: 0; }
	.stop--big .stop-photo { aspect-ratio: 16 / 9; }
	.stop--big .stop-text { width: 84%; margin-top: -92px; padding: 30px 40px 0 0; background: var(--night); }
	.stop--big .stop-title { font-size: clamp(44px, 4.3vw, 66px); line-height: 1.08; }
	.stop--big .stop-sum { font-size: 22px; max-width: 34em; margin-top: 14px; }
	.stop-photo .mile { left: 16px; bottom: auto; top: 16px; transform: scale(1.1); transform-origin: top left; }
	.stop-text { padding: 20px 0 0; }
	.stop-title { font-size: clamp(30px, 2.5vw, 38px); }
	.bend { display: block; width: 100%; height: 230px; overflow: visible; }
	.bend path { fill: none; vector-effect: non-scaling-stroke; }
	.bend .b-edge { stroke: var(--asphalt-edge); stroke-width: 68px; }
	.bend .b-road { stroke: var(--asphalt); stroke-width: 64px; }
	.bend .b-dash { stroke: var(--accent); stroke-width: 4px; stroke-dasharray: 22 20; }
	.route-row--ad { padding-top: 0; padding-bottom: 44px; }
}

/* Keep driving */
.keep-driving { position: relative; display: block; padding: 8px 16px 44px 36px; }
.keep-driving a { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 66px; padding: 2px 20px 0; font: 800 23px/1 var(--road); color: var(--night); background: var(--accent); border-radius: 8px; text-decoration: none; transition: transform .2s ease; }
.keep-driving a:active { transform: scale(.98); }
.keep-driving .back-a-bit { background: none; color: var(--on-night); font-size: 19px; min-height: 52px; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1024px) { .keep-driving { max-width: 620px; margin: 0 auto; padding: 44px 16px 64px; } }

/* Roadside Stops */
.roadside { position: relative; z-index: 2; background: var(--night-2); padding: 44px 16px 48px; margin-bottom: 42px; }
.roadside-title { font: 900 clamp(46px, 13.4vw, 112px)/1 var(--display); letter-spacing: -.012em; color: var(--neon); text-shadow: 0 0 22px rgba(255, 122, 114, .5); }
.roadside-sub { font: 400 21px/1.45 var(--display); margin: 12px 0 28px; max-width: 26em; }
.signpost { position: relative; list-style: none; margin: 0; padding: 0; }
.signpost::before { content: ""; position: absolute; left: 22px; top: -24px; bottom: -48px; width: 12px; background: var(--pole); }
.signpost li { position: relative; margin-bottom: 12px; }
.arm { --arm-bg: var(--sign-blue); position: relative; display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 6px 54px 6px 18px; font-family: var(--display); color: #fff; text-decoration: none; background: var(--arm-bg); clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 50%, calc(100% - 38px) 100%, 0 100%); transition: transform .25s ease; }
.signpost li:nth-child(1) .arm { width: 100%; }
.signpost li:nth-child(2) .arm { width: 88%; }
.signpost li:nth-child(3) .arm { width: 74%; }
.signpost li:nth-child(4) .arm { width: 100%; }
.signpost li:nth-child(5) .arm { width: 82%; }
.arm .icon { width: 36px; height: 36px; }
.arm-name { display: block; font-weight: 900; font-size: 26px; line-height: 1.12; }
.arm-count { display: block; font: 700 17px/1.2 var(--road); margin-top: 3px; }
.arm:active { transform: translateX(6px); }
.arm--yellow { --arm-bg: var(--accent); color: var(--ink); }
.arm--green { --arm-bg: var(--sign); }
.arm--brown { --arm-bg: var(--sign-brown); }
.arm--red { --arm-bg: var(--sign-red); }
.arm--blue { --arm-bg: var(--sign-blue); }
@media (hover: hover) { .arm:hover { transform: translateX(10px); } }
@media (min-width: 1024px) {
	.roadside { padding: 84px 6% 96px; margin-bottom: 0; }
	.roadside-inner { max-width: 1320px; margin: 0 auto; }
	.roadside-title { font-size: clamp(90px, 8.6vw, 132px); }
	.roadside-sub { font-size: 25px; margin-bottom: 52px; }
	.signpost::before { left: 50%; margin-left: -8px; width: 16px; top: -40px; bottom: -96px; }
	.signpost li { margin-bottom: 18px; display: flex; }
	.signpost li .arm { width: calc(50% + 8px) !important; min-height: 108px; }
	.signpost li:nth-child(odd) { justify-content: flex-end; }
	.signpost li:nth-child(even) .arm { padding: 6px 28px 6px 76px; clip-path: polygon(0 50%, 48px 0, 100% 0, 100% 100%, 48px 100%); }
	.signpost li:nth-child(odd) .arm { padding-left: 34px; }
	.signpost li:nth-child(even) .arm:hover { transform: translateX(-10px); }
	.arm-name { font-size: 40px; }
	.arm-count { font-size: 20px; }
	.arm .icon { width: 48px; height: 48px; }
}

/* Archive, search and page headings */
.road-head { padding: 22px 16px 34px; }
.road-head h1 { font: 900 clamp(42px, 12vw, 104px)/1.05 var(--display); letter-spacing: -.012em; overflow-wrap: anywhere; }
.road-head p { font: 400 21px/1.45 var(--display); margin-top: 12px; max-width: 34em; }
.road-head .search-line { margin-top: 18px; max-width: 620px; }
.cat-sign { display: inline-block; }
.road-head .arm { min-height: 96px; margin-bottom: 18px; padding-right: 62px; max-width: 100%; }
.road-head .arm .arm-name { font-size: clamp(30px, 9vw, 76px); line-height: 1.04; }
.road-head .arm .icon { width: 44px; height: 44px; }
.empty-road { padding: 20px 16px 50px 36px; font: 400 21px/1.5 var(--display); }
.empty-road a { font-weight: 700; }
@media (min-width: 1024px) {
	.road-head { padding: 44px 6% 56px; max-width: 1500px; margin: 0 auto; }
	.road-head .arm { min-height: 136px; padding: 10px 92px 10px 36px; clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 50%, calc(100% - 60px) 100%, 0 100%); }
	.road-head .arm .icon { width: 68px; height: 68px; }
	.road-head p { font-size: 25px; }
}

/* The story */
.trip-head { padding: 12px 16px 20px; max-width: 1240px; margin: 0 auto; }
.trip-title { font: 900 clamp(35px, 9.8vw, 82px)/1.08 var(--display); letter-spacing: -.012em; overflow-wrap: break-word; }
.trip-photo { position: relative; margin: 0; }
.trip-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--night-2); }
.trip-photo .mile { position: absolute; left: 10px; bottom: 10px; }
.trip-road { background: var(--beam); color: var(--ink); --dash-c: var(--dash-dim); }
.trip-lane { position: relative; max-width: 860px; margin: 0 auto; padding: 18px 16px 12px var(--gut); }
.trip-lane::before, .trip-lane::after { content: ""; position: absolute; top: 0; left: 8px; width: 16px; }
.trip-lane::before { bottom: 0; background: repeating-linear-gradient(to bottom, var(--dash-c) 0 22px, transparent 22px 42px) center / 3px 100% no-repeat, var(--asphalt); }
.trip-lane::after { --dash-c: var(--accent); height: var(--read, 100%); max-height: 100%; background: repeating-linear-gradient(to bottom, var(--dash-c) 0 22px, transparent 22px 42px) center / 3px 100% no-repeat; }
.trip-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.trip-cat { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font: 800 19px/1.1 var(--road); color: var(--ink); text-decoration: none; }
.trip-cat .icon { color: var(--sign); width: 28px; height: 28px; }
.trip-date { width: 100%; font: 500 17px/1.3 var(--road); color: var(--ink-2); }

.story-body { font: 400 var(--fs-body)/1.62 var(--display); }
.story-body p { margin: 0 0 1em; }
.story-body a { color: var(--ink); text-decoration-color: var(--sign); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.story-body h2, .story-body h3 { font: 800 1.3em/1.2 var(--display); margin: 1.4em 0 .5em; }
.story-body blockquote { margin: 1.3em 0; padding-left: 18px; box-shadow: inset 4px 0 0 var(--accent); }
.story-body figure { margin: 1.4em 0; }
.story-body ul, .story-body ol { padding-left: 1.2em; }

.story-body p:has(+ .yt-embed) { position: relative; margin: 28px 0 16px; font: 800 1.2em/1.25 var(--display); }
.story-body p:has(+ .yt-embed) strong { font-weight: 800; }
.story-body p:has(+ .yt-embed)::before { content: ""; position: absolute; left: calc(-1 * var(--gut) + 3px); top: 1px; width: 26px; height: 26px; background: var(--accent); border-radius: 4px; transform: rotate(45deg); box-shadow: 0 0 0 3px var(--beam); z-index: 2; }
.story-body p:has(+ .yt-embed)::after { content: ""; position: absolute; left: calc(-1 * var(--gut) + 13px); top: 7px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--ink); z-index: 3; }

.yt-embed { position: relative; z-index: 2; aspect-ratio: 16 / 9; height: auto !important; padding-bottom: 0 !important; border-radius: 0 !important; margin: 0 -16px 0 calc(-1 * var(--gut)); box-shadow: 0 0 0 100vmax var(--night); clip-path: inset(-14px -100vmax); }
.source-credit { margin: 28px 0 8px !important; font: 500 18px/1.5 var(--road); color: var(--ink-2); }
.source-credit em { font-style: normal; }
.source-credit a { display: inline-block; font-weight: 800; color: var(--ink); padding: 12px 0; margin: -12px 0; }

/* Advertisements */
.ad { position: relative; z-index: 2; margin: 28px auto; text-align: center; }
.ad-label { display: block; font: 500 16px/1.3 var(--road); color: var(--ink-2); margin-bottom: 6px; }
.ad-placeholder { padding: 22px; font: 500 16px/1.4 var(--road); color: var(--ink-2); background: var(--beam-2); }
.trip-lane .ad { padding: 10px 0 16px; margin: 24px -16px 24px calc(-1 * var(--gut)); background: var(--beam-2); min-height: 288px; }
.trip-lane .ad:has(> .ad-placeholder) { min-height: 0; }
.route-row--ad .ad, .ad-footer { max-width: 368px; padding: 10px 12px 14px; background: var(--beam); color: var(--ink); }
.route-row--ad .ad { margin: 0 auto; min-height: 298px; }
.route-row--ad .ad:has(> .ad-placeholder) { min-height: 0; }
.ad-footer { margin: 0 auto 32px; }
.ad-top { color: var(--ink); }
.ad ins, .ad iframe { max-width: 100%; }

/* Next Exit */
.exit { position: relative; z-index: 2; background: var(--beam); padding: 12px 16px 0; --dash-c: var(--dash-dim); }
.exit::before { content: ""; position: absolute; top: 0; left: 8px; width: 16px; height: 62px; background: repeating-linear-gradient(to bottom, var(--dash-c) 0 22px, transparent 22px 42px) center / 3px 100% no-repeat, var(--asphalt); }
.exit-sign { position: relative; display: block; max-width: 960px; margin: 22px auto 0; padding: 40px 22px 24px; color: #fff; text-decoration: none; background: var(--sign); border-radius: 14px; box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 6px #fff; transition: transform .25s ease; }
.exit-tab { position: absolute; left: 20px; top: -22px; display: flex; align-items: center; min-height: 46px; padding: 3px 16px 0; font: 800 22px/1 var(--road); color: var(--ink); background: var(--accent); border-radius: 8px 8px 0 0; }
.exit-title { display: block; font: 800 clamp(27px, 7.4vw, 56px)/1.14 var(--road); }
.exit-go { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font: 800 20px/1 var(--road); }
.exit-go svg { width: 54px; height: 54px; fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: square; stroke-linejoin: miter; transition: transform .3s ease; }
.exit-sign:active { transform: translateY(2px); }
.exit-posts { max-width: 960px; margin: 0 auto; height: 44px; background: linear-gradient(var(--pole), var(--pole)) 18% 0 / 14px 100% no-repeat, linear-gradient(var(--pole), var(--pole)) 82% 0 / 14px 100% no-repeat; }
@media (hover: hover) { .exit-sign:hover svg { transform: translate(6px, -6px); } }

.further-head { padding: 40px 16px 24px; max-width: 1500px; margin: 0 auto; }
.further-head h2 { font: 900 clamp(40px, 11vw, 92px)/1.05 var(--display); letter-spacing: -.012em; }
.further .route { --dash-c: var(--accent); }

@media (min-width: 1024px) {
	:root { --gut: 104px; --fs-body: 23px; }
	html.hs-large { --fs-body: 27px; }
	.trip-head { padding: 34px 40px 34px; }
	.trip-title { font-size: clamp(60px, 5.4vw, 84px); }
	.trip-photo { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
	.trip-photo::before { content: ""; position: absolute; left: -100vw; right: -100vw; top: 62%; bottom: 0; background: var(--beam); z-index: -1; }
	.trip-article { position: relative; isolation: isolate; overflow-x: clip; }
	.trip-photo .mile { left: 58px; bottom: 18px; transform: scale(1.15); transform-origin: bottom left; }
	.trip-road { position: relative; }
	.trip-lane { padding: 34px 16px 28px var(--gut); }
	.trip-lane::before, .trip-lane::after { left: 16px; width: 58px; }
	.trip-lane::before { background: repeating-linear-gradient(to bottom, var(--dash-c) 0 22px, transparent 22px 42px) center / 4px 100% no-repeat, var(--asphalt); box-shadow: inset 2px 0 0 var(--asphalt-edge), inset -2px 0 0 var(--asphalt-edge); }
	.trip-lane::after { background: repeating-linear-gradient(to bottom, var(--dash-c) 0 22px, transparent 22px 42px) center / 4px 100% no-repeat; }
	.trip-date { width: auto; margin-left: auto; }
	.trip-meta { justify-content: flex-start; gap: 18px; margin-bottom: 20px; }
	.story-body p:has(+ .yt-embed)::before { left: calc(-1 * var(--gut) + 30px); top: 2px; width: 30px; height: 30px; }
	.story-body p:has(+ .yt-embed)::after { left: calc(-1 * var(--gut) + 42px); top: 9px; border-width: 8px 0 8px 13px; }
	.story-body p:has(+ .yt-embed) { margin-bottom: 52px; }
	.yt-embed { margin: 0; clip-path: inset(-28px -100vmax); }
	.trip-lane .ad { margin: 28px 0; }
	.source-credit { margin-top: 44px !important; }
	.exit { padding-top: 28px; }
	.exit::before { left: calc(max(0px, (100% - 860px) / 2) + 16px); width: 58px; height: 84px; background: repeating-linear-gradient(to bottom, var(--dash-c) 0 22px, transparent 22px 42px) center / 4px 100% no-repeat, var(--asphalt); box-shadow: inset 2px 0 0 var(--asphalt-edge), inset -2px 0 0 var(--asphalt-edge); }
	.exit-sign { padding: 54px 50px 36px; }
	.exit-tab { left: 44px; top: -28px; min-height: 56px; font-size: 26px; padding: 3px 22px 0; }
	.exit-go { font-size: 24px; margin-top: 24px; }
	.exit-go svg { width: 74px; height: 74px; }
	.exit-posts { height: 64px; }
	.further-head { padding: 64px 6% 24px; }
}

/* Pager for multi-part stories */
.pager { margin: 28px 0 8px; text-align: center; font-family: var(--road); }
.pager-count { color: var(--ink-2); font-weight: 700; }
.next-teaser { font: 400 1em/1.4 var(--display); margin-bottom: 12px; }
.next-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 4px 20px 0; font: 800 22px/1.1 var(--road); color: #fff; background: var(--sign); border-radius: 8px; text-decoration: none; }
.prev-link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
.page-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.page-dots a, .page-dots span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; font-weight: 800; color: var(--ink); text-decoration: none; background: var(--beam-2); border-radius: 8px; }
.page-dots span { color: #fff; background: var(--sign); }
.part-badge { font: 800 18px var(--road); margin-bottom: 12px; }

/* Plain pages */
.page-body { font: 400 var(--fs-body)/1.6 var(--display); }
.page-body p, .page-body ul { margin: 0 0 1em; }
.page-body li { margin-bottom: .4em; }
.page-body h2 { font: 800 1.35em/1.2 var(--display); margin: 1.5em 0 .5em; }
.page-body a { color: var(--ink); text-decoration-color: var(--sign); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.page-body a:not(.u-turn) { padding: .1em 0; }
.page-end { height: 40px; }

.hs-form { font-family: var(--road); }
.hs-form label { display: block; font-weight: 800; font-size: 19px; margin: 18px 0 6px; }
.hs-form input, .hs-form textarea { width: 100%; min-height: 56px; padding: 12px 14px; font: 500 19px var(--road); color: var(--ink); background: #fff; border: 2px solid #a99c7f; border-radius: 8px; }
.hs-form button { display: block; width: 100%; min-height: 62px; margin-top: 20px; font: 800 21px var(--road); color: var(--night); background: var(--accent); border: 0; border-radius: 8px; cursor: pointer; }
.hs-hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; margin: 16px 0; font: 700 18px/1.4 var(--road); background: var(--beam-2); border-radius: 8px; }

/* Dead end */
.dead-end { text-align: center; padding: 36px 16px 60px; }
.dead-sign { width: min(68vw, 300px); height: auto; margin: 0 auto 14px; }
.dead-end h1 { font: 900 clamp(48px, 13vw, 104px)/1.03 var(--display); letter-spacing: -.012em; }
.dead-end p { font: 400 21px/1.5 var(--display); margin: 12px auto 24px; max-width: 26em; }
.u-turn { display: inline-flex; align-items: center; gap: 10px; min-height: 62px; padding: 2px 26px 0; font: 800 22px/1 var(--road); color: var(--night); background: var(--accent); border-radius: 8px; text-decoration: none; }
.dead-end .search-line { max-width: 480px; margin: 28px auto 0; }

/* Morning at the end of the road */
.dawn { padding: 58px 16px 18px; color: var(--on-night); background: linear-gradient(to bottom, var(--night) 0, #1c2342 40%, #5e3259 62%, #d9744a 84%, #f7bd63 100%); }
.dawn-in { max-width: 1320px; margin: 0 auto; }
.dawn-line { font: 900 clamp(32px, 9vw, 72px)/1.1 var(--display); letter-spacing: -.01em; max-width: 14em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 26px; list-style: none; margin: 18px 0 14px; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; font: 700 19px/1.2 var(--road); text-underline-offset: 4px; }
.footer-note { font: 400 18px/1.5 var(--road); max-width: 42em; color: var(--on-night); }
.dawn-word { width: 100%; height: auto; aspect-ratio: 10845 / 1690; margin: 46px 0 8px; color: var(--night); --word-dot: var(--night); }
.dawn-copy { font: 700 17px/1.4 var(--road); color: var(--ink); }
@media (min-width: 1024px) { .dawn { padding: 110px 6% 26px; } .dawn-word { margin-top: 90px; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Phones: no road line beside the text, the column uses the full width. */
@media (max-width: 1023.98px) {
	:root { --gut: 16px; }
	.route::before, .trip-lane::before, .trip-lane::after, .exit::before,
	.story-body p:has(+ .yt-embed)::before, .story-body p:has(+ .yt-embed)::after { display: none; }
	.stop-text { padding-left: 16px; }
}
