:root {
    --desktop: #386c69;
    --paper: #f7f6f0;
    --ink: #202522;
    --muted: #535b56;
    --chrome: #d0d0c8;
    --navy: #172f57;
    --line: #b8bcb3;
    --accent: #285c56;
    color-scheme: light
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--desktop);
    color: var(--ink);
    font: 17px/1.6 Arial,Helvetica,sans-serif;
    padding: 26px 40px 18px
}

a {
    color: inherit;
    text-underline-offset: 4px
}

a: hover {
    color: var(--accent)
}

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

.desktop-label,.desktop-footer {
    max-width: 1200px;
    margin: 0 auto;
    color: #f5f5ec;
    font: 12px/1.5 'Courier New',monospace
}

.desktop-label {
    margin-bottom: 12px
}

.desktop-footer {
    margin-top: 13px;
    text-align: right
}

.site-window {
    max-width: 1200px;
    margin: auto;
    padding: 5px;
    background: var(--chrome);
    border: 2px solid;
    border-color: #f5f5ed #363c37 #363c37 #f5f5ed;
    box-shadow: 7px 7px 0 #254e4b
}

.title-bar {
    background: var(--navy);
    color: white;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 12px;
    font: 700 13px/1.4 Tahoma,Arial,sans-serif
}

.title-bar span:last-child {
    font-weight: 400
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 7px 9px;
    border-bottom: 1px solid #858b82;
    font: 14px/1.4 Tahoma,Arial,sans-serif
}

nav a {
    padding: 8px 14px;
    text-decoration: none;
    min-height: 36px
}

nav a:first-child {
    margin-right: auto
}

nav a:hover {
    background: #e5e5df;
    color: var(--ink)
}

nav a[aria-current=page] {
    background: var(--paper);
    box-shadow: inset 1px 1px #7f857c,inset -1px -1px white
}

main {
    background: var(--paper);
    padding: 55px 62px 70px;
    min-height: 65vh;
    border: 1px solid;
    border-color: #83877f white white #83877f;
    overflow-wrap: anywhere
}

.section-label,.row-number,.row-type {
    font: 12px/1.5 'Courier New',monospace;
    color: var(--muted)
}

.section-label {
    display: flex;
    justify-content: space-between;
    gap: 16px
}

h1,h2,h3,p {
    margin-top: 0
}

h1,h2,h3 {
    line-height: 1.08;
    letter-spacing: -.045em
}

h1 {
    font-size: clamp(42px,6vw,78px);
    margin-bottom: 28px
}

h2 {
    font-size: 30px
}

h3 {
    font-size: 25px
}

.hero h1 {
    font-size: clamp(52px,7.4vw,96px);
    line-height: 1.01;
    letter-spacing: -.06em;
    margin: 36px 0 30px
}

.hero h1 span {
    color: var(--accent)
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 35px;
    padding-bottom: 49px
}

.hero-bottom p {
    max-width: 510px;
    margin: 0;
    font-size: 18px;
    line-height: 1.65
}

.retro-button {
    display: inline-flex;
    justify-content: space-between;
    gap: 26px;
    align-items: center;
    flex-shrink: 0;
    background: var(--chrome);
    padding: 10px 16px;
    border: 2px solid;
    border-color: white #6a7067 #6a7067 white;
    font: 14px/1.5 Tahoma,Arial,sans-serif;
    text-decoration: none;
    min-height: 44px
}

.retro-button:hover {
    background: #e3e4da;
    color: var(--ink)
}

.retro-button:active {
    border-color: #6a7067 white white #6a7067
}

.index-section {
    border-top: 2px solid var(--ink)
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px 0 17px
}

.section-heading h2 {
    font-size: 25px;
    margin: 0
}

.project-row {
    display: grid;
    grid-template-columns: 36px 1fr 95px 25px;
    gap: 22px;
    align-items: start;
    padding: 25px 0;
    border-top: 1px solid var(--line);
    text-decoration: none
}

.project-row h3 {
    margin: 0 0 9px
}

.project-row p {
    max-width: 540px;
    font-size: 15px;
    color: var(--muted);
    margin: 0
}

.row-number,.row-type {
    padding-top: 5px
}

.row-arrow {
    font-size: 23px
}

.project-row:hover h3 {
    text-decoration: underline;
    text-underline-offset: 5px
}

.closing-note {
    border-top: 2px solid var(--ink);
    margin-top: 24px;
    padding-top: 26px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 20px
}

.closing-note p {
    font-size: 29px;
    line-height: 1.3;
    letter-spacing: -.03em;
    margin: 0
}

footer {
    display: flex;
    gap: 4px;
    padding-top: 5px;
    font: 11px/1.5 Tahoma,Arial,sans-serif
}

footer>* {
    padding: 5px 10px;
    border: 1px solid;
    border-color: #91978e #f9f9f3 #f9f9f3 #91978e
}

.footer-note {
    margin-left: auto;
    flex: 1;
    text-align: right
}

.prose {
    max-width: 760px
}

.prose h1 {
    font-size: clamp(36px,5vw,66px)
}

.prose h2 {
    margin: 42px 0 18px;
    font-size: 27px
}

.prose h3 {
    margin: 28px 0 16px;
    font-size: 21px
}

.prose p,.prose li {
    line-height: 1.8
}

.prose li+li {
    margin-top: 10px
}

.prose pre {
    overflow: auto
}

.prose img {
    max-width: 100%
}

.page-intro {
    max-width: 710px;
    margin-bottom: 42px
}

.page-intro>.section-label {
    margin-bottom: 22px
}

.page-intro p {
    font-size: 19px;
    color: var(--muted)
}

.text-section {
    max-width: 710px;
    margin-top: 40px
}

.text-section li {
    margin-bottom: 12px
}

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

.post-list a {
    display: block;
    text-decoration: none;
    padding: 25px 0;
    border-top: 1px solid var(--line)
}

.post-list h2 {
    margin: 9px 0 0
}

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

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px
}

.empty-note {
    padding: 24px;
    border: 1px solid var(--line);
    max-width: 700px
}

.empty-note p:last-child {
    margin: 0
}

.skip-link {
    position: absolute;
    left: 20px;
    top: -100px;
    z-index: 2;
    background: var(--paper);
    padding: 12px
}

.skip-link:focus {
    top: 10px
}

@media(max-width:800px) {
    body {
        padding: 18px
    }

    main {
        padding: 35px 28px 45px
    }

    .hero-bottom {
        display: block
    }

    .hero-bottom .retro-button {
        margin-top: 24px
    }

    .project-row {
        grid-template-columns: 26px 1fr 22px;
        gap: 14px
    }

    .row-type {
        grid-column: 2;
        padding-top: 0
    }

    .row-arrow {
        grid-column: 3;
        grid-row: 1
    }

    .section-heading {
        align-items: flex-start
    }

    .section-heading .section-label {
        max-width: 105px;
        text-align: right
    }

    .footer-note {
        display: none
    }

    footer>*:first-child {
        flex: 1
    }

}

@media(max-width:480px) {
    body {
        padding: 10px 8px 15px
    }

    .desktop-label {
        font-size: 11px;
        margin-bottom: 8px
    }

    main {
        padding: 28px 19px 38px
    }

    nav {
        gap: 0;
        padding: 5px 2px
    }

    nav a {
        padding: 10px 9px;
        font-size: 13px
    }

    nav a:first-child {
        margin-right: 0
    }

    .hero h1 {
        font-size: clamp(42px,11vw,53px);
        margin-top: 30px
    }

    .hero-bottom p {
        font-size: 17px
    }

    .hero-bottom {
        padding-bottom: 32px
    }

    .section-heading h2 {
        font-size: 23px
    }

    .section-heading .section-label {
        font-size: 10px
    }

    .project-row h3 {
        font-size: 23px
    }

    .closing-note {
        display: block
    }

    .closing-note p {
        margin: 20px 0
    }

    .desktop-footer {
        text-align: left;
        font-size: 10px
    }

}

.sound-toggle {
    background: var(--chrome);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    min-height: 32px;
    border-color: white #6a7067 #6a7067 white
}

.sound-toggle:hover {
    background: #e3e4da
}

.sound-toggle:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 2px
}

.sound-toggle:active {
    border-color: #6a7067 white white #6a7067
}
