/*!
 * Syster P – base.css
 * Reset, design tokens, typography, buttons, badges, forms, utilities.
 * Tokens mirror the reference design (Suisse Intl / PP Eiko, 14 px body).
 */

/* -------------------------------------------------- Fonts (local only) */
@font-face {
	font-family: "Suisse Intl";
	src: url("../fonts/SuisseIntl-Regular-WebS.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Suisse Intl";
	src: url("../fonts/SuisseIntl-Medium-WebS.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "PP Eiko";
	src: url("../fonts/PPEiko-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "PP Eiko";
	src: url("../fonts/PPEiko-RegularItalic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

/* -------------------------------------------------- Design tokens */
:root {
	/* Palette (reference) */
	--color-black: #000;
	--color-white: #fff;
	--color-grey: #8b8b8b;
	--color-lightgrey: #e1dfdd;
	--color-offwhite: #fafaf5;
	--color-backdrop: rgb(0 0 0 / 45%);
	--color-danger: #b3261e;

	/* Typography */
	--font-body: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
	--font-accent: "PP Eiko", Georgia, "Times New Roman", serif;
	--font-size-body: 0.875rem; /* 14px */
	--line-height-body: 1.38;
	--letter-spacing-body: 0.02em;
	--font-size-small: 0.719rem; /* 11.5px */
	--font-size-medium: 0.938rem; /* 15px */
	--font-size-h1: 2.375rem; /* 38px */
	--font-size-h2: 1.938rem; /* 31px */
	--font-size-h3: 1.438rem; /* 23px */

	/* Layout */
	--container-max: 1440px;
	--gutter: 1.875rem; /* 30px */
	--gutter-sm: 1.25rem; /* 20px */
	--gutter-lg: 3.75rem; /* 60px */
	--announcement-height: 31px;
	--header-height: 56px;
	--header-total: calc(var(--announcement-height) + var(--header-height));
	--card-gap-x: 45.5px;
	--card-gap-y: 30px;
	--rail-inset: 1rem; /* desktop rail side padding (16px) */
	--rail-inset-wide: 2.25rem; /* 36px */

	/* Effects */
	--ease: cubic-bezier(0.25, 0.1, 0.25, 1);
	--duration: 0.3s;
	--z-header: 100;
	--z-overlay: 900;
	--z-drawer: 1000;
	--z-mega: 950;
}

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

html {
	-webkit-text-size-adjust: 100%;
	-moz-tab-size: 4;
	tab-size: 4;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: var(--font-size-body);
	font-weight: 400;
	line-height: var(--line-height-body);
	letter-spacing: var(--letter-spacing-body);
	color: var(--color-black);
	background-color: var(--color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: inherit;
	font-size: inherit;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

img,
svg,
video,
canvas {
	display: block;
	max-width: 100%;
}

img,
video {
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
	margin: 0;
	background: transparent;
}

button {
	padding: 0;
	border: 0;
	cursor: pointer;
	text-align: inherit;
}

[hidden] {
	display: none !important;
}

table {
	border-collapse: collapse;
}

::selection {
	background-color: var(--color-black);
	color: var(--color-white);
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* -------------------------------------------------- Typography scale */
.text-default {
	font-size: 0.875rem;
	line-height: 1.38;
	letter-spacing: 0.02em;
	font-weight: 400;
}

.text-default-bold {
	font-size: 0.875rem;
	line-height: 1.38;
	letter-spacing: 0.02em;
	font-weight: 500;
}

.text-medium {
	font-size: 0.938rem;
	line-height: 1.3;
	letter-spacing: 0.02em;
	font-weight: 400;
}

.text-medium-bold {
	font-size: 0.938rem;
	line-height: 1.3;
	letter-spacing: 0.02em;
	font-weight: 500;
}

.text-small {
	font-size: 0.719rem;
	line-height: 1.3;
	letter-spacing: 0.04em;
	font-weight: 400;
}

.text-small-bold {
	font-size: 0.719rem;
	line-height: 1.3;
	letter-spacing: 0.04em;
	font-weight: 500;
}

/* 11.5px / uppercase / wide tracking – eyebrow labels, buttons */
.text-small-bold-spaced {
	font-size: 0.719rem;
	line-height: 1.3;
	letter-spacing: 0.11em;
	font-weight: 500;
	text-transform: uppercase;
}

/* 38px Suisse – hero + CTA headlines */
.text-h1-suisse {
	font-family: var(--font-body);
	font-size: 2.375rem;
	line-height: 1.05;
	letter-spacing: 2.5px;
	font-weight: 500;
	text-transform: uppercase;
}

/* 31px Suisse – CTA section headings */
.text-h2-suisse {
	font-family: var(--font-body);
	font-size: 1.938rem;
	line-height: 1.1;
	letter-spacing: 2.5px;
	font-weight: 500;
	text-transform: uppercase;
}

/* 31px / 38px PP Eiko – editorial accents */
.text-h2-eiko {
	font-family: var(--font-accent);
	font-size: 1.938rem;
	line-height: 1.15;
	letter-spacing: 1px;
	font-weight: 400;
}

.text-h1-eiko {
	font-family: var(--font-accent);
	font-size: 2.375rem;
	line-height: 1.1;
	letter-spacing: 1px;
	font-weight: 400;
}

.text-h3-eiko {
	font-family: var(--font-accent);
	font-size: 1.438rem;
	line-height: 1.2;
	letter-spacing: 0.5px;
	font-weight: 400;
}

.font-accent {
	font-family: var(--font-accent);
}

.text-muted {
	color: var(--color-grey);
}

.text-uppercase {
	text-transform: uppercase;
}

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

/* -------------------------------------------------- Layout helpers */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--flush {
	padding-inline: 0;
}

.section {
	position: relative;
	width: 100%;
}

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

.skip-link {
	position: absolute;
	left: 0;
	top: -100px;
	z-index: 2000;
	padding: 12px 20px;
	background: var(--color-black);
	color: var(--color-white);
	transition: top 0.2s var(--ease);
}

.skip-link:focus {
	top: 0;
}

/* -------------------------------------------------- Buttons */
.button,
.btn {
	--btn-height: 33px;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: var(--btn-height);
	min-width: 216px;
	padding: 0 40px;
	border: 1px solid transparent;
	border-radius: 0;
	font-size: 0.719rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.button--solid {
	background-color: var(--color-black);
	border-color: var(--color-black);
	color: var(--color-white);
}

.button--solid:hover,
.button--solid:focus-visible {
	background-color: var(--color-white);
	color: var(--color-black);
}

.button--inverse {
	background-color: var(--color-white);
	border-color: var(--color-white);
	color: var(--color-black);
}

.button--inverse:hover,
.button--inverse:focus-visible {
	background-color: var(--color-black);
	border-color: var(--color-black);
	color: var(--color-white);
}

.button--outline-light {
	background-color: transparent;
	border-color: var(--color-white);
	color: var(--color-white);
}

.button--outline-light:hover,
.button--outline-light:focus-visible {
	background-color: var(--color-white);
	color: var(--color-black);
}

.button--outline {
	background-color: transparent;
	border-color: var(--color-black);
	color: var(--color-black);
}

.button--outline:hover,
.button--outline:focus-visible {
	background-color: var(--color-black);
	color: var(--color-white);
}

.button--full {
	width: 100%;
}

.button--small {
	--btn-height: 28px;
	min-width: 0;
	padding: 0 16px;
	font-size: 0.688rem;
}

/* -------------------------------------------------- Badges */
.badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 6px;
	font-size: 0.625rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background-color: var(--color-black);
	color: var(--color-white);
}

.badge--sale {
	background-color: var(--color-black);
	color: var(--color-white);
}

/* -------------------------------------------------- Forms */
.field {
	display: flex;
	align-items: center;
	width: 100%;
	border-bottom: 1px solid var(--color-lightgrey);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="search"],
.field input[type="tel"],
.field input[type="password"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 20px 0 10px;
	border: 0;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
	background: transparent;
}

.field input::placeholder {
	color: var(--color-grey);
	opacity: 1;
}

.field__button {
	flex: 0 0 auto;
	padding: 0 0 0 16px;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
}

input[type="checkbox"],
input[type="radio"] {
	width: 16px;
	height: 16px;
	accent-color: var(--color-black);
}

/* -------------------------------------------------- Media placeholders */
.systerp-placeholder {
	position: relative;
	width: 100%;
	background-color: var(--color-offwhite);
	background-image: linear-gradient(120deg, rgb(0 0 0 / 3%) 0%, rgb(0 0 0 / 6%) 50%, rgb(0 0 0 / 3%) 100%);
	aspect-ratio: 5 / 7;
	overflow: hidden;
}

.systerp-placeholder--hero {
	aspect-ratio: auto;
	height: 100%;
}

.systerp-placeholder--cta {
	aspect-ratio: auto;
	height: 100%;
}

.systerp-placeholder--editorial {
	aspect-ratio: 3 / 2;
}

/* -------------------------------------------------- Scroll lock utilities */
html.no-scroll,
body.no-scroll {
	overflow: hidden;
}

body.no-scroll {
	overflow: hidden;
}

.no-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
	display: none;
}

/* -------------------------------------------------- Broken / missing media fallback */
img.is-image-error {
	visibility: hidden;
}

.has-image-error {
	position: relative;
	background-color: var(--color-offwhite);
	background-image: linear-gradient(120deg, rgb(0 0 0 / 3%) 0%, rgb(0 0 0 / 7%) 50%, rgb(0 0 0 / 3%) 100%);
}

.home-hero .has-image-error,
.home-cta .has-image-error {
	background-color: #555;
	background-image: linear-gradient(120deg, rgb(255 255 255 / 4%) 0%, rgb(255 255 255 / 9%) 50%, rgb(255 255 255 / 4%) 100%);
}

.footer-payment img.is-image-error,
.footer-trust__item img.is-image-error {
	visibility: hidden;
}

/* -------------------------------------------------- Responsive type */
@media (max-width: 767px) {
	:root {
		--gutter: 1.25rem;
		--font-size-h1: 1.938rem;
		--font-size-h2: 1.625rem;
	}

	.text-h1-suisse {
		font-size: 2rem;
		letter-spacing: 2px;
	}

	.text-h2-suisse {
		font-size: 1.625rem;
		letter-spacing: 2px;
	}

	.text-h2-eiko {
		font-size: 1.625rem;
	}

	.button {
		min-width: 0;
		padding: 0 28px;
	}
}

/* -------------------------------------------------- Articles / Stories */
.single-article {
	padding-bottom: 80px;
}

.article__header {
	max-width: 900px;
	margin: 0 auto;
	padding: 60px 0 30px;
	text-align: center;
}

.article__eyebrow {
	margin-bottom: 18px;
	color: var(--color-grey);
}

.article__title {
	font-family: var(--font-accent);
	font-size: 2.375rem;
	line-height: 1.1;
	letter-spacing: 1px;
	font-weight: 400;
	text-transform: uppercase;
}

.article__meta {
	margin-top: 18px;
	font-size: var(--font-size-small);
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-grey);
}

.article__meta-sep {
	margin: 0 6px;
}

.article__category {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.article__hero {
	max-width: 1200px;
	margin: 20px auto 48px;
	padding-inline: 20px;
}

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

.article__body {
	max-width: 760px;
	margin: 0 auto;
	padding-inline: 20px;
}

.article__lede {
	margin-bottom: 30px;
	font-size: 1.125rem;
	line-height: 1.6;
	letter-spacing: 0.01em;
}

.article__actions {
	margin-top: 50px;
}

.rte {
	font-size: 0.938rem;
	line-height: 1.7;
}

.rte p {
	margin-bottom: 18px;
}

.rte h2 {
	margin: 36px 0 14px;
	font-family: var(--font-accent);
	font-size: var(--font-size-h3);
	line-height: 1.2;
	letter-spacing: 0.5px;
	font-weight: 400;
}

.rte h3 {
	margin: 30px 0 12px;
	font-size: 1.125rem;
	line-height: 1.3;
	font-weight: 500;
}

.rte a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rte ul,
.rte ol {
	margin: 0 0 18px;
	padding-left: 22px;
}

.rte ul {
	list-style: disc;
}

.rte ol {
	list-style: decimal;
}

.rte li {
	margin-bottom: 6px;
}

.rte img {
	height: auto;
	margin: 20px 0;
}

.rte blockquote {
	margin: 30px 0;
	padding-left: 22px;
	border-left: 1px solid var(--color-black);
	font-family: var(--font-accent);
	font-size: var(--font-size-h3);
	line-height: 1.3;
}

.page-header {
	padding: 50px 0 30px;
}

.page-content {
	padding-bottom: 60px;
}

.stories-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px 24px;
}

.story-card {
	display: flex;
	flex-direction: column;
}

.story-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background-color: var(--color-offwhite);
}

.story-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.story-card:hover .story-card__media img {
	transform: scale(1.03);
}

.story-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 14px;
}

.story-card__title {
	font-family: var(--font-accent);
	font-size: var(--font-size-h3);
	line-height: 1.2;
	letter-spacing: 0.5px;
	font-weight: 400;
}

.story-card__meta {
	font-size: var(--font-size-small);
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-grey);
}

.story-card__excerpt {
	font-size: 0.875rem;
	line-height: 1.6;
	color: #333;
}

.stories-pagination {
	display: flex;
	justify-content: center;
	padding: 40px 0 20px;
}

.empty-state {
	padding: 40px 0 80px;
}

@media (max-width: 767px) {
	.stories-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.article__title {
		font-size: 1.75rem;
	}

	.article__header {
		padding: 40px 0 20px;
	}

	.article__hero {
		margin-bottom: 30px;
	}
}
