/* Tumbleberry Town website. Colours from docs/ART_STYLE.md in the game. */
@font-face {
	font-family: "Fredoka";
	src: url("fonts/Fredoka-Variable.ttf") format("truetype");
	font-weight: 300 700;
	font-display: swap;
}

:root {
	--plum: #4B2E5E;
	--cream: #FFF4DC;
	--paper: #FFFBF2;
	--pink: #FF6B9D;
	--yellow: #FFC93C;
	--blue: #4FC3F7;
	--green: #6FCF6B;
	--grape: #9575FF;
	--sky: #BFE8FB;
	--hill: #9BD68A;
	--soft: #5E4870;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--cream);
	color: var(--plum);
	font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
	font-size: 19px;
	line-height: 1.55;
}

a { color: var(--plum); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pink); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header.top {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 0;
}
header.top .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 22px; }
header.top .brand img { width: 44px; height: 44px; border-radius: 12px; border: 3px solid var(--plum); }
header.top nav { display: flex; gap: 18px; font-weight: 500; }
header.top nav a { text-decoration: none; }
header.top nav a:hover { text-decoration: underline; }

.hero {
	background: var(--sky);
	border-bottom: 6px solid var(--plum);
	padding: 40px 0 0;
	text-align: center;
}
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.1; margin: 10px 0 12px; font-weight: 600; }
.hero p.lead { font-size: clamp(19px, 2.4vw, 24px); max-width: 720px; margin: 0 auto 26px; color: var(--soft); }
.hero img.feature { width: 100%; max-width: 900px; display: block; margin: 0 auto; border-radius: 28px 28px 0 0; border: 6px solid var(--plum); border-bottom: 0; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 28px; }
.badge {
	display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--paper);
	border: 3px solid var(--plum); font-weight: 600; font-size: 17px; text-decoration: none;
}
.badge.soon { opacity: 0.75; }

/* The selling points, right under the headline. */
.highlights { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0 auto 26px; max-width: 900px; }
.highlights li {
	padding: 6px 14px; border-radius: 12px; background: var(--yellow); border: 2px solid var(--plum);
	font-weight: 600; font-size: 17px; line-height: 1.3;
}
.highlights li::before { content: "✓"; font-weight: 700; margin-right: 6px; }

.grownups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px 28px; padding: 0; margin: 0; list-style: none; }
.grownups li { padding-left: 34px; position: relative; }
.grownups li::before {
	content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--yellow); border: 3px solid var(--plum);
}
.grownups li b { display: block; }

section { padding: 48px 0; }
section h2 { font-size: 34px; line-height: 1.2; margin: 0 0 18px; font-weight: 600; }

.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.promise { background: var(--paper); border: 4px solid var(--plum); border-radius: 24px; padding: 20px 22px; }
.promise strong { display: block; font-size: 22px; margin-bottom: 4px; }

.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 14px; padding: 0; list-style: none; }
.rooms li { background: var(--paper); border-radius: 18px; padding: 14px 18px; border: 3px solid var(--plum); }
.rooms li b { display: block; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.gallery img { width: 100%; display: block; border-radius: 18px; border: 4px solid var(--plum); }

video { width: 100%; border-radius: 22px; border: 5px solid var(--plum); background: var(--plum); }

.price { background: var(--yellow); border: 5px solid var(--plum); border-radius: 28px; padding: 26px 30px; }
.price h2 { margin-top: 0; }

article.doc { background: var(--paper); border: 4px solid var(--plum); border-radius: 28px; padding: 28px 34px; margin: 20px 0 48px; }
article.doc h1 { font-size: 40px; line-height: 1.15; margin: 0 0 4px; font-weight: 600; }
article.doc h2 { font-size: 26px; margin: 28px 0 8px; font-weight: 600; }
article.doc .updated { color: var(--soft); margin-top: 0; }
article.doc ul { padding-left: 22px; }

details { background: var(--paper); border: 3px solid var(--plum); border-radius: 18px; padding: 12px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }

footer { background: var(--plum); color: var(--cream); padding: 26px 0; font-size: 16px; }
footer a { color: var(--cream); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 600px) {
	body { font-size: 17px; }
	header.top nav { gap: 12px; font-size: 16px; }
	article.doc { padding: 20px; }
}
