/* Pondo Goes Fishing website. The look follows the game's v4 board: saturated water with
   ripple dashes, cream trays with a near-black outline and a warm inner rim, dark text,
   gold for the main buttons. Body text is Atkinson Hyperlegible (OFL, self-hosted). */

@font-face {
	font-family: "Atkinson Hyperlegible";
	src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Hyperlegible";
	src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

:root {
	--ink: #1d1712;
	--muted: #6e5236;
	--cream: #fdf3dc;
	--cream-2: #fef4dd;
	--rim: #e9c9a0;
	--tan: #e8c29a;
	--gold: #e8b830;
	--gold-hi: #f6d470;
	--gold-press: #f2d49a;
	--red: #d84a3a;
	--green: #58a83a;
	--water: #2763c9;
	--water-deep: #17428f;
	--water-hi: #6fb1ff;
	--night: #0f2550;
	--radius: 12px;
	--gutter: 16px;
	color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
	font-size: 19px;
	line-height: 1.55;
	color: var(--ink);
	background-color: var(--water);
	/* the board's ripple dashes */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='96' shape-rendering='crispEdges'%3E%3Cg fill='%2386c0ff' fill-opacity='.55'%3E%3Crect x='10' y='14' width='6' height='3'/%3E%3Crect x='16' y='11' width='6' height='3'/%3E%3Crect x='22' y='14' width='6' height='3'/%3E%3Crect x='92' y='40' width='6' height='3'/%3E%3Crect x='98' y='37' width='6' height='3'/%3E%3Crect x='104' y='40' width='6' height='3'/%3E%3Crect x='40' y='74' width='6' height='3'/%3E%3Crect x='46' y='71' width='6' height='3'/%3E%3Crect x='52' y='74' width='6' height='3'/%3E%3Crect x='132' y='84' width='6' height='3'/%3E%3Crect x='138' y='81' width='6' height='3'/%3E%3C/g%3E%3C/svg%3E");
	min-height: 100vh;
}

img.pixel, .pixel img { image-rendering: pixelated; image-rendering: crisp-edges; }

a { color: inherit; }

.wrap {
	width: min(1120px, 100% - 2 * var(--gutter));
	margin-inline: auto;
}

/* ---------------------------------------------------------------- trays and buttons */

.tray {
	background: var(--cream);
	border: 3px solid var(--ink);
	border-radius: var(--radius);
	box-shadow: inset 0 0 0 3px var(--rim), 0 6px 0 rgba(10, 20, 50, 0.35);
	padding: 28px;
}

.tag {
	display: inline-block;
	background: var(--ink);
	color: var(--cream);
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 6px;
}

.btn {
	--bg: var(--cream-2);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	font: inherit;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	background: var(--bg);
	border: 3px solid var(--ink);
	border-radius: 10px;
	box-shadow: 0 4px 0 var(--ink);
	white-space: nowrap;
	cursor: pointer;
	transition: transform 80ms, box-shadow 80ms, background 120ms;
}
.btn img { width: 22px; height: 22px; image-rendering: pixelated; }
@media (max-width: 480px) { .btn { white-space: normal; } }
.btn:hover { background: var(--gold-press); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.btn.primary { --bg: var(--gold); font-size: 1.2rem; padding: 15px 28px; }
.btn.primary:hover { background: var(--gold-hi); }
.btn.small { font-size: 0.9rem; padding: 8px 14px; }
.btn[aria-disabled="true"] { --bg: #efe2c4; color: var(--muted); cursor: default; }
.btn[aria-disabled="true"]:hover { background: var(--bg); }
.btn[aria-disabled="true"]:active { transform: none; box-shadow: 0 4px 0 var(--ink); }
.btn .soon { font-size: 0.7rem; background: var(--ink); color: var(--cream); padding: 2px 7px; border-radius: 5px; letter-spacing: 0.06em; }

/* ---------------------------------------------------------------- top bar */

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--cream);
	border-bottom: 3px solid var(--ink);
	box-shadow: inset 0 -3px 0 var(--rim);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem; white-space: nowrap; }
.brand img { height: 36px; width: auto; }
.topbar nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.topbar nav a { text-decoration: none; font-weight: 700; font-size: 0.92rem; padding: 6px 12px; border-radius: 8px; }
.topbar nav a:hover { background: var(--gold-press); }
.topbar nav a.play { background: var(--gold); border: 2px solid var(--ink); }
@media (max-width: 760px) {
	.topbar nav a:not(.play) { display: none; }
	.brand span { display: none; }
}

/* ---------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; padding: 56px 0 72px; text-align: center; color: var(--cream); }
.hero .logo-row { display: flex; align-items: center; justify-content: center; gap: 18px; }
.hero .logo { width: min(640px, 82vw); height: auto; }
.hero .emblem { width: min(88px, 12vw); height: auto; animation: bob 3.2s ease-in-out infinite; }
@media (max-width: 560px) { .hero .emblem { display: none; } .hero .logo { width: 88vw; } }
.hero .sub { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 6px 0 0; text-shadow: 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink); }
.hero .pitch { max-width: 640px; margin: 22px auto 0; font-size: 1.25rem; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }
.hero .ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero .note { margin-top: 14px; font-size: 0.95rem; opacity: 0.95; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); }
.shadow-fish {
	position: absolute;
	width: 480px;
	opacity: 0.32;
	top: 52%;
	left: -520px;
	animation: swim 38s linear infinite;
	pointer-events: none;
}
@keyframes swim { to { transform: translateX(calc(100vw + 1040px)); } }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) {
	.shadow-fish, .hero .emblem, .float { animation: none; }
}

.hero-shot {
	position: relative;
	width: min(960px, 100%);
	margin: 40px auto 0;
	padding: 10px;
}
.hero-shot img { display: block; width: 100%; height: auto; border-radius: 4px; border: 3px solid var(--ink); }

/* ---------------------------------------------------------------- sections */

section { padding: 48px 0; }
.section-title {
	display: inline-block;
	margin: 0 0 22px;
	padding: 8px 20px;
	background: var(--ink);
	color: var(--cream);
	border-radius: 10px;
	font-size: 1.15rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
h2, h3 { line-height: 1.2; }
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.story h2 { font-size: 1.8rem; margin: 0 0 14px; }
.story p { margin: 0 0 14px; }
.story img { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 6px; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 22px; }
.feature .icon { width: 44px; height: 44px; image-rendering: pixelated; }
.feature h3 { margin: 10px 0 6px; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; }
.feature p { margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery button { padding: 0; border: 3px solid var(--ink); border-radius: 6px; background: var(--ink); cursor: zoom-in; box-shadow: 0 4px 0 rgba(10, 20, 50, 0.35); }
.gallery img { display: block; width: 100%; height: auto; border-radius: 3px; }
.gallery button:hover { outline: 3px solid var(--gold); }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8, 14, 30, 0.88); display: none; align-items: center; justify-content: center; padding: var(--gutter); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 0 0 0 3px var(--cream); }
.lightbox .close { position: absolute; top: 14px; right: 14px; }

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.platform { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 24px; }
@media (max-width: 480px) { .platform, .tray.story, .feature { padding: 20px; } }
.platform .tag { align-self: flex-start; }
.platform h3 { margin: 0; font-size: 1.3rem; }
.platform p { margin: 0; flex: 1; font-size: 1rem; }
.platform .btn { align-self: flex-start; }
@media (max-width: 900px) { .platforms { grid-template-columns: 1fr; } }

.support { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.support > img { width: 96px; height: auto; }
.support h2 { margin: 0 0 6px; font-size: 1.5rem; }
.support p { margin: 0; }
@media (max-width: 760px) { .support { grid-template-columns: 1fr; text-align: center; } .support > img { margin: 0 auto; } }

footer { padding: 28px 0 40px; color: var(--cream); font-size: 0.95rem; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer nav { display: flex; gap: 18px; margin-left: auto; }

/* ---------------------------------------------------------------- text pages (Impressum, privacy) */

.page { padding: 40px 0 20px; }
.page .tray { max-width: 820px; margin: 0 auto; }
.page h1 { margin-top: 0; }
.page .todo { background: #fde7c4; border: 2px dashed var(--red); padding: 2px 6px; border-radius: 4px; }
