/* ============================================================
   Utabane — shared stylesheet
   Same soft "liquid glass" layout as Toddler Tunes, on the
   palette of the Utabane album covers: cream paper, grey wings,
   a sky-blue note and the four colours of うたばね.
   ============================================================ */

:root {
	/* Cover palette (measured on the print master) */
	--ub-cream:   #fdfcfa;   /* paper                 */
	--ub-wing:    #d2d1d1;   /* wings                 */
	--ub-note:    #92c0e6;   /* note                  */
	--ub-coral:   #f3988e;   /* う                    */
	--ub-amber:   #f2b962;   /* た                    */
	--ub-green:   #a4d1a9;   /* ば                    */
	--ub-teal:    #8ac7c1;   /* ね                    */
	--ub-band-blue: #b1cfec; /* どんぐりころころ band  */
	--ub-band-pink: #f7bab2; /* むすんでひらいて band  */
	--ub-sky:     #b4d3ef;   /* page backdrop: the note blue, lightened */

	/* Deeper tones of the same hues, for readable text on cream */
	--ub-ink:        #3b4a5c;
	--ub-ink-soft:   #6b7888;
	--ub-blue-deep:  #3a6f9f;
	--ub-coral-deep: #c65a4c;
	--ub-teal-deep:  #2f7d76;

	/* Liquid glass tokens */
	--glass-bg:        rgba(255, 255, 255, 0.78);
	--glass-bg-strong: rgba(255, 255, 255, 0.88);
	--glass-border:    rgba(255, 255, 255, 0.9);
	--glass-blur:      saturate(1.5) blur(22px);
	--glass-shadow:
		0 24px 48px -16px rgba(58, 111, 159, 0.18),
		0 4px 14px rgba(58, 111, 159, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	--radius-lg: 2.25rem;
	--radius-md: 1.25rem;
	--radius-pill: 999px;

	--rainbow: linear-gradient(90deg,
		var(--ub-coral) 0 25%, var(--ub-amber) 25% 50%,
		var(--ub-green) 50% 75%, var(--ub-teal) 75% 100%);

	--font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN",
		-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	color-scheme: light;
}

/* ------------------------------------------------ base ---- */

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

html {
	min-height: 100%;
	width: 100%;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-round);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.75;
	color: var(--ub-ink);
	background-color: var(--ub-sky);
	background-image:
		/* a pale glow behind the logo keeps the grey wings readable */
		radial-gradient(38rem 27rem at 50% 8rem, rgb(253, 252, 250) 30%, rgba(253, 252, 250, 0) 75%),
		radial-gradient(48rem 34rem at -14% 30%, rgba(247, 186, 178, 0.25), transparent 60%),
		radial-gradient(46rem 40rem at 70% 110%, rgba(164, 209, 169, 0.22), transparent 60%),
		url(../img/bg-notes.svg);
	background-repeat: no-repeat, no-repeat, no-repeat, repeat;
	background-size: auto, auto, auto, 26rem;
	background-attachment: scroll;
}

:lang(ja) { line-break: strict; word-break: normal; overflow-wrap: anywhere; }

img { margin: 0; max-width: 100%; height: auto; }

a {
	text-decoration: none;
	color: var(--ub-blue-deep);
	transition: color 0.2s ease;
}

a:hover { color: var(--ub-coral-deep); }

a:focus-visible {
	outline: 3px solid var(--ub-note);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection { background: rgba(146, 192, 230, 0.35); }

#page {
	min-height: 100%;
	overflow: clip;
	padding-bottom: 2rem;
}

/* --------------------------------------- language switch -- */

.lang-switch {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 60;
	display: flex;
	gap: 0.15rem;
	padding: 0.25rem;
	background: var(--glass-bg-strong);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-pill);
	box-shadow: var(--glass-shadow);
}

.lang-switch a {
	padding: 0.3rem 0.85rem;
	border-radius: var(--radius-pill);
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ub-ink-soft);
	line-height: 1.4;
}

.lang-switch a:hover { color: var(--ub-blue-deep); background: rgba(255, 255, 255, 0.9); }

.lang-switch a.active {
	color: #fff;
	background: var(--ub-blue-deep);
}

/* ---------------------------------------------- splash ---- */

.splash-link { display: block; width: fit-content; margin: 0 auto; }

.splash {
	display: block;
	margin: clamp(3.5rem, 9vh, 5.5rem) auto 0;
	width: min(70vw, 400px);
	filter: drop-shadow(0 14px 22px rgba(58, 111, 159, 0.10));
}

.tagline {
	margin: 0.9rem auto 0;
	padding: 0 1rem;
	text-align: center;
	font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--ub-ink);
}

/* ------------------------------------------------ menu ---- */

#menu {
	position: sticky;
	top: 0.9rem;
	z-index: 50;

	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.25rem;

	width: fit-content;
	max-width: min(94vw, 1000px);
	margin: 1.5rem auto 2rem;
	padding: 0.45rem 0.65rem;

	background: var(--glass-bg-strong);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-pill);
	box-shadow: var(--glass-shadow);
}

.menuButton {
	display: inline-block;
	text-align: center;
	padding: 0.55rem 1.4rem;
	border-radius: var(--radius-pill);

	font-size: clamp(1rem, 0.9rem + 0.6vw, 1.2rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--ub-blue-deep);

	transition: background 0.25s ease, color 0.25s ease,
		transform 0.25s ease, box-shadow 0.25s ease;
}

.menuButton:hover {
	color: var(--ub-coral-deep);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 6px 18px -6px rgba(58, 111, 159, 0.3);
	transform: translateY(-1px);
}

.menuButtonActive {
	background: rgba(255, 255, 255, 0.95);
	box-shadow: inset 0 -3px 0 var(--ub-note);
}

/* ------------------------------------------------ pane ---- */

#pane {
	width: min(94vw, 1000px);
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 3.5vw, 3rem) 3rem;
	text-align: center;
	position: relative;

	background: var(--glass-bg);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--glass-shadow);
}

@supports not (backdrop-filter: blur(1px)) {
	#menu, #pane, .lang-switch { background: rgba(255, 255, 255, 0.92); }
}

/* ------------------------------------------- typography --- */

.eyebrow {
	display: inline-block;
	background: var(--ub-coral-deep);
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	border-radius: var(--radius-pill);
	padding: 0.2rem 0.95rem;
}

.section-heading {
	font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.4rem);
	font-weight: 900;
	line-height: 1.35;
	color: var(--ub-ink);
	margin: 0.6em auto 0.5em;
	padding: 0 1rem;
	text-wrap: balance;
}

/* the four colours of うたばね, as a short underline */
.section-heading::after {
	content: "";
	display: block;
	width: 5.5rem;
	height: 0.32rem;
	margin: 0.55em auto 0;
	border-radius: var(--radius-pill);
	background: var(--rainbow);
}

.sub-heading {
	font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
	font-weight: 900;
	color: var(--ub-ink);
	margin: 2.5rem auto 0.6rem;
}

.section-sub {
	font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
	max-width: 36em;
	margin: 0 auto 2.25rem;
	padding: 0 1rem;
	text-wrap: pretty;
}

.text_small {
	max-width: 40em;
	margin: 0 auto 1.1em;
	padding: 0 0.5rem;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
	text-align: left;
	text-wrap: pretty;
}

.sister .text_small { text-align: center; }

/* --------------------------------------------- releases --- */

.release-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
	margin: 0 auto 1rem;
	max-width: 52rem;
}

.release {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	text-align: left;
	background: var(--glass-bg-strong);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--glass-shadow);
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.release:hover {
	transform: translateY(-4px);
	box-shadow:
		0 34px 60px -20px rgba(58, 111, 159, 0.28),
		0 6px 16px rgba(58, 111, 159, 0.08);
}

.release-cover { display: block; width: 100%; aspect-ratio: 1; }

.release-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.1rem 1.4rem 1.5rem;
	border-top: 0.35rem solid var(--band);
}

.release-blue { --band: var(--ub-band-blue); }
.release-pink { --band: var(--ub-band-pink); }

.release-title {
	margin: 0;
	font-size: 1.45rem;
	font-weight: 900;
	color: var(--ub-ink);
	letter-spacing: 0.04em;
}

.release-romaji {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--ub-ink-soft);
}

.release-blurb { margin: 0 0 1rem; font-size: 1rem; text-wrap: pretty; }

.soon, .listen-link {
	display: inline-block;
	margin-top: auto;
	border-radius: var(--radius-pill);
	padding: 0.3rem 0.95rem;
	font-size: 0.9rem;
	font-weight: 700;
}

.soon {
	background: color-mix(in srgb, var(--band) 45%, white);
	color: var(--ub-ink);
}

.listen { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-top: auto; }
.listen-label { width: 100%; font-size: 0.85rem; font-weight: 700; color: var(--ub-ink-soft); }
.listen-link { margin: 0; background: var(--ub-blue-deep); color: #fff; }
.listen-link:hover { background: var(--ub-coral-deep); color: #fff; }

.sister { margin-top: 1.5rem; }

/* ------------------------------------------------ about --- */

.about-mark {
	display: block;
	width: min(60vw, 220px);
	margin: 0.5rem auto 2rem;
}

.mail-link {
	font-weight: 700;
	font-size: 1.15rem;
}

.text_small:has(> .mail-link) { text-align: center; }

.link-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin: 2.5rem auto 0;
}

.link-card {
	flex: 0 1 17rem;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 1.1rem 1.4rem;
	text-align: left;
	background: var(--glass-bg-strong);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-md);
	box-shadow: var(--glass-shadow);
	color: var(--ub-ink);
	transition: transform 0.3s ease;
}

.link-card:hover { transform: translateY(-3px); color: var(--ub-ink); }
.link-card-title { font-weight: 900; font-size: 1.1rem; color: var(--ub-blue-deep); }
.link-card-text { font-size: 0.95rem; color: var(--ub-ink-soft); }
.link-card-title::after { content: " ↗"; font-weight: 700; }

/* ---------------------------------------------- footer ---- */

#footer {
	margin: 3rem auto 0;
	padding: 0 1rem;
	text-align: center;
}

.footer-mark { width: 84px; opacity: 0.85; }

.footerText {
	margin: 0.3rem 0;
	color: var(--ub-ink);
	font-size: 0.85rem;
}

/* -------------------------------------------- small screens */

@media (max-width: 30rem) {
	.lang-switch { top: 0.6rem; right: 0.6rem; }
	#menu { flex-wrap: nowrap; padding: 0.35rem 0.4rem; }
	.menuButton { padding: 0.45rem 0.7rem; font-size: 0.95rem; white-space: nowrap; }
	#pane { border-radius: var(--radius-md); }
}

/* ------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
	html { scroll-behavior: auto; }
}
