/* Loaded on every front-end page, Semplice pages included. Keep this file small.
   Instrument Sans is self-hosted (SIL Open Font License, see fonts/OFL.txt); one variable file
   per subset covers weights 400 to 700. */
@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("fonts/instrument-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("fonts/instrument-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;
}

/* Nav and footer use the block-page typeface on every page (approved Oct 28). Semplice sets its
   fonts with ID selectors, hence !important. Sizes and weights stay as set in Semplice.
   The footer is Semplice's global footer section: the last section on the page, or the one just
   before the previous/next strip on project pages. */
header.semplice-header,
header.semplice-header *,
:is(.sections > smp-section:last-child:not(.locked-section, .semplice-next-prev), .sections > smp-section:has(+ .semplice-next-prev)),
:is(.sections > smp-section:last-child:not(.locked-section, .semplice-next-prev), .sections > smp-section:has(+ .semplice-next-prev)) * {
	font-family: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* Header logo link. Semplice's nav draws the logo as a background image on its column, and the
   link to the homepage is an empty, zero-size element beside it, so there is nothing to click.
   This stretches that empty link over the logo (Method_logo-1.svg, 4500 x 615). It changes
   nothing visually. Remove it if the logo is ever rebuilt as a real link in Semplice. */
smp-nav-content[data-module="link"]:has(> a.is-content:empty) { position: static !important; }
smp-nav-content[data-module="link"] > a.is-content:empty { position: absolute; left: 0; top: 0; height: 100%; aspect-ratio: 4500 / 615; display: block; z-index: 1; }

/* Footer top padding trimmed (Semplice default 125-128px) so the gap above the footer is about a
   quarter of what it was on block pages (approved Oct 29). Applies on every page. */
:is(.sections > smp-section:last-child:not(.locked-section, .semplice-next-prev), .sections > smp-section:has(+ .semplice-next-prev)) { padding-top: 64px !important; }

/* Footer links match block-page links: ink text with a red underline, red text on hover
   (approved Oct 29). Semplice colours links with ID selectors and !important, hence !important. */
:is(.sections > smp-section:last-child:not(.locked-section, .semplice-next-prev), .sections > smp-section:has(+ .semplice-next-prev)) a:not(.is-content) {
	color: #141414 !important;
	text-decoration: underline !important;
	text-decoration-color: #c0322a !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 0.2em !important;
}
:is(.sections > smp-section:last-child:not(.locked-section, .semplice-next-prev), .sections > smp-section:has(+ .semplice-next-prev)) a:not(.is-content):hover {
	color: #c0322a !important;
	text-decoration-color: #c0322a !important;
}
:is(.sections > smp-section:last-child:not(.locked-section, .semplice-next-prev), .sections > smp-section:has(+ .semplice-next-prev)) a:not(.is-content):focus-visible { outline: 3px solid #c0322a; outline-offset: 3px; }

/* Project pages and the Work page (page 35), both Semplice: all text in the site typeface; sizes
   and weights stay as set in Semplice. The Work page itself is not edited (approved Oct 29). */
body.single-project .sections,
body.single-project .sections *,
body.page-id-35 .sections,
body.page-id-35 .sections * {
	font-family: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* Phone menu: the dropdown arrow beside Film Services and About is 10px wide. Its tap area grows to
   about 44px square (an invisible layer around it) so it can be hit without landing on the name,
   which now opens the page (site.js). */
[data-menu-direction="vertical"][data-nested-mode="toggle"] li.menu-item-has-children > a submenu-arrow { position: relative; }
[data-menu-direction="vertical"][data-nested-mode="toggle"] li.menu-item-has-children > a submenu-arrow::after { content: ""; position: absolute; inset: -19px -17px; }
