:root {
    --bg-color: #fafafa;
    --text-color: #444;
    --text-color-dim: #555;
    --link-color: hsl(209, 59%, 34%);
    --link-color-hover: red;
    --link-color-active: blue;
    --link-color-active-bg: rgba(0, 0, 255, 0.16);
    --link-color-light: blue;
    --subtle-border-color: #ddd;
    --subtle-background-color: #f7f7f7;
}

body,
h1,
h2,
p {
    margin: 0;
    padding: 0;
    font: inherit;
}

html {
    font:
        16px -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Roboto",
        "Oxygen",
        "Ubuntu",
        "Cantarell",
        "Fira Sans",
        "Droid Sans",
        "Helvetica Neue",
        sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    font-weight: 300;
    line-height: 1.66;
    min-height: 100vh;
}

body {
    box-sizing: border-box;
    min-height: 100vh;
    padding: 3rem 2rem 4rem;
}

/* https://css-tricks.com/css-fix-for-100vh-in-mobile-webkit/ */
@media screen and (max-device-width: 1000px) {
    html,
    body {
        min-height: -webkit-fill-available;
    }
}

.container {
    max-width: 50ex;
    margin: 0 auto;
}

h1,
h2,
h3,
strong {
    font-weight: 500;
    color: var(--text-color-dim);
}
h1 {
    font-size: 2rem;
    margin: 1rem 0 1rem;
    font-weight: 400;
    line-height: 1.33;
}
h2 {
    font-size: 1.66rem;
    margin: 2rem 0 1rem;
}
h3 {
    font-size: 1.3rem;
    margin: 1.2rem 0 0.6rem;
}
p,
li ul,
summary {
    margin-bottom: 0.66rem;
}

ol,
ul {
    padding-left: 1.4rem;
}
li {
    margin-bottom: 0.4rem;
}

blockquote {
    margin-inline: 2rem;
    font-style: italic;
    font-size: 0.9rem;
}

@media screen and (min-width: 650px) and (min-device-width: 650px) {
    html {
        font-size: 16px;
    }
    body {
        padding: 3rem 4rem 4rem;
    }
    .container {
        max-width: 60ex;
    }
}
@media screen and (min-width: 800px) and (min-device-width: 800px) {
    html {
        font-size: 19px;
    }
}

a {
    cursor: pointer;
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--link-color-light);
    background: transparent;
    transition:
        background 0.25s,
        border-color 0.25s;

    &:hover,
    &:active {
        border-color: transparent;
        background: var(--link-color-active-bg);
    }
}

pre {
    white-space: pre-wrap;
    font-size: 0.8rem;
    margin-block: 1.33rem;
    padding: 0.8rem;
    background: #fff;
    border: 1px solid var(--subtle-border-color);
    border-radius: 0.5rem;
}

code {
    font-size: 0.87rem;
}

p.lead {
    font-size: 1.33rem;
}

/* -- top text navigation ---------------------------------------------------- */

.textnav {
    padding-bottom: 1em;
    margin-bottom: 1.5em;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}
.textnav__item {
    margin: 0 0.15em;
}
.textnav__sep {
    color: var(--subtle-border-color);
    margin: 0 0.15em;
}
.textnav__item--current > a {
    border-bottom: none;
}
.textnav__item--active {
    font-weight: 500;
}
.textnav__item--active > a {
    color: inherit;
}

/* -- page header ------------------------------------------------------------ */

.page-header--intro {
    margin: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    font-style: italic;
}

/* -- job list (home page) --------------------------------------------------- */

.job-list {
    margin-top: 1.5rem;
}

.job-item {
    display: block;
    margin-bottom: 2rem;
    line-height: 1.6;

    color: inherit;
    font-weight: inherit;
    border-bottom: none;
    transition: color 0.2s;

    &:hover {
        color: inherit;
        background: transparent;
    }

    &:last-child {
        margin-bottom: 0;
    }
}

.job-item__title {
    font-size: 1.2rem;
    margin: 0 0 0.3rem 0;
    text-align: left;
    font-weight: 500;
    color: var(--text-color-dim);
}
.job-item:hover .job-item__title {
    color: var(--link-color);
}

.job-item__meta {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-color-dim);
    opacity: 0.75;
    margin-bottom: 0.4rem;
}

.job-item__summary {
    color: var(--text-color);
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 300;
    margin: 0;
    opacity: 0.9;
}

/* -- job page --------------------------------------------------------------- */

.job__header {
    margin-bottom: 1.5rem;
}
.job__meta {
    font-size: 0.85rem;
    color: var(--text-color-dim);
    opacity: 0.8;
    margin-top: -0.3rem;
}
.job__lead {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-color-dim);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* -- call to action --------------------------------------------------------- */

.cta {
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid var(--subtle-border-color);
    padding: 1.5rem 2rem;
    margin: 3rem 0 0;
    border-radius: 0.5rem;
    background: var(--subtle-background-color);
}
.cta__title {
    font-size: 1.2rem;
    text-align: center;
    font-weight: 400;
}

details {
    padding-inline: 2rem;
}

summary {
    margin-inline: -2rem;
    margin-bottom: 0.6rem;
    cursor: pointer;
}
