/*
 * Design tokens, type and shared classes. Loaded before style.css on the site
 * and in the editor's content iframe (see functions.php), so blocks such as
 * Shop look the same in both.
 *
 * 1rem = 10px: the root is 62.5% of the browser's 16px, so a visitor's own
 * font size setting still scales everything. Sizes are in rem; borders,
 * outlines and shadows stay in px. Media queries stay in px too, since rem in
 * a media query is always the browser's 16px, not this root size.
 */

html {
	font-size: 62.5%;
}

:root {
	--color-dark: #222222; /* body text and menu background */
	--color-link: #1e73be;
	--color-page-bg: #efefef;
	--color-box-bg: #ffffff;
	--color-nav-text: #ffffff;
	--color-nav-active: #3f3f3f;
	--color-muted: #595959;
	--color-border: #cccccc; /* form fields and pagination */
	--color-border-hover: #999999;
	--color-divider: #e2e2e2; /* dividers and card outlines */
	--color-field-bg: #fafafa;
	--color-error: #b32d2e; /* form errors */
	--color-success: #2e7d32;
	--container-width: 125rem;
	--gap: 2rem;
	--box-padding: 4rem;
	--tracking-wide: 0.08em; /* small labels (.eyebrow) */
	--tracking-wider: 0.12em; /* bold capitals: buttons, titles */
	--duration: 0.15s;
}

/* Type: Open Sans, body text and headings. Here rather than in style.css so
   the editor's content iframe gets them too; without them it falls back to
   the browser's serif. */

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("fonts/open-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("fonts/open-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 300 800;
	font-display: swap;
	src: url("fonts/open-sans-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 300 800;
	font-display: swap;
	src: url("fonts/open-sans-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

body {
	color: var(--color-dark);
	font-family: "Open Sans", sans-serif;
	font-size: 1.7rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 2rem;
	font-weight: 300;
	line-height: 1.2;
}

h1 { font-size: 4rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2rem; }

/* Eyebrow: small grey capitals for labels, dates and places. In the editor,
   add it under Advanced > Additional CSS class(es). The labels in a .facts
   row (a SOTW post's car, a club) are listed here instead of carrying the
   class. */

.eyebrow,
.facts strong {
	color: var(--color-muted);
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
}

/* Buttons: .button is the primary button (filled), .button-ghost the
   secondary one (outlined). Both fill with the link colour on hover.
   .button-small is the compact size; .button-caps sets bold capitals, a size
   smaller since capitals read larger. The Buttons block looks the same, with
   its Outline style as ghost. */

.button,
.entry-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	padding: 1rem 2rem;
	border: 1px solid var(--color-dark);
	border-radius: 0;
	background: var(--color-dark);
	color: var(--color-nav-text);
	font: inherit;
	font-size: 1.5rem;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: all var(--duration);
}

/* The display above would otherwise show a button with the hidden attribute,
   as the sidebar's View all until View more has loaded (js/sidebar.js). */
.button[hidden] {
	display: none;
}

.button-ghost,
.entry-content .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--color-dark);
}

.button:focus,
.entry-content .wp-block-button__link:focus {
	border-color: var(--color-link);
	background: var(--color-link);
	color: var(--color-nav-text);
}

/* Hover only from 1026px wide, as in style.css (see a:hover there). */
@media (min-width: 1026px) {
	.button:hover,
	.entry-content .wp-block-button__link:hover {
		border-color: var(--color-link);
		background: var(--color-link);
		color: var(--color-nav-text);
	}
}

.button-small {
	padding: 0.7rem 1.6rem;
	font-size: 1.4rem;
}

.button-caps {
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: var(--tracking-wider);
	text-transform: uppercase;
}
