/* ==========================================================================
   Ilion public UI: base (GH #266)
   A small reset (public pages don't load PatternFly), page layout,
   typography and accessibility helpers. Colours come from tokens.css.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ps-bg);
    color: var(--ps-ink);
    font-family: var(--ps-sans);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; line-height: 1.25; color: var(--ps-ink); }
p { margin: 0 0 1rem; }
a { color: var(--ps-link); text-underline-offset: .2em; }
hr { border: 0; border-top: 1px solid var(--ps-line); margin: 2rem 0; }

:focus-visible { outline: 3px solid var(--ps-gold); outline-offset: 2px; border-radius: 4px; }

/* Screen-reader only */
.ps-sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.ps-skip {
    position: absolute; left: 1rem; top: -3rem; z-index: 100;
    padding: .5rem 1rem; background: var(--ps-gold); color: var(--ps-on-gold); border-radius: 6px;
}
.ps-skip:focus { top: 1rem; }

.ps-main { flex: 1 0 auto; outline: none; }

.ps-container { max-width: var(--ps-wide); margin: 0 auto; padding: 0 1rem; }
.ps-container--form { max-width: var(--ps-form); }

/* A page section with vertical rhythm */
.ps-band { padding: 3rem 0; }
.ps-band--soft { background: var(--ps-bg-soft); border-top: 1px solid var(--ps-line); border-bottom: 1px solid var(--ps-line); }

/* Headings in the editorial serif */
.ps-title {
    font-family: var(--ps-serif); font-weight: 600; letter-spacing: -.02em;
    font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; margin: 0 0 .75rem;
}
.ps-h2 { font-family: var(--ps-serif); font-weight: 600; font-size: 1.6rem; line-height: 1.25; margin: 0 0 1rem; }
.ps-h3 { font-family: var(--ps-serif); font-weight: 600; font-size: 1.25rem; margin: 0 0 .5rem; }
.ps-lead { font-size: 1.2rem; line-height: 1.55; color: var(--ps-ink-soft); max-width: 40rem; margin: 0 0 1.5rem; }
.ps-text-soft { color: var(--ps-ink-soft); }
.ps-small { font-size: .875rem; color: var(--ps-muted); }
.ps-subhead { margin-top: 2.5rem; }   /* a heading that starts a new group below a panel */

@media (max-width: 600px) {
    .ps-band { padding: 2rem 0; }
    .ps-lead { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
