/* Reset (based on Andy Bell's "A (more) Modern CSS Reset") */

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

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin-block-end: 0;
}

ul[role='list'],
ol[role='list'] {
    list-style: none;
}

body {
    min-height: 100vh;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
button,
input,
label {
    line-height: 1.1;
}

h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

img,
picture {
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

textarea:not([rows]) {
    min-height: 10em;
}

:target {
    scroll-margin-block: 5ex;
}

/* Selection */

::selection {
    background: var(--selection-bg);
    text-shadow: none;
}

/* Base */

a {
    color: inherit;
}

hr {
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    width: 50%;
    margin: 2em auto;
    padding: 0;
}

body {
    font-family: "palatino-linotype", serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    color: var(--fg);
    background: var(--bg);
    font-size: 16pt;
}

h1 {
    font-family: "optima-lt-pro", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 42pt;
}

h2 {
    font-family: "optima-lt-pro", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 26pt;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-top: 1.5em;
}

/* Profile */

.container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.leader {
    width: 800px;
    max-width: 75%;
    margin-top: 45px;
}

.profile {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 45px;
}

@media (max-width: 500px) {
    .profile {
        flex-direction: column;
    }
}

.profile-details {
    font-family: "optima-lt-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin-left: 45px;
}

@media (max-width: 500px) {
    .profile-details {
        margin-top: 45px;
        margin-left: 0px;
        text-align: center;
    }

    .buttons {
        justify-content: center;
    }
}

.name {
    margin: 0px;
    font-weight: 400;
}

.email {
    font-family: "fira-code", monospace;
    font-weight: 300;
    font-style: normal;
    text-decoration: none;
    font-size: 18pt;
}

.buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    font-size: 18pt;
}

.button {
    margin-left: 2.5px;
    margin-right: 2.5px;
    text-decoration: inherit;
    color: inherit;
}

img.roundel {
    border-radius: 50%;
}

#headshot {
    flex-shrink: 0;
    height: 200px;
    width: 200px;
}

.home-section {
    width: 800px;
    max-width: 75%;
    margin-bottom: 30px;
}

.section-heading {
    font-weight: 700;
    margin-top: 25px;
}

/* Blog */

.content-container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
}

.content-wrapper {
    width: 1000px;
    max-width: 85%;
    margin-top: 45px;
    margin-bottom: 45px;
}

.content-wrapper h1 {
    font-size: 32pt;
}

.content-wrapper h2 {
    font-size: 22pt;
}

.content-wrapper h3 {
    font-family: "optima-lt-pro", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 18pt;
}

.post-meta {
    font-family: "optima-lt-pro", sans-serif;
    font-weight: 400;
    font-size: 14pt;
    color: var(--fg-muted);
    margin-top: 8px;
    margin-bottom: 30px;
}

.back-link {
    font-family: "optima-lt-pro", sans-serif;
    font-size: 14pt;
    margin-bottom: 20px;
}

.back-link a {
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

.post-content a {
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--link-hover);
}

.post-content code {
    font-family: "fira-code", monospace;
    font-size: 13pt;
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 3px;
}

.post-content pre {
    background: var(--code-bg);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content img {
    max-width: 100%;
}

.post-content figure {
    margin: 1.5em 0;
    padding: 0;
    text-align: center;
}

.post-content figure img {
    margin: 0 auto;
}

.post-content figcaption {
    margin-top: 8px;
    font-family: "optima-lt-pro", sans-serif;
    font-size: 12pt;
    color: var(--fg-muted);
    font-style: italic;
}

.post-content figcaption p {
    margin: 0;
}

.post-content table {
    margin: 1.5em auto;
    border-collapse: collapse;
}

.post-content th,
.post-content td {
    padding: 8px 16px;
    border: 1px solid var(--border);
}

.post-content th {
    font-family: "optima-lt-pro", sans-serif;
}

.post-content blockquote {
    border-left: 3px solid var(--border);
    margin-left: 0;
    padding-left: 20px;
    color: var(--fg-muted);
}

.post-list {
    list-style: none;
    padding-left: 0;
}

.post-list li {
    display: flex;
    flex-direction: row;
    margin-bottom: 15px;
}

.post-list .post-date {
    margin-left: auto;
    padding-left: 45px;
    font-family: "optima-lt-pro", sans-serif;
    font-size: 14pt;
    color: var(--fg-muted);
    white-space: nowrap;
}

.post-list a {
    text-decoration: none;
}

.post-list a:hover {
    text-decoration: underline;
}

/* Draft Warning */

.draft-warning {
    border: 1px solid var(--notice-border);
    background: rgba(180, 130, 50, 0.15);
    color: var(--notice-text);
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 24px;
    font-family: "optima-lt-pro", sans-serif;
    font-size: 14pt;
}
