/* Samma tokens som appen (apps/mobile/src/theme.ts): varm off-white, linne,
   skogsgrönt för text och handling, guld bara i tunna detaljer. */
@font-face {
	font-family: "Cormorant Garamond";
	src: url("/assets/CormorantGaramond-SemiBold.ttf") format("truetype");
	font-weight: 600;
	font-display: swap;
}

:root {
	--background: #f3f0ec;
	--surface: #e9e4db;
	--text: #2c4234;
	--text-soft: #405e48;
	--muted: #6b7c70;
	--line: rgba(64, 94, 72, 0.16);
	--gold: #d6b06a;
	--card: #2c4234;
	--on-card: #f3f0ec;
	--on-card-soft: rgba(243, 240, 236, 0.72);

	--serif: "Cormorant Garamond", ui-serif, Georgia, serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	--text-hero: clamp(2.75rem, 1.5rem + 5vw, 5.5rem);
	--gutter: clamp(1rem, 0.5rem + 3vw, 4rem);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--background);
	color: var(--text);
	font-family: var(--sans);
	font-size: var(--text-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--text-soft);
	text-decoration-color: var(--gold);
	text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
	color: var(--text);
	text-decoration-thickness: 2px;
}

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

h1,
h2 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.05;
	margin: 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--serif);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
}

.brand img {
	width: 2.75rem;
	height: 2.75rem;
}

/* Hero: text till vänster, fotot i full höjd till höger. På mobil hamnar
   fotot överst. */
.hero {
	display: grid;
	grid-template-columns: 1fr;
	min-height: 100svh;
}

.hero-photo {
	min-height: 42svh;
	background: var(--card) url("/assets/fairway.jpg") center 60% / cover no-repeat;
}

.hero-text {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 3rem;
	padding: 1.5rem var(--gutter) 3rem;
}

.hero h1 {
	font-size: var(--text-hero);
	max-width: 11ch;
	letter-spacing: -0.01em;
}

.lede {
	max-width: 34rem;
	color: var(--text-soft);
	font-size: 1.15em;
	margin: 1.5rem 0 2rem;
}

.badge {
	display: inline-block;
	border: 1px solid var(--gold);
	border-radius: 999px;
	padding: 0.35rem 1rem;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-soft);
}

@media (min-width: 900px) {
	.hero {
		grid-template-columns: 1.1fr 0.9fr;
	}

	.hero-photo {
		order: 2;
		min-height: auto;
	}

	.hero-text {
		padding-top: 2.5rem;
	}
}

section {
	padding: clamp(3rem, 2rem + 5vw, 7rem) var(--gutter);
}

.features {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	border-top: 1px solid var(--line);
}

.features h2 {
	font-size: 1.75rem;
	padding-top: 1rem;
	border-top: 2px solid var(--gold);
	max-width: 12ch;
}

.features p {
	color: var(--muted);
	margin: 0.75rem 0 0;
}

.company {
	background: var(--card);
	color: var(--on-card);
}

.company h2 {
	font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
	margin-bottom: 2rem;
}

.company dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.5rem 2rem;
	margin: 0;
	max-width: 40rem;
}

.company dt {
	color: var(--on-card-soft);
}

.company dd {
	margin: 0;
}

.company a {
	color: var(--on-card);
}

.english {
	max-width: 44rem;
}

.english h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
}

/* Textsidor (integritetspolicy). */
.page {
	max-width: 44rem;
	padding: 1.5rem var(--gutter) 5rem;
}

.page h1 {
	font-size: clamp(2.25rem, 1.75rem + 2vw, 3.25rem);
	margin: 3rem 0 1rem;
}

.page h2 {
	font-size: 1.6rem;
	margin: 2.5rem 0 0.5rem;
}

footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
	justify-content: space-between;
	padding: 2rem var(--gutter);
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.9rem;
}
