/* ==========================================================================
   Fonter – självhostade variable woff2 (SIL OFL), se assets/fonts/README.md
   ========================================================================== */

@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/fraunces-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: var(--weight-body);
	line-height: var(--leading-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
img { border-radius: var(--radius); }

button, input, select, textarea {
	font: inherit;
	color: inherit;
	margin: 0;
}
button { cursor: pointer; background: none; border: 0; padding: 0; }

ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
hr { border: 0; height: 0; margin: 0; }
address { font-style: normal; }

/* ==========================================================================
   Typografi
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--space-2);
	font-family: var(--font-heading);
	font-weight: var(--weight-heading);
	font-optical-sizing: auto;
	line-height: var(--leading-heading);
	letter-spacing: var(--tracking-heading);
	text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: var(--leading-tight); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4, h5, h6 { font-family: var(--font-body); font-weight: var(--weight-ui); font-size: var(--text-lg); letter-spacing: 0; }

/* Aldrig fet rubrik – strong/b i rubriker blir vikt 500 */
h1 strong, h2 strong, h3 strong, h1 b, h2 b, h3 b { font-weight: var(--weight-heading-strong); }

p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }

.lead { font-size: var(--text-lg); color: var(--ink-soft); }
.small { font-size: var(--text-sm); }
.muted { color: var(--ink-soft); }

/* Kursiv Fraunces för taglines: "Heirloom technology, *reimagined*" */
.tagline, .italic-serif {
	font-family: var(--font-heading);
	font-style: italic;
	font-weight: var(--weight-heading);
	font-optical-sizing: auto;
	line-height: 1.3;
	letter-spacing: 0;
}
.tagline { font-size: var(--text-tagline); }

.eyebrow {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: var(--weight-ui);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--ink-soft);
}

a {
	color: var(--clay);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
	transition: color var(--ease);
}
a:hover { color: var(--clay-dark); }

strong, b { font-weight: 600; }
em, i { font-style: italic; }

blockquote {
	margin: var(--space-4) 0;
	padding: 0;
	font-family: var(--font-heading);
	font-style: italic;
	font-size: var(--text-lg);
	line-height: 1.4;
}

/* ==========================================================================
   Fokus och tillgänglighet
   ========================================================================== */

:focus { outline: none; }
:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
	border-radius: var(--radius-sm);
}
a:focus-visible { border-radius: 4px; }

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--gutter);
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--ink);
	color: var(--white);
	border-radius: var(--radius-pill);
	text-decoration: none;
	font-weight: var(--weight-ui);
}
.skip-link:focus { top: var(--space-2); color: var(--white); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}

::selection { background: var(--sand); color: var(--ink); }

/* ==========================================================================
   Layout-grund
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--content-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--prose-max) + 2 * var(--gutter)); }

/* Headern flyter över innehållet – sidor utan hero behöver luft under den */
.site-main { padding-top: calc(var(--header-h) + 2 * var(--header-inset)); }

.section { padding-block: var(--section-gap); }
.section + .section { padding-top: 0; }
.section--sand { background: var(--sand); }
.section + .section--sand,
.section--sand + .section { padding-top: var(--section-gap); }

.prose { max-width: var(--prose-max); }
.prose img { margin-block: var(--space-4); }

.text-center { text-align: center; }
