/* MZ International Markets — mz-im.com
   Brand Guide v1. Ink / Paper / Emerald. Marcellus + Instrument Sans.
   Written against a CSP of style-src 'self': there are no inline styles
   anywhere in this site, and there must not be. */

@font-face {
	font-family: "Marcellus";
	src: url("../fonts/marcellus-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Instrument Sans";
	src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #10201B;
	--paper: #F7F6F1;
	--emerald: #1E6B52;

	/* Ink at reduced strength. Mixed rather than guessed, so every muted tone
	   is the brand colour and not a grey that happens to sit near it. */
	--ink-70: color-mix(in srgb, #10201B 70%, #F7F6F1);
	--ink-45: color-mix(in srgb, #10201B 45%, #F7F6F1);
	--ink-25: color-mix(in srgb, #10201B 25%, #F7F6F1);
	--ink-12: color-mix(in srgb, #10201B 12%, #F7F6F1);

	--display: "Marcellus", Georgia, "Times New Roman", serif;
	--body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--measure: 34rem;
	--gutter: clamp(1.25rem, 5vw, 4rem);
	--shelf: clamp(3.5rem, 9vw, 7rem);

	color-scheme: light;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.75;
	font-weight: 400;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- rules
   The ledger rule-pair is the identity's structural device, so it is a real
   element with real semantics rather than a border on whatever happens to be
   nearby. Three weights, and each means something:
     .rule          a section break
     .rule--double  a major break — the hero closing, the account ruled off
     .rule--close   the closing rule, emerald, ONCE per page, above the footer
   If a fourth weight ever appears, the device has stopped meaning anything. */
.rule {
	border: 0;
	border-top: 1px solid var(--ink-25);
	margin: 0;
	height: 0;
}

.rule--double {
	border-top: 1px solid var(--ink-25);
	border-bottom: 1px solid var(--ink-25);
	height: 4px;
}

.rule--close {
	border-top: 1px solid var(--ink-25);
	border-bottom: 2px solid var(--emerald);
	height: 5px;
}

/* ---------------------------------------------------------------- shell */
.shell {
	width: 100%;
	max-width: 72rem;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.skip {
	position: absolute;
	inset-inline-start: -9999px;
	top: 0;
	background: var(--ink);
	color: var(--paper);
	padding: 0.75rem 1.25rem;
	z-index: 10;
}

.skip:focus {
	inset-inline-start: 0;
}

/* ---------------------------------------------------------------- header */
.masthead {
	padding-block: 1.75rem 0;
}

.masthead__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-block-end: 1.5rem;
}

.identity {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	text-decoration: none;
	color: inherit;
}

.identity__mark {
	display: block;
	width: 3.25rem;
	height: auto;
}

.identity__name {
	font-family: var(--body);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.17em;
	text-transform: uppercase;
	line-height: 1.4;
	max-width: 9rem;
}

.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	font-size: 0.9rem;
}

.nav a {
	color: var(--ink-70);
	text-decoration: none;
	padding-block: 0.25rem;
	border-block-end: 1px solid transparent;
}

.nav a:hover {
	color: var(--ink);
	border-block-end-color: var(--emerald);
}

.nav a[aria-current="page"] {
	color: var(--ink);
	border-block-end-color: var(--ink-25);
}

/* ---------------------------------------------------------------- type */
h1,
h2,
h3 {
	font-family: var(--display);
	font-weight: 400;
	line-height: 1.15;
	margin: 0;
	letter-spacing: -0.005em;
}

h1 {
	font-size: clamp(2.35rem, 6vw, 3.9rem);
	max-width: 15ch;
}

h2 {
	font-size: clamp(1.6rem, 3.4vw, 2.3rem);
	max-width: 22ch;
}

h3 {
	font-size: 1.3rem;
}

p {
	margin: 0 0 1.15rem;
	max-width: var(--measure);
}

p:last-child {
	margin-block-end: 0;
}

a {
	color: var(--emerald);
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
}

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

.eyebrow {
	font-family: var(--body);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--emerald);
	margin: 0 0 0.9rem;
}

.lede {
	font-size: 1.2rem;
	line-height: 1.65;
	color: var(--ink-70);
	max-width: 38rem;
}

.note {
	font-size: 0.9rem;
	color: var(--ink-45);
}

/* ---------------------------------------------------------------- hero */
.hero {
	padding-block: clamp(3rem, 10vw, 6.5rem) clamp(2.5rem, 7vw, 4.5rem);
}

.hero__lede {
	margin-block-start: 1.75rem;
}

/* ---------------------------------------------------------------- sections */
.band {
	padding-block: var(--shelf);
}

.band--tight {
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.band__head {
	margin-block-end: 2.5rem;
}

/* ---------------------------------------------------------------- cards */
.pair {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
}

.card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--ink-25);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--paper);
}

.card h2,
.card h3 {
	margin-block-end: 0.9rem;
}

.card p {
	color: var(--ink-70);
	margin-block-end: 0;
}

.card__foot {
	margin-block-start: auto;
	padding-block-start: 1.5rem;
}

.card__foot .rule {
	border-top-color: var(--emerald);
	margin-block-end: 0.9rem;
}

.card__link {
	font-size: 0.92rem;
	font-weight: 500;
	text-decoration: none;
}

.card__link:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

/* ---------------------------------------------------------------- entries
   Two-column running text: a label column and a body column. This is the
   ledger shape applied to prose — the label is the account, the body is the
   entry. Collapses to one column before the label column gets too narrow to
   read as a label. */
.entry {
	display: grid;
	grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
	gap: clamp(1rem, 4vw, 3.5rem);
	padding-block: clamp(2rem, 5vw, 3.25rem);
}

.entry + .entry {
	border-block-start: 1px solid var(--ink-12);
}

.entry__label {
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-45);
	padding-block-start: 0.55rem;
}

.entry__body > :first-child {
	margin-block-start: 0;
}

.entry__body h2,
.entry__body h3 {
	margin-block-end: 1.1rem;
}

.entry__body p {
	color: var(--ink-70);
}

@media (max-width: 46rem) {
	.entry {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
	}

	.entry__label {
		padding-block-start: 0;
	}
}

/* ---------------------------------------------------------------- contact */
.routes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
	margin: 0;
	padding: 0;
}

.route {
	margin: 0;
}

.route dt {
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-45);
	margin-block-end: 0.6rem;
}

.route dd {
	margin: 0;
	font-size: 1.05rem;
}

.route dd + dd {
	margin-block-start: 0.3rem;
	font-size: 0.92rem;
	color: var(--ink-45);
}

/* ---------------------------------------------------------------- footer */
.colophon {
	padding-block: 2.25rem 3.5rem;
	font-size: 0.86rem;
	color: var(--ink-45);
}

.colophon__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem 2.5rem;
	padding-block-start: 1.75rem;
}

.colophon a {
	color: var(--ink-45);
	text-decoration: none;
}

.colophon a:hover {
	color: var(--ink);
	text-decoration: underline;
}

.colophon__set {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

/* ---------------------------------------------------------------- error */
.stop {
	padding-block: clamp(4rem, 14vw, 9rem);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
