/* Jean Perrin — fin d’été, eau claire, lumière rasante */
:root {
	--ink: #1e2c28;
	--ink-soft: #31443e;
	--muted: #5a6e68;
	--water: #b7cdc6;
	--water-deep: #6d8f88;
	--mist: #e7f0ec;
	--foam: #f6faf7;
	--gold: #c4a36a;
	--gold-2: #d8bf8c;
	--leaf: #9a7a48;
	--ok: #3d6b58;
	--off: #a85a48;
	--stone: #2c332f;
	--stone-2: #3d4541;
	--glass: rgba(246, 250, 247, 0.46);
	--line: rgba(30, 44, 40, 0.1);
	--text: var(--ink);
	--text-inv: #f4f7f5;
	--display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--ui: "Outfit", "Segoe UI", sans-serif;
	--hero: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 10px 36px rgba(30, 44, 40, 0.07);
	--shadow-lg: 0 28px 60px rgba(30, 44, 40, 0.12);
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	min-height: 100%;
	color: var(--text);
	background: #2a7d74;
}

body {
	font-family: var(--ui);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.hidden { display: none !important; }

h1, h2 {
	font-family: var(--display);
	font-weight: 500;
	font-optical-sizing: auto;
	letter-spacing: -0.035em;
	margin: 0;
	color: var(--ink);
}

h2 { font-size: 1.42rem; }

h3 {
	font-family: var(--display);
	font-size: 1.18rem;
	margin: 0 0 0.28rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.eyebrow {
	margin: 0 0 0.28rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.64rem;
	color: var(--leaf);
	font-weight: 500;
}

.lede {
	color: var(--muted);
	margin: 0.45rem 0 0;
	line-height: 1.65;
	font-size: 1.02rem;
	font-weight: 300;
}

:focus-visible {
	outline: 2px solid var(--water-deep);
	outline-offset: 3px;
}

.brand-logo {
	display: block;
	object-fit: cover;
	object-position: center;
	border-radius: 50%;
}

.crest.mini {
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
	border: 1px solid rgba(255, 255, 255, 0.55);
	box-shadow: 0 4px 12px rgba(30, 44, 40, 0.08);
}

.pond {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	background: linear-gradient(180deg, #9ee0d2 0%, #4db3a5 28%, #2a7d74 62%, #134843 100%);
}

.pond-water {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

body[data-authed] .pond-water {
	opacity: 0;
	transition: opacity 0.5s ease;
}
body[data-authed] .pond,
body[data-authed] {
	background: #c4d6d0;
}

.gate {
	position: fixed;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	overflow: hidden;
	padding: 2rem 1.25rem 4.5rem;
	background: transparent;
}

.gate-stage {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: min(42rem, 100%);
}

.season {
	margin: 0 0 0.15rem;
	font-family: var(--hero);
	font-weight: 500;
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(246, 241, 228, 0.78);
	text-shadow: 0 2px 10px rgba(12, 36, 34, 0.35);
}

.title-stack {
	position: relative;
	margin: 0.35rem 0 0;
	padding-bottom: 0.85em;
}

.gate-stage h1 {
	margin: 0;
	font-family: var(--hero);
	font-size: clamp(2.2rem, 8vw, 4.4rem);
	white-space: nowrap;
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 0.92;
	color: #f6f1e4;
	text-shadow:
		0 1px 0 rgba(255, 255, 255, 0.25),
		0 8px 28px rgba(12, 36, 34, 0.45);
}

.title-reflect {
	position: absolute;
	left: 0;
	right: 0;
	top: 88%;
	margin: 0;
	font-family: var(--hero);
	font-size: clamp(2.2rem, 8vw, 4.4rem);
	white-space: nowrap;
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 0.92;
	color: #f6f1e4;
	transform: scaleY(-1);
	opacity: 0.22;
	mask-image: linear-gradient(to bottom, #000 0%, transparent 58%);
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 58%);
	filter: blur(0.4px);
	user-select: none;
	pointer-events: none;
}

.gate-stage .lede {
	margin: 0.05rem 0 1.7rem;
	font-family: var(--hero);
	font-weight: 500;
	font-size: 1.02rem;
	letter-spacing: 0.06em;
	color: #e8f0ec;
	text-shadow: 0 2px 12px rgba(12, 36, 34, 0.35);
}

.doors {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	width: 100%;
	text-align: left;
}

.door {
	display: flex;
	flex-direction: column;
	padding: 1.2rem 1.25rem 1.15rem;
	border-radius: 18px;
	background: rgba(246, 250, 247, 0.2);
	backdrop-filter: blur(16px) saturate(1.15);
	-webkit-backdrop-filter: blur(16px) saturate(1.15);
	border: 1px solid rgba(255, 255, 255, 0.34);
	box-shadow: 0 16px 40px rgba(12, 36, 34, 0.16);
	min-height: 13.4rem;
}

.door h2 {
	font-family: var(--hero);
	font-weight: 700;
	font-size: 1.28rem;
	letter-spacing: -0.03em;
	color: #f6f1e4;
	margin: 0 0 0.45rem;
}

.door p:not(.door-kicker) {
	margin: 0 0 1.15rem;
	color: rgba(246, 241, 228, 0.86);
	font-size: 0.92rem;
	line-height: 1.5;
	font-weight: 400;
	flex: 1;
}

.door-kicker {
	margin: 0 0 0.4rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.62rem;
	font-weight: 500;
	color: var(--gold-2);
}

.door-dir {
	background: rgba(22, 26, 24, 0.46);
	border-color: rgba(196, 163, 106, 0.42);
	box-shadow: 0 16px 40px rgba(8, 14, 12, 0.28);
}

.door-dir h2 {
	font-family: var(--display);
	font-weight: 500;
	font-style: italic;
	letter-spacing: -0.02em;
}

.door-go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	height: 40px;
	padding: 0 1.05rem;
	border-radius: 10px;
	background: #f3ebe0;
	color: #24322e;
	font-family: var(--ui);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(12, 36, 34, 0.18);
}

.door-go:hover { filter: brightness(1.04); }

.door-go-dir {
	background: transparent;
	color: #f0e4c8;
	border: 1px solid rgba(212, 188, 132, 0.55);
	box-shadow: none;
	letter-spacing: 0.02em;
}

.door-go-dir:hover {
	background: rgba(196, 163, 106, 0.16);
	filter: none;
}

.discord-login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	height: 48px;
	padding: 0 1.2rem 0 1.05rem;
	border-radius: 10px;
	background: #5865f2;
	color: #fff;
	font-family: var(--ui);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	line-height: 1;
	text-decoration: none;
	border: 0;
	box-shadow: 0 10px 28px rgba(88, 101, 242, 0.38);
	cursor: pointer;
	white-space: nowrap;
}

.discord-login:hover {
	background: #4752c4;
	box-shadow: 0 12px 32px rgba(71, 82, 196, 0.42);
}

.discord-login:active {
	background: #3c45a5;
	transform: translateY(1px);
}

.discord-login.is-off,
.discord-login.is-busy {
	pointer-events: none;
	opacity: 0.62;
}

.discord-mark {
	width: 22px;
	height: 17px;
	flex: 0 0 auto;
	display: block;
	overflow: visible;
}

.back {
	margin: 0 0 0.6rem;
	color: rgba(246, 241, 228, 0.82);
	text-decoration: none;
	font-size: 0.86rem;
	letter-spacing: 0.04em;
}

.back:hover { color: #f6f1e4; }

.gate-status {
	margin: 1.2rem 0 0;
	max-width: 320px;
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	background: var(--glass);
	backdrop-filter: blur(12px);
	color: var(--ink-soft);
	font-size: 0.88rem;
}

.gate-stage .error {
	color: #f3d4cc;
	min-height: 1.15em;
	margin: 0.85rem 0 0;
	font-size: 0.9rem;
	text-shadow: 0 1px 8px rgba(12, 10, 6, 0.4);
}

.gate.denied .gate-stage {
	animation: gate-shake 0.35s ease;
}

@keyframes gate-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-6px); }
	75% { transform: translateX(6px); }
}

.gate-foot {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	margin: 0;
	padding: 1rem 1.4rem 1.35rem;
	text-align: center;
	color: rgba(246, 241, 228, 0.88);
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	font-weight: 400;
	text-shadow: 0 1px 10px rgba(12, 10, 6, 0.55);
}

button {
	font: inherit;
	border-radius: var(--radius-sm);
	border: 0;
	background: var(--stone);
	color: var(--text-inv);
	padding: 0.62rem 1.05rem;
	font-weight: 500;
	cursor: pointer;
}

button:hover { filter: brightness(1.07); }

button.ghost {
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--line);
}

.shell {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding: 0.85rem 1.15rem 2.6rem;
}

.air {
	position: sticky;
	top: 0.75rem;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.55rem 0.7rem 0.55rem 0.85rem;
	background: var(--glass);
	backdrop-filter: blur(22px) saturate(1.2);
	-webkit-backdrop-filter: blur(22px) saturate(1.2);
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 22px;
	box-shadow: var(--shadow);
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	flex: 0 0 auto;
}

.brand strong {
	display: block;
	font-family: var(--display);
	font-size: 1.08rem;
	line-height: 1.1;
	letter-spacing: -0.03em;
	font-weight: 500;
	font-style: italic;
	color: var(--ink);
}

.plate span {
	display: block;
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--leaf);
	font-weight: 500;
}

.air-meta {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.whoami {
	font-size: 0.88rem;
	color: var(--ink-soft);
}

.clock {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.08em;
	font-size: 0.82rem;
	color: var(--muted);
}

.main {
	width: min(52rem, 100%);
	margin: 2.2rem auto 0;
}

.hello {
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	margin-bottom: 0.45rem;
}

.home-lede {
	margin: 0 0 1.6rem;
	color: var(--ink-soft);
	max-width: 36rem;
}

.soon {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.9rem;
}

.soon article {
	padding: 1.1rem 1.15rem 1.15rem;
	border-radius: 16px;
	background: rgba(246, 250, 247, 0.62);
	border: 1px solid rgba(255, 255, 255, 0.6);
	box-shadow: var(--shadow);
}

.soon p:not(.door-kicker) {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.soon .door-kicker { color: var(--leaf); }

@media (max-width: 720px) {
	.doors, .soon { grid-template-columns: 1fr; }
	.gate-stage h1, .title-reflect { white-space: normal; }
	.air { flex-wrap: wrap; }
	.air-meta { width: 100%; justify-content: flex-end; }
	.door { min-height: 0; }
}
