/* ==========================================================================
   Base: fonts, reset and global typography – a faithful port of the Semplice
   5 rules the live site relies on (frontend.min.css reset + "#content-holder"
   custom CSS). Keep quirks: they are what makes the pixels identical.
   ========================================================================== */

/* Self-hosted fonts, declared exactly like Semplice (no weight descriptor). */
@font-face {
	font-family: "CabinetGrotesk-Variable";
	src: url("../fonts/CabinetGrotesk-Variable.woff2") format("woff2"), url("../fonts/CabinetGrotesk-Variable.ttf") format("truetype");
	font-display: swap;
}
@font-face {
	font-family: "Sigurd-Light"; /* commercial licence – see README.md */
	src: url("../fonts/Sigurd-Light.woff2") format("woff2"), url("../fonts/Sigurd-Light.woff") format("woff");
	font-display: swap;
}

/* ---- reset (Semplice) ---- */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, em, strong, b, i, u, small, sub, sup,
img, ol, ul, li, table, tbody, thead, tfoot, tr, th, td, figure, figcaption, form, label,
section, header, footer, nav, main, article, aside, blockquote, address {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	vertical-align: baseline;
}
address, cite, em, q, var, i { font-style: italic; }
h1, h2, h3, h4, h5, h6, strong, b { font-weight: 700; }
table { border-collapse: collapse; border-spacing: 0; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -.5em; }
*, *::before, *::after { box-sizing: inherit; }

html, body {
	font-size: 18px;               /* never changes – 1rem = 18px at every width */
	line-height: 1.66667;
	font-family: var(--pg-font-fallback);
	color: var(--pg-default-text);
	box-sizing: border-box;
	width: 100%;
	min-height: 100%;
	word-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-size-adjust: 100%;
}
body {
	overflow-y: scroll;
	overflow-x: hidden;
	background: var(--pg-white);
}
body.pg-menu-open { overflow-y: hidden; }

a {
	color: var(--pg-green-600);
	text-decoration: none;
	transition: all var(--pg-hover);
}
a:hover { color: var(--pg-green-900); }

ol, ul { margin-left: 48px; margin-bottom: 1.66667rem; }
ol ol, ol ul, ul ol, ul ul { margin-left: 1.66667rem; margin-bottom: 0; }
ol { list-style: decimal; }
ul { list-style: disc; }

img { max-width: 100%; font-size: 0; line-height: 0; }

/* ---- global typography (Semplice "#content-holder" rules) ----
   Applies to everything inside .pg-site (page content + footer), exactly as on
   the live site. Sizes come from tokens.css (stepped per breakpoint). */
:is(.pg-site, .editor-styles-wrapper) h1 { font-family: var(--pg-font-heading); font-weight: 400; font-style: normal; font-size: var(--pg-h1-fs); line-height: var(--pg-h1-lh); }
:is(.pg-site, .editor-styles-wrapper) h2 { font-family: var(--pg-font-heading); font-weight: 400; font-style: normal; font-size: var(--pg-h2-fs); line-height: var(--pg-h2-lh); }
:is(.pg-site, .editor-styles-wrapper) h3 { font-family: var(--pg-font-heading); font-weight: 400; font-style: normal; font-size: var(--pg-h3-fs); line-height: var(--pg-h3-lh); }
:is(.pg-site, .editor-styles-wrapper) p  { font-family: var(--pg-font-body); font-weight: 400; font-style: normal; font-size: var(--pg-p-fs); line-height: var(--pg-p-lh); }
:is(.pg-site, .editor-styles-wrapper) li { font-family: var(--pg-font-body); font-weight: 400; font-style: normal; font-size: var(--pg-li-fs); line-height: var(--pg-li-lh); }
:is(.pg-site, .editor-styles-wrapper) strong, .pg-site b { font-weight: 700; }
:is(.pg-site, .editor-styles-wrapper) em, .pg-site i { font-style: italic; }

/* ".is-content" = Semplice module wrapper. Our blocks put .pg-is-content on
   every text wrapper: text colour + vertical rhythm. */
.pg-is-content { color: var(--pg-green-900); position: relative; }
.pg-is-content h1, .pg-is-content h2, .pg-is-content h3, .pg-is-content h4,
.pg-is-content h5, .pg-is-content h6, .pg-is-content blockquote { color: inherit; margin-bottom: 1.66667rem; }
.pg-is-content p { color: inherit; margin-bottom: 1.5em; }
.pg-is-content p:last-child,
.pg-is-content h1:last-child, .pg-is-content h2:last-child, .pg-is-content h3:last-child,
.pg-is-content h4:last-child, .pg-is-content h5:last-child, .pg-is-content h6:last-child { margin-bottom: 0; }

/* Accessibility helpers */
.pg-sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.pg-skip-link:focus {
	position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 10px 20px; background: var(--pg-paper); color: var(--pg-green-900);
}

/* ---- shared pill button (Semplice .ce-button), global + editor ----
   <div class="pg-btn pg-btn--outline|pg-btn--filled"><a href="…">Label</a></div>
   hover .2s linear per docs/design-system.md. Owner: foundation. */
.pg-btn {
	display: inline-block;
	border: 0 solid var(--pg-green-900);
	border-radius: 6.055555555555555rem;
	background-color: transparent;
	cursor: pointer;
	transition: all .2s linear;
}
.pg-btn a {
	display: inline-block;
	padding: .3888888888888889rem 1.1111111111111112rem;
	border-radius: 6.055555555555555rem;
	font-family: var(--pg-font-body);
	font-size: var(--pg-btn-fs);
	text-align: center;
	color: #000;
	transition: all .2s linear;
}
.pg-btn--outline { border-width: .05555555555555555rem; }
.pg-btn--filled { background-color: var(--pg-green-600); }
.pg-btn--filled a { color: var(--pg-paper); }
.pg-btn:hover { background-color: var(--pg-green-900); }
.pg-btn:hover a { color: var(--pg-paper); }
