@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root {
    color-scheme: light;
    --bg: #f6f5ef;
    --ink: #263e37;
    --muted: #737a70;
    --line: #ddded3;
    --accent: #35634f;
    --card: #eeeee4;
    --sky-top: #d6e5dd;
    --sky-bottom: #e8eadd;
    --sea-top: #7bb0a6;
    --sea-bottom: #3e9184;
    --sand-top: #e3d5b1;
    --sand-bottom: #ebe0c5;
    --bird: #617b72
}

:root[data-theme=dark] {
    color-scheme: dark;
    --bg: #14251f;
    --ink: #e5e7d9;
    --muted: #a4b1a3;
    --line: #35463b;
    --accent: #adc8a5;
    --card: #20362b;
    --sky-top: #1c3544;
    --sky-bottom: #526c6a;
    --sea-top: #477e80;
    --sea-bottom: #285a60;
    --sand-top: #8b8c73;
    --sand-bottom: #a09d7c;
    --bird: #c3d0bf
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 35px
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.7 'DM Sans', sans-serif;
    transition: background .35s, color .35s
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit
}

button,
a,
summary {
    -webkit-tap-highlight-color: transparent
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px
}

::selection {
    background: #b6d2b3;
    color: #203a30
}

.wrap {
    max-width: 1240px;
    width: calc(100% - 112px);
    margin-inline: auto
}

.header {
    height: 106px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line)
}

.wordmark {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 32px;
    letter-spacing: -3px;
    line-height: 1
}

.wordmark span {
    color: #8ca480;
    display: inline-block;
    margin-left: 3px;
    font-size: 34px
}

.header nav {
    display: flex;
    gap: 34px;
    font-size: 13px
}

.header nav a {
    transition: color .2s
}

.header nav a:hover,
.header nav a[aria-current=page] {
    color: #84997a
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.library-access,
.theme-toggle {
    height: 37px;
    width: 37px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    display: grid;
    place-items: center
}

.library-access {
    font-size: 16px;
    line-height: 1;
    transition: color .2s, border-color .2s
}

.library-access:hover,
.library-access[aria-current=page] {
    color: #84997a;
    border-color: #84997a
}

.theme-icon {
    font-size: 23px;
    line-height: 1
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 42px;
    padding-top: 64px;
    padding-bottom: 98px;
    min-height: 700px
}

.eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.65px;
    display: flex;
    align-items: center;
    gap: 9px;
    line-height: 1.6
}

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

h1,
h2,
h3 {
    font-family: 'Manrope', sans-serif
}

h1 {
    font-size: clamp(42px, 4.55vw, 64px);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -3.5px;
    margin: 24px 0
}

em {
    font-family: Georgia, serif;
    font-weight: 400;
    color: var(--accent)
}

h1 em {
    white-space: nowrap
}

p {
    color: var(--muted)
}

.hero-copy>p {
    font-size: 15px;
    line-height: 1.9;
    max-width: 405px;
    margin-bottom: 29px
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 27px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    background: var(--ink);
    color: var(--bg);
    font-size: 12px;
    font-weight: 500;
    padding: 13px 21px;
    border-radius: 4px;
    transition: transform .2s, opacity .2s
}

.button:hover {
    transform: translateY(-3px);
    opacity: .85
}

.button span {
    font-size: 18px
}

.text-link {
    font-size: 12px;
    border-bottom: 1px solid transparent;
    padding-block: 5px
}

.text-link:hover {
    border-color: var(--ink)
}

.hero-note {
    color: var(--muted);
    font-size: 10px;
    display: flex;
    gap: 9px;
    align-items: center;
    margin-top: 42px
}

.hero-note>span:first-child {
    font-size: 15px
}

.note-divider {
    opacity: .45;
    margin-inline: 3px
}

.coast {
    position: relative;
    isolation: isolate;
    border-radius: 48% 48% 6px 6px;
    overflow: hidden;
    aspect-ratio: 1.02;
    box-shadow: 0 18px 40px #213e3610;
    transform: perspective(1100px) rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg));
    transition: transform .4s ease-out
}

.coast-art {
    width: 110%;
    height: 110%;
    position: absolute;
    left: -5%;
    top: -5%;
    transform: translateY(var(--scroll-offset, 0px))
}

.wave-symbol {
    font-size: 22px
}

.moon,
.stars {
    opacity: 0
}

.sun,
.sun-glow,
.moon,
.stars {
    transition: opacity .7s
}

[data-theme=dark] .moon,
[data-theme=dark] .stars {
    opacity: 1
}

[data-theme=dark] .sun,
[data-theme=dark] .sun-glow {
    opacity: 0
}

.rolling-wave {
    animation: swell 7s ease-in-out infinite
}

.shore-foam {
    animation: foam 7s ease-in-out infinite
}

.birds {
    animation: drift 11s ease-in-out infinite
}

.scroll-cue {
    position: absolute;
    bottom: 31px;
    left: 0;
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 19px
}

.scroll-cue span {
    font-size: 8px;
    letter-spacing: 1.8px;
    color: var(--muted)
}

.ticker {
    overflow: hidden;
    border-block: 1px solid var(--line);
    padding: 17px 0;
    background: var(--card)
}

.ticker>div {
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 54px;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--muted)
}

.ticker>span {
    font-size: 19px;
    color: #8c9e7a
}

.section {
    padding-block: 90px
}

.section-label {
    color: var(--muted);
    margin-bottom: 20px
}

h2 {
    font-size: 34px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -1.3px;
    margin-bottom: 0
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    border-bottom: 1px solid var(--line)
}

.about-copy p {
    font-size: 14px;
    line-height: 1.9
}

.about-copy p:last-of-type {
    margin-bottom: 23px
}

.interest-tags,
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.interest-tags span {
    font-size: 10px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--muted)
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 38px
}

.section-aside {
    font-size: 9px;
    letter-spacing: 1.3px;
    color: var(--muted);
    padding-bottom: 7px
}

.job {
    border-top: 1px solid var(--line)
}

.job:last-child {
    border-bottom: 1px solid var(--line)
}

.job summary {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    cursor: pointer;
    padding: 24px 0
}

.job summary::-webkit-details-marker {
    display: none
}

.company-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 23px;
    font-weight: 700
}

.northflank {
    background: #eee9fb;
    color: #7961c0
}

.trebol {
    background: #e2eddf;
    color: #508551
}

.qs {
    background: #f4e8c7;
    color: #b4861e;
    font-size: 19px
}

.rocket {
    background: #e3e9f4;
    color: #4676ad;
    font-size: 28px
}

.astro {
    background: #ebe5f0;
    color: #81698a
}

.job-title {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1
}

.job-title strong {
    font-size: 15px;
    font-weight: 550;
    display: flex;
    gap: 12px;
    align-items: center
}

.job-title>span {
    font-size: 12px;
    color: var(--muted)
}

.badge {
    font-size: 7px;
    color: var(--accent);
    letter-spacing: 1px;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 2px 5px;
    white-space: nowrap
}

.small-label {
    font-size: 9px;
    color: var(--muted);
    font-weight: 400
}

.job-date {
    text-align: right;
    font-size: 11px;
    color: var(--muted)
}

.job-date span {
    display: block;
    font-size: 10px;
    opacity: .75
}

.expand {
    font-size: 20px;
    color: var(--muted);
    width: 16px;
    margin-left: 16px;
    transition: transform .2s
}

.job[open] .expand {
    transform: rotate(45deg)
}

.job-content {
    margin-left: 65px;
    padding: 0 60px 27px 0;
    max-width: 850px;
    color: var(--muted);
    font-size: 13px
}

.job-content p {
    margin-bottom: 12px
}

.job-content ul {
    padding-left: 16px;
    margin: 12px 0 18px
}

.job-content li {
    padding-left: 4px;
    margin-block: 7px
}

.skills span {
    font-size: 9px;
    border-radius: 3px;
    background: var(--card);
    padding: 3px 9px;
    color: var(--muted)
}

.library-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 7px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 405px;
    overflow: hidden
}

.library-copy {
    padding: 49px 0 46px 48px
}

.library-copy h1,
.library-copy h2 {
    font-size: 42px
}

.library-copy h1 {
    letter-spacing: -2.2px;
    margin: 0
}

.library-copy p {
    font-size: 13px;
    max-width: 345px;
    margin: 20px 0 24px
}

.library-note {
    display: block;
    font-size: 7px;
    letter-spacing: 1.6px;
    color: var(--muted);
    margin-top: 22px
}

.library-pending {
    font-size: 12px;
    display: inline-flex;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px
}

.book-scene {
    position: relative;
    align-self: center;
    height: 310px;
    perspective: 1000px
}

.book {
    position: absolute;
    border-radius: 3px 7px 7px 3px;
    box-shadow: inset 5px 0 8px #0002, 5px 9px 15px #12261a20;
    z-index: 2;
    transition: transform .5s
}

.book-one {
    background: #c6a879;
    color: #4f4c38;
    width: 122px;
    height: 180px;
    left: 14%;
    top: 70px;
    transform: rotate(-17deg);
    padding: 23px 16px;
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.3
}

.book-one small {
    position: absolute;
    bottom: 17px;
    left: 17px;
    font: 9px 'DM Sans', sans-serif
}

.book-two {
    background: #3c5a45;
    color: #eee6c8;
    width: 143px;
    height: 202px;
    left: 38%;
    top: 50px;
    transform: rotate(9deg);
    padding: 26px 21px;
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1.3
}

.book-two>div {
    font-size: 51px;
    text-align: center;
    margin-top: 5px;
    color: #bfc29a
}

.book-two small {
    font: 6px 'DM Sans', sans-serif;
    letter-spacing: 2px;
    position: absolute;
    bottom: 19px;
    left: 23px
}

.book-scene:hover .book-two {
    transform: rotate(3deg) translateY(-12px)
}

.book-scene:hover .book-one {
    transform: rotate(-21deg) translateX(-7px)
}

.articles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px
}

.articles-status {
    grid-column: 1/-1;
    font-size: 13px;
    padding: 30px;
    background: var(--card);
    border-radius: 5px
}

.articles-status a {
    text-decoration: underline
}

.article-card {
    border: 1px solid var(--line);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s
}

.article-card:hover {
    transform: translateY(-5px)
}

.article-art {
    height: 160px;
    background: #dbe5d4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #48674c;
    font: 60px Georgia, serif
}

article.article-card {
    cursor: default
}

.article-card:nth-child(3n+2) .article-art {
    background: #e8dfcb;
    color: #8f7959
}

.article-card:nth-child(3n+3) .article-art {
    background: #d6e2e0;
    color: #50797a
}

.article-art img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.article-body {
    padding: 23px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.article-meta {
    font-size: 9px;
    color: var(--muted);
    display: flex;
    gap: 12px;
    margin-bottom: 12px
}

.article-body h3 {
    font-size: 17px;
    font-weight: 550;
    line-height: 1.5;
    letter-spacing: -.3px
}

.article-body p {
    font-size: 12px;
    line-height: 1.7
}

.article-bottom {
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    color: var(--accent)
}

.book-reader {
    padding-top: 48px
}

.book-reader h1 {
    font-size: clamp(28px, 3.2vw, 42px);
    letter-spacing: -1.6px;
    margin: 0;
    max-width: 18ch
}

.book-frame {
    display: block;
    width: 100%;
    min-height: calc(100vh - 280px);
    height: 78vh;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--card)
}

.library-hero {
    padding-top: 48px
}

.library-hero .library-card {
    min-height: 320px;
    align-items: center
}

.library-hero .library-copy {
    display: flex;
    align-items: center
}

#books .article-art {
    height: 210px
}

#books .article-body p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 42px
}

.pagination-link {
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 12px;
    color: var(--muted)
}

.pagination-link.is-current {
    color: var(--ink);
    border-color: var(--ink)
}

.pagination-link.is-disabled {
    opacity: .4
}

a.pagination-link:hover {
    color: var(--ink)
}

.closing {
    border-top: 1px solid var(--line);
    text-align: center;
    padding-block: 57px 66px
}

.closing-wave {
    font: 52px Georgia, serif;
    color: #8c9e7a;
    line-height: 1
}

.closing h2 {
    margin-top: 13px;
    font-size: 31px
}

.closing p {
    font-size: 13px;
    margin-top: 13px
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 12px
}

.contact-links a {
    border-bottom: 1px solid var(--line)
}

.footer {
    border-top: 1px solid var(--line);
    padding-block: 28px;
    display: flex;
    align-items: center;
    gap: 25px
}

.footer .wordmark {
    font-size: 24px
}

.footer .wordmark span {
    font-size: 24px
}

.footer>span {
    color: var(--muted);
    font-size: 9px
}

.footer>span:nth-of-type(2) {
    margin-left: auto
}

.footer>a:last-child {
    font-size: 20px;
    margin-left: 10px
}

[hidden] {
    display: none !important
}

@keyframes swell {

    0%,
    100% {
        transform: translate(-5px, 3px)
    }

    50% {
        transform: translate(7px, -4px)
    }
}

@keyframes foam {

    0%,
    100% {
        transform: translateY(0);
        opacity: .8
    }

    50% {
        transform: translateY(5px);
        opacity: 1
    }
}

@keyframes drift {

    0%,
    100% {
        transform: translate(0, 0)
    }

    50% {
        transform: translate(15px, -7px)
    }
}

@media(min-width:1500px) {
    .hero {
        min-height: 780px
    }

    .hero-copy>p {
        font-size: 16px
    }

    .coast {
        aspect-ratio: 1
    }
}

@media(max-width:1000px) {
    .wrap {
        width: calc(100% - 64px)
    }

    .hero {
        gap: 25px;
        min-height: 610px;
        padding-top: 52px
    }

    h1 {
        font-size: 46px;
        letter-spacing: -2.5px
    }

    .hero-actions {
        gap: 18px
    }

    .hero-note {
        font-size: 9px
    }

    .section {
        padding-block: 65px
    }

    .about {
        gap: 35px
    }

    h2 {
        font-size: 29px
    }

    .library-copy {
        padding-left: 30px
    }

    .book-one {
        left: 9%
    }

    .book-two {
        left: 33%
    }
}

@media(max-width:700px) {
    .wrap {
        width: calc(100% - 40px)
    }

    .header {
        height: 80px
    }

    .header nav {
        gap: 18px;
        font-size: 11px
    }

    .wordmark {
        font-size: 27px
    }

    .library-access,
    .theme-toggle {
        width: 32px;
        height: 32px
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 45px;
        padding-bottom: 67px;
        gap: 38px;
        min-height: auto
    }

    .hero-copy {
        max-width: 520px
    }

    .eyebrow {
        font-size: 8px;
        letter-spacing: 1.35px
    }

    h1 {
        font-size: clamp(40px, 8.6vw, 58px);
        letter-spacing: -2.4px;
        margin-block: 20px
    }

    .hero-copy>p {
        font-size: 14px;
        max-width: 390px
    }

    .hero-note {
        margin-top: 25px
    }

    .coast {
        width: 100%;
        max-width: 440px;
        justify-self: center;
        aspect-ratio: 1.13
    }

    .scroll-cue {
        bottom: 17px
    }

    .ticker>div {
        justify-content: flex-start;
        gap: 32px;
        font-size: 8px
    }

    .ticker {
        padding-block: 11px
    }

    .about {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .section {
        padding-block: 53px
    }

    .section-label {
        margin-bottom: 15px
    }

    h2 {
        font-size: 29px
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 26px
    }

    .section-aside {
        display: none
    }

    .job summary {
        gap: 12px;
        padding-block: 21px;
        flex-wrap: wrap
    }

    .company-icon {
        width: 36px;
        height: 36px;
        font-size: 20px
    }

    .job-title {
        flex-basis: calc(100% - 78px)
    }

    .job-title strong {
        font-size: 13px;
        gap: 7px
    }

    .job-title>span {
        font-size: 11px
    }

    .job-date {
        margin-left: 48px;
        order: 4;
        font-size: 10px;
        text-align: left;
        margin-top: -7px
    }

    .job-date span {
        display: inline;
        margin-left: 10px
    }

    .expand {
        margin-left: 0
    }

    .job-content {
        margin-left: 48px;
        padding-right: 0;
        font-size: 12px
    }

    .library-card {
        grid-template-columns: 1fr
    }

    .library-copy {
        padding: 30px 27px 0
    }

    .library-copy h1,
    .library-copy h2 {
        font-size: 38px
    }

    .book-reader {
        padding-top: 28px
    }

    .book-reader h1 {
        max-width: none
    }

    .book-frame {
        min-height: 70vh;
        height: 70vh
    }

    .library-hero {
        padding-top: 28px
    }

    .library-hero .library-card {
        min-height: 0
    }

    .library-hero .library-copy {
        padding-bottom: 8px;
        justify-content: center
    }

    .library-copy p {
        max-width: 100%
    }

    .book-scene {
        max-width: 360px;
        width: 100%;
        justify-self: center;
        height: 290px
    }

    .book-one {
        left: 15%
    }

    .book-two {
        left: 39%
    }

    .articles {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .article-art {
        height: 190px
    }

    .article-body {
        padding: 22px
    }

    .closing {
        padding-block: 40px
    }

    .closing h2 {
        font-size: 25px
    }

    .footer {
        flex-wrap: wrap;
        gap: 15px;
        padding-block: 24px
    }

    .footer>span:nth-of-type(2) {
        order: 4;
        width: 100%;
        margin-left: 0;
        font-size: 8px
    }

    .footer>a:last-child {
        margin-left: auto
    }

    .footer>span {
        font-size: 9px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important
    }

    .coast,
    .coast-art {
        transform: none !important
    }
}