/* Minimal Blog - A Free Design by Bryant Smith (bryantsmith.com)

   This stylesheet is arranged in short sections. Look for the headings
   below to find what you want to change. The whole page uses just one
   background colour, two text greys and a single accent colour. */


/* ---- COLOUR PALETTE: change these first ---- */

:root {
    --paper:  #faf8f4;   /* the page background          */
    --ink:    #1f1d1a;   /* main text, nearly black      */
    --muted:  #6b6560;   /* dates and small labels       */
    --faint:  #b3aca3;   /* the quietest grey            */
    --accent: #a13d24;   /* links: the only colour here  */
    --accent-dark: #7d2f1b; /* links when hovered       */
}


/* ---- RESET: a small, sensible starting point ---- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ---- BODY: the page itself, and the text measure ---- */

body {
    background: var(--paper);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.125rem;      /* 18px */
    line-height: 1.85;        /* wide, easy reading */
    padding: 5.5rem 1.5rem 4rem;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

#page {
    margin: 0 auto;
    max-width: 760px;
    text-align: left;
}


/* ---- HEADER: the title block at the top ---- */

#masthead {
    margin-bottom: 4.5rem;
    text-align: center;
}

.eyebrow {
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

#masthead h1 {
    font-size: clamp(2.5rem, 7vw, 3.75rem);
    font-weight: normal;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

#masthead h1 a,
#masthead h1 a:visited {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

#masthead h1 a:hover {
    color: var(--accent);
}

.tagline {
    color: var(--muted);
    font-size: 1.05rem;
    font-style: italic;
    margin: 1.5rem auto 0;
    max-width: 34rem;
}


/* ---- MENU: a plain row of text links ---- */

#menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    justify-content: center;
    margin-bottom: 5rem;
}

#menu a,
#menu a:visited {
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

#menu a:hover,
#menu a:focus-visible {
    color: var(--accent);
}


/* ---- TEXT: the reading column ---- */

#content p {
    margin-bottom: 1.75rem;
    max-width: 65ch;          /* keeps lines a comfortable length */
}

.lead {
    color: #3a3631;
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 4.5rem;
}

#content a,
#content a:visited {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

#content a:hover {
    color: var(--accent-dark);
    text-decoration-color: var(--accent-dark);
}

#content a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    text-decoration: none;
}

code {
    background: rgba(31, 29, 26, 0.05);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.85em;
    padding: 0.1em 0.35em;
}


/* ---- HEADINGS: a clear type scale ---- */

h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: normal;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0 0 1.5rem;
}

h3 {
    font-size: 1.3rem;
    font-weight: normal;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 3rem 0 1.25rem;
}

/* The space above a heading is larger than the space below it, so the
   heading clearly belongs to the text that follows. */

.post h2 a,
.post h2 a:visited {
    color: var(--ink);
    text-decoration: none;
}

.post h2 a:hover {
    color: var(--accent);
}

.section-title {
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 0.74rem;
    font-weight: bold;
    letter-spacing: 0.22em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}


/* ---- POST META: the small line above an article ---- */

.post-meta {
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.date {
    color: var(--muted);
}


/* ---- ARTICLE: spacing around a piece of writing ---- */

.post {
    margin-bottom: 6rem;
}

.post blockquote {
    margin: 3.5rem 0;
    max-width: 60ch;
    position: relative;
}

blockquote p {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.55;
    text-indent: 0.6em;
}

blockquote p::before {
    color: var(--accent);
    content: "\201C";
    margin-left: -0.6em;
}

blockquote .attribution {
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    font-style: normal;
    letter-spacing: 0.08em;
    margin-top: 1rem;
    text-indent: 0;
    text-transform: uppercase;
}

blockquote .attribution::before {
    content: none;
}


/* ---- ARCHIVE: the list of recent posts ---- */

.archive {
    margin-bottom: 6rem;
}

.posts {
    list-style: none;
}

.posts li {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    padding: 1.1rem 0;
}

.posts .date {
    flex: 0 0 9rem;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.posts a,
.posts a:visited {
    color: var(--ink);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.posts a:hover {
    color: var(--accent);
}

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


/* ---- HOW TO USE: the friendly note for beginners ---- */

.how-to p {
    color: #3a3631;
}


/* ---- FOOTER: the required credit link ---- */

#footer {
    color: var(--faint);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    margin-top: 7rem;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer a:hover {
    color: var(--accent);
}


/* ---- SMALL SCREENS: tighten the whitespace on phones ---- */

@media (max-width: 640px) {
    body {
        font-size: 1.0625rem;
        padding: 3rem 1.25rem 3rem;
    }

    #masthead {
        margin-bottom: 3rem;
    }

    #menu {
        gap: 1.25rem;
        margin-bottom: 3.5rem;
    }

    .lead {
        font-size: 1.2rem;
        margin-bottom: 3.5rem;
    }

    .post,
    .archive {
        margin-bottom: 4rem;
    }

    .posts li {
        display: block;
        padding: 1rem 0;
    }

    .posts .date {
        display: block;
        margin-bottom: 0.25rem;
    }

    blockquote p {
        font-size: 1.3rem;
    }
}


/* ---- PRINT: a clean sheet of paper ---- */

@media print {
    body {
        background: #ffffff;
        color: #000000;
        font-size: 12pt;
        padding: 0;
    }

    #menu {
        display: none;
    }

    #masthead {
        margin-bottom: 2rem;
    }

    .post,
    .archive {
        margin-bottom: 2rem;
    }

    #footer {
        margin-top: 3rem;
    }
}
