:root {
	color-scheme: light;
	--bg: #f5efe6;
	--bg-alt: #e2efe9;
	--surface: rgba(255, 255, 255, 0.72);
	--surface-strong: rgba(255, 255, 255, 0.92);
	--text: #10231f;
	--muted: #53625d;
	--border: rgba(16, 35, 31, 0.12);
	--shadow: 0 18px 60px rgba(16, 35, 31, 0.12);
	--radius-xl: 32px;
	--radius-lg: 22px;
	--radius-md: 16px;
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 34%),
		radial-gradient(circle at top right, rgba(203, 153, 81, 0.18), transparent 28%),
		linear-gradient(140deg, var(--bg), var(--bg-alt));
	font-family: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(rgba(16, 35, 31, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 35, 31, 0.035) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 70%);
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea {
	font: inherit;
}

.page-shell {
	width: min(920px, calc(100% - 32px));
	margin: 0 auto;
	padding: 28px 0 48px;
}

.hero-card {
	position: relative;
	overflow: hidden;
	padding: clamp(24px, 5vw, 42px);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: linear-gradient(180deg, var(--surface-strong), var(--surface));
	box-shadow: var(--shadow);
	backdrop-filter: blur(18px);
}

.hero-card::before {
	content: "";
	position: absolute;
	inset: auto -120px -120px auto;
	width: 260px;
	height: 260px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--theme-color) 24%, transparent);
	filter: blur(8px);
}

.eyebrow {
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.72rem;
	color: var(--theme-color);
	font-weight: 700;
}

h1,
h2 {
	margin: 0;
	font-family: "Georgia", "Times New Roman", serif;
	letter-spacing: -0.03em;
}

h1 {
	font-size: clamp(2.3rem, 6vw, 4.6rem);
	line-height: 0.95;
	max-width: 11ch;
}

.subtitle {
	margin: 16px 0 0;
	max-width: 42rem;
	color: var(--muted);
	font-size: 1.02rem;
	line-height: 1.65;
}

.link-stack {
	display: grid;
	gap: 14px;
	margin-top: 30px;
}

.link-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 20px;
	border: 1px solid rgba(16, 35, 31, 0.08);
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.78);
	box-shadow: 0 10px 30px rgba(16, 35, 31, 0.06);
	transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.link-card:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--theme-color) 42%, transparent);
	background: rgba(255, 255, 255, 0.96);
}

.link-label {
	display: block;
	font-size: 1.08rem;
	font-weight: 700;
}

.link-description {
	display: block;
	margin-top: 5px;
	color: var(--muted);
	font-size: 0.94rem;
	line-height: 1.45;
}

.link-arrow {
	flex: none;
	color: var(--theme-color);
	font-size: 1.35rem;
}

.footer-note {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 4px 0;
	color: var(--muted);
	font-size: 0.88rem;
}

.admin-shell {
	padding-top: 22px;
}

.admin-card {
	display: grid;
	gap: 24px;
}

.admin-header,
.editor-header,
.action-row,
.flash-list,
.logout-form {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.admin-header {
	align-items: flex-start;
}

.admin-form {
	display: grid;
	gap: 18px;
}

.admin-form label {
	display: grid;
	gap: 8px;
	color: var(--muted);
	font-size: 0.92rem;
}

.admin-form input,
.admin-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid rgba(16, 35, 31, 0.14);
	border-radius: 16px;
	color: var(--text);
	background: rgba(255, 255, 255, 0.9);
	outline: none;
}

.admin-form input:focus,
.admin-form textarea:focus {
	border-color: color-mix(in srgb, var(--theme-color) 50%, white);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-color) 14%, transparent);
}

.admin-form textarea {
	resize: vertical;
	min-height: 88px;
}

.form-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-editor {
	display: grid;
	gap: 14px;
}

.link-editor-row {
	display: grid;
	gap: 12px;
	padding: 16px;
	border: 1px solid rgba(16, 35, 31, 0.1);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.72);
}

.primary-button,
.ghost-button,
.remove-button,
.plain-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
	color: white;
	background: var(--theme-color);
	box-shadow: 0 14px 30px color-mix(in srgb, var(--theme-color) 26%, transparent);
}

.ghost-button,
.plain-link,
.remove-button {
	color: var(--text);
	background: rgba(255, 255, 255, 0.7);
	border-color: rgba(16, 35, 31, 0.14);
}

.remove-button {
	justify-self: start;
}

.primary-button:hover,
.ghost-button:hover,
.remove-button:hover,
.plain-link:hover {
	transform: translateY(-1px);
}

.flash-message {
	padding: 12px 14px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--theme-color) 11%, white);
	border: 1px solid color-mix(in srgb, var(--theme-color) 24%, transparent);
}

.form-hint {
	margin: 0;
	color: var(--muted);
	font-size: 0.88rem;
}

.auth-form {
	max-width: 420px;
}

.entries-dropdown {
	padding: 0;
	border: 1px solid rgba(16, 35, 31, 0.1);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.7);
	overflow: hidden;
}

.entries-dropdown summary {
	padding: 16px 18px;
	cursor: pointer;
	font-weight: 700;
	list-style: none;
	background: rgba(255, 255, 255, 0.4);
}

.entries-dropdown summary::-webkit-details-marker {
	display: none;
}

.entries-panel {
	display: grid;
	gap: 12px;
	padding: 16px 18px 18px;
	border-top: 1px solid rgba(16, 35, 31, 0.08);
}

.entry-card {
	display: grid;
	gap: 10px;
	padding: 14px;
	border: 1px solid rgba(16, 35, 31, 0.08);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.82);
}

.entry-topline {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	color: var(--muted);
	font-size: 0.86rem;
}

.entry-grid {
	display: grid;
	gap: 6px;
	font-size: 0.9rem;
	line-height: 1.45;
	word-break: break-word;
}

.entry-subdetails {
	padding-top: 6px;
	border-top: 1px dashed rgba(16, 35, 31, 0.12);
}

.entry-subdetails summary {
	cursor: pointer;
	color: var(--theme-color);
	font-size: 0.88rem;
	font-weight: 700;
}

.entry-headers {
	display: grid;
	gap: 6px;
	padding-top: 10px;
	font-size: 0.84rem;
	line-height: 1.45;
	word-break: break-word;
}

.empty-state {
	margin: 0;
	color: var(--muted);
}

@media (max-width: 720px) {
	.page-shell {
		width: min(100%, calc(100% - 20px));
		padding-top: 10px;
	}

	.hero-card {
		padding: 22px;
		border-radius: 24px;
	}

	.link-card,
	.admin-header,
	.footer-note {
		flex-direction: column;
		align-items: flex-start;
	}

	.form-grid {
		grid-template-columns: 1fr;
	}

	h1 {
		max-width: none;
	}
}
