/*
 * Raft Films — Base Styles
 * Design System: #1A1A1A · #FAF8F4 · #AB8547
 * Typography: Inter · Source Serif 4
 */

/* ─────────────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────────────────────── */

:root {
	/* Colour palette */
	--raft-black:    #1A1A1A;
	--raft-bone:     #FAF8F4;
	--raft-gold:     #AB8547;
	--raft-muted:    #6B6560;
	--raft-border:   #E2DDD7;
	--raft-white:    #FFFFFF;
	--raft-overlay:  rgba(26, 26, 26, 0.52); /* hero image overlay */

	/* Serif + Sans families */
	--raft-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--raft-sans:  'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

	/* Warm background (film catalogue section) */
	--raft-warm: #F2EFE9;

	/* Inverted (dark) background */
	--raft-inverted-bg:   #1A1A1A;
	--raft-inverted-text: #FAF8F4;

	/* Accessible gold for text links */
	--raft-gold-link: #8C6A30;

	/* Ink opacity variants */
	--raft-ink-65: rgba(26, 26, 26, 0.65);
	--raft-ink-60: rgba(26, 26, 26, 0.60);
	--raft-ink-50: rgba(26, 26, 26, 0.50);
	--raft-ink-10: rgba(26, 26, 26, 0.10);

	/* Wide container (film pages) */
	--raft-container-wide: 1280px;

	/* Section gap (film page dividers) */
	--raft-section-gap: clamp(3rem, 6vw, 5rem);

	/* Typography */
	--raft-font: var(--raft-serif);

	/* Type scale — fluid */
	--raft-text-xs:   0.75rem;      /* 12px */
	--raft-text-sm:   0.875rem;     /* 14px */
	--raft-text-base: 1rem;         /* 16px */
	--raft-text-md:   1.125rem;     /* 18px */
	--raft-text-lg:   clamp(1.125rem, 1.5vw, 1.35rem);
	--raft-text-xl:   clamp(1.35rem,  2vw,   1.75rem);
	--raft-text-2xl:  clamp(1.75rem,  3vw,   2.5rem);
	--raft-text-3xl:  clamp(2rem,    4vw,   3.25rem);
	--raft-text-4xl:  clamp(2.5rem,  5vw,   4rem);
	--raft-text-hero: clamp(2.75rem, 5vw,   4.75rem);

	/* Font weights — Inter */
	--raft-weight-regular:  400;
	--raft-weight-medium:   500;
	--raft-weight-semibold: 600;
	--raft-weight-bold:     600;

	/* Layout */
	--raft-max:     var(--raft-container-wide);
	--raft-narrow:  760px;
	--raft-gutter:  clamp(1.25rem, 4vw, 3rem);
	--raft-section: var(--raft-section-gap);

	/* Transitions */
	--raft-ease-fast: 0.15s ease;
	--raft-ease-base: 0.3s ease;
	--raft-ease-slow: 0.6s ease;
}

/* ─────────────────────────────────────────────────────────────────────────
   2. RESET
   ───────────────────────────────────────────────────────────────────────── */

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

html {
	min-height: 100%;
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	text-rendering: optimizeLegibility;
	scroll-behavior: smooth;
}

body {
	min-height: 100%;
	margin: 0;
	background-color: var(--raft-bone);
	color: var(--raft-black);
	font-family: var(--raft-font);
	font-size: var(--raft-text-base);
	font-weight: var(--raft-weight-regular);
	line-height: 1.65;
}

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

a {
	color: inherit;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 0.06em;
}

a:hover {
	color: var(--raft-gold);
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	color: inherit;
	cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────────────────
   3. FOCUS
   ───────────────────────────────────────────────────────────────────────── */

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

/* ─────────────────────────────────────────────────────────────────────────
   4. TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
figure {
	margin-block-start: 0;
	margin-block-end: 0;
}

h1,
h2,
h3,
h4 {
	font-family: var(--raft-serif);
	font-weight: var(--raft-weight-bold);
	line-height: 1.05;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

h1 { font-size: var(--raft-text-hero); }
h2 { font-size: var(--raft-text-3xl); }
h3 { font-size: var(--raft-text-xl); }
h4 { font-size: var(--raft-text-lg); }

p + p {
	margin-block-start: 1rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   5. UTILITY — ACCESSIBILITY
   ───────────────────────────────────────────────────────────────────────── */

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

.skip-link {
	position: absolute;
	inset-block-start: 1rem;
	inset-inline-start: 1rem;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--raft-black);
	color: var(--raft-bone);
	font-size: var(--raft-text-sm);
	font-weight: var(--raft-weight-semibold);
	text-decoration: none;
	transform: translateY(-200%);
	transition: transform var(--raft-ease-fast);
}

.skip-link:focus {
	transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────────────────
   6. UTILITY — TYPOGRAPHY CLASSES
   ───────────────────────────────────────────────────────────────────────── */

/* Eyebrow label — film-page style section marker */
.eyebrow {
	margin: 0;
	color: var(--raft-ink-50);
	font-family: var(--raft-sans);
	font-size: 0.7rem;
	font-weight: var(--raft-weight-semibold);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Logline — single italic entry sentence, no heading */
.logline {
	font-size: var(--raft-text-2xl);
	font-style: italic;
	font-weight: var(--raft-weight-regular);
	line-height: 1.25;
}

/* Lede — large muted intro paragraph */
.lede {
	max-width: 62ch;
	color: var(--raft-black);
	font-family: var(--raft-serif);
	font-size: clamp(1.25rem, 2.2vw, 1.5rem);
	font-style: italic;
	line-height: 1.6;
}

/* Prose — readable body text block */
.prose {
	color: var(--raft-black);
	font-family: var(--raft-serif);
	font-size: clamp(1rem, 1.1vw, 1.0625rem);
	line-height: 1.75;
	text-align: justify;
	hyphens: auto;
}

.prose > *:last-child {
	margin-block-end: 0;
}

.prose--lead {
	font-size: var(--raft-text-lg);
	line-height: 1.55;
}

.prose--muted {
	color: var(--raft-muted);
}

/* Inline text link — gold underline */
.text-link {
	color: var(--raft-black);
	font-weight: var(--raft-weight-semibold);
	text-decoration-color: var(--raft-gold);
}

.text-link:hover {
	color: var(--raft-gold);
}

/* ─────────────────────────────────────────────────────────────────────────
   7. UTILITY — MOTION
   ───────────────────────────────────────────────────────────────────────── */

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