/*
 * Wijchen Schaatst character pages.
 *
 * These pages are served without the theme (speed, no cookies), so the look of
 * callido.nl is rebuilt here from the live site's own values: Roboto Serif 400
 * headlines with tight tracking, Manrope body in #5A5E78 on #FAFAF8, the swirl
 * artwork behind the hero and in the footer, white 20px cards with a #E0DDD7
 * hairline, the pill badge, and 10px gradient buttons with a leading arrow.
 *
 * "Colourised": wherever the site uses Callido Blue, these pages use the
 * character's colour. --ws-accent / --ws-accent-ink are set once per page by
 * the plugin from data/wijchen-schaatst.json; the swirl artwork is tinted to
 * the same hue. Nothing else differs between the five pages.
 */

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/manrope-latin.woff2") format("woff2");
}
@font-face {
	font-family: "Roboto Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/roboto-serif-400-latin.woff2") format("woff2");
}

:root {
	--ws-bg: #FAFAF8;
	--ws-surface: #FFFFFF;
	--ws-ink: #101431;
	--ws-text: #5A5E78;
	--ws-line: #E0DDD7;
	--ws-accent: #4499D9;
	--ws-accent-ink: #0B1030;
	--ws-c: #4499D9;
	--ws-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
	--ws-head: "Roboto Serif", Georgia, "Times New Roman", serif;
	/* The site's own artwork, already in the media library. */
	--ws-swirl-top: url("/wp-content/uploads/2025/09/71-home-light-1-background-1.webp");
	--ws-swirl-foot: url("/wp-content/uploads/2026/05/71-home-light-1-background-footer-1.webp");
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ws-bg);
	color: var(--ws-text);
	font-family: var(--ws-body);
	font-size: 1.0625rem;
	line-height: 1.55;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
p { margin: 0; }
a { color: var(--ws-ink); }

/* ---- Stage: swirl artwork behind header + hero, tinted to the character ---- */
.ws-stage { position: relative; isolation: isolate; }
.ws-swirl {
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	width: 100%;
	height: 620px;
	isolation: isolate;
	background:
		var(--ws-swirl-top) left top / max(1100px, 115%) auto no-repeat,
		radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--ws-accent) 45%, #fff) 0%, transparent 60%);
	-webkit-mask-image: linear-gradient(#000 55%, transparent);
	mask-image: linear-gradient(#000 55%, transparent);
}
/* Keeps the artwork's light and shade, swaps its hue for the accent. */
.ws-swirl::after, .ws-foot-swirl::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ws-accent);
	mix-blend-mode: color;
}

/* ---- Header: logo and one way back, as on the site ---- */
.ws-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 1320px;
	margin: 0 auto;
	padding: 1.1rem 1.25rem;
}
.ws-logo { display: inline-flex; align-items: center; min-height: 48px; }
.ws-logo img { display: block; width: auto; height: 48px; }

/* ---- Buttons: the site's button, in the page's colour ---- */
button, input { font: inherit; }
.ws-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 50px;
	padding: 0 1.75rem;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(70deg, color-mix(in srgb, var(--ws-accent) 82%, #fff) 0%, var(--ws-accent) 70%);
	color: var(--ws-accent-ink);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: filter 0.2s ease;
}
.ws-btn::before { content: "\2192"; font-weight: 400; }
.ws-btn:hover { filter: brightness(0.95); }
.ws-btn[disabled] { opacity: 0.6; cursor: default; }
.ws-btn.ws-quiet { background: transparent; color: var(--ws-ink); border: 1px solid var(--ws-ink); }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--ws-accent); outline-offset: 2px; }
button.ws-link { padding: 0.35rem 0.15rem; border: 0; background: none; color: var(--ws-ink); font-weight: 700; text-decoration: underline; border-radius: 4px; cursor: pointer; }

/* ---- Type ---- */
h1, h2 { margin: 0; font-family: var(--ws-head); font-weight: 400; color: var(--ws-ink); text-wrap: balance; }
h1 { font-size: clamp(3rem, 13vw, 5.125rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 6.5vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.ws-lead { color: var(--ws-ink); font-size: clamp(1.1rem, 3.6vw, 1.25rem); font-weight: 500; line-height: 1.5; }
.ws-note { font-size: 0.92rem; margin-top: 1rem; }
.ws-fact { font-size: 0.92rem; font-weight: 600; }

/* The site's pill badge: dark chip + serif caption. */
.ws-badge, .ws-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.3rem 0.9rem 0.3rem 0.3rem;
	border-radius: 999px;
	background: var(--ws-surface);
	box-shadow: 0 2px 14px rgba(16, 20, 49, 0.08);
	font-family: var(--ws-head);
	font-size: 1rem;
	color: var(--ws-ink);
}
a.ws-badge { min-height: 44px; text-decoration: none; transition: box-shadow 0.2s ease; }
a.ws-badge:hover { box-shadow: 0 4px 22px rgba(16, 20, 49, 0.16); }
.ws-badge b {
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: var(--ws-ink);
	color: #fff;
	font-family: var(--ws-body);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}
.ws-eyebrow {
	align-self: center;
	padding: 0.35rem 0.95rem;
	margin-bottom: 1rem;
	font-family: var(--ws-body);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ---- Layout ---- */
.ws-main {
	max-width: 46rem;
	margin: 0 auto;
	padding: 1.5rem 1.25rem 4.5rem;
	display: flex;
	flex-direction: column;
	gap: 4.5rem;
}
section { display: flex; flex-direction: column; text-align: center; }
section > * { text-align: left; }
section > h2, section > .ws-eyebrow, section > .ws-note { text-align: center; }

/* ---- Hero ---- */
.ws-hero { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; padding-top: 1rem; }
.ws-hero .ws-lead { max-width: 34rem; }
.ws-face {
	width: 11rem;
	aspect-ratio: 1;
	margin-top: 0.4rem;
	padding: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ws-surface);
	border: 1px solid var(--ws-line);
	border-bottom: 6px solid var(--ws-accent);
	border-radius: 30px;
	box-shadow: 0 4px 60px color-mix(in srgb, var(--ws-accent) 30%, transparent);
}
.ws-face img { max-height: 100%; width: auto; }

/* The one entrance animation on the page. */
@media (prefers-reduced-motion: no-preference) {
	.ws-face { animation: ws-arrive 0.5s ease-out both; }
}
@keyframes ws-arrive {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

/* ---- Cards ---- */
.ws-story, .ws-panel, .ws-notice {
	background: var(--ws-surface);
	border: 1px solid var(--ws-line);
	border-radius: 20px;
}
.ws-story { border-left: 6px solid var(--ws-accent); padding: clamp(1.4rem, 5vw, 2.5rem); color: var(--ws-ink); }
.ws-story p { font-size: 1.18rem; line-height: 1.65; }
.ws-story p + p { margin-top: 0.9rem; }

.ws-cast { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 0.9rem; margin-top: 1.25rem; }
.ws-cast-label { font-size: 0.92rem; font-weight: 600; }
.ws-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.ws-pills a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0 1rem 0 0.8rem;
	border: 1px solid var(--ws-line);
	border-radius: 999px;
	background: var(--ws-surface);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
}
.ws-pills i { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--ws-c); }

.ws-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1rem; margin-top: 1.5rem; }
.ws-row-tight { margin-top: 0.6rem; justify-content: flex-start; }
.ws-count { font-size: 0.92rem; }

/* ---- Forms (nickname, chat) sit in a card ---- */
.ws-panel { padding: clamp(1.4rem, 5vw, 2.5rem); }
label { display: block; font-weight: 700; color: var(--ws-ink); }
input[type="text"] {
	flex: 1 1 12rem;
	min-width: 0;
	min-height: 50px;
	padding: 0 1rem;
	border: 1px solid var(--ws-line);
	border-radius: 10px;
	background: var(--ws-bg);
	color: var(--ws-ink);
	font-size: 1.0625rem; /* 16px+ keeps iOS from zooming on focus */
}
.ws-result { margin-top: 1.5rem; border-top: 1px solid var(--ws-line); padding-top: 1.5rem; text-align: center; }
.ws-result-name { font-family: var(--ws-head); font-size: clamp(1.6rem, 6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--ws-ink); text-wrap: balance; }
.ws-result-luck { margin-top: 0.6rem; font-size: 1.12rem; color: var(--ws-ink); }

/* ---- Chat ---- */
.ws-notice { margin-bottom: 1rem; padding: 1rem 1.25rem; border-color: var(--ws-ink); color: var(--ws-ink); font-size: 0.98rem; }
.ws-log { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.25rem 0; }
.ws-bubble { max-width: 88%; padding: 0.75rem 1.05rem; border-radius: 20px; font-size: 1.08rem; line-height: 1.5; overflow-wrap: anywhere; }
.ws-bubble.ws-them { align-self: flex-start; background: var(--ws-accent); color: var(--ws-accent-ink); border-bottom-left-radius: 6px; }
.ws-bubble.ws-you { align-self: flex-end; background: var(--ws-surface); border: 1px solid var(--ws-line); color: var(--ws-ink); border-bottom-right-radius: 6px; }
.ws-bubble.ws-wait { opacity: 0.7; }

.ws-ask-label { font-weight: 700; color: var(--ws-ink); margin-bottom: 0.6rem; }
.ws-ask { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ws-ask button {
	min-height: 48px;
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--ws-ink);
	border-radius: 999px;
	background: var(--ws-surface);
	color: var(--ws-ink);
	font-weight: 700;
	font-size: 1rem;
	text-align: left;
	cursor: pointer;
}
.ws-ask button:hover { background: var(--ws-bg); }
.ws-ask button[disabled] { opacity: 0.5; cursor: default; }

/* ---- The whole gang ---- */
.ws-gang { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(0.35rem, 1.6vw, 1rem); }
.ws-gang a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	padding: clamp(0.6rem, 2.4vw, 1.25rem) 0.2rem clamp(0.5rem, 2vw, 1rem);
	background: var(--ws-surface);
	border: 1px solid var(--ws-line);
	border-bottom: 3px solid var(--ws-c);
	border-radius: clamp(12px, 3vw, 20px);
	font-size: clamp(0.76rem, 2.6vw, 1rem);
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease;
}
.ws-gang a:hover { transform: translateY(-2px); }
.ws-gang .ws-pic { height: clamp(3rem, 12vw, 5rem); display: flex; align-items: center; }
.ws-gang img { max-height: clamp(3rem, 12vw, 5rem); width: auto; }
.ws-gang a[aria-current="page"] { border-bottom-width: 7px; }

/* ---- Overview page ---- */
.ws-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.ws-card {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	gap: 1.25rem;
	align-items: center;
	padding: 1.25rem 1.5rem;
	background: var(--ws-surface);
	border: 1px solid var(--ws-line);
	border-left: 6px solid var(--ws-c);
	border-radius: 20px;
	text-decoration: none;
	transition: transform 0.2s ease;
}
.ws-card:hover { transform: translateY(-2px); }
.ws-card-pic { height: 5rem; display: flex; align-items: center; justify-content: center; }
.ws-card-pic img { max-height: 5rem; width: auto; }
.ws-card-text { display: flex; flex-direction: column; color: var(--ws-text); }
.ws-card-text b { font-family: var(--ws-head); font-weight: 400; font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--ws-ink); }
.ws-animal { font-size: 0.95rem; margin-bottom: 0.25rem; }
@media (min-width: 700px) { .ws-cards { grid-template-columns: 1fr 1fr; } }

/* ---- Footer: the site's closing section ---- */
.ws-foot { text-align: center; }
.ws-foot-cta { max-width: 46rem; margin: 0 auto; padding: 1rem 1.25rem 0; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.ws-foot-cta h2 { margin: 0; font-size: clamp(2.2rem, 8vw, 3.9rem); line-height: 1.1; letter-spacing: -0.03em; }
.ws-foot-cta .ws-lead { font-weight: 500; color: var(--ws-text); }
.ws-foot-cta .ws-lead a { font-weight: 700; }
.ws-fine { max-width: 40rem; margin: 3rem auto 0; padding: 0 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.88rem; }
.ws-fine a { font-weight: 700; }
.ws-foot-swirl {
	position: relative;
	isolation: isolate;
	margin-top: 1rem;
	min-height: 15rem;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0 1.25rem 2rem;
	background:
		var(--ws-swirl-foot) center bottom / max(900px, 100%) auto no-repeat,
		linear-gradient(to top, color-mix(in srgb, var(--ws-accent) 55%, #fff), transparent 80%);
	-webkit-mask-image: linear-gradient(transparent, #000 50%);
	mask-image: linear-gradient(transparent, #000 50%);
}
.ws-foot-swirl p { position: relative; z-index: 1; color: #fff; font-size: 0.9rem; font-weight: 600; text-shadow: 0 1px 8px rgba(16, 20, 49, 0.45); }
.ws-foot-swirl a { color: #fff; }

@media (max-width: 420px) {
	.ws-logo img { height: 40px; }
	.ws-top .ws-btn { min-height: 44px; padding: 0 1.1rem; }
	.ws-main { gap: 3.5rem; }
	.ws-face { width: 9.5rem; }
}
@media (min-width: 900px) {
	.ws-top { padding: 2rem 3rem; }
	.ws-logo img { height: 76px; }
	.ws-swirl { height: 760px; }
	.ws-foot-swirl { min-height: 22rem; }
}
