/* stagedoorbooks.com. Black on white around the logo. System fonts only. */

:root {
    --bg: #ffffff; /* pure white: the logo file has a white ground */
    --ink: #111111;
    --muted: #666666;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.125rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* One left-aligned column, centred on the page: the logo's left edge sets the
   margin for everything under it. */
main,
footer {
    width: 100%;
    max-width: 30rem;
    padding: 0 1.5rem;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

h1 {
    margin: 0 0 2.25rem;
    line-height: 0;
}

h1 img {
    display: block;
    width: 200px;
    height: auto;
}

p {
    margin: 0;
    text-wrap: balance; /* no single word left alone on a last line */
}

.nowrap { white-space: nowrap; } /* "pop-up" never splits at its hyphen */

.lede {
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    line-height: 1.4;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

/* Instagram glyph at the start of its line; the same drawing brianguy.com uses. */
.icon svg {
    width: 1.35em;
    height: 1.35em;
    margin-right: 0.4em;
    vertical-align: -0.3em;
}

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

a:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

footer {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 600px) {
    h1 img { width: 170px; }
    .lede { font-size: 1.25rem; }
}
