:root {
	--home-bg: #f8f7f2;
	--home-ink: #202320;
	--home-muted: #687069;
	--home-line: #dbddd6;
	--home-accent: #e85d4a;
	--home-accent-dark: #c94535;
	--home-accent-soft: rgba(232, 93, 74, 0.1);
	--home-white: rgba(255, 255, 255, 0.72);
}

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

html {
	min-width: 320px;
	background: var(--home-bg);
	scroll-behavior: smooth;
}

body {
	min-width: 320px;
	margin: 0;
	background: var(--home-bg);
	color: var(--home-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.home-page {
	isolation: isolate;
	position: relative;
	width: 100%;
	min-height: 100dvh;
	overflow: hidden;
	background:
		linear-gradient(90deg, rgba(32, 35, 32, 0.04) 1px, transparent 1px),
		linear-gradient(180deg, rgba(32, 35, 32, 0.035) 1px, transparent 1px),
		var(--home-bg);
	background-size: 56px 56px, 56px 56px, auto;
}

.home-page::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(rgba(255, 255, 255, 0.52), transparent 34%),
		radial-gradient(circle at 50% 0, rgba(232, 93, 74, 0.09), transparent 38%);
}

.home-shell {
	position: relative;
	width: min(680px, calc(100% - 40px));
	min-height: 100dvh;
	margin: 0 auto;
	padding: 72px 0 68px;
}

.home-profile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.home-avatar {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	border: 1px solid rgba(32, 35, 32, 0.12);
	border-radius: 999px;
	background: var(--home-accent);
	box-shadow: 0 14px 34px rgba(83, 39, 31, 0.18);
	color: #fff;
	font-size: 24px;
	font-weight: 760;
	letter-spacing: 0.04em;
	user-select: none;
}

.home-copy { max-width: 38rem; }

.home-eyebrow {
	margin: 0 0 8px;
	color: var(--home-accent-dark);
	font-size: 12px;
	font-weight: 720;
	letter-spacing: 0.18em;
}

.home-copy h1 {
	margin: 0;
	font-size: clamp(30px, 5vw, 36px);
	font-weight: 760;
	letter-spacing: -0.035em;
	line-height: 1.12;
}

.home-copy > p:last-child {
	max-width: 36rem;
	margin: 12px 0 0;
	color: var(--home-muted);
	font-size: 16px;
	line-height: 1.85;
}

.header-account {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	width: 100%;
}

.account-name {
	color: var(--home-muted);
	font-size: 14px;
	line-height: 1.5;
}

.account-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.account-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	border: 1px solid rgba(32, 35, 32, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.58);
	color: var(--home-ink);
	font-size: 14px;
	font-weight: 620;
	line-height: 1;
	text-decoration: none;
	transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.account-button { padding: 0 15px; }

.account-button:hover {
	border-color: rgba(232, 93, 74, 0.45);
	background: #fff;
	color: var(--home-accent-dark);
	transform: translateY(-1px);
}

.account-button-primary {
	border-color: var(--home-accent);
	background: var(--home-accent);
	color: #fff;
}

.account-button-primary:hover {
	border-color: var(--home-accent-dark);
	background: var(--home-accent-dark);
	color: #fff;
}

.home-separator {
	height: 1px;
	background: rgba(32, 35, 32, 0.1);
}

.home-separator-major { margin-top: 34px; }

.home-index {
	position: relative;
	margin-top: 30px;
	padding-left: 28px;
}

.home-index-rail {
	position: absolute;
	top: 31px;
	bottom: 31px;
	left: 0;
	width: 1px;
	background: linear-gradient(transparent, rgba(232, 93, 74, 0.44) 12% 88%, transparent);
	pointer-events: none;
}

.home-section {
	position: relative;
	padding: 24px 0;
	scroll-margin-top: 24px;
}

.home-section h2 {
	margin: 0 0 12px;
	color: #6e5d58;
	font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 13px;
	font-weight: 680;
	letter-spacing: 0.08em;
	line-height: 1.5;
}

.home-section h2::before {
	content: "";
	position: absolute;
	top: 31px;
	left: -31px;
	width: 8px;
	height: 8px;
	border: 1px solid rgba(232, 93, 74, 0.72);
	border-radius: 999px;
	background: var(--home-bg);
	box-shadow: 0 0 0 4px var(--home-bg);
}

.home-link-list {
	display: grid;
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-link-list a {
	display: block;
	min-height: 64px;
	margin-inline: -10px;
	padding: 11px 10px;
	border-radius: 11px;
	color: inherit;
	text-decoration: none;
	transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.home-link-list a:hover {
	background: var(--home-white);
	transform: translateX(4px);
}

.home-row-copy { display: block; min-width: 0; }

.home-row-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px 10px;
	min-width: 0;
}

.home-row-title {
	font-size: 18px;
	font-weight: 680;
	letter-spacing: -0.015em;
	line-height: 1.4;
}

.home-row-tags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 5px;
}

.home-row-tags span {
	display: inline-flex;
	align-items: center;
	height: 21px;
	padding: 0 8px;
	border: 1px solid rgba(32, 35, 32, 0.11);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.38);
	color: #747871;
	font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
	font-weight: 560;
	white-space: nowrap;
}

.home-row-arrow {
	margin-left: auto;
	color: #aaa59e;
	font-size: 16px;
	transition: color 160ms ease, transform 160ms ease;
}

.home-link-list a:hover .home-row-title,
.home-link-list a:hover .home-row-arrow { color: var(--home-accent-dark); }
.home-link-list a:hover .home-row-arrow { transform: translate(2px, -2px); }

.home-row-copy small {
	display: block;
	margin-top: 4px;
	padding-right: 28px;
	color: var(--home-muted);
	font-size: 14px;
	font-weight: 420;
	line-height: 1.7;
}

.home-note strong {
	display: block;
	font-size: 17px;
	font-weight: 660;
	line-height: 1.5;
}

.home-note p {
	margin: 5px 0 0;
	color: var(--home-muted);
	font-size: 15px;
	line-height: 1.8;
}

.contact-row {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 6px 12px;
}

.contact-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 24px;
	border-radius: 999px;
	background: var(--home-accent-soft);
	color: var(--home-accent-dark);
	font-size: 12px;
	font-weight: 680;
}

.contact-row strong { font-size: 17px; letter-spacing: 0.03em; }
.contact-row > span:last-child {
	grid-column: 1 / -1;
	color: var(--home-muted);
	font-size: 14px;
	line-height: 1.7;
}

.home-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 18px;
	padding-top: 30px;
	border-top: 1px solid rgba(32, 35, 32, 0.1);
	color: #8c918b;
	font-size: 12px;
	line-height: 1.6;
}

.home-footer p { margin: 0; }
.home-footer a { text-decoration-color: rgba(140, 145, 139, 0.5); text-underline-offset: 3px; }
.home-footer a:hover { color: var(--home-accent-dark); }

[data-auth-guest][hidden],
[data-auth-user][hidden] { display: none !important; }

a:focus-visible,
button:focus-visible {
	outline: 3px solid rgba(232, 93, 74, 0.4);
	outline-offset: 3px;
}

@keyframes home-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes home-row { from { opacity: 0; transform: translateX(-8px); } }

@media (prefers-reduced-motion: no-preference) {
	.home-profile,
	.home-index { animation: home-rise 520ms both; }
	.home-index { animation-delay: 70ms; }
	.home-link-list li { animation: home-row 420ms both; }
	.home-link-list li:nth-child(2) { animation-delay: 55ms; }
	.home-link-list li:nth-child(3) { animation-delay: 110ms; }
	.home-link-list li:nth-child(4) { animation-delay: 165ms; }
}

@media (max-width: 736px) {
	.home-shell { width: min(100% - 32px, 680px); padding: 46px 0 58px; }
	.home-avatar { width: 60px; height: 60px; font-size: 21px; }
	.home-copy h1 { font-size: 30px; }
	.home-index { margin-top: 26px; padding-left: 24px; }
	.home-section h2::before { left: -27px; }
	.home-link-list a { margin-inline: -8px; padding-inline: 8px; }
}

@media (max-width: 520px) {
	.home-copy h1 { font-size: 28px; }
	.home-copy > p:last-child { line-height: 1.78; }
	.header-account { align-items: flex-start; flex-direction: column; }
	.home-row-heading { align-items: flex-start; }
	.home-row-tags { order: 3; width: calc(100% - 26px); }
	.home-row-arrow { order: 2; }
	.home-row-copy small { padding-right: 0; }
	.home-footer { display: block; }
	.home-footer p + p { margin-top: 5px; }
}

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