:root {
    --ink: #35243e;
    --paper: #fff9ef;
    --accent: #c2185b;
    --highlight: #d4f000;
    --art: #ffdc55;
    --pink: #f7b8d0;
    --muted: #5c4d64;
    --line: #e8dfea;
    --serif: "Fraunces", Georgia, serif
}

* {
    box-sizing: border-box
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", sans-serif
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, transform .2s ease
}

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

.shell {
    max-width: 1400px;
    margin: auto;
    padding: 0 5vw
}

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

.logo {
    font-weight: 800;
    display: flex;
    gap: 10px;
    align-items: center
}

.logo:first-letter {
    background: var(--ink);
    color: var(--highlight)
}

nav {
    display: flex;
    gap: 30px;
    color: var(--muted)
}

nav a:hover,
.manage:hover,
footer a:hover {
    color: var(--accent)
}

.manage {
    font-weight: 700
}

.eyebrow,
label,
small,
footer {
    font: 500 10px "DM Mono", monospace;
    text-transform: uppercase;
    letter-spacing: .08em
}

.eyebrow,
label {
    color: var(--accent)
}

.hero {
    min-height: 700px;
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 8vw;
    align-items: center
}

.hero h1,
h1 {
    font-size: clamp(3.5rem, 7vw, 7rem);
    line-height: .94;
    letter-spacing: -.08em;
    margin: 0 0 30px
}

.hero h1 i,
h1 i,
h2 i {
    font-family: var(--serif);
    font-weight: 400;
    color: var(--accent)
}

.intro,
.copy {
    max-width: 500px;
    color: var(--muted);
    line-height: 1.7
}

.button {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 22px;
    background: var(--ink);
    color: var(--paper);
    border: 0;
    font: 700 12px "DM Sans", sans-serif;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease
}

.button:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px #35243e26
}

.hero-photo {
    position: relative;
    aspect-ratio: 1;
    background: var(--art);
    overflow: hidden;
    padding: 24px
}

.hero-photo:not(.clean-photo):after {
    content: "";
    position: absolute;
    width: 48%;
    aspect-ratio: 1;
    top: 26%;
    left: 26%;
    background: var(--accent);
    border-radius: 50%
}

.hero-photo span {
    position: absolute;
    z-index: 1;
    bottom: 24px;
    font: 10px "DM Mono", monospace;
    text-transform: uppercase
}

.clean-photo {
    background-size: cover;
    background-position: center;
    padding: 0
}

.hero-photo.clean-photo span {
    display: block;
    inset: auto 0 0;
    padding: 48px 24px 24px;
    background: linear-gradient(transparent, #241b2de8);
    color: #fff;
    line-height: 1.8;
    opacity: .9;
    transition: opacity .2s ease
}

.photo-card {
    transition: transform .25s ease, box-shadow .25s ease
}

.photo-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 18px 34px #35243e35
}

.photo-card:hover span {
    opacity: 1
}

.hero-photo span b {
    color: var(--highlight);
    font-weight: 700
}

.section {
    display: grid;
    grid-template-columns: 23% 1fr;
    gap: 5vw;
    padding: 110px 0;
    border-top: 1px solid var(--line)
}

h2 {
    font-size: clamp(2.5rem, 5vw, 5.2rem);
    line-height: 1;
    letter-spacing: -.07em;
    margin: 0 0 35px
}

.facts {
    display: flex;
    gap: 6vw;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 50px
}

.facts span {
    display: grid;
    gap: 8px;
    font-size: 13px
}

.facts b {
    color: var(--accent);
    font: 10px "DM Mono", monospace;
    text-transform: uppercase
}

.joy-note {
    position: relative;
    overflow: hidden;
    margin-top: 42px;
    padding: 28px 30px;
    background: var(--highlight);
    border-radius: 4px 38px 4px 4px
}

.joy-note::after {
    position: absolute;
    top: -34px;
    right: -24px;
    width: 110px;
    aspect-ratio: 1;
    border: 18px solid #fff9ef66;
    border-radius: 50%;
    content: ""
}

.joy-kicker {
    color: var(--ink);
    font: 500 10px "DM Mono", monospace;
    letter-spacing: .08em;
    text-transform: uppercase
}

.joy-note h3 {
    max-width: 550px;
    margin: 12px 0 8px;
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -.04em
}

.joy-note p {
    max-width: 620px;
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.7
}

.joy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px
}

.joy-tags span {
    padding: 7px 11px;
    border: 1px solid #35243e40;
    border-radius: 999px;
    color: var(--ink);
    font: 500 10px "DM Mono", monospace
}

.entries {
    max-width: 900px
}

.entries article {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    border-top: 1px solid var(--line);
    padding: 25px 0;
    transition: padding-left .2s ease, border-color .2s ease
}

.entries article:hover {
    padding-left: 8px;
    border-color: var(--accent)
}

.entries h3 {
    margin: 0 0 8px;
    font-size: 20px
}

.entries strong {
    font-size: 12px;
    color: var(--accent)
}

.entries p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px
}

.project {
    min-height: 280px;
    padding: 24px;
    background: var(--highlight);
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease
}

.project:nth-child(2n) {
    background: var(--art)
}

.project:nth-child(3n) {
    background: var(--pink)
}

.project:hover {
    position: relative;
    z-index: 1;
    transform: translateY(-5px);
    box-shadow: 0 14px 28px #35243e20
}

.project.clean-photo {
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 0 1px 6px #000
}

.project a {
    align-self: flex-end;
    font-weight: bold
}

.project a:hover {
    color: var(--accent);
    transform: translateX(3px)
}

.project h3 {
    font-size: 28px;
    margin-top: auto
}

.project p {
    font-size: 13px;
    line-height: 1.6
}

.project small {
    margin-top: 12px
}

footer {
    min-height: 100px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted)
}

.social-links {
    display: flex;
    gap: 18px
}

.social-links a:hover {
    color: var(--accent)
}

.editor {
    padding: 85px 0
}

.editor>h1 {
    margin-bottom: 70px
}

.editor h2 {
    font-size: 30px;
    margin-top: 70px
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 25px
}

.form-grid label {
    display: grid;
    gap: 9px;
    color: var(--muted)
}

.form-grid label:nth-child(3),
.form-grid label:nth-child(8),
.form-grid label:nth-child(9) {
    grid-column: 1/-1
}

.editor input,
.editor textarea,
.editor select {
    width: 100%;
    padding: 11px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    outline: 0;
    font: 14px "DM Sans", sans-serif;
    color: var(--ink)
}

textarea {
    min-height: 70px;
    resize: vertical
}

.colors {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    margin-bottom: 20px
}

.colors b {
    width: 100%
}

.colors label {
    display: flex;
    align-items: center;
    gap: 8px
}

.colors input {
    width: 35px;
    height: 28px;
    padding: 2px
}

.row {
    display: grid;
    grid-template-columns: 110px 1fr 1fr 150px 1.5fr auto auto;
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid var(--line)
}

.row button,
.project-form>button:not(.button) {
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer
}

.project-form {
    border-top: 1px solid var(--line);
    padding: 25px 0
}

.project-form h3 {
    margin-top: 0
}

@media(max-width:800px) {
    .shell {
        padding: 0 22px
    }

    header {
        height: 75px
    }

    nav {
        display: none
    }

    .hero,
    .section {
        grid-template-columns: 1fr
    }

    .hero {
        padding: 75px 0;
        gap: 50px
    }

    .hero-photo {
        width: 88vw
    }

    .section {
        padding: 80px 0
    }

    .facts {
        display: grid;
        gap: 20px
    }

    .entries article {
        grid-template-columns: 1fr;
        gap: 8px
    }

    .projects {
        grid-template-columns: 1fr
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .form-grid label:nth-child(3),
    .form-grid label:nth-child(8),
    .form-grid label:nth-child(9) {
        grid-column: auto
    }

    .row {
        grid-template-columns: 1fr 1fr
    }

    .row input:nth-of-type(3),
    .row input:nth-of-type(4) {
        grid-column: span 2
    }

    footer {
        flex-wrap: wrap;
        padding: 25px 0;
        gap: 15px
    }
}

@media(prefers-reduced-motion:reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important
    }
}

.book {
    position: relative;
    max-width: 1180px;
    margin: 36px auto 24px;
    perspective: 1800px
}

.book-spread {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #35243e20;
    border-radius: 12px 18px 18px 12px;
    background: #fffdf8;
    box-shadow: 0 24px 60px #35243e1c, 0 3px 8px #35243e12
}

.book-ready .book-spread:not(.is-active) {
    display: none
}

.book-spread[hidden] {
    display: none
}

.book-spread.is-active {
    z-index: 1
}

.book-spread.is-turn-underlay {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: grid !important;
    overflow: hidden
}

.book-spread.is-turn-forward-underlay .book-page:first-child,
.book-spread.is-turn-back-underlay .book-page:last-child {
    visibility: hidden
}

.page-turn-sheet {
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 50%;
    transform-style: preserve-3d;
    pointer-events: none
}

.page-turn-sheet.turn-forward {
    transform-origin: left center;
    animation: page-flip-forward .95s cubic-bezier(.55, .08, .35, 1) forwards
}

.page-turn-sheet.turn-back {
    right: 50%;
    left: 0;
    transform-origin: right center;
    animation: page-flip-back .95s cubic-bezier(.55, .08, .35, 1) forwards
}

.page-turn-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #fffdf8;
    backface-visibility: hidden;
    box-shadow: inset -12px 0 18px #35243e18
}

.page-turn-back {
    transform: rotateY(180deg);
    background: #fffaf1;
    box-shadow: inset 12px 0 18px #35243e18
}

.page-turn-face > .book-page {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    overflow: hidden;
    border: 0
}

.page-turn-face > .book-spread {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none
}

.page-turn-face > .book-spread .book-page {
    min-height: 0;
    max-height: none;
    overflow: hidden;
    border: 0
}

.page-turn-sheet.is-mobile {
    right: 0;
    left: 0;
    width: 100%;
}

@keyframes page-flip-forward {
    0% { transform: rotateY(0); }
    45% { box-shadow: 12px 8px 26px #35243e24; }
    100% { transform: rotateY(-180deg); box-shadow: 0 0 0 #35243e00; }
}

@keyframes page-flip-back {
    0% { transform: rotateY(0); }
    45% { box-shadow: -12px 8px 26px #35243e24; }
    100% { transform: rotateY(180deg); box-shadow: 0 0 0 #35243e00; }
}

.book-spread::after {
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 50%;
    width: 24px;
    background: linear-gradient(90deg, #35243e00, #35243e12 48%, #fffdf866 54%, #35243e00);
    content: "";
    pointer-events: none
}

.book-page {
    position: relative;
    min-width: 0;
    min-height: min(80vh, 820px);
    max-height: min(80vh, 820px);
    overflow-y: auto;
    padding: clamp(26px, 4vw, 54px) clamp(26px, 4vw, 54px) 72px;
    background: #fffdf8;
    cursor: ew-resize;
    scrollbar-color: var(--accent) transparent;
    scrollbar-width: thin;
    touch-action: pan-y
}

.book-page + .book-page {
    border-left: 1px solid #35243e0a;
    background: #fffaf1
}

.book-cover {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(150deg, #fffdf8 55%, #d4f00035)
}

.cover-copy {
    width: 100%
}

.book-cover h1 {
    max-width: 540px;
    margin: 12px 0 20px;
    font-size: clamp(2.4rem, 4.4vw, 4.3rem);
    line-height: .98
}

.book-cover .intro {
    font-size: 14px
}

.book-cover .hero-photo {
    width: 100%;
    min-height: 220px;
    aspect-ratio: 1.6;
    background-position: center 28%;
    margin-top: auto
}

.book-cover .hero-photo.clean-photo span {
    opacity: .9
}

.book-cover .photo-card:hover {
    transform: translateY(-4px) rotate(.5deg);
    box-shadow: 0 14px 28px #35243e30
}

.page-kicker {
    margin: 0 0 22px;
    color: var(--accent);
    font: 500 10px "DM Mono", monospace;
    letter-spacing: .08em;
    text-transform: uppercase
}

.book-page h2 {
    margin-bottom: 22px;
    font-size: clamp(2rem, 3.2vw, 3.5rem)
}

.book-page .copy {
    font-size: 13px
}

.book-page .facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px
}

.book-page .facts span {
    overflow-wrap: anywhere;
    font-size: 12px
}

.book-page .joy-note {
    margin-top: 26px;
    padding: 22px
}

.book-page .joy-note h3 {
    font-size: 1.45rem
}

.book-page .joy-note p {
    font-size: 12px
}

.book-page .entries {
    max-width: none
}

.book-page .entries article {
    grid-template-columns: minmax(92px, .7fr) 1.5fr;
    gap: 14px;
    padding: 17px 0
}

.book-page .entries h3 {
    font-size: 16px
}

.book-page .entries p {
    margin: 8px 0 0;
    font-size: 12px
}

.page-number {
    position: absolute;
    right: 24px;
    bottom: 20px;
    color: var(--muted);
    font: 500 10px "DM Mono", monospace
}

.project-page .projects {
    grid-template-columns: 1fr;
    gap: 10px
}

.project-page .project {
    min-height: 175px;
    padding: 20px
}

.project-page .project h3 {
    font-size: 21px
}

.project-page .project p {
    font-size: 12px
}

.closing-page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(145deg, #fffaf1, #f7b8d055)
}

.closing-art {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0 34px;
    color: var(--accent)
}

.closing-art span:nth-child(1),
.closing-art span:nth-child(3) {
    font-size: 34px;
    color: var(--highlight)
}

.closing-art span:nth-child(2) {
    font-size: 64px;
    color: var(--accent)
}

.closing-page .copy {
    max-width: 390px
}

.closing-links {
    display: flex;
    gap: 18px;
    margin-top: 22px;
    font-size: 13px;
    font-weight: 700
}

.closing-links a:hover {
    color: var(--accent)
}

.book-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 4vw, 48px);
    margin: 22px auto 0
}

.page-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font: 600 12px "DM Sans", sans-serif;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease
}

.page-button:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--accent)
}

.page-button:disabled {
    opacity: .42;
    cursor: not-allowed
}

.page-status,
.book-hint {
    color: var(--muted);
    font: 500 10px "DM Mono", monospace;
    text-align: center
}

.book-hint {
    margin: 10px 0 0
}

@media(max-width:800px) {
    header {
        height: auto;
        min-height: 75px;
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 0
    }

    nav {
        display: flex;
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        overflow-x: auto;
        font-size: 11px
    }

    .book {
        margin-top: 24px
    }

    .book-spread {
        grid-template-columns: 1fr;
        border-radius: 12px
    }

    .book-spread.is-turn-underlay {
        grid-template-columns: 1fr
    }

    .book-spread.is-turn-underlay .book-page {
        visibility: visible
    }

    .book-spread::after {
        display: none
    }

    .book-page {
        min-height: 0;
        max-height: none;
        overflow: visible;
        padding: 30px 24px 60px
    }

    .book-page + .book-page {
        border-top: 1px solid var(--line);
        border-left: 0
    }

    .page-turn-face > .book-spread {
        grid-template-columns: 1fr
    }

    .book-cover {
        min-height: 560px
    }

    .book-page .facts {
        grid-template-columns: 1fr 1fr
    }

    .book-page .entries article {
        grid-template-columns: 1fr;
        gap: 7px
    }

    .book-controls {
        gap: 12px
    }
}

@media(max-width:420px) {
    .page-button span {
        display: none
    }

    .book-page .facts {
        grid-template-columns: 1fr
    }
}