:root {
    color-scheme: light;
    --ink: #37352f;
    --muted: #9a9a95;
    --nav: #888888;
    --line: #eeeeee;
    --highlight: #eaf6ff;
    --paper: #ffffff;
}

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

::selection {
    color: #1a1a1a;
    background: var(--highlight);
}

::-moz-selection {
    color: #1a1a1a;
    background: var(--highlight);
}

input::selection,
textarea::selection {
    color: #1a1a1a;
    background: var(--highlight);
}

input::-moz-selection,
textarea::-moz-selection {
    color: #1a1a1a;
    background: var(--highlight);
}

body {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 40px;
    color: var(--ink);
    background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: rgba(55, 53, 47, 0.35);
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-color: var(--ink);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #8dc8f3;
    outline-offset: 4px;
}

.site-header {
    display: flex;
    width: 100%;
    max-width: 640px;
    align-items: baseline;
    justify-content: space-between;
    gap: 60px;
    margin: 0 auto 80px;
    flex-wrap: nowrap;
}

.site-brand {
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 500;
    text-decoration: none;
}

.site-nav {
    display: flex;
    gap: 28px;
}

.site-nav a {
    color: var(--nav);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--ink);
}

.page {
    max-width: 640px;
    margin: 0 auto;
}

.page-title {
    margin-bottom: 40px;
    color: var(--ink);
    font-size: 2.1rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.25;
}

.home-intro {
    max-width: 580px;
    color: var(--ink);
    font-size: 1.18rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.7;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.subscribe {
    width: 100%;
    margin-top: 136px;
}

.subscribe-form {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 18px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s ease;
}

.subscribe-form:hover,
.subscribe-form.has-value {
    border-bottom-color: #ddddda;
}

.subscribe-form:focus-within {
    border-bottom-color: var(--ink);
}

.subscribe-form input[type="email"] {
    min-width: 0;
    flex: 1;
    padding: 7px 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    -webkit-appearance: none;
}

.subscribe-form input[type="email"]::placeholder {
    color: #b2b2ad;
    opacity: 1;
}

.subscribe-form input[type="email"]:-webkit-autofill,
.subscribe-form input[type="email"]:-webkit-autofill:hover,
.subscribe-form input[type="email"]:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px var(--highlight) inset;
    -webkit-box-shadow: 0 0 0 1000px var(--highlight) inset;
    -webkit-text-fill-color: var(--ink);
    caret-color: var(--ink);
}

.subscribe-form button {
    flex: 0 0 auto;
    padding: 7px 0;
    border: 0;
    border-radius: 0;
    color: var(--nav);
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    line-height: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(55, 53, 47, 0.35);
    text-underline-offset: 2px;
    cursor: pointer;
    -webkit-appearance: none;
}

.subscribe-form button:hover {
    color: var(--ink);
    text-decoration-color: var(--ink);
}

.subscribe-form button:disabled {
    color: var(--muted);
    cursor: default;
    opacity: 0.55;
}

.subscribe-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.subscribe-status {
    min-height: 1.2em;
    margin-top: 7px;
    color: var(--muted);
    font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
    font-size: 0.7rem;
    letter-spacing: 0;
    line-height: 1.5;
}

.subscribe-status.is-success {
    color: var(--ink);
}

.subscribe-status.is-error {
    color: #8b5e5e;
}

.home-archive {
    margin-top: 18px;
}

.section-heading {
    margin-bottom: 16px;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: var(--ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.archive-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.archive-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 28px;
    align-items: baseline;
    margin: 0 -12px;
    padding: 18px 12px;
    border-radius: 3px;
    color: var(--ink);
    background: transparent;
    text-decoration: none;
    transition: background-color 0.18s ease;
}

.archive-title {
    min-width: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
}

.archive-date {
    color: var(--muted);
    font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
    font-size: 0.76rem;
    letter-spacing: 0;
    line-height: 1.5;
    white-space: nowrap;
}

.archive-link:hover {
    background: #f7f7f5;
}

.archive-all {
    display: inline-block;
    margin-top: 18px;
    color: var(--muted);
    font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
    font-size: 0.76rem;
    letter-spacing: 0;
    text-decoration: none;
}

.archive-all:hover {
    color: var(--ink);
}

.about-intro {
    margin: -24px 0 40px;
    color: var(--muted);
    font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.6;
}

.about-copy p {
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.7;
}

.about-signoff {
    margin-top: 28px;
}

.error-page {
    padding-top: 16px;
}

.error-code {
    color: var(--ink);
    font-family: "STK Bureau Serif Brand", Georgia, serif;
    font-size: 6rem;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.9;
}

.error-copy {
    margin-top: 28px;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.6;
}

.error-home {
    display: inline-block;
    margin-top: 18px;
    color: var(--muted);
    font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
    font-size: 0.76rem;
    letter-spacing: 0;
    text-decoration: none;
}

.error-home:hover {
    color: var(--ink);
}

.audio-toggle {
    position: fixed;
    z-index: 20;
    top: 28px;
    right: max(8px, calc((100vw - 760px) / 2 - 48px));
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    opacity: 0.82;
}

.audio-toggle:hover {
    color: var(--ink);
    opacity: 1;
}

.audio-toggle svg {
    display: block;
    width: 22px;
    height: 22px;
}

.audio-toggle .mute-slash {
    display: none;
}

.audio-toggle.is-muted .sound-wave {
    display: none;
}

.audio-toggle.is-muted .mute-slash {
    display: block;
}

@media (max-width: 600px) {
    body {
        padding: 40px 20px 56px;
    }

    .site-header {
        flex-direction: row;
        gap: 20px;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: 64px;
    }

    .site-nav {
        gap: 18px;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .home-intro {
        font-size: 1.05rem;
    }

    .error-code {
        font-size: 4.75rem;
    }

    .subscribe {
        margin-top: 104px;
    }

    .home-archive {
        margin-top: 22px;
    }

    .archive-link {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .audio-toggle {
        top: auto;
        right: 16px;
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav a {
        transition: none;
    }

    .subscribe-form {
        transition: none;
    }

    .archive-link {
        transition: none;
    }
}
