:root {
    color-scheme: light;
    --barrier-bg: #f3f5f8;
    --barrier-surface: #fff;
    --barrier-text: #172a3d;
    --barrier-accent: #1c5679;
    --barrier-border: #d7dfe7;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 1rem system-ui, sans-serif; color: var(--barrier-text); background: var(--barrier-bg); }
.barrier-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 2rem; background: var(--barrier-surface); border-bottom: 1px solid var(--barrier-border); }
.barrier-header a { color: var(--barrier-accent); text-decoration: none; }
.barrier-header a:focus-visible { outline: 2px solid var(--barrier-accent); outline-offset: 4px; }
.barrier-brand { font-size: 1.25rem; font-weight: 700; }
.barrier-main { flex: 1; width: min(100%, 70rem); margin: 0 auto; padding: 2rem 1rem; }
.barrier-panel { padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--barrier-surface); border: 1px solid var(--barrier-border); border-radius: .75rem; }
.barrier-subtitle { color: var(--barrier-accent); font-weight: 600; }
.barrier-footer { padding: 1rem 2rem; border-top: 1px solid var(--barrier-border); color: var(--barrier-text); }

/* Error views: shared by 404 and the standalone 500 fallback. */
.barrier-error { max-width: 34rem; margin: 3rem auto; text-align: center; padding: 2rem; }
.barrier-error-code { font-size: clamp(4rem, 12vw, 6rem); font-weight: 700; line-height: 1; color: var(--barrier-accent); opacity: .35; margin-bottom: 1rem; }
.barrier-error h1 { font-size: 1.65rem; margin-bottom: .75rem; }
.barrier-error p { color: #536477; margin-bottom: 1.5rem; }
.barrier-error-link { display: inline-block; padding: .65rem 1.2rem; border-radius: .4rem; background: var(--barrier-accent); color: #fff; text-decoration: none; }
.barrier-error-link:hover { color: #fff; filter: brightness(.9); }
.barrier-error-link:focus-visible { outline: 2px solid var(--barrier-accent); outline-offset: 4px; }
.barrier-error-standalone { justify-content: center; align-items: center; padding: 1rem; }
