/**
 * Base elements, typography, layout helpers and accessibility.
 *
 * @package PEN
 */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
	margin: 0;
	background: var(--pen-bg);
	color: var(--pen-ink);
	font-family: var(--pen-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	overflow-x: hidden;
}

img, video, iframe { max-width: 100%; height: auto; }

a { color: var(--pen-olive); text-underline-offset: 3px; }
a:hover { color: var(--pen-accent); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--pen-font-head);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: .01em;
	text-transform: uppercase;
	margin: 0 0 .5em;
	color: inherit;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1.1em; }

:focus-visible { outline: 3px solid var(--pen-accent); outline-offset: 2px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto;
	top: 8px; left: 8px; z-index: 1000; padding: 12px 18px;
	background: var(--pen-accent); color: var(--pen-accent-ink); font-weight: 700;
}

.pen-container { width: 100%; max-width: var(--pen-max); margin: 0 auto; padding: 0 var(--pen-gutter); }
.pen-section { padding: var(--pen-section) 0; }
.pen-section--dark { background: var(--pen-dark); color: #eceae3; }
.pen-section--olive { background: var(--pen-olive); color: #f4f2ec; }
.pen-section--alt { background: var(--pen-surface-alt); }

.pen-eyebrow {
	display: inline-block;
	font-family: var(--pen-font-head);
	font-size: .85rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--pen-accent);
	margin-bottom: .75rem;
}
.pen-section-head { max-width: 720px; margin-bottom: 2.5rem; }
.pen-section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.pen-section-head p { color: var(--pen-ink-soft); font-size: 1.125rem; }
.pen-section--dark .pen-section-head p,
.pen-section--olive .pen-section-head p { color: rgba(255, 255, 255, .78); }
.pen-section-foot { margin-top: 2.5rem; text-align: center; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
