/* Move With Brent theme: base styles (2.0.0).
 * The browser reset and the site-wide defaults every page starts from: type, links, forms, tables,
 * keyboard focus, screen reader text and WordPress's alignment classes. Colours, fonts and sizes
 * come from tokens.css. The page sections, header and footer are in site.css.
 */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: calc(var(--bar-h) + var(--space-md)); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink-2); font-family: var(--font-body); font-size: var(--text-body); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; caret-color: var(--color-ink); }
::selection { background: color-mix(in oklab, var(--color-accent) 40%, transparent); color: var(--color-ink); }

/* Headings: Prata, one weight. Sizes from tokens. */
h1, h2, h3, h4 { margin: 0; color: var(--color-ink); font-family: var(--font-display); font-weight: var(--display-weight); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.08; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); }
h2 { max-width: 30ch; font-size: var(--text-section); }
h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; letter-spacing: 0; }
h4 { font-size: var(--text-lg); line-height: 1.3; letter-spacing: 0; }
.lead { font-size: var(--text-lead); line-height: 1.5; max-width: 52ch; color: var(--color-ink-2); }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
b, strong { font-weight: 500; color: var(--color-ink); }
small { font-size: var(--text-sm); }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; } sup { top: -0.5em; }
hr { height: 0; border: 0; border-top: var(--rule-hair) solid var(--color-rule); margin: var(--space-xl) 0; }
ul, ol, dl, dd { margin: 0; }

/* Links: underlined in running text; components set their own. */
a { color: var(--color-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out); }
a:hover { color: var(--color-field); text-decoration-color: var(--color-accent); }
a:not([href]):not([tabindex]) { color: inherit; text-decoration: none; }

img, video { max-width: 100%; height: auto; display: block; border-style: none; }
svg { display: block; }
figure { margin: 0; }
figcaption { font-size: var(--text-sm); line-height: 1.45; color: var(--color-muted); }
pre, code, kbd, samp { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95em; }
pre { white-space: pre-wrap; }
details { display: block; } summary { display: list-item; }
[hidden], template { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* Keyboard focus: instant, never animated. */
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* Forms (Fluent Forms adds its own on top; site.css styles them). */
label { display: inline-block; line-height: 1.4; }
button, input, optgroup, select, textarea { margin: 0; font: inherit; color: inherit; }
input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], select, textarea {
  width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-input);
  background: var(--color-paper); color: var(--color-ink); line-height: 1.4; outline: 2px solid transparent; outline-offset: -3px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: var(--color-focus); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.55; cursor: not-allowed; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--color-error); }
textarea { overflow: auto; resize: vertical; min-height: 140px; }
select { display: block; }
button, [type=button], [type=reset], [type=submit] { -webkit-appearance: button; width: auto; cursor: pointer; }
button:disabled, [type=submit]:disabled { cursor: not-allowed; opacity: 0.55; }
fieldset { padding: 0; margin: 0; border: 0; min-inline-size: 0; }
legend { display: table; max-width: 100%; padding: 0; color: inherit; white-space: normal; }
[type=checkbox], [type=radio] { padding: 0; width: 20px; height: 20px; accent-color: var(--color-field); }
[type=search] { -webkit-appearance: textfield; }

/* Tables (Privacy and any page content). */
table { width: 100%; margin-block-end: var(--space-lg); border-collapse: collapse; border-spacing: 0; font-size: var(--text-md); }
table td, table th { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); line-height: 1.5; text-align: left; vertical-align: top; }
table th { font-weight: 500; color: var(--color-ink); white-space: nowrap; }

/* Screen reader text and the skip link. */
.screen-reader-text, .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; word-wrap: normal !important; }
.screen-reader-text:focus, .skip-link:focus { position: fixed !important; top: var(--space-xs); left: var(--space-xs); z-index: var(--z-tooltip); width: auto; height: auto; padding: var(--space-sm) var(--space-lg); clip-path: none; background: var(--color-paper); color: var(--color-field); font-size: var(--text-md); text-decoration: none; }

/* WordPress content alignment. */
.alignleft { float: left; margin-right: var(--space-md); }
.alignright { float: right; margin-left: var(--space-md); }
.aligncenter { clear: both; display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; margin-block-end: var(--space-lg); }
.wp-caption img { display: block; margin-inline: auto; }
.wp-caption-text { margin: 0; }

/* Picture slots: a photo that can be swapped for another without touching the layout. */
[data-slot] { position: relative; overflow: hidden; background: var(--color-paper-2); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* The one container: capped and centred. */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; --bar-h: 64px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 64px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

@media print {
  *, *::before, *::after { background: transparent !important; box-shadow: none !important; color: var(--color-ink) !important; text-shadow: none !important; }
  img, tr { break-inside: avoid; }
  h2, h3, p { orphans: 3; widows: 3; }
  h2, h3 { break-after: avoid; }
}
