/*
Theme Name: Favorit.vin 2026
Theme URI: https://vintips.favorit.vin/
Description: Ny design för vintipsen. Samma funktioner som temat Favorit.vin: produktsidor, vidare till Systembolaget, besöksräknare, e-postutskick och omdirigeringar.
Author: Favorit.vin
Author URI: https://www.favorit.vin/
Version: 1.0.3
Text Domain: favoritvin-2026
*/

:root {
	--ink: #1c1917;
	--muted: #6a615a;
	--paper: #f4efe8;
	--card: rgba(255, 252, 248, 0.96);
	--line: #e3d9ce;
	--burgundy: #7a1832;
	--green: #1b8f4c;
	--green-hover: #15753e;
	--field: #f3efe8;
	--serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
	--sans: "Manrope", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	padding: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.5;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

img { border: 0; }

a { text-decoration: none; }

.fv {
	color: var(--ink);
	font-family: var(--sans);
}

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

.fv img {
	max-width: 100%;
	height: auto;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -48px;
	z-index: 30;
	background: #fff;
	color: var(--ink);
	padding: 8px 12px;
	border-radius: 8px;
}

.skip-link:focus {
	top: 12px;
}

.site-header {
	background: #fff;
	border-top: 4px solid var(--burgundy);
	border-bottom: 1px solid rgba(28, 25, 23, 0.06);
	text-align: center;
	padding-top: env(safe-area-inset-top);
}

.site-header a {
	display: inline-flex;
	padding: 14px 16px 13px;
}

.site-header img {
	width: 168px;
	height: auto;
}

.hero {
	position: relative;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	padding: 56px 24px 88px;
}

.hero-inner {
	max-width: 1120px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
	gap: 36px 56px;
	align-items: center;
}

.order-card {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	background: var(--card);
	border-radius: 28px;
	padding: 36px 32px 28px;
	box-shadow: 0 22px 50px rgba(28, 16, 12, 0.16);
	text-align: center;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.order-card h1,
.next h2,
.story-title,
.product h2 {
	font-family: var(--serif);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.08;
	text-wrap: balance;
}

.order-card h1 {
	font-size: clamp(2.05rem, 4vw, 2.85rem);
}

.excerpt {
	margin-top: 14px;
	font-size: 1.05rem;
	line-height: 1.55;
	color: #3f3833;
}

.facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
	padding: 0;
	list-style: none;
}

.facts li {
	background: var(--paper);
	color: #3a332e;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 0.92rem;
	font-weight: 700;
}

.price {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px dashed #e0d6ca;
	font-family: var(--serif);
	font-size: 2.15rem;
	font-weight: 600;
	color: var(--burgundy);
	line-height: 1;
}

.price strong { font-weight: 600; }

.order-form { margin-top: 18px; }

.fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.field span {
	display: block;
	margin-bottom: 6px;
	text-align: left;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.order-form input[type="email"],
.order-form input[type="tel"] {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	background: var(--field);
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 14px 16px;
	font-family: inherit;
	font-size: 16px;
	color: var(--ink);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.order-form input[type="email"]:focus,
.order-form input[type="tel"]:focus {
	background: #fff;
	border-color: var(--burgundy);
	box-shadow: 0 0 0 4px rgba(122, 24, 50, 0.12);
}

.order-form input[type="submit"] {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin-top: 12px;
	border: 0;
	border-radius: 12px;
	background: var(--green);
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	padding: 15px 16px;
	white-space: normal;
	-webkit-appearance: none;
	appearance: none;
}

.order-form input[type="submit"]:hover { background: var(--green-hover); }

.order-form input[type="submit"]:focus-visible,
.site-header a:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 3px;
}

.hero-visual {
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 0;
}

.hero-visual img {
	width: auto;
	max-width: 100%;
	max-height: min(640px, 72vh);
	filter: drop-shadow(0 18px 30px rgba(40, 16, 12, 0.18));
}

.story {
	max-width: 760px;
	margin: 0 auto;
	padding: 64px 24px 12px;
}

.story-title {
	font-size: clamp(1.85rem, 4vw, 2.6rem);
	text-align: center;
}

.story-sub {
	margin-top: 14px;
	text-align: center;
	font-family: var(--serif);
	font-size: 1.45rem;
	line-height: 1.35;
	color: #3f3833;
}

.ornament {
	display: flex;
	justify-content: center;
	padding: 28px 0;
}

.ornament span {
	position: relative;
	width: 76px;
	height: 1px;
	background: #cbbba8;
}

.ornament span::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 7px;
	height: 7px;
	margin: -4px 0 0 -4px;
	border: 1px solid #cbbba8;
	background: var(--paper);
	transform: rotate(45deg);
}

.prose {
	font-size: 1.125rem;
	line-height: 1.75;
	color: #2c2622;
	text-align: left;
	overflow-wrap: anywhere;
}

.prose strong {
	font-weight: 700;
	color: var(--ink);
}

.prose p { margin: 0 0 1rem; }

.prose a {
	color: var(--burgundy);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.products {
	max-width: 1000px;
	margin: 0 auto;
	padding: 8px 24px 64px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.product {
	display: grid;
	grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
	gap: 28px 40px;
	align-items: center;
	background: #fff;
	border-radius: 24px;
	padding: 28px;
	box-shadow: 0 10px 36px rgba(40, 20, 10, 0.05);
}

.product-text { grid-template-columns: 1fr; }

.product-visual {
	display: flex;
	justify-content: center;
}

.product-visual img {
	width: auto;
	max-width: 100%;
	max-height: 460px;
	object-fit: contain;
}

.product h2 {
	font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.spec { margin-top: 18px; }

.spec > div {
	display: grid;
	grid-template-columns: 13rem minmax(0, 1fr);
	gap: 8px 16px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}

.spec > div:last-child { border-bottom: 1px solid var(--line); }

.spec dt {
	font-weight: 700;
}

.spec dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.next {
	background: #fff;
	padding: 56px 20px 64px;
	overflow: hidden;
}

.next-inner {
	width: 100%;
	max-width: 480px;
	min-width: 0;
	margin: 0 auto;
}

.next h2 {
	font-size: clamp(1.8rem, 3vw, 2.35rem);
	text-align: center;
	margin-bottom: 18px;
}

.next .order-card {
	box-shadow: none;
	border: 1px solid var(--line);
	background: #fffcf8;
}

.disclaimer-wrap {
	max-width: 680px;
	margin: 0 auto;
	padding: 8px 24px 72px;
}

.disclaimer-wrap .ornament span::before { background: var(--paper); }

.disclaimer {
	text-align: center;
	color: var(--muted);
	font-size: 0.98rem;
	line-height: 1.6;
}

@media (max-width: 980px) {
	.hero {
		padding: 24px 16px 48px;
	}

	.hero-inner {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.hero-visual { order: -1; }

	.hero-visual img { max-height: 420px; }

	.order-card {
		max-width: 480px;
		padding: 28px 20px 22px;
		border-radius: 22px;
	}
}

@media (max-width: 720px) {
	.site-header img { width: 146px; }

	.story { padding: 40px 18px 4px; }

	.products { padding: 4px 16px 40px; }

	.product {
		grid-template-columns: 1fr;
		padding: 20px 16px 8px;
		gap: 8px;
	}

	.product-visual img { max-height: 340px; }

	.spec > div {
		grid-template-columns: 1fr;
		gap: 2px;
		padding: 11px 0;
	}

	.spec dt {
		color: var(--muted);
		font-size: 0.78rem;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.disclaimer-wrap { padding-bottom: 48px; }

	.next {
		padding: 36px 16px 40px;
	}

	.next h2 {
		font-size: 1.55rem;
	}

	.next .order-card {
		padding: 20px 16px 16px;
		border-radius: 18px;
	}

	.order-form input[type="submit"] {
		font-size: 15px;
		padding: 13px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
