@font-face {
	font-family: "Shippori Mincho";
	src: url("/assets/fonts/shippori-mincho-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Shippori Mincho";
	src: url("/assets/fonts/shippori-mincho-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

:root {
	--washi: #f4efe4;
	--washi-deep: #ebe3d3;
	--tusche: #2a2a26;
	--tusche-soft: #5d5a52;
	--matcha: #6b8e3d;
	--matcha-deep: #4f6b2c;
	--shu: #b5432f;
	--line: rgba(42, 42, 38, 0.16);
	--serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
	color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	background-color: var(--washi);
	/* Washi grain and a faint asanoha field, both drawn in place */
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
		radial-gradient(ellipse at 50% 38%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 62%);
	color: var(--tusche);
	font-family: var(--serif);
	font-size: 1.0625rem;
	line-height: 1.75;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: auto -6vw -10vh auto;
	width: min(58vw, 560px);
	aspect-ratio: 1;
	pointer-events: none;
	opacity: 0.11;
	background-image: url("asanoha.svg");
	background-size: 64px 110.85px;
	-webkit-mask-image: radial-gradient(circle at 70% 70%, #000 0%, transparent 68%);
	mask-image: radial-gradient(circle at 70% 70%, #000 0%, transparent 68%);
}

a {
	color: var(--matcha-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}
a:hover { color: var(--matcha); }
a:focus-visible {
	outline: 2px solid var(--matcha);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------- Startseite ---------- */

.stage {
	flex: 1;
	display: grid;
	place-items: center;
	padding: 48px 16px 24px;
	position: relative;
	z-index: 1;
}

.composition {
	display: grid;
	justify-items: center;
	text-align: center;
	max-width: 34rem;
}

.enso-wrap {
	position: relative;
	width: min(76vw, 320px);
	aspect-ratio: 1;
	display: grid;
	place-items: center;
}

.enso {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.enso path {
	fill: none;
	stroke: var(--matcha);
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
	animation: brush 2.6s cubic-bezier(0.55, 0.06, 0.32, 1) both;
}
.enso .stroke-main { stroke-width: 15; }
.enso .stroke-dry { stroke-width: 6; opacity: 0.45; stroke: var(--matcha-deep); animation-delay: 0.15s; }

@keyframes brush {
	from { stroke-dashoffset: 1; }
	to { stroke-dashoffset: 0; }
}

.wordmark {
	position: relative;
	margin: 0;
	font-weight: 600;
	font-size: clamp(1.9rem, 8vw, 2.6rem);
	letter-spacing: 0.04em;
	line-height: 1;
	animation: rise 1.4s 1.1s ease-out both;
}
.wordmark small {
	display: block;
	margin-top: 0.85rem;
	font-size: 0.3em;
	font-weight: 400;
	letter-spacing: 0.24em;
	white-space: nowrap;
	text-transform: uppercase;
	color: var(--tusche-soft);
}

.tategaki {
	position: absolute;
	top: 4%;
	right: -14%;
	margin: 0;
	writing-mode: vertical-rl;
	font-size: 1.15rem;
	letter-spacing: 0.5em;
	color: var(--tusche);
	animation: rise 1.4s 1.5s ease-out both;
}

.hanko {
	position: absolute;
	bottom: 6%;
	right: -6%;
	width: 2.6rem;
	height: 2.6rem;
	display: grid;
	place-items: center;
	border: 2px solid var(--shu);
	border-radius: 4px;
	color: var(--shu);
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.05;
	writing-mode: vertical-rl;
	transform: rotate(-4deg);
	opacity: 0.88;
	animation: stamp 0.5s 2.3s ease-out both;
}

.message {
	margin-top: 2.6rem;
	animation: rise 1.4s 1.8s ease-out both;
}
.message h1 {
	margin: 0;
	font-weight: 600;
	font-size: clamp(1.35rem, 5vw, 1.75rem);
	line-height: 1.4;
	text-wrap: balance;
}
.message p {
	margin: 1rem auto 0;
	max-width: 27rem;
	color: var(--tusche-soft);
	text-wrap: pretty;
}

.divider {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: 1.8rem auto 0;
	font-size: 0.82rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--matcha-deep);
}
.divider::before,
.divider::after {
	content: "";
	width: 2.4rem;
	height: 1px;
	background: currentColor;
	opacity: 0.5;
}

.social {
	margin-top: 1.6rem;
	font-size: 0.98rem;
}

@keyframes rise {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}
@keyframes stamp {
	from { opacity: 0; transform: rotate(-4deg) scale(1.35); }
	to { opacity: 0.88; transform: rotate(-4deg) scale(1); }
}

/* ---------- Rechtliche Seiten ---------- */

.page {
	flex: 1;
	width: 100%;
	max-width: 40rem;
	margin: 0 auto;
	padding: 40px 16px 24px;
	position: relative;
	z-index: 1;
}

.back {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--tusche);
	text-decoration: none;
}
.back svg { width: 1.6rem; height: 1.6rem; }
.back:hover { color: var(--matcha-deep); }

.page h1 {
	margin: 2.4rem 0 1.4rem;
	font-weight: 600;
	font-size: clamp(1.6rem, 6vw, 2.1rem);
	line-height: 1.3;
}
.page h2 {
	margin: 2.2rem 0 0.4rem;
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--matcha-deep);
}
.page p, .page address { margin: 0 0 1rem; font-style: normal; }
.page .stand { margin-top: 2.4rem; font-size: 0.9rem; color: var(--tusche-soft); }

/* ---------- Footer ---------- */

.site-footer {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 1.6rem;
	padding: 20px 16px 28px;
	font-size: 0.86rem;
	color: var(--tusche-soft);
}
.site-footer a { color: var(--tusche-soft); text-decoration: none; }
.site-footer a:hover { color: var(--matcha-deep); text-decoration: underline; }

@media (max-width: 420px) {
	.wordmark small { font-size: 0.27em; letter-spacing: 0.16em; }
	.tategaki { right: -6%; top: -4%; font-size: 1rem; }
	.hanko { right: 0; bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; }
}
