@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/v1/eb-garamond-latin-400.woff2') format('woff2');
}

/* Gravity's Rainbow Blueprint Theme */

html, body {
    min-height: 100vh; /* Ensure the body covers the full viewport height */
}

body {
    font-family: 'EB Garamond', serif;
    background-color: #0f2a73;
    /* Source: NASA Historical Office, "Technical Data on the Development of the A-4 (V-2)",
       H.A. Schulze, Fig. comparison of German rockets A-3/A-5/A-4. Public domain.
       https://archive.org/details/technicaldescriptionA4 */
    background-image:
        linear-gradient(180deg, rgba(15, 42, 115, 0.85) 0, rgba(15, 42, 115, 0.0) 140px),
        url("/static/v1/v2_blueprint.webp");
    background-size: 100% 140px, cover;
    background-position: top center, center center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll, fixed;
    color: #a0cfee; /* Light blue for blueprint lines/text */
    margin: 0;
    padding: 0;
    font-size: 18px;
    text-rendering: optimizeLegibility;
}

/* Empty header keeps the card at its pre-nav-removal position */
header {
    background: transparent;
    border-bottom: 2px solid #5a678e;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

nav {
    min-height: 1.7rem; /* Height the nav links used to occupy */
}

/* White content box like the title block on the cover */
main {
    max-width: 820px;
    margin: 2rem auto;
    background: #f6efe3 !important; /* Warm cream like the cover */
    color: #000000 !important; /* Force black text */
    padding: 3rem;
    border: 6px solid #050505;
    color-scheme: light; /* Prevent browser dark-mode inversion */
    text-align: left; /* Left-aligned body text; multi-line centered text is hard to read */
    position: relative;
    z-index: 0;
    box-shadow: none;
}

main::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 4px solid #f6efe3;
    z-index: -1;
    background: transparent;
}

footer {
    text-align: center;
    color: #5a678e; /* Muted blue for the footer */
    font-size: 1rem;
    margin: 3rem 0 1rem 0;
}

h1, h2, h3 {
    font-family: 'EB Garamond', serif;
    color: #000000; /* Black headings inside the white box */
    font-weight: 400;
    letter-spacing: 0.04rem;
    text-align: center; /* Headings stay centered for the title-block look */
}

main p {
    max-width: 62ch; /* Comfortable reading measure */
    margin: 0 auto 1.25rem;
    line-height: 1.7;
    font-size: 1.15rem;
}

/* Short link rows read fine centered, unlike running prose */
.social-links p {
    text-align: center;
    margin-top: 2.5rem;
}

h1 {
    font-size: 2.2rem;
    margin-top: 0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative; /* For the custom border */
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px; /* Adjust this value to make the line shorter or longer */
    height: 1px;
    background-color: #050505;
}

h2 {
    font-size: 2.4rem; /* Reduced from 2.8rem */
    margin-top: 0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Styling for links inside the main content */
main a {
    color: #1a183d;
    text-decoration: underline;
}

main a:hover {
    color: #0056b3;
}
