/* BASE: tokens, reset, typography, page bounds. Loaded first. */

:root {
    --max-width: 1275px;

    --padding-x: 24px;
    --padding-y: 12px;

    --hashmark: 1px solid rgba(255,255,255,0.08);

    --radius: 3px;

    --nav-height: 42px;
    --text-gap: 1.25em;

    --bg: linear-gradient(135deg, #01103f 0%, #03176a 45%, #0b2d7a 100%);
    --bg-solid: #03176a;
    --figure-bg: #010e38;
    --text-color: #f5f5f5;
    --accent-color: #7db3f8;
    --muted-color: #6478a8;

    /* font scale steps (major third) */
    --text-xs: 0.64rem;
    --text-sm: 0.8rem;
    --text-base: 1rem;
    --text-md: 1.25rem;
    --text-lg: 1.563rem;
    --text-xl: 1.953rem;
    --text-2xl: 2.441rem;

    /* semantic aliases */
    --text-tag: var(--text-xs);
    --text-kicker: var(--text-sm);
    --text-body: var(--text-base);
    --text-label: var(--text-md);
    --text-heading: var(--text-lg);
    --text-title: var(--text-xl);
    --text-display: var(--text-2xl);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a,
a:visited {
    color: inherit;
    text-decoration: none;
}

body, figure,
h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
}

html {
    background-color: var(--bg-solid);
}

body {
    background: var(--bg);
    background-color: var(--bg-solid);
    color: var(--text-color);
}

p + p {
    /* spacing between paragraphs */
    margin-top: calc(var(--text-gap) / 5);
}

/* FONTS */
/* Editorial titles (Lora) */
h1, h2, .title, figcaption { font-family: "Lora", serif; font-weight: 400; }

/* Body text (Lato) */
h3, h4, h6, p, li, body { font-family: "Lato", sans-serif; font-weight: 400; }

/* Flair elements (IBM Plex Sans) */
h5, .tag { font-family: "IBM Plex Sans", sans-serif; font-weight: 700; }

h1 { font-size: var(--text-display); line-height: 1.1; }
h2 { font-size: var(--text-title); line-height: 1.2; }
h3 { font-size: var(--text-heading); line-height: 1.3; }
h4 { font-size: var(--text-label); line-height: 1.4; }
h5 { font-size: var(--text-kicker); line-height: 1.5; }
h6 { font-size: var(--text-tag); line-height: 1.6; }
p { font-size: var(--text-body); line-height: 1.5; }

.bounds {
    max-width: var(--max-width);
    width: calc(100% - (var(--padding-x) * 2));
    margin: 0 auto;
}
