/* Base (dark redesign): reset, typography defaults, helpers. Owner: Site role. Tokens: tokens.css. */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--night); }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--night);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: inherit; text-wrap: balance; }
p { margin: 0 0 .9rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }
img { border: 0; }
picture { display: contents; } /* <x-media.img> wraps images in <picture>: layouts behave as with a bare <img> */
a { color: var(--mint); text-decoration: none; background-color: transparent; }
a:hover, a:active { color: var(--ink); }
button { font: inherit; }
iframe { border: 0; }
::selection { background: rgba(0, 216, 193, .35); color: #fff; }

.icon { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.125em; }

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

.sr-only {
    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;
    top: -100px;
    left: 8px;
    z-index: 100001;
    padding: 10px 18px;
    background: var(--mint);
    color: var(--on-mint);
    font-family: var(--font-display);
    font-size: var(--text-body);
    font-weight: 600;
    border-radius: 999px;
}
.skip-link:focus { top: 8px; color: var(--on-mint); }

/* Focus: mint ring with a dark gap, visible on every surface */
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

/* Responsive visibility */
@media (max-width: 767px) { .hide-mobile { display: none !important; } }

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