/* PrintForge base: design tokens, reset, typography, layout.
   Design language "Bright Studio": warm white stock, one signature orange ink, friendly grotesk type,
   rounded sheets and soft rules. See design-system/printforge/MASTER.md. Fonts are enqueued in functions.php.
   Token names are kept from the earlier "Press Sheet" system so every stylesheet and the configurator
   plugin pick up the new values without renaming: --pf-yellow is now the signature orange. */

:root {
	/* Ink and stock */
	--pf-ink: #16161a;
	--pf-ink-2: #3a3a42;
	--pf-paper: #fffcf7;
	--pf-paper-2: #fff1de;
	--pf-white: #ffffff;
	--pf-line: #ece2d3;
	--pf-line-strong: #16161a;
	--pf-muted: #66625c;
	--pf-yellow: #ff6a2b; /* signature orange: primary buttons, bands, badges (ink text on it: 6.3:1) */
	--pf-yellow-hover: #ff8752;
	--pf-yellow-press: #f2561a;
	--pf-cyan: #1f4fe0; /* links and focus ring (6.3:1 on white) */
	--pf-magenta: #c9380a; /* orange for text and hover fills (5.0:1 with white) */
	--pf-sun: #ffc93c;
	--pf-good: #1f6b43;
	--pf-bad: #b3261e;

	/* Accent set for the thin colour stripe under the header and small decorative chips */
	--pf-c: #1f4fe0;
	--pf-m: #ff6a2b;
	--pf-y: #ffc93c;
	--pf-k: #16161a;
	--pf-colorbar: linear-gradient(90deg,
		var(--pf-m) 0 40%, var(--pf-y) 0 60%, var(--pf-c) 0 80%, var(--pf-k) 0 100%);

	/* Type */
	--pf-display: "Bricolage Grotesque", "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--pf-font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--pf-mono: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; /* labels and prices: tabular figures, no monospace */

	/* Shape: rounded sheets, soft warm rules */
	--pf-radius: 12px;
	--pf-radius-lg: 20px;
	--pf-rule: 1px solid var(--pf-line);
	--pf-wrap: 1280px;
	--pf-gutter: clamp(16px, 3vw, 32px);
	--pf-header-h: 88px;
	--pf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

	/* Registration target, used as the label glyph */
	--pf-reg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='6.5'/%3E%3Cpath d='M12 1v22M1 12h22'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--pf-header-h) + 16px);
}

html.pf-lock {
	overflow: hidden;
}

body {
	margin: 0;
	background: var(--pf-paper);
	color: var(--pf-ink);
	font-family: var(--pf-font);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	font-feature-settings: "kern", "liga";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

@media (min-width: 1200px) {
	body {
		font-size: 1.0625rem;
	}
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

a {
	color: var(--pf-cyan);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--pf-magenta);
}

:focus-visible {
	outline: 3px solid var(--pf-cyan);
	outline-offset: 2px;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

hr {
	border: 0;
	border-top: 1px solid var(--pf-line);
	margin: 2rem 0;
}

::selection {
	background: var(--pf-yellow);
	color: var(--pf-ink);
}

/* Accessibility helpers */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.pf-skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 12px 18px;
	border-radius: var(--pf-radius);
	background: var(--pf-ink);
	color: var(--pf-paper);
	font-weight: 700;
	text-decoration: none;
}

.pf-skip:focus {
	top: 12px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--pf-display);
	font-weight: 700;
	letter-spacing: -0.022em;
	line-height: 1.06;
	color: var(--pf-ink);
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.4rem, 1.4rem + 4vw, 4.75rem);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.035em;
}

h2 {
	font-size: clamp(1.9rem, 1.3rem + 2.3vw, 3.1rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.03em;
}

h3 {
	font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
}

/* Small headings stay in the UI face: Bodoni's hairlines get too thin below ~20px */
h4,
h5,
h6 {
	font-family: var(--pf-font);
	font-weight: 700;
	letter-spacing: 0;
}

h4 {
	font-size: 1.125rem;
}

p {
	margin: 0 0 1.1em;
	text-wrap: pretty;
}

strong,
b {
	font-weight: 700;
}

/* Slug line: the label a printer pencils on a job, led by a registration target */
.pf-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-family: var(--pf-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pf-muted);
}

.pf-eyebrow::before {
	content: "";
	width: 14px;
	height: 14px;
	background: var(--pf-reg) center / contain no-repeat;
	flex: 0 0 auto;
}

.pf-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.pf-eyebrow a:hover {
	color: var(--pf-ink);
	text-decoration: underline;
}

.pf-lead {
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
	line-height: 1.55;
	color: var(--pf-ink-2);
	max-width: 60ch;
}

/* Layout */
.pf-wrap {
	width: 100%;
	max-width: calc(var(--pf-wrap) + var(--pf-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--pf-gutter);
}

.pf-main {
	display: block;
	min-height: 60vh;
}

.pf-main:focus {
	outline: 0;
}

.pf-prose {
	max-width: calc(780px + var(--pf-gutter) * 2);
}

.pf-prose h2 {
	margin-top: 1.6em;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
}

.pf-prose h3 {
	margin-top: 1.4em;
}

.pf-prose ul,
.pf-prose ol {
	padding-left: 1.3em;
}

.pf-prose li {
	margin-bottom: 0.4em;
}

.pf-prose img {
	border-radius: var(--pf-radius-lg);
}

.pf-wide-body {
	max-width: calc(var(--pf-wrap) + var(--pf-gutter) * 2);
}

.pf-page-body {
	padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 104px);
}

/* Page title band: a ruled head with registration targets in the margins, like a press sheet */
.pf-page-hero {
	position: relative;
	padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 60px);
	background: var(--pf-paper);
	border-bottom: var(--pf-rule);
	overflow: hidden;
}

.pf-page-hero h1 {
	margin: 0;
	max-width: 18ch;
	font-size: clamp(2.3rem, 1.3rem + 3.9vw, 4.5rem);
}

.pf-page-hero::after,
.pf-shop-hero::after {
	content: "";
	position: absolute;
	right: clamp(16px, 4vw, 56px);
	top: 24px;
	width: 26px;
	height: 26px;
	background: var(--pf-reg) center / contain no-repeat;
	box-shadow: none;
	pointer-events: none;
}

.pf-page-hero::before,
.pf-shop-hero::before {
	content: "";
	position: absolute;
	right: clamp(16px, 4vw, 56px);
	bottom: 20px;
	width: min(240px, 40vw);
	height: 10px;
	background: var(--pf-colorbar);
	pointer-events: none;
}

.pf-page-lead {
	margin: 18px 0 0;
	max-width: 56ch;
	font-size: 1.1875rem;
	color: var(--pf-ink-2);
}

/* Reveal on scroll (only when JavaScript is available) */
.pf-js [data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.7s var(--pf-ease), transform 0.7s var(--pf-ease);
}

.pf-js [data-reveal].is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.pf-js [data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
