/*
 * Shared baseline for every placeholder site: modern reset + accessibility helpers +
 * styles for shared components. Brand styling (colours, fonts, layout) lives in each
 * site's own stylesheet, loaded AFTER this file.
 */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100svh; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }

/* Visible keyboard focus everywhere. */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .5rem 1rem; background: #000; color: #fff; }
.skip-link:focus { top: 1rem; }

/* <ph-reveal>: fade/slide in once visible. */
ph-reveal { display: block; opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
ph-reveal[is-visible] { opacity: 1; transform: none; }
ph-email, ph-year { display: inline; }

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

/* No-JS fallback: never hide content if components fail to load. */
@media (scripting: none) { ph-reveal { opacity: 1; transform: none; } }
