/* ==========================================================================
	 Frommingen — gemeinsames Stylesheet
	 Login / Register / Blog
	 ========================================================================== */

:root {
	--ink: #211f1a;
	--ink-soft: #55503f;
	--paper: #f2ede2;
	--paper-2: #ece4d2;
	--paper-3: #e3d9c2;
	--moss: #3f4f3a;
	--moss-dark: #2c3828;
	--wine: #6b2737;
	--gold: #a9812f;
	--line: #d7cbac;
	--line-soft: #e4dac0;

	--font-display: "Fraunces", "Iowan Old Style", serif;
	--font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, monospace;

	--radius: 2px;
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow-x: hidden;
}

/* Contour-line hills, quiet nod to the Schwäbische Alb behind the village.
	 Fixed to the base of every page — the one recurring signature element. */
body::before {
	content: "";
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 42vh;
	min-height: 260px;
	pointer-events: none;
	z-index: 0;
	opacity: 0.55;
	background-repeat: no-repeat;
	background-position: bottom center;
	background-size: 140% auto;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 420' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%233f4f3a' stroke-width='1.1'%3E%3Cpath d='M0 340 C 180 270 320 300 480 250 C 640 200 760 260 900 220 C 1060 175 1180 230 1400 190' opacity='0.28'/%3E%3Cpath d='M0 370 C 200 300 340 330 520 285 C 680 245 800 300 960 255 C 1100 215 1220 265 1400 225' opacity='0.36'/%3E%3Cpath d='M0 400 C 220 330 360 360 540 320 C 700 285 830 335 980 295 C 1120 258 1240 300 1400 262' opacity='0.5'/%3E%3Cpath d='M0 420 C 240 360 400 390 580 355 C 740 325 860 365 1000 330 C 1140 297 1260 335 1400 300' opacity='0.7'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- layout shell ---- */

.site-header,
.site-footer,
main {
	position: relative;
	z-index: 1;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px clamp(20px, 5vw, 56px) 0;
}

.wordmark {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink);
	text-decoration: none;
}

.wordmark span {
	color: var(--wine);
}

.site-nav {
	display: flex;
	gap: 28px;
}

.site-nav a {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-soft);
	text-decoration: none;
	padding-bottom: 3px;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: var(--moss-dark);
	border-bottom-color: var(--gold);
}

main {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 20px 96px;
}

.site-footer {
	padding: 18px clamp(20px, 5vw, 56px) 28px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--ink-soft);
}

/* ---- auth card (login / register) ---- */

.auth-card {
	width: 100%;
	max-width: 400px;
	background: var(--paper-2);
	border: 1px solid var(--line);
	padding: 40px 36px 36px;
}

.auth-eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wine);
	margin: 0 0 10px;
}

.auth-card h1 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 30px;
	line-height: 1.15;
	margin: 0 0 8px;
	color: var(--ink);
}

.auth-sub {
	font-size: 14px;
	color: var(--ink-soft);
	margin: 0 0 30px;
}

.field {
	margin-bottom: 22px;
}

.field label {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin-bottom: 8px;
}

.field input {
	width: 100%;
	border: none;
	border-bottom: 1px solid var(--line);
	background: transparent;
	padding: 8px 2px;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--ink);
	outline: none;
	transition: border-color 0.15s ease;
}

.field input::placeholder {
	color: #b6ab8e;
}

.field input:focus {
	border-bottom-color: var(--moss);
}

.field-row {
	display: flex;
	gap: 16px;
}

.field-row .field {
	flex: 1;
}

.field-hint {
	font-family: var(--font-mono);
	font-size: 11px;
	color: #9a917a;
	margin-top: 6px;
}

.form-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: -6px 0 26px;
	font-size: 13px;
}

.checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--ink-soft);
}

.checkbox input {
	accent-color: var(--moss);
}

.link {
	color: var(--moss-dark);
	text-decoration: none;
	border-bottom: 1px solid var(--line);
}

.link:hover {
	border-bottom-color: var(--moss-dark);
}

.btn {
	width: 100%;
	border: none;
	background: var(--moss);
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 14px 18px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.btn:hover {
	background: var(--wine);
}

.auth-switch {
	text-align: center;
	margin-top: 26px;
	font-size: 13px;
	color: var(--ink-soft);
}

.divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 28px 0;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #a89f87;
}

.divider::before,
.divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line-soft);
}

.coordinates {
	text-align: center;
	margin-top: 34px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	color: #a89f87;
}

/* ---- blog ---- */

.blog-shell {
	width: 100%;
	max-width: 720px;
}

.blog-head {
	margin-bottom: 44px;
}

.blog-head .auth-eyebrow {
	margin-bottom: 12px;
}

.blog-head h1 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 42px;
	margin: 0 0 10px;
}

.blog-head p {
	color: var(--ink-soft);
	font-size: 15px;
	max-width: 46ch;
}

.post-list {
	display: flex;
	flex-direction: column;
}

.post {
	padding: 26px 0;
	border-top: 1px solid var(--line-soft);
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 24px;
}

.post:last-child {
	border-bottom: 1px solid var(--line-soft);
}

.post-meta {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--ink-soft);
	padding-top: 4px;
}

.post-meta .tag {
	display: block;
	margin-top: 6px;
	color: var(--wine);
}

.post h2 {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 21px;
	margin: 0 0 8px;
}

.post h2 a {
	color: var(--ink);
	text-decoration: none;
}

.post h2 a:hover {
	color: var(--moss-dark);
}

.post p {
	margin: 0;
	font-size: 14.5px;
	color: var(--ink-soft);
	max-width: 58ch;
}

@media (max-width: 560px) {
	.post {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.field-row {
		flex-direction: column;
		gap: 0;
	}
	.auth-card {
		padding: 32px 24px 28px;
	}
	.blog-head h1 {
		font-size: 32px;
	}
}