/*
 * BobbySimmons.com
 * Minimal, document-oriented stylesheet.
 *
 * Design goals:
 * - look like a carefully typeset professional document rather than an app
 * - use only system fonts; no external font service or CSS library
 * - remain readable with very little layout machinery
 * - allow navigation to wrap naturally instead of requiring JavaScript
 */

/* ---------- Basic document setup ---------- */

:root {
    --text: #1e1e1e;
    --muted: #686868;
    --rule: #d8d8d8;
    --link: #174f7f;
    --background: #ffffff;
    --page-width: 880px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--background);
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.65;
}

.page-width {
    width: min(90%, var(--page-width));
    margin: 0 auto;
}

main {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
    margin-top: 0;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.15rem, 6vw, 3.6rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: 1.55rem;
}

h3 {
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
}

p,
ul,
dl,
blockquote {
    margin-top: 0;
    margin-bottom: 1.2rem;
}

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

a:hover {
    text-decoration-thickness: 2px;
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

hr {
    margin: 3.25rem 0;
    border: 0;
    border-top: 1px solid var(--rule);
}

.subtle-rule {
    margin: 2rem 0;
}

.meta,
.eyebrow,
.small-print {
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    line-height: 1.5;
}

.eyebrow {
    margin-bottom: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.lead {
    font-size: 1.12rem;
}

/* ---------- Accessibility ---------- */

.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 100;
    padding: 0.5rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--text);
}

/* ---------- Header and navigation ---------- */

.site-header {
    border-bottom: 1px solid var(--rule);
}

.site-header .page-width {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.25rem;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.site-name {
    white-space: nowrap;
}

.site-name a {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem 1.15rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
}

.site-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* ---------- Home page ---------- */

.hero {
    max-width: 760px;
    margin: 3rem auto 4rem;
    text-align: center;
}

.hero h1 {
    margin-bottom: 0.4rem;
}

.hero-title {
    margin-bottom: 1.5rem;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
}

.hero-summary {
    max-width: 690px;
    margin-right: auto;
    margin-left: auto;
    font-size: 1.15rem;
}


/* Footer */
.site-footer {
    padding-bottom: 2rem;
}

.site-footer hr {
    margin-top: 0;
    margin-bottom: 2rem;
}

.site-footer p {
    margin-bottom: 0.75rem;
}


/* Keep the shared site header visible while scrolling. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
}

/* Small screens */
@media (max-width: 700px) {
    body {
        font-size: 17px;
    }

    main {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .site-header .page-width {
        display: block;
    }

    .site-name {
        margin-bottom: 0.55rem;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero {
        margin-top: 1.5rem;
        margin-bottom: 2.5rem;
        text-align: left;
    }

    .hero-summary {
        margin-left: 0;
    }

    hr {
        margin: 2.5rem 0;
    }
}
