/*
Theme Name: Eziitours Field Notes
Theme URI: https://eziitours.in
Author: Eziitours
Description: Custom editorial travel theme — paper, ink and boarding-pass details.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: eziitours
*/

/* ===================== Tokens ===================== */
:root {
	--paper: #f2ece1;
	--paper-2: #e9e0cf;
	--paper-3: #ddd2bd;
	--ink: #16201f;
	--ink-2: #2b3634;
	--ink-soft: #56605d;
	--signal: #e5461b;
	--sea: #1f5c57;
	--sun: #efb238;
	--plum: #5d3653;
	--line: rgba(22, 32, 31, .16);
	--line-strong: rgba(22, 32, 31, .55);

	--f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--f-body: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--gutter: clamp(16px, 4vw, 56px);
	--max: 1320px;
	--radius: 4px;
	--ease: cubic-bezier(.2, .8, .2, 1);
}

/* ===================== Base ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
/* paper grain */
body::before {
	content: "";
	position: fixed; inset: 0;
	pointer-events: none;
	z-index: 100;
	opacity: .32;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .22  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--sun); color: var(--ink); }

.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--ink); color: var(--paper); padding: .7em 1em; font-family: var(--f-mono);
}

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.kicker { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.kicker b { color: var(--signal); font-weight: 500; }

/* ===================== Ticker ===================== */
.ticker {
	background: var(--ink);
	color: var(--paper);
	overflow: hidden;
	white-space: nowrap;
	font-family: var(--f-mono);
	font-size: .7rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	border-bottom: 1px solid #000;
}
.ticker__track { display: inline-flex; gap: 3rem; padding: .55rem 0; animation: ticker 48s linear infinite; }
.ticker__track span::before { content: "✦"; color: var(--sun); margin-right: 3rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===================== Header ===================== */
.site-header {
	position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: blur(10px) saturate(1.2);
	-webkit-backdrop-filter: blur(10px) saturate(1.2);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: baseline; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand__word { font-family: var(--f-display); font-size: 1.85rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.brand__word i { color: var(--signal); font-style: normal; }
.brand__tag { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line-strong); padding: .15rem .4rem; border-radius: 2px; transform: translateY(-.35rem); }
.brand:hover { color: var(--ink); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; counter-reset: nav; }
.nav li { counter-increment: nav; }
.nav a {
	display: block; padding: .5rem .7rem; text-decoration: none;
	font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
	border-radius: 999px; transition: background .25s var(--ease), color .25s var(--ease);
}
.nav a::before { content: counter(nav, decimal-leading-zero) " "; color: var(--signal); opacity: .8; }
.nav a:hover, .nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current-post-ancestor > a { background: var(--ink); color: var(--paper); }

.menu-toggle {
	display: none; align-items: center; gap: .6rem;
	background: var(--ink); color: var(--paper); border: 0; border-radius: 999px;
	padding: .6rem 1rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.menu-toggle__bars { width: 16px; height: 8px; position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-toggle__bars::before { top: 0; } .menu-toggle__bars::after { bottom: 0; }
.menu-open .menu-toggle__bars::before { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-toggle__bars::after { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 960px) {
	.menu-toggle { display: inline-flex; }
	.nav {
		position: fixed; inset: 0; top: 0; z-index: -1;
		background: var(--ink); color: var(--paper);
		padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gutter) 2rem;
		clip-path: circle(0 at calc(100% - 50px) 36px);
		transition: clip-path .6s var(--ease);
		overflow-y: auto;
	}
	.menu-open .nav { clip-path: circle(150% at calc(100% - 50px) 36px); }
	.menu-open .site-header { background: var(--ink); border-color: transparent; }
	.menu-open .brand, .menu-open .brand:hover { color: var(--paper); }
	.menu-open .brand__tag { color: var(--paper-3); border-color: var(--paper-3); }
	.menu-open .menu-toggle { background: var(--signal); }
	.nav ul { flex-direction: column; gap: 0; }
	.nav a {
		font-family: var(--f-display); font-size: clamp(1.4rem, 6vw, 2rem); letter-spacing: 0; text-transform: none;
		padding: .35rem 0; border-radius: 0; border-bottom: 1px solid rgba(242, 236, 225, .14);
	}
	.nav a::before { font-family: var(--f-mono); font-size: .8rem; vertical-align: super; margin-right: .6rem; }
	.nav a:hover, .nav .current-menu-item > a { background: none; color: var(--sun); }
	body.menu-open { overflow: hidden; }
}

/* ===================== Hero ===================== */
.hero { position: relative; padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__title {
	font-family: var(--f-display); font-weight: 500; font-optical-sizing: auto;
	font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.02em;
	margin: 1.2rem 0 1.6rem;
}
.hero__title em { font-style: italic; color: var(--signal); font-weight: 400; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(105%); } }
.hero__lede { max-width: 34ch; font-size: 1.2rem; color: var(--ink-2); margin: 0 0 2rem; animation: fade .9s .45s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; animation: fade .9s .55s var(--ease) both; }

.btn {
	display: inline-flex; align-items: center; gap: .6rem;
	padding: .95rem 1.4rem; border-radius: 999px; text-decoration: none;
	font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
	background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
	transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--signal); border-color: var(--signal); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* Boarding pass */
.pass-stage { position: relative; animation: fade 1s .3s var(--ease) both; }
.pass {
	position: relative; display: grid; grid-template-columns: 1fr 120px;
	background: #fbf8f1; color: var(--ink);
	border-radius: 14px;
	box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 30px 60px -30px rgba(22, 32, 31, .45), 0 12px 24px -16px rgba(22,32,31,.3);
	transform: rotate(-3deg);
	transition: transform .6s var(--ease);
	/* side notches */
	-webkit-mask: radial-gradient(circle 14px at calc(100% - 120px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
	              radial-gradient(circle 14px at calc(100% - 120px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
	        mask: radial-gradient(circle 14px at calc(100% - 120px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
	              radial-gradient(circle 14px at calc(100% - 120px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.pass-stage:hover .pass { transform: rotate(-1deg) translateY(-6px); }
.pass__main { padding: 1.4rem 1.5rem 1.3rem; border-right: 2px dashed var(--paper-3); }
.pass__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.pass__head .mono { font-size: .64rem; }
.pass__head strong { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: -.01em; }
.pass__route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: .8rem; padding: 1.1rem 0; }
.pass__route .code { font-family: var(--f-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; letter-spacing: -.03em; }
.pass__route .city { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: .35rem; }
.pass__route .to { text-align: right; }
.pass__route .plane { color: var(--signal); width: 44px; height: 44px; margin-bottom: .8rem; }
.pass__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.pass__meta dt { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.pass__meta dd { margin: .15rem 0 0; font-family: var(--f-mono); font-size: .86rem; font-weight: 500; }
.pass__stub { padding: 1.2rem .9rem; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; }
.pass__stub .mono { font-size: .56rem; line-height: 1.5; }
.pass__stub .seat { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; color: var(--signal); }
.barcode {
	width: 100%; height: 64px;
	background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px);
}

.stamp {
	position: absolute; width: 150px; height: 150px; right: -18px; top: -54px; z-index: 2;
	color: var(--signal); pointer-events: none;
}
.stamp svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.stamp__core { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 2.6rem; font-style: italic; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.pass-stage { margin-top: 2.5rem; max-width: 520px; }
	.stamp { width: 112px; height: 112px; top: -48px; right: -6px; }
	.stamp__core { font-size: 2rem; }
}
@media (max-width: 480px) {
	.pass { grid-template-columns: 1fr 86px;
		-webkit-mask: radial-gradient(circle 12px at calc(100% - 86px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at calc(100% - 86px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
		        mask: radial-gradient(circle 12px at calc(100% - 86px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at calc(100% - 86px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
	.pass__meta { grid-template-columns: repeat(2, 1fr); }
	.pass__main { padding: 1.1rem; }
	.pass__stub .seat { font-size: 1.6rem; }
}

/* ===================== Departures board ===================== */
.board-section { padding-block: clamp(2rem, 5vw, 4rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.section-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.015em; margin: .4rem 0 0; }
.section-title em { font-style: italic; color: var(--signal); font-weight: 400; }

.board {
	background: var(--ink); color: #f6efe0; border-radius: 10px;
	padding: .6rem clamp(.6rem, 2vw, 1.4rem) 1rem;
	box-shadow: inset 0 0 0 1px #000, inset 0 2px 0 rgba(255,255,255,.04), 0 30px 50px -35px rgba(0,0,0,.6);
	overflow-x: auto;
}
.board table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0 6px; font-family: var(--f-mono); }
.board th { text-align: left; font-weight: 400; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #8f9893; padding: .6rem .6rem .2rem; }
.board td { padding: 0; }
.board tr.row a { display: block; padding: .75rem .6rem; text-decoration: none; color: inherit; }
.board tr.row td { background: #1f2a29; border-top: 1px solid #0b1110; transition: background .2s; }
.board tr.row td:first-child { border-radius: 4px 0 0 4px; }
.board tr.row td:last-child { border-radius: 0 4px 4px 0; }
.board tr.row:hover td { background: #2a3836; }
.board .flap {
	display: inline-block; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
	color: var(--sun);
}
.board .flap--dest { color: #f6efe0; font-size: 1.05rem; }
.board tr.row:hover .flap--dest { color: var(--sun); }
.board .status { font-size: .7rem; letter-spacing: .14em; padding: .25rem .5rem; border-radius: 3px; background: rgba(239,178,56,.12); color: var(--sun); white-space: nowrap; }
.board .status--live { background: var(--signal); color: #fff; animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.board .reveal-row .flap { animation: flip .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + .2s); transform-origin: 50% 0; }
@keyframes flip { from { transform: perspective(300px) rotateX(-90deg); opacity: 0; } }

/* ===================== Cards ===================== */
.feed { padding-block: clamp(2rem, 6vw, 5rem); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
.grid > .card { grid-column: span 4; }
.grid > .card--feature { grid-column: span 12; }
.grid > .card--wide { grid-column: span 6; }
@media (max-width: 960px) { .grid > .card, .grid > .card--wide { grid-column: span 6; } }
@media (max-width: 620px) { .grid > .card, .grid > .card--wide, .grid > .card--feature { grid-column: span 12; } }

.card { position: relative; display: flex; flex-direction: column; }
.card__link { position: absolute; inset: 0; z-index: 3; }
.card__link:focus-visible { outline-offset: 4px; border-radius: 10px; }

.tag {
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: #fbf8f1; border-radius: 10px;
	box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 36px -28px rgba(22,32,31,.55);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
	overflow: hidden;
}
.card:nth-child(3n+1) .tag { --tilt: -.6deg; } .card:nth-child(3n+2) .tag { --tilt: .5deg; } .card:nth-child(3n) .tag { --tilt: -.3deg; }
.card:hover .tag { transform: rotate(var(--tilt, 0deg)) translateY(-6px); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 34px 50px -30px rgba(22,32,31,.6); }
.tag__cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.tag__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .tag__cover img { transform: scale(1.05); }
.tag__hole {
	position: absolute; z-index: 2; top: 14px; left: 14px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--paper); box-shadow: inset 0 2px 3px rgba(0,0,0,.35), 0 0 0 4px rgba(251,248,241,.7);
}
.tag__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; border-top: 2px dashed var(--paper-3); }
.tag__cat { align-self: flex-start; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--cat, var(--signal)); padding: .25rem .5rem; border-radius: 3px; position: relative; z-index: 4; text-decoration: none; }
.tag__cat:hover { color: #fff; filter: brightness(1.1); }
.tag__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.tag__excerpt { margin: 0; color: var(--ink-soft); font-size: .96rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag__meta { margin-top: auto; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.tag__meta div { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.tag__meta span { display: block; font-size: .56rem; letter-spacing: .16em; color: var(--ink-soft); }

/* Feature card */
.card--feature .tag { display: grid; grid-template-columns: 1.25fr 1fr; }
.card--feature .tag__cover { aspect-ratio: auto; min-height: 420px; }
.card--feature .tag__body { border-top: 0; border-left: 2px dashed var(--paper-3); padding: clamp(1.4rem, 3vw, 2.6rem); justify-content: center; gap: 1rem; }
.card--feature .tag__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.12; }
.card--feature .tag__excerpt { font-size: 1.08rem; -webkit-line-clamp: 4; }
.card--feature .tag__hole { top: 50%; left: auto; right: 16px; transform: translateY(-50%); }
.card--feature .flag { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--signal); }
@media (max-width: 820px) {
	.card--feature .tag { grid-template-columns: 1fr; }
	.card--feature .tag__cover { min-height: 0; aspect-ratio: 16 / 10; }
	.card--feature .tag__body { border-left: 0; border-top: 2px dashed var(--paper-3); }
	.card--feature .tag__hole { top: 14px; right: auto; left: 14px; transform: none; }
}

/* Generative topo cover (used when a post has no image) */
.topo {
	position: absolute; inset: 0;
	background-color: var(--bg, var(--sea));
	color: var(--fg, #f6efe0);
	overflow: hidden;
	isolation: isolate;
}
.topo::before {
	content: ""; position: absolute; inset: -40%;
	background:
		repeating-radial-gradient(circle at var(--x, 30%) var(--y, 40%), transparent 0 18px, currentColor 18px 19px),
		repeating-radial-gradient(circle at var(--x2, 75%) var(--y2, 70%), transparent 0 26px, currentColor 26px 27px);
	opacity: .2;
	transform: rotate(var(--r, 0deg));
	transition: transform 1.6s var(--ease);
}
.card:hover .topo::before { transform: rotate(var(--r, 0deg)) scale(1.06); }
.topo::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; left: var(--x, 30%); top: var(--y, 40%); background: var(--pin, var(--sun)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--pin, var(--sun)) 30%, transparent); transform: translate(-50%, -50%); }
.topo__code { position: absolute; right: 6%; bottom: 2%; font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(3rem, 8vw, 6rem); line-height: .9; letter-spacing: -.04em; opacity: .95; }
.card:not(.card--feature) .topo__code { font-size: clamp(2.6rem, 6vw, 4rem); }
.topo__coords { position: absolute; left: 8%; bottom: 10%; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.single-cover .topo__code { font-size: clamp(3.5rem, 10vw, 8rem); }

/* Empty state */
.empty {
	position: relative; padding: clamp(2rem, 5vw, 4rem); border: 1.5px dashed var(--line-strong); border-radius: 12px;
	display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
	background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(22,32,31,.025) 22px 44px);
}
.empty h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; margin: .4rem 0 .8rem; }
.empty p { margin: 0; max-width: 46ch; color: var(--ink-soft); }
.postmark { width: 140px; height: 140px; color: var(--signal); transform: rotate(-12deg); opacity: .9; }
@media (max-width: 640px) { .empty { grid-template-columns: 1fr; } .postmark { width: 100px; height: 100px; } }

/* Pagination */
.pagination { margin-top: 3rem; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .9rem; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-family: var(--f-mono); font-size: .8rem; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ===================== Archive head ===================== */
.archive-head { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.archive-head__grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.archive-head h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; margin: .8rem 0 0; }
.archive-head h1 em { font-style: italic; color: var(--signal); font-weight: 400; }
.archive-head .desc { max-width: 52ch; color: var(--ink-2); margin-top: 1.2rem; font-size: 1.1rem; }
.archive-head .count { text-align: right; }
.archive-head .count b { display: block; font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--signal); font-weight: 500; }
@media (max-width: 640px) { .archive-head__grid { grid-template-columns: 1fr; } .archive-head .count { text-align: left; } }

/* ===================== Single ===================== */
.progress { position: fixed; z-index: 60; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 3px; pointer-events: none; }
.progress__bar { height: 100%; width: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.progress__plane { position: absolute; top: -9px; left: calc(var(--p, 0) * 100%); width: 20px; height: 20px; margin-left: -10px; color: var(--signal); transition: opacity .3s; opacity: calc(var(--p, 0) * 40); }

.breadcrumbs { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs .separator { color: var(--signal); margin: 0 .4rem; }

.entry-head { padding-block: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.entry-head__cat { margin: 1.4rem 0 0; }
.entry-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.12; letter-spacing: -.015em; margin: .9rem 0 1rem; max-width: 24ch; text-wrap: balance; }
.entry-deck { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--ink-2); max-width: 60ch; margin: 0; line-height: 1.55; }
.entry-strip {
	margin-top: 2rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 820px;
	border: 1px solid var(--line-strong); border-radius: 8px; background: #fbf8f1;
}
.entry-strip > div { padding: .8rem 1rem; border-right: 1px dashed var(--line-strong); min-width: 0; }
.entry-strip > div:last-child { border-right: 0; }
.entry-strip span { display: block; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.entry-strip b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: .86rem; margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 620px) { .entry-strip { grid-template-columns: repeat(2, 1fr); } .entry-strip > div:nth-child(2) { border-right: 0; } .entry-strip > div:nth-child(-n+2) { border-bottom: 1px dashed var(--line-strong); } }

.single-cover { position: relative; aspect-ratio: 21 / 9; border-radius: 12px; overflow: hidden; margin-bottom: clamp(2rem, 5vw, 4rem); background: var(--paper-3); }
.single-cover img { width: 100%; height: 100%; object-fit: cover; }
.single-cover figcaption { position: absolute; left: 1rem; bottom: 1rem; background: var(--paper); padding: .3rem .6rem; border-radius: 3px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 620px) { .single-cover { aspect-ratio: 4 / 3; } }

.entry-layout { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 720px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.entry-layout--page { grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr); }
.entry-layout > .entry-content { grid-column: 2; }
.toc { grid-column: 1; grid-row: 1; }
.toc__inner { position: sticky; top: 110px; }
.toc h2 { font-family: var(--f-mono); font-size: .66rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .8rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px dashed var(--line-strong); counter-reset: toc; }
.toc li { counter-increment: toc; position: relative; margin: 0 0 .7rem; }
.toc li::before { content: ""; position: absolute; left: -18.5px; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.toc li.is-active::before { background: var(--signal); border-color: var(--signal); }
.toc a { text-decoration: none; font-size: .88rem; line-height: 1.35; display: block; color: var(--ink-soft); }
.toc a::before { content: counter(toc, decimal-leading-zero) " "; font-family: var(--f-mono); font-size: .66rem; color: var(--signal); }
.toc li.is-active a { color: var(--ink); }
@media (max-width: 1080px) {
	.entry-layout, .entry-layout--page { grid-template-columns: minmax(0, 1fr); }
	.entry-layout > .entry-content, .toc { grid-column: 1; }
	.toc { grid-row: auto; }
	.toc__inner { position: static; background: #fbf8f1; border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; }
}

/* Entry content typography */
.entry-content { font-size: 1.0625rem; line-height: 1.7; counter-reset: sec; }
.entry-content > * { margin-block: 0 1.4em; }
.entry-content > p:first-of-type::first-letter {
	float: left; font-family: var(--f-display); font-weight: 500; font-size: 5.4em; line-height: .78; margin: .06em .1em 0 -.02em; color: var(--signal);
}
.entry-layout--page .entry-content > p:first-of-type::first-letter, .package .entry-content > p:first-of-type::first-letter { all: unset; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--f-body); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; text-wrap: balance; }
.entry-content h2 { font-size: clamp(1.35rem, 2vw, 1.6rem); margin-top: 2em; counter-increment: sec; }
.single .entry-content h2::before { content: "§" counter(sec, decimal-leading-zero); display: block; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .14em; color: var(--signal); margin-bottom: .6rem; }
.entry-content h3 { font-size: 1.15rem; margin-top: 1.6em; }
.entry-content h4 { font-size: 1.05rem; margin-top: 1.4em; }
.entry-content a { color: var(--sea); text-decoration-color: color-mix(in srgb, var(--sea) 40%, transparent); text-decoration-thickness: 2px; }
.entry-content a:hover { color: var(--signal); text-decoration-color: var(--signal); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--signal); content: "✦  "; font-size: .8em; }
.entry-content ol li::marker { font-family: var(--f-mono); color: var(--signal); font-size: .85em; }
.entry-content blockquote, .entry-content .wp-block-quote, .entry-content .wp-block-pullquote {
	margin: 2.4em 0; padding: 0 0 0 1.4em; border: 0; border-left: 3px solid var(--signal);
	font-family: var(--f-display); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.35; letter-spacing: -.01em;
}
.entry-content blockquote p { margin: 0 0 .5em; }
.entry-content blockquote cite { display: block; font-family: var(--f-mono); font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.entry-content figure { margin-inline: 0; }
.entry-content figure img { border-radius: 8px; }
.entry-content figcaption { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: var(--ink-soft); margin-top: .6rem; }
.entry-content .alignwide { margin-inline: calc(-1 * clamp(0px, 6vw, 120px)); }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content th { text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--paper); }
.entry-content th, .entry-content td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.entry-content tr:nth-child(even) td { background: rgba(22,32,31,.03); }
.entry-content hr { border: 0; height: 18px; margin: 3em 0; background: radial-gradient(circle, var(--signal) 2px, transparent 2.5px) center / 22px 18px repeat-x; }
.entry-content code { font-family: var(--f-mono); font-size: .88em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; }
.entry-content .wp-block-button__link { background: var(--ink); color: var(--paper); border-radius: 999px; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: .9rem 1.4rem; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--signal); color: #fff; }
/* "Good to know" callout: add class "note" to a group/paragraph block */
.entry-content .note, .entry-content .is-style-note {
	background: #fbf8f1; border: 1px solid var(--line-strong); border-radius: 8px; padding: 1.2rem 1.4rem 1.2rem 3.2rem; position: relative; font-size: 1rem;
}
.entry-content .note::before, .entry-content .is-style-note::before { content: "i"; position: absolute; left: 1.1rem; top: 1.15rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-family: var(--f-display); font-style: italic; font-weight: 700; }
/* Rank Math FAQ block */
.entry-content .rank-math-block .rank-math-list-item { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.entry-content .rank-math-block .rank-math-question { font-family: var(--f-display); font-size: 1.35rem; margin: 0 0 .4rem; }
.entry-content .rank-math-block .rank-math-answer p { margin: 0; }

.entry-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.entry-tags a { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; }
.entry-tags a:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 1080px) { .entry-tags { grid-column: 1; } }

/* Next stop */
.next-stop { margin-top: clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.next-stop a { padding: clamp(1.4rem, 3vw, 2.4rem) 0; text-decoration: none; display: block; }
.next-stop a + a, .next-stop .spacer + a { border-left: 1px solid var(--ink); padding-left: clamp(1rem, 3vw, 2.4rem); text-align: right; }
.next-stop .mono { color: var(--signal); }
.next-stop strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.2; letter-spacing: -.02em; margin-top: .5rem; }
.next-stop a:hover strong { color: var(--signal); }
@media (max-width: 620px) { .next-stop { grid-template-columns: 1fr; } .next-stop a + a, .next-stop .spacer + a { border-left: 0; border-top: 1px solid var(--ink); padding-left: 0; text-align: left; } }

.related { padding-block: clamp(3rem, 6vw, 5rem); }

/* ===================== 404 / search ===================== */
.lost { padding-block: clamp(3rem, 9vw, 8rem); text-align: center; }
.lost__code { font-family: var(--f-display); font-style: italic; font-size: clamp(5rem, 16vw, 11rem); line-height: .8; letter-spacing: -.06em; color: var(--signal); margin: 0; }
.lost h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -.01em; line-height: 1.15; margin: 1.5rem 0 1rem; }
.lost p { color: var(--ink-soft); max-width: 44ch; margin: 0 auto 2rem; }
.lost .bag-tag { display: inline-block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; border: 1.5px solid var(--ink); padding: .4rem .8rem; border-radius: 3px; transform: rotate(-4deg); margin-bottom: 1.5rem; background: var(--sun); }

.search-form { display: flex; max-width: 560px; margin: 0 auto; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fbf8f1; }
.search-form input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: .95rem 1.3rem; font: inherit; color: var(--ink); }
.search-form input[type="search"]:focus { outline: none; }
.search-form:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 35%, transparent); }
.search-form button { border: 0; background: var(--ink); color: var(--paper); padding: 0 1.4rem; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.search-form button:hover { background: var(--signal); }

/* WPForms */
.wpforms-container .wpforms-field input, .wpforms-container .wpforms-field textarea {
	background: #fbf8f1 !important; border: 1px solid var(--line-strong) !important; border-radius: 6px !important; font: inherit !important; padding: .8rem 1rem !important; color: var(--ink) !important; max-width: 100% !important;
}
.wpforms-container .wpforms-field input:focus, .wpforms-container .wpforms-field textarea:focus { border-color: var(--ink) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 25%, transparent) !important; }
.wpforms-container .wpforms-field-label { font-family: var(--f-mono) !important; font-size: .7rem !important; letter-spacing: .14em !important; text-transform: uppercase !important; font-weight: 400 !important; }
.wpforms-container button[type="submit"] { background: var(--ink) !important; color: var(--paper) !important; border: 0 !important; border-radius: 999px !important; padding: 1rem 1.6rem !important; font-family: var(--f-mono) !important; font-size: .76rem !important; letter-spacing: .12em !important; text-transform: uppercase !important; height: auto !important; }
.wpforms-container button[type="submit"]:hover { background: var(--signal) !important; }

/* ===================== Footer ===================== */
.site-footer { margin-top: clamp(3rem, 8vw, 7rem); background: var(--ink); color: #e9e2d3; position: relative; overflow: hidden; padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid rgba(233,226,211,.14); }
.footer-cta h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.1; letter-spacing: -.015em; margin: .8rem 0 0; color: #f6efe0; }
.footer-cta h2 em { font-style: italic; color: var(--sun); font-weight: 400; }
.footer-cta .kicker { color: #8f9893; }
.footer-cta .btn { background: var(--signal); border-color: var(--signal); color: #fff; justify-self: end; }
.footer-cta .btn:hover { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding-block: 2.6rem; }
.footer-cols h3 { font-family: var(--f-mono); font-weight: 400; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: #8f9893; margin: 0 0 1rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: .45rem; }
.footer-cols p { margin: 0; color: #b9b3a5; font-size: .95rem; max-width: 32ch; }
.footer-word {
	font-family: var(--f-display); font-weight: 600; font-style: italic;
	font-size: clamp(3.5rem, 13vw, 11rem); line-height: .85; letter-spacing: -.04em;
	color: transparent; -webkit-text-stroke: 1px rgba(233,226,211,.32);
	white-space: nowrap; text-align: center; margin: 0 calc(-1 * var(--gutter)) -.12em; user-select: none;
	transition: color .8s var(--ease);
}
.site-footer:hover .footer-word { -webkit-text-stroke-color: rgba(239,178,56,.6); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.2rem; border-top: 1px solid rgba(233,226,211,.14); font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #8f9893; position: relative; z-index: 1; background: var(--ink); }
@media (max-width: 820px) { .footer-cta { grid-template-columns: 1fr; } .footer-cta .btn { justify-self: start; } .footer-cols { grid-template-columns: repeat(2, 1fr); } }

/* ===================== Scroll reveal ===================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
	.ticker__track { animation: none; }
}

/* =====================================================================
   App-style mobile layer
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

html { -webkit-tap-highlight-color: transparent; }
.tabbar, .sheet, .sheet-backdrop, .toast { display: none; }

@media (max-width: 720px) {
	body { font-size: 1rem; padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); overscroll-behavior-y: none; }
	:root { --gutter: 18px; }

	/* compact header that hides on scroll down */
	.ticker { font-size: .6rem; }
	.ticker__track { padding: .4rem 0; }
	.site-header { transition: transform .35s var(--ease); }
	.site-header.is-hidden { transform: translateY(-110%); }
	.site-header__inner { min-height: 58px; }
	.brand__word { font-size: 1.5rem; }
	.menu-toggle, .nav { display: none; }

	/* tap feedback */
	a, button { touch-action: manipulation; }
	.btn:active, .tag__cat:active, .card:active .tag, .sheet__list a:active, .sheet__chips a:active { transform: scale(.97); transition-duration: .1s; }
	.btn { padding: .9rem 1.2rem; }
	.hero__actions .btn { flex: 1 1 auto; justify-content: center; }

	/* hero */
	.hero { padding-block: 1.6rem 1rem; }
	.hero__title { font-size: clamp(2rem, 8.5vw, 2.6rem); margin: .8rem 0 1.1rem; }
	.hero__lede { font-size: 1.05rem; margin-bottom: 1.4rem; }
	.pass-stage { margin: 3.2rem auto 0; width: 100%; }
	.pass { transform: rotate(-2deg); }

	/* section heads */
	.section-title { font-size: clamp(1.45rem, 6.5vw, 1.85rem); }
	.board-section, .feed { padding-block: 1.6rem; }

	/* departures board → tappable cards */
	.board { padding: .5rem; overflow: visible; border-radius: 16px; }
	.board table, .board tbody { display: block; min-width: 0; }
	.board thead { display: none; }
	.board tr.row {
		position: relative; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center;
		gap: .35rem .9rem; padding: .95rem 1rem; margin-bottom: 6px; background: #1f2a29; border-radius: 12px; border-top: 1px solid #0b1110;
		transition: transform .1s;
	}
	.board tr.row td { background: none !important; border: 0 !important; padding: 0; display: block; border-radius: 0 !important; }
	.board tr.row a { padding: 0; display: inline; }
	.board tr.row > td:nth-child(2) { grid-column: 1 / 4; grid-row: 1; }
	.board tr.row > td:nth-child(2) a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
	.board tr.row > td:nth-child(5) { grid-column: 4; grid-row: 1 / 3; }
	.board tr.row > td:nth-child(1) { grid-column: 1; grid-row: 2; }
	.board tr.row > td:nth-child(3) { grid-column: 2; grid-row: 2; }
	.board tr.row > td:nth-child(4) { grid-column: 3; grid-row: 2; }
	.board .flap { font-size: .66rem; color: #8f9893; }
	.board .flap--dest { font-family: var(--f-display); font-size: 1.4rem; letter-spacing: -.01em; text-transform: none; color: #f6efe0; }
	.board tr.row > td:nth-child(1) .flap::before { content: "Dep "; color: var(--sun); }
	.board tr.row > td:nth-child(3) .flap::before { content: "Gate "; color: var(--sun); }
	.board tr.row > td:nth-child(4) .flap::before { content: "Posts "; color: var(--sun); }
	.board tr.row:active { transform: scale(.97); }

	/* feed: feature stays big, rest become app list rows */
	.grid { gap: 12px; }
	.card:not(.card--feature) .tag { display: grid; grid-template-columns: 108px 1fr; border-radius: 14px; }
	.card:not(.card--feature) .tag__cover { aspect-ratio: auto; height: 100%; min-height: 118px; }
	.card:not(.card--feature) .tag__hole { display: none; }
	.card:not(.card--feature) .tag__body { border-top: 0; border-left: 2px dashed var(--paper-3); padding: .8rem .9rem; gap: .4rem; }
	.card:not(.card--feature) .tag__title { font-size: 1.12rem; line-height: 1.15; }
	.card:not(.card--feature) .tag__excerpt { display: none; }
	.card:not(.card--feature) .tag__meta { grid-template-columns: auto auto; justify-content: start; gap: 1rem; padding-top: .45rem; }
	.card:not(.card--feature) .tag__meta div:last-child { display: none; }
	.card:not(.card--feature) .tag__cat { font-size: .56rem; padding: .18rem .4rem; }
	.card:not(.card--feature) .topo__code { font-size: 2.6rem; right: 8%; }
	.card:not(.card--feature) .topo__coords { display: none; }
	.card:hover .tag { transform: none; }
	.card--feature .tag { border-radius: 18px; }
	.card--feature .tag__title { font-size: clamp(1.35rem, 6vw, 1.7rem); }

	/* related → swipe carousel */
	.related .grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scrollbar-width: none; }
	.related .grid::-webkit-scrollbar { display: none; }
	.related .grid > .card { flex: 0 0 78%; scroll-snap-align: start; }
	.related .card .tag { display: flex; grid-template-columns: none; }
	.related .card .tag__cover { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
	.related .card .tag__body { border-left: 0; border-top: 2px dashed var(--paper-3); }

	/* single post */
	.entry-head { padding-block: 1.4rem 1rem; }
	.entry-title { font-size: clamp(1.55rem, 7vw, 1.95rem); }
	.entry-content { font-size: 1.06rem; }
	.entry-content > p:first-of-type::first-letter { font-size: 4.2em; }
	.single-cover { border-radius: 16px; margin-inline: calc(-1 * var(--gutter) + 8px); }
	.entry-strip { border-radius: 12px; }
	.archive-head { padding-block: 1.6rem 1.2rem; }
	.archive-head h1 { font-size: clamp(1.8rem, 8.5vw, 2.4rem); }

	/* footer: leave room for tabbar */
	.site-footer { margin-top: 2.5rem; }
	.footer-cols { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
	.footer-cols > div:first-child, .footer-cols > div:last-child { grid-column: 1 / -1; }
	.footer-base .wrap { flex-direction: column; gap: .3rem !important; }

	/* ---- tab bar ---- */
	.tabbar {
		position: fixed; z-index: 70; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
		display: grid; grid-template-columns: repeat(4, 1fr);
		background: color-mix(in srgb, var(--ink) 92%, transparent);
		backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
		border-radius: 22px; padding: 6px;
		box-shadow: 0 18px 40px -12px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06);
	}
	.tabbar__item {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		min-height: 54px; border: 0; background: none; color: #b9b3a5; border-radius: 16px; text-decoration: none; cursor: pointer;
		font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
		transition: background .25s var(--ease), color .25s var(--ease), transform .12s;
	}
	.tabbar__item svg { width: 22px; height: 22px; }
	.tabbar__item:active { transform: scale(.9); }
	.tabbar__item.is-current { color: var(--ink); background: var(--sun); }
	.tabbar__item:hover { color: #f6efe0; }
	.tabbar__item.is-current:hover { color: var(--ink); }

	/* ---- bottom sheets ---- */
	.sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(10, 14, 13, .5); opacity: 0; transition: opacity .3s; }
	.sheet-backdrop.is-open { opacity: 1; }
	.sheet {
		display: block; position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
		max-height: 82vh; overflow-y: auto; overscroll-behavior: contain;
		background: var(--paper); border-radius: 24px 24px 0 0;
		padding: 10px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
		transform: translateY(105%); transition: transform .42s var(--ease);
		box-shadow: 0 -20px 50px -20px rgba(0,0,0,.4);
	}
	.sheet.is-open { transform: translateY(var(--drag, 0px)); }
	.sheet.is-dragging { transition: none; }
	.sheet__handle { width: 42px; height: 5px; border-radius: 99px; background: var(--paper-3); margin: 0 auto 12px; }
	.sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
	.sheet__close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--ink); font-size: .9rem; cursor: pointer; }
	.sheet__list { list-style: none; margin: 0 0 1.2rem; padding: 0; background: #fbf8f1; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
	.sheet__list li + li { border-top: 1px solid var(--line); }
	.sheet__list a { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; text-decoration: none; transition: transform .1s; }
	.sheet__list .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
	.sheet__list .name { flex: 1; font-family: var(--f-display); font-size: 1.3rem; letter-spacing: -.01em; }
	.sheet__list .mono { color: var(--ink-soft); }
	.sheet__list a::after { content: "→"; color: var(--signal); }
	.sheet__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
	.sheet__chips a { padding: .6rem .95rem; border-radius: 999px; background: #fbf8f1; border: 1px solid var(--line-strong); text-decoration: none; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; transition: transform .1s; }
	.sheet .search-form input[type="search"] { font-size: 16px; padding: 1rem 1.2rem; }

	/* toast */
	.toast { display: block; position: fixed; z-index: 95; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); padding: .7rem 1.1rem; border-radius: 999px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
	.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

	.progress { top: 0; }
	.search-form input[type="search"] { font-size: 16px; } /* prevents iOS zoom */
}

@media (max-width: 380px) {
	.hero__title { font-size: 2rem; }
	.pass__route .code { font-size: 2rem; }
	.card:not(.card--feature) .tag { grid-template-columns: 92px 1fr; }
}

/* Standalone (installed) mode */
@media (display-mode: standalone) {
	.ticker { display: none; }
	.site-header { padding-top: env(safe-area-inset-top, 0px); }
}
.sheet[hidden], .sheet-backdrop[hidden], .toast[hidden], .progress[hidden] { display: none !important; }

/* Author box */
.author-box { grid-column: 2; display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start; padding: 1.3rem; margin-top: 1rem; background: #fbf8f1; border: 1px solid var(--line); border-radius: 12px; }
.author-box__img { border-radius: 50%; width: 64px; height: 64px; }
.author-box .kicker { margin: 0; }
.author-box__name { font-family: var(--f-display); font-size: 1.35rem; margin: .1rem 0 .3rem; }
.author-box__bio { margin: 0 0 .5rem; color: var(--ink-soft); font-size: .95rem; }
.author-box__link { margin: 0; font-size: .9rem; }
.author-box__link a { color: var(--sea); }
@media (max-width: 1080px) { .author-box { grid-column: 1; } }
.author-box__in { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-left: .4rem; border-radius: 4px; background: #0a66c2; color: #fff !important; font-family: var(--f-body); font-size: .8rem; font-weight: 700; text-decoration: none; vertical-align: middle; }
.single-cover figcaption { max-width: calc(100% - 2rem); text-transform: none; letter-spacing: .02em; line-height: 1.45; font-size: .64rem; background: rgba(242,236,225,.92); }
.single-cover figcaption a, .entry-content figcaption a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; }
@media (max-width: 620px) { .single-cover figcaption { position: static; margin-top: .5rem; background: none; padding: 0; } .single-cover { overflow: visible; } .single-cover img { border-radius: 16px; } }

/* ---------- Tour package pages ---------- */
.package-cta { margin: 1.6rem 0 0; }
.enquire { grid-column: 2; margin-top: 2.5rem; padding: clamp(1.2rem, 3vw, 2rem); background: #fbf8f1; border: 1.5px solid var(--ink); border-radius: 14px; scroll-margin-top: 90px; }
.enquire h2 { font-family: var(--f-body); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.55rem); margin: 0 0 .5rem; letter-spacing: -.02em; }
.enquire > p { color: var(--ink-soft); margin: 0 0 1.2rem; }
.package .entry-content h3 { font-size: 1.1rem; letter-spacing: 0; margin-top: 1.4em; }
.sticky-enquire { display: none; }
@media (max-width: 1080px) { .enquire { grid-column: 1; } }
@media (max-width: 720px) {
	.has-enquire .tabbar { display: none; }
	body.has-enquire { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
	.sticky-enquire { display: block; position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); text-align: center; padding: 1rem; border-radius: 16px; background: var(--signal); color: #fff; text-decoration: none; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); }
	.sticky-enquire:hover, .sticky-enquire:active { color: #fff; }
}

/* ---------- Package cards / package pages ---------- */
.pkgs { margin: clamp(2rem, 5vw, 3.5rem) 0; scroll-margin-top: 90px; }
.pkgs__note { color: var(--ink-soft); margin: .4rem 0 1.4rem; max-width: 60ch; }
.pkgs__dest { margin: 0 0 2.4rem; }
.pkgs__dest h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; margin: 0 0 1rem; }
.pkgs__dest h3 a { color: inherit; }
.pkgs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(1rem, 2.4vw, 1.6rem); }
.pkg { position: relative; display: flex; flex-direction: column; background: #fbf8f1; border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.pkg:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(22,32,31,.6); }
.pkg--featured { border-color: var(--signal); }
.pkg__img { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); }
.pkg__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pkg__dur { position: absolute; left: 10px; top: 10px; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; padding: .3rem .6rem; border-radius: 6px; }
.pkg__body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.pkg__title { font-family: var(--f-body); font-weight: 700; font-size: 1.08rem; line-height: 1.3; margin: 0 0 .6rem; }
.pkg__title a { color: inherit; text-decoration: none; }
.pkg__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.pkg__title a:focus-visible { outline: none; }
.pkg:focus-within { outline: 2px solid var(--signal); outline-offset: 3px; }
.pkg__hl { margin: 0 0 1rem; padding-left: 1.1rem; font-size: .92rem; color: var(--ink-soft); }
.pkg__hl li { margin: .15rem 0; }
.pkg__foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; border-top: 1px dashed var(--line-strong); padding-top: .8rem; }
.pkg__price { margin: 0; font-family: var(--f-mono); font-weight: 500; font-size: 1rem; }
.pkg__price span { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.pkg__more { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); display: inline-flex; align-items: center; gap: .3rem; }
.pkg-basis { font-size: .88rem; color: var(--ink-soft); margin: .8rem 0 0; }
.pkg-hl { padding-left: 1.2rem; }
.pkg-inc { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.pkg-inc ul { padding-left: 1.2rem; margin: .4rem 0 0; }
.package .entry-content .pkg-inc h3 { margin-top: .4em; }
.pkg-back { margin-top: 2rem; padding: 1rem 1.2rem; border-left: 3px solid var(--signal); background: #fbf8f1; }
@media (max-width: 620px) { .pkg-inc { grid-template-columns: 1fr; } }

/* Readability pass (Nov 2026): tables and strip values a little smaller on phones */
.entry-content table { font-size: .95rem; }
@media (max-width: 620px) { .entry-content { font-size: 1rem; } .entry-content table { font-size: .88rem; } }
