/* The Ways and Means: global rules that theme.json cannot express. */
html { scroll-behavior: auto; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* Focus ring: 3px white outline, 3px offset, plus 6px brand-red ring */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--wp--custom--focus--outline);
  outline-offset: var(--wp--custom--focus--offset);
  box-shadow: var(--wp--custom--focus--ring);
}

/* Photography: always greyscale (opt in with the .twm-photo class) */
.twm-photo img, img.twm-photo { filter: grayscale(1) contrast(1.08); }
.twm-post-hero img { object-position: center 35%; max-height: 440px; width: 100%; object-fit: cover; }

/* Section rhythm */
.twm-section { padding-block: var(--wp--preset--spacing--section); }
.twm-section--panel { background: var(--wp--preset--color--panel); }
.twm-section--card  { background: var(--wp--preset--color--card); }
.twm-section--light { background: var(--wp--preset--color--light-panel); color: var(--wp--preset--color--ink); }

/* Small uppercase labels */
.twm-label { font-size: var(--wp--preset--font-size--label); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* Material Symbols helper */
.material-symbols-outlined { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; line-height: 1; display: inline-block; letter-spacing: normal; text-transform: none; white-space: nowrap; font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; }

.screen-reader-text:focus { clip: auto !important; clip-path: none; background: #fff; color: #111; padding: 12px 18px; z-index: 100000; }

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