/*
Theme Name: Καθημερινή Περιέργεια
Theme URI: https://periergeia.gr
Author: Καθημερινή Περιέργεια
Description: Χειροποίητο, παιχνιδιάρικο θέμα σε ύφος τσόχας και χαρτιού (needle-felted & paper-craft diorama) για το κανάλι «Καθημερινή Περιέργεια». Τα βίντεο ενημερώνονται αυτόματα από το YouTube.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: periergeia
*/

:root {
	--paper: #f6eedf;
	--cream: #fffaf0;
	--kraft: #e7d3b3;
	--ink: #2e2620;
	--ink-soft: #5d4c3f;
	--terra: #d2694b;
	--terra-d: #a94a33;
	--sage: #9db592;
	--sage-d: #6f8f68;
	--sky: #cfe5ee;
	--sea: #3f84a7;
	--gold: #e3a834;
	--gold-d: #b9821c;
	--navy: #1f2b44;
	--rose: #e9a6a0;
	--lilac: #b9a3d6;
	--f-display: 'Dela Gothic One', 'Arial Black', system-ui, sans-serif;
	--f-body: 'M PLUS Rounded 1c', 'Segoe UI', system-ui, sans-serif;
	--f-hand: 'Mynerve', 'Comic Sans MS', cursive;
	--wrap: 1220px;
	--head-h: 76px;
	--grain: url('assets/img/grain.webp');
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--f-body);
	font-weight: 500;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	overflow-x: hidden;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

/* κόκκος χαρτιού πάνω από όλη τη σελίδα */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	background: var(--grain);
	background-size: 160px;
	opacity: .32;
	pointer-events: none;
	z-index: 90;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
	position: absolute; left: -999px; top: 8px; z-index: 200;
	background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px dashed var(--terra); outline-offset: 4px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; position: relative; }

.note {
	font-family: var(--f-hand);
	font-size: 1.35rem;
	color: var(--terra-d);
	margin: 0 0 .25rem;
	transform: rotate(-2deg);
	display: inline-block;
}
.note--light { color: var(--gold); }

/* ------------------------------------------------------------ κουμπιά */
.btn {
	--bg: var(--terra);
	--fg: #fffaf0;
	--edge: var(--terra-d);
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font: 800 1rem/1 var(--f-body);
	text-decoration: none;
	color: var(--fg);
	background: var(--bg) var(--grain);
	background-size: 120px;
	border: 0;
	border-radius: 999px;
	padding: .95em 1.5em;
	cursor: pointer;
	box-shadow: 0 5px 0 var(--edge), 0 10px 18px rgba(46, 38, 32, .2);
	transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s;
}
.btn::after {
	content: "";
	position: absolute;
	inset: 5px;
	border: 2px dashed rgba(255, 250, 240, .65);
	border-radius: inherit;
	pointer-events: none;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 8px 0 var(--edge), 0 14px 22px rgba(46, 38, 32, .22); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--edge), 0 4px 10px rgba(46, 38, 32, .2); }
.btn--ghost { --bg: var(--cream); --fg: var(--ink); --edge: #cdb894; }
.btn--ghost::after { border-color: rgba(46, 38, 32, .25); }
.btn--cream { --bg: var(--cream); --fg: var(--ink); --edge: #cdb894; }
.btn--cream::after { border-color: rgba(46, 38, 32, .22); }
.btn--small { font-size: .88rem; padding: .7em 1.15em; }
.btn--yt { --bg: #e0412f; --edge: #a92a1c; padding: .7em 1.1em; font-size: .9rem; }

/* ------------------------------------------------------------ κεφαλίδα */
.site-head {
	position: fixed;
	inset: 0 0 auto;
	z-index: 80;
	height: var(--head-h);
	transition: background .3s, box-shadow .3s, height .3s;
}
.site-head__inner {
	height: 100%;
	width: min(1400px, 100% - 32px);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.site-head.is-solid {
	background: rgba(255, 250, 240, .94);
	box-shadow: 0 6px 0 -3px rgba(46, 38, 32, .08), 0 1px 0 rgba(46, 38, 32, .08);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo {
	width: 56px; height: 56px; border-radius: 50%;
	box-shadow: 0 4px 10px rgba(46, 38, 32, .3);
	transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.brand:hover .brand__logo { transform: rotate(-12deg) scale(1.06); }
.brand__name { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.05; display: flex; flex-direction: column; }
.brand__name b { font-weight: 400; color: var(--terra-d); }
.nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.nav > a:not(.btn) {
	font-weight: 800; text-decoration: none; font-size: .98rem; position: relative; padding: 6px 2px;
}
.nav > a:not(.btn)::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	background: repeating-linear-gradient(90deg, var(--terra) 0 6px, transparent 6px 10px);
	transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav > a:not(.btn):hover::after { transform: scaleX(1); }

@media (max-width: 760px) {
	:root { --head-h: 64px; }
	.brand__logo { width: 46px; height: 46px; }
	.brand__name { font-size: .92rem; }
	.nav > a:not(.btn) { display: none; }
	.btn--yt span { display: none; }
	.btn--yt { padding: .7em .8em; }
}

/* ================================================================ ΛΙΜΝΗ */
.hero {
	position: relative;
	height: max(640px, min(100svh, 1000px));
	overflow: hidden;
	isolation: isolate;
	--shift: 0px;
	touch-action: pan-y;
}
.hero__sky {
	position: absolute; inset: 0;
	background:
		radial-gradient(1200px 420px at 85% 18%, rgba(255, 228, 170, .55), transparent 60%),
		linear-gradient(#a9d0e0 0%, #cfe5ee 34%, #f7e6cc 62%, #f3d3b0 100%);
	z-index: -2;
}
.scene { position: absolute; inset: 0; pointer-events: none; }
.scene .layer {
	position: absolute; inset: 0;
	transform: translate3d(calc(var(--px, 0px) - var(--shift)), var(--py, 0px), 0);
	will-change: transform;
}
.scene .layer > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scene--front { z-index: 4; }

.clouds { position: absolute; inset: 0; }
.cloud {
	position: absolute; width: calc(220px * var(--s)); height: auto;
	animation: drift var(--t) ease-in-out infinite alternate;
	will-change: transform;
}
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(60px); } }

.sway { animation: sway 7s ease-in-out infinite alternate; }
.sway--b { animation-duration: 9s; animation-direction: alternate-reverse; }
.sway--c { animation-duration: 6s; }
@keyframes sway { from { transform: translateX(-26px); } to { transform: translateX(26px); } }

.boat { animation: bob 4.6s ease-in-out infinite; transform-origin: 56% 64%; }
@keyframes bob {
	0%, 100% { transform: translateY(0) rotate(-1.2deg); }
	50% { transform: translateY(7px) rotate(1.4deg); }
}
.cat-tail { animation: tail 2.4s ease-in-out infinite; transform-origin: 770px 540px; transform-box: view-box; }
@keyframes tail { 50% { transform: rotate(14deg); } }
.sun { animation: sunpulse 8s ease-in-out infinite; transform-origin: 1360px 150px; transform-box: view-box; }
@keyframes sunpulse { 50% { transform: scale(1.05); } }

.fishes { position: absolute; inset: 0; }
.fish { position: absolute; width: 54px; opacity: .85; }
.fish--1 { top: 80%; animation: swim 19s linear infinite; }
.fish--2 { top: 88%; width: 42px; animation: swim 25s linear infinite reverse; animation-delay: -9s; }
@keyframes swim {
	from { transform: translateX(-10vw) scaleX(-1); }
	49.9% { transform: translateX(110vw) scaleX(-1); }
	50% { transform: translateX(110vw) scaleX(1); }
	to { transform: translateX(-10vw) scaleX(1); }
}

/* πετονιά */
.line-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.line-svg path { fill: none; stroke: #fdf7ea; stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 1px 0 rgba(46, 38, 32, .35)); }

.bubbles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bubble {
	position: absolute; width: var(--d); height: var(--d); border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .15);
	animation: rise 2.6s ease-in forwards;
}
@keyframes rise { to { transform: translate(var(--dx), -220px); opacity: 0; } }

/* ψαριά */
.catch {
	position: absolute; left: 0; top: 0; z-index: 3;
	width: clamp(200px, 21vw, 290px);
	transform: translate3d(var(--cx, -999px), var(--cy, 0px), 0);
	will-change: transform;
}
.catch__card {
	display: block;
	text-decoration: none;
	background: var(--cream);
	border-radius: 16px;
	padding: 10px 10px 14px;
	box-shadow: 0 14px 28px rgba(30, 40, 50, .3);
	transform-origin: 50% 0;
	transform: rotate(var(--rot, 0deg)) scale(var(--sc, 1));
	transition: box-shadow .3s;
	position: relative;
}
.catch__card::before {
	content: ""; position: absolute; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px;
	border: 3px solid #8f8f8f; border-radius: 50%; background: transparent;
}
.catch__card::after {
	content: ""; position: absolute; inset: 5px; border: 2px dashed rgba(46, 38, 32, .18); border-radius: 12px; pointer-events: none;
}
.catch__tag {
	display: inline-block; font-family: var(--f-hand); font-size: 1.05rem; color: var(--terra-d); margin: 0 0 6px 4px;
}
.catch__img { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; background: #6aa3bd; }
.catch__img img { width: 100%; height: 100%; object-fit: cover; transition: filter .4s; }
.catch__mystery {
	position: absolute; inset: 0; display: grid; place-items: center;
	font-family: var(--f-display); font-size: 4.2rem; color: var(--gold);
	background: radial-gradient(circle, #2c6f93, #1e4f6e);
	text-shadow: 0 4px 0 rgba(0, 0, 0, .25);
	transition: opacity .5s;
}
.catch__meta { display: block; font-size: .78rem; font-weight: 800; color: var(--ink-soft); margin: 10px 4px 2px; letter-spacing: .02em; }
.catch__title { display: block; font-weight: 800; font-size: 1rem; line-height: 1.3; margin: 0 4px; color: var(--ink); }
.catch.is-deep .catch__img img { filter: blur(6px) saturate(.6); }
.catch.is-deep .catch__card { cursor: default; }
.catch.is-near .catch__mystery { opacity: .35; }
.catch.is-caught .catch__mystery { opacity: 0; }
.catch:not(.is-caught) .play { opacity: 0; }
.catch.is-caught { z-index: 5; }
.catch.is-caught .catch__card { animation: pop .7s cubic-bezier(.3, 1.8, .5, 1); cursor: pointer; }
.catch.is-caught .catch__card:hover { box-shadow: 0 18px 34px rgba(30, 40, 50, .38); }
@keyframes pop { 0% { transform: scale(.85) rotate(-6deg); } 60% { transform: scale(1.06) rotate(3deg); } 100% { transform: scale(1) rotate(var(--rot, 0deg)); } }
.catch__again { margin: 12px auto 0; display: flex; }
.catch__again[hidden] { display: none; }

/* κείμενο */
.hero__copy {
	position: absolute; z-index: 5;
	left: max(24px, 5vw);
	top: calc(var(--head-h) + clamp(16px, 6vh, 70px));
	width: min(540px, 44vw);
	background: var(--cream) var(--grain);
	background-size: 160px;
	padding: 26px 32px 30px;
	border-radius: 6px;
	transform: rotate(-1.2deg);
	box-shadow: 0 2px 0 rgba(46, 38, 32, .05), 0 22px 40px rgba(46, 60, 80, .22);
}
.hero__copy::before { /* χαρτοταινία */
	content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px;
	background: rgba(233, 166, 160, .78); transform: rotate(3deg);
	clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%);
}
.hero__title {
	font-family: var(--f-display); font-weight: 400;
	font-size: clamp(2.4rem, 4.6vw, 4.1rem);
	line-height: 1.02;
	letter-spacing: -.01em;
	color: var(--ink);
	margin: .1em 0 .3em;
}
.scribble { position: relative; color: var(--terra); white-space: nowrap; }
.scribble::after {
	content: ""; position: absolute; left: -2%; right: -2%; bottom: -.08em; height: .26em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16 C 60 4, 120 22, 180 10 S 270 8, 296 14' stroke='%23e3a834' stroke-width='7' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	z-index: -1;
}
.hero__lead { font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--ink-soft); max-width: 34em; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4em; }

.reel-hint {
	position: absolute; z-index: 6; left: max(24px, 5vw); bottom: 28px;
	display: flex; align-items: center; gap: 12px;
	background: rgba(255, 250, 240, .92);
	border-radius: 999px; padding: 8px 10px 8px 8px;
	box-shadow: 0 8px 20px rgba(20, 40, 60, .25);
	font-size: .9rem; font-weight: 800; color: var(--ink);
	transition: opacity .4s, transform .4s;
}
.reel-hint::after { content: ""; position: absolute; inset: 4px; border: 2px dashed rgba(46, 38, 32, .15); border-radius: inherit; pointer-events: none; }
.reel-hint__gauge { width: 44px; height: 44px; flex: none; }
.reel-hint__fill { transition: stroke-dashoffset .15s linear; }
.reel-hint__text { padding-right: 6px; }
.only-touch { display: none; }
.is-touch .only-touch { display: inline; }
.is-touch .only-mouse { display: none; }
.reel-hint.is-done { opacity: 0; transform: translateY(14px); pointer-events: none; }

@media (max-width: 860px) {
	.hero { height: auto; min-height: 0; padding-top: var(--head-h); display: flex; flex-direction: column; }
	.hero .scene, .hero .line-svg, .hero .bubbles { top: var(--head-h); height: min(64svh, 560px); bottom: auto; }
	.hero__copy {
		position: relative; left: auto; top: auto; width: auto; order: 2;
		background: var(--paper); padding: 28px 22px 8px; margin-top: min(64svh, 560px);
	}
	.hero__title { font-size: clamp(2.3rem, 10vw, 3.2rem); }
	.reel-hint { left: 12px; right: 12px; bottom: auto; top: calc(var(--head-h) + 10px); font-size: .8rem; line-height: 1.25; }
	.reel-hint__text { flex: 1; }
	.hero__copy { transform: none; border-radius: 0; box-shadow: none; padding: 30px 22px 10px; width: auto; }
	.hero__copy::before { display: none; }
	.catch { width: 200px; }
}

/* ---------------------------------------------------------- σκισμένο χαρτί */
.torn { position: absolute; left: 0; right: 0; top: -34px; width: 100%; height: 36px; display: block; z-index: 5; pointer-events: none; }
.torn--flip { top: auto; bottom: -34px; transform: scaleY(-1); }

/* ------------------------------------------------------- ενότητες κοινά */
.sec-head { text-align: center; margin: 0 auto 48px; max-width: 760px; }
.sec-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.4rem); margin: .2em 0 .35em; }
.sec-title--light { color: var(--cream); }
.label {
	display: inline-block; padding: .25em .7em .3em; position: relative;
	transform: rotate(-1.6deg);
	box-shadow: 0 8px 18px rgba(46, 38, 32, .18);
	clip-path: polygon(0 4%, 3% 0, 20% 3%, 40% 0, 60% 2%, 80% 0, 97% 3%, 100% 0, 99% 30%, 100% 60%, 98% 100%, 80% 97%, 60% 100%, 40% 97%, 20% 100%, 2% 97%, 0 100%, 1% 60%);
}
.label--cream { background: var(--cream) var(--grain); color: var(--ink); }
.label--terra { background: var(--terra) var(--grain); color: var(--cream); }
.sec-sub { font-size: 1.08rem; color: var(--ink-soft); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .3, 1.2); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.play {
	position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px;
	border-radius: 50%; background: rgba(255, 250, 240, .94);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
	transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.play::before {
	content: ""; position: absolute; left: 25px; top: 19px;
	border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--terra);
}
.play::after { content: ""; position: absolute; inset: 5px; border: 2px dashed rgba(210, 105, 75, .45); border-radius: 50%; }

/* ======================================================== ΕΠΕΙΣΟΔΙΑ */
.episodes {
	position: relative;
	background: var(--sage) var(--grain);
	background-size: 160px;
	padding: 90px 0 120px;
	z-index: 5;
}
.episodes::before {
	content: ""; position: absolute; inset: 18px; border: 3px dashed rgba(255, 250, 240, .35); border-radius: 26px; pointer-events: none;
}
.episodes .note { color: #fff4dc; }
.episodes .sec-sub { color: #23331f; }

.board {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
	gap: 70px 44px;
	padding-top: 10px;
}
.hang { position: relative; padding-top: 58px; }
.hang__string { position: absolute; top: 0; left: 50%; width: 220px; height: 70px; margin-left: -110px; z-index: 2; }
.polaroid {
	display: block; position: relative; text-decoration: none;
	background: var(--cream) var(--grain);
	background-size: 160px;
	padding: 14px 14px 20px;
	border-radius: 6px;
	box-shadow: 0 2px 0 rgba(46, 38, 32, .06), 0 18px 30px rgba(36, 50, 32, .32);
	transform-origin: 50% -46px;
	transform: rotate(calc(var(--tilt) + var(--swing, 0deg)));
	transition: box-shadow .3s;
}
.polaroid:hover { box-shadow: 0 2px 0 rgba(46, 38, 32, .06), 0 26px 40px rgba(36, 50, 32, .38); }
.polaroid__img { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; background: #c9b79a; }
.polaroid__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .9, .3, 1); }
.polaroid:hover .polaroid__img img { transform: scale(1.06); }
.polaroid:hover .play { transform: scale(1.12) rotate(-8deg); }
.dur {
	position: absolute; right: 8px; bottom: 8px; background: var(--ink); color: var(--cream);
	font-size: .78rem; font-weight: 800; padding: 3px 9px; border-radius: 999px;
}
.polaroid__body { display: block; padding: 14px 4px 0; }
.polaroid__when { font-family: var(--f-hand); color: var(--terra-d); font-size: 1.02rem; }
.polaroid__title { font-family: var(--f-body); font-weight: 800; font-size: 1.12rem; line-height: 1.3; margin: .2em 0 .45em; }
.polaroid__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .93rem; color: var(--ink-soft); }
.sticker {
	position: absolute; top: -16px; right: -14px; width: 66px; height: 66px;
	display: grid; place-items: center;
	font-family: var(--f-display); font-size: .95rem; color: var(--cream);
	background: var(--terra);
	clip-path: polygon(50% 0, 61% 18%, 82% 8%, 80% 31%, 100% 38%, 86% 55%, 98% 74%, 76% 78%, 72% 100%, 54% 88%, 36% 100%, 30% 79%, 8% 80%, 16% 59%, 0 44%, 20% 33%, 16% 10%, 38% 17%);
	transform: rotate(12deg);
	animation: wob 3s ease-in-out infinite;
}
@keyframes wob { 50% { transform: rotate(-6deg) scale(1.06); } }
.more { text-align: center; margin: 70px 0 0; }

/* ========================================================== SHORTS */
.shorts {
	position: relative;
	background: linear-gradient(#cfe5ee, #e3f0f1 70%, #eaf1e1);
	padding: 90px 0 70px;
	overflow: hidden;
	z-index: 6;
}
.shorts__hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 260px; z-index: 0; }
.shorts .sec-head { position: relative; z-index: 2; margin-bottom: 20px; }
.shorts .note { color: var(--sea); }

.rail { position: relative; z-index: 2; }
.rail__track {
	overflow-x: auto; overflow-y: hidden;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
	cursor: grab;
	padding: 30px 0 10px;
	-webkit-overflow-scrolling: touch;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail__track.is-drag a { pointer-events: none; }
.rail__inner {
	position: relative;
	display: flex; align-items: flex-end; gap: 26px;
	width: max-content;
	padding: 0 max(24px, calc((100vw - var(--wrap)) / 2)) 26px;
}
.rails {
	position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
	background:
		linear-gradient(#6b4a33, #6b4a33) 0 4px / 100% 5px no-repeat,
		linear-gradient(#6b4a33, #6b4a33) 0 18px / 100% 5px no-repeat,
		repeating-linear-gradient(90deg, #a57a52 0 16px, transparent 16px 40px) 0 0 / 100% 100%;
	border-radius: 4px;
	z-index: 0;
}
.loco { position: relative; flex: none; width: 300px; margin-bottom: -18px; scroll-snap-align: start; z-index: 1; }
.loco svg { width: 100%; height: auto; display: block; }
.loco__chimney { position: absolute; left: 30%; top: 4%; width: 2px; height: 2px; }

.wagon { position: relative; flex: none; width: 236px; scroll-snap-align: center; z-index: 1; }
.wagon::before { /* σύνδεσμος */
	content: ""; position: absolute; left: -28px; bottom: 34px; width: 30px; height: 7px; background: #4b3424; border-radius: 4px;
}
.wagon__card {
	position: relative; display: block; width: 182px; margin: 0 auto;
	aspect-ratio: 9/16; border-radius: 16px; overflow: hidden;
	border: 7px solid var(--cream);
	box-shadow: 0 12px 24px rgba(20, 50, 70, .28);
	background: #b9cfd8;
	transform: rotate(var(--r, 0deg));
	transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.wagon:nth-child(odd) .wagon__card { --r: -1.5deg; }
.wagon:nth-child(even) .wagon__card { --r: 1.5deg; }
.wagon__card:hover { transform: translateY(-10px) rotate(0deg); }
.wagon__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.wagon__card .play { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.wagon__card .play::before { left: 21px; top: 16px; border-width: 11px 0 11px 17px; }
.wagon__title {
	background: var(--cream); border-radius: 10px; margin: 10px 6px 6px; padding: 0;
	border: solid var(--cream); border-width: 8px 10px;
	font-weight: 800; font-size: .86rem; line-height: 1.3; height: calc(3.9em + 16px);
	box-shadow: 0 4px 0 rgba(46, 38, 32, .08);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wagon__base { display: block; width: 100%; height: auto; margin-top: -4px; overflow: visible; }
.wheel { transform: rotate(var(--wheel, 0deg)); }
.wagon--end .wagon__more {
	display: grid; place-content: center; text-align: center; gap: 10px;
	width: 182px; aspect-ratio: 9/16; margin: 0 auto 70px;
	background: var(--cream); border-radius: 16px; text-decoration: none;
	font-family: var(--f-display); font-size: 1.15rem; line-height: 1.2;
	box-shadow: 0 12px 24px rgba(20, 50, 70, .2);
	border: 3px dashed var(--terra);
	transition: transform .3s;
}
.wagon--end .wagon__more b { font-family: var(--f-body); font-weight: 800; font-size: .9rem; color: var(--terra-d); }
.wagon--end .wagon__more:hover { transform: rotate(-3deg) scale(1.03); }

.rail__btn {
	position: absolute; top: 42%; z-index: 4;
	width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--cream); color: var(--ink);
	font: 400 2rem/1 var(--f-display);
	box-shadow: 0 5px 0 #cdb894, 0 10px 18px rgba(46, 38, 32, .2);
	display: grid; place-items: center; padding-bottom: 4px;
	transition: transform .2s;
}
.rail__btn:hover { transform: scale(1.1); }
.rail__btn--prev { left: max(10px, calc((100vw - var(--wrap)) / 2 - 70px)); }
.rail__btn--next { right: max(10px, calc((100vw - var(--wrap)) / 2 - 70px)); }
@media (max-width: 760px) {
	.rail__btn { display: none; }
	.loco { width: 210px; margin-bottom: -13px; }
	.rail__inner { gap: 18px; }
}

.puffs { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.puff {
	position: absolute; width: var(--d); height: var(--d); border-radius: 50%;
	background: #fffaf2 var(--grain); background-size: 80px;
	box-shadow: 0 4px 10px rgba(20, 50, 70, .15);
	animation: puff 1.8s ease-out forwards;
}
@keyframes puff {
	from { transform: translate(-50%, -50%) scale(.3); opacity: .95; }
	to { transform: translate(calc(-50% + var(--dx)), calc(-50% - 120px)) scale(1.4); opacity: 0; }
}

/* ============================================================ ΛΑΜΠΑ */
.ask {
	position: relative;
	background: var(--navy);
	color: #e9e1d4;
	padding: 110px 0 150px;
	z-index: 7;
	transition: background-color .8s;
}
.ask::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(700px 520px at 30% 50%, rgba(242, 184, 75, .38), transparent 70%);
	opacity: 0; transition: opacity .8s;
}
.ask.is-on { background-color: #2d2a3e; }
.ask.is-on::before { opacity: 1; }
.ask__stars { position: absolute; inset: 0; pointer-events: none; }
.star { position: absolute; width: var(--d); height: var(--d); background: #f3e3b5; border-radius: 50%; opacity: .7; animation: twinkle 3s ease-in-out infinite; animation-delay: var(--dl); }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.6); } }
.ask__grid { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 40px; align-items: center; }
.lamp { position: relative; margin: -110px auto 0; width: 100%; max-width: 300px; }
.lamp__svg { width: 100%; height: auto; overflow: visible; animation: lampsway 6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes lampsway { 50% { transform: rotate(1.6deg); } }
.lamp__glow { opacity: 0; transition: opacity .6s; }
.lamp__bulb { transition: fill .5s; }
.lamp__q { transition: fill .5s; }
.ask.is-on .lamp__glow { opacity: 1; }
.ask.is-on .lamp__bulb { fill: #ffe7a3; }
.ask.is-on .lamp__q { fill: #c9861a; }
.lamp__pull {
	position: absolute; left: 66%; top: 74%; width: 40px; height: 200px;
	background: none; border: 0; padding: 0; cursor: grab; touch-action: none;
}
.lamp__pull svg { width: 100%; height: 100%; overflow: visible; }
.lamp__pull:active { cursor: grabbing; }
.lamp__bead { transform: translateY(var(--pull, 0px)); }
.lamp__cord { transform-origin: 20px 0; transform: scaleY(calc(1 + var(--pull, 0px) / 150px)); }
.lamp__pull:not(.is-drag) .lamp__bead, .lamp__pull:not(.is-drag) .lamp__cord { transition: transform .5s cubic-bezier(.3, 1.8, .5, 1); }
.ask__copy p { font-size: 1.12rem; max-width: 34em; }
.ask__copy strong { color: var(--gold); }
.ask__on[hidden], .ask__off[hidden] { display: none; }
.ask__on { animation: fadeup .6s ease; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } }
.ask__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4em; }
@media (max-width: 760px) {
	.ask__grid { grid-template-columns: 1fr; text-align: center; }
	.lamp { max-width: 220px; margin-top: -110px; margin-bottom: 40px; }
	.lamp__pull { height: 130px; left: 70%; }
	.ask__copy p { margin-inline: auto; }
	.ask__actions { justify-content: center; }
}

/* ======================================================== ΥΠΟΣΕΛΙΔΟ */
.site-foot { position: relative; background: var(--paper); z-index: 8; }
.meadow { position: relative; height: 110px; margin-top: -60px; }
.meadow__grass { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 60px; display: block; }
.flower {
	position: absolute; bottom: 30px; width: auto; aspect-ratio: 40/100;
	transform-origin: 50% 100%;
	transform: rotate(var(--bend, 0deg));
	transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
	animation: breeze 4s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * -0.4s);
}
@keyframes breeze { 50% { rotate: 3deg; } }
.site-foot__body {
	width: min(var(--wrap), 100% - 40px); margin: 0 auto;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px;
	padding: 30px 0 20px; background: var(--paper);
}
.site-foot__brand { display: flex; gap: 16px; align-items: center; max-width: 440px; }
.site-foot__brand img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.site-foot__name { font-family: var(--f-display); font-size: 1.25rem; margin: 0; }
.site-foot__tag { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.site-foot__links { display: flex; gap: 56px; flex-wrap: wrap; }
.site-foot__links h3 { font-family: var(--f-hand); font-weight: 400; font-size: 1.25rem; color: var(--terra-d); margin-bottom: 6px; }
.site-foot__links a { display: block; text-decoration: none; font-weight: 800; padding: 3px 0; }
.site-foot__links a:hover { color: var(--terra-d); }
.site-foot__copy { text-align: center; font-size: .86rem; color: var(--ink-soft); padding: 18px 20px 30px; margin: 0; border-top: 2px dashed rgba(46, 38, 32, .15); width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ============================================================ PLAYER */
.player {
	border: 0; padding: 0; background: transparent; max-width: none; max-height: none;
	width: 100vw; height: 100vh;
}
.player::backdrop { background: rgba(23, 30, 44, .82); backdrop-filter: blur(4px); }
.player[open] { display: grid; place-items: center; }
.player__box {
	position: relative; width: min(1100px, 92vw);
	background: var(--cream); border-radius: 22px; padding: 14px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
	animation: pop .5s cubic-bezier(.3, 1.6, .5, 1);
}
.player__box::after { content: ""; position: absolute; inset: 6px; border: 2px dashed rgba(46, 38, 32, .2); border-radius: 17px; pointer-events: none; }
.player.is-short .player__box { width: min(420px, 92vw, calc((88vh - 60px) * 9 / 16 + 28px)); }
.player__frame { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.player.is-short .player__frame { aspect-ratio: 9/16; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__close {
	position: absolute; top: -18px; right: -18px; z-index: 2;
	width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--terra); color: var(--cream); font-size: 1.2rem; font-weight: 800;
	box-shadow: 0 5px 0 var(--terra-d), 0 8px 16px rgba(0, 0, 0, .3);
}
.player__yt { display: inline-block; margin: 12px 6px 2px; font-weight: 800; font-size: .9rem; color: var(--ink-soft); text-decoration: none; position: relative; z-index: 1; }
.player__yt:hover { color: var(--terra-d); }
@media (max-width: 600px) { .player__close { top: -54px; right: 0; } }

/* ------------------------------------------------- απλές σελίδες (index) */
.page-simple { padding: calc(var(--head-h) + 60px) 0 100px; min-height: 70vh; }
.page-simple .entry { background: var(--cream); padding: clamp(24px, 4vw, 50px); border-radius: 18px; box-shadow: 0 16px 30px rgba(46, 38, 32, .12); max-width: 820px; margin: 0 auto; }
.page-simple h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .5em; }

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

/* ------------------------------------------------- φόρμα «Ρώτα μας» */
.ask__intro { font-size: 1.1rem; max-width: 34em; }
.ask-form {
	position: relative;
	background: var(--cream) var(--grain);
	background-size: 160px;
	color: var(--ink);
	border-radius: 18px;
	padding: 24px 24px 18px;
	margin: 22px 0 18px;
	max-width: 640px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
	transform: rotate(-.6deg);
}
.ask-form::after { content: ""; position: absolute; inset: 7px; border: 2px dashed rgba(46, 38, 32, .16); border-radius: 13px; pointer-events: none; }
.ask-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 14px; position: relative; z-index: 1; }
.field span { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 5px; }
.field small { font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea {
	width: 100%; font: 500 1rem/1.4 var(--f-body); color: var(--ink);
	background: #fff; border: 2px solid #e2d3bb; border-radius: 12px; padding: 11px 13px;
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(227, 168, 52, .25); }
.ask-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; position: relative; z-index: 1; }
.ask-form__note { font-size: .85rem; color: var(--ink-soft); }
.ask-form__msg { margin: 12px 2px 0; font-weight: 800; color: var(--sage-d); position: relative; z-index: 1; }
.ask-form__msg:empty { display: none; }
.ask-form.is-error .ask-form__msg { color: var(--terra-d); }
.ask-form.is-busy button[type=submit] { opacity: .6; pointer-events: none; }
.ask-form.is-sent .field, .ask-form.is-sent .ask-form__row, .ask-form.is-sent .ask-form__foot { display: none; }
.ask-form.is-sent .ask-form__msg { font-size: 1.15rem; margin: 6px 4px; }
.ask-form__again { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--terra-d); background: none; border: 0; cursor: pointer; text-decoration: underline; font-family: inherit; position: relative; z-index: 1; }
.ask-form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask .note { transform: rotate(-2deg); }
@media (max-width: 760px) {
	.ask-form { transform: none; text-align: left; padding: 20px 16px 16px; }
	.ask-form__row { grid-template-columns: 1fr; gap: 0; }
	.ask__intro { margin-inline: auto; }
}
