/* =========================================
   YOU FOUND ME HERE
   LIGHT + DARK MODE
   ========================================= */


/* =========================================
   LIGHT MODE COLOURS
   ========================================= */

:root {
    --background: #cfc4b5;
    --paper: #fff7e8;
    --text: #3e3935;

    --violet: #7b6b8d;
    --burnt: #a56b4e;
    --rose: #704b58;
    --petrol: #70834d;
    --copper: #a78651;

    --dark: #3e3935;
    --faint: rgba(69, 54, 42, 0.22);
}


/* =========================================
   DARK MODE
   ========================================= */

body.dark-mode {
    --background: #0D0F18;
    --paper: #211713;
    --text: #F0E8D8;

    --violet: #9B4DCC;
    --burnt: #E05A3F;
    --rose: #D23D78;
    --petrol: #10A7A0;
    --copper: #D99A32;

    --dark: #F0E8D8;
    --faint: rgba(240, 232, 216, 0.22);
}


/* =========================================
   RESET
   ========================================= */

* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}


html {
    background: var(--background);
}


body {
    background: var(--background);
    color: var(--text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}


/* =========================================
   THEME BUTTON
   ========================================= */

#theme-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 99999;

    padding: 10px 14px;

    border: 3px solid var(--rose);

    background: var(--paper);
    color: var(--text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.8rem;

    cursor: pointer;

    -webkit-appearance: none;
    appearance: none;

    touch-action: manipulation;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


#theme-toggle:hover {
    background: var(--rose);
    color: var(--paper);
}


/* =========================================
   MAIN SITE FRAME
   ========================================= */

.site {
    width:
        min(
            1050px,
            calc(100% - 36px)
        );

    margin: 35px auto;

    border: 5px solid var(--rose);

    padding: 35px;

    background: var(--paper);

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease;
}


/* =========================================
   HEADER
   ========================================= */

.header {
    text-align: center;

    padding: 25px 10px 40px;

    border-bottom: 5px solid var(--rose);
}


.header h1 {
    margin: 0;

    font-size:
        clamp(
            3.2rem,
            7vw,
            6.5rem
        );

    font-weight: normal;

    line-height: 0.95;

    letter-spacing: -0.055em;

    color: var(--rose);
}


.header p {
    margin: 18px 0 0;

    font-size: 1.05rem;

    font-style: italic;

    color: var(--petrol);
}


/* =========================================
   TOP AREA
   ========================================= */

.top-area {
    margin-top: 30px;
}


/* =========================================
   HOMEPAGE NAVIGATION
   ========================================= */

.navigation {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border: 4px solid var(--rose);
}


.navigation a {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 105px;

    padding: 15px;

    color: var(--text);

    text-decoration: none;

    font-size: 1rem;

    border-right: 2px solid var(--faint);
    border-bottom: 2px solid var(--faint);

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


/* =========================================
   NAVIGATION OUTER BORDERS
   ========================================= */

.navigation a:nth-child(4),
.navigation a:nth-child(8) {
    border-right: none;
}


.navigation a:nth-child(n + 5) {
    border-bottom: none;
}


/* =========================================
   COLOURED LINES
   ========================================= */

.navigation a:nth-child(1) {
    border-top: 5px solid var(--rose);
}

.navigation a:nth-child(2) {
    border-top: 5px solid var(--burnt);
}

.navigation a:nth-child(3) {
    border-top: 5px solid var(--petrol);
}

.navigation a:nth-child(4) {
    border-top: 5px solid var(--violet);
}

.navigation a:nth-child(5) {
    border-top: 5px solid var(--copper);
}

.navigation a:nth-child(6) {
    border-top: 5px solid var(--rose);
}

.navigation a:nth-child(7) {
    border-top: 5px solid var(--burnt);
}

.navigation a:nth-child(8) {
    border-top: 5px solid var(--petrol);
}


/* =========================================
   NAVIGATION HOVER
   ========================================= */

.navigation a:hover {
    background: #e8d4b4;
    color: var(--dark);
}


body.dark-mode .navigation a:hover {
    background: #38231d;
    color: var(--text);
}


/* =========================================
   BLOG / RECENT UPDATES
   ========================================= */

.updates {
    margin-top: 45px;

    border-top: 12px solid var(--petrol);

    padding-top: 25px;
}


.updates-title {
    margin-bottom: 15px;
}


.updates h2 {
    margin: 0;

    font-size: 1rem;

    font-weight: normal;

    text-transform: uppercase;

    letter-spacing: 0.15em;

    color: var(--rose);
}


/* =========================================
   SMALL UPDATE ENTRIES
   ========================================= */

.update {
    display: grid;

    grid-template-columns: 100px 1fr;

    padding: 12px 0;

    border-bottom: 2px solid var(--faint);
}


.update time {
    color: var(--burnt);
}


.update a {
    color: var(--text);

    text-decoration: none;
}


.update a:hover {
    color: var(--rose);
}


/* =========================================
   FULL HOMEPAGE BLOG ENTRY
   ========================================= */

.full-update {
    display: block;

    padding: 25px 0 30px;

    border-bottom: 2px solid var(--faint);
}


.full-update-date {
    padding-top: 0;

    margin-bottom: 10px;

    color: var(--burnt);

    font-size: 0.9rem;
}


.full-update-content h2 {
    margin: 0 0 15px;

    font-size: 1.5rem;

    font-weight: normal;

    color: var(--rose);
}


.full-update-content p {
    max-width: none;

    width: 100%;

    margin: 0;

    line-height: 1.7;

    font-size: 0.95rem;
}


/* =========================================
   LOWER PHOTO AREA
   ========================================= */

.lower-area {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

    margin-top: 45px;
}


/* =========================================
   PHOTO BOXES
   ========================================= */

.photo-box {
    border: 5px solid var(--rose);

    padding: 10px;

    background: #e8d4b4;
}


body.dark-mode .photo-box {
    background: #38231d;
}


.photo-box img {
    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    background: #cfc4b5;
}


body.dark-mode .photo-box img {
    background: #0D0F18;
}


.photo-box p {
    margin: 10px 0 2px;

    font-size: 0.8rem;

    color: var(--copper);
}


/* =========================================
   PHOTO COLOUR VARIATIONS
   ========================================= */

.photo-box.second {
    border-color: var(--petrol);
}


.photo-box.third {
    border-color: var(--violet);
}


/* =========================================
   LITTLE THINGS / LINKS
   ========================================= */

.web-area {
    display: flex;

    align-items: center;

    gap: 25px;

    margin-top: 40px;

    padding: 18px 0;

    border-top: 4px solid var(--rose);
    border-bottom: 4px solid var(--rose);
}


.web-label {
    color: var(--copper);

    text-transform: uppercase;

    letter-spacing: 0.12em;

    font-size: 0.75rem;

    white-space: nowrap;
}


.web-items {
    display: flex;

    flex-wrap: wrap;

    gap: 18px;

    align-items: center;
}


.web-items a {
    color: var(--rose);

    text-decoration: none;

    border-bottom: 1px solid var(--violet);
}


.web-items a:hover {
    color: var(--burnt);

    border-color: var(--burnt);
}


.web-items span {
    font-size: 0.75rem;

    opacity: 0.55;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    margin-top: 50px;

    padding-top: 20px;

    border-top: 2px solid var(--faint);

    text-align: center;

    font-size: 0.75rem;

    opacity: 0.7;
}


/* =========================================
   SUBPAGE HEADER
   ========================================= */

.subpage-header {
    position: sticky;

    top: 0;

    z-index: 10;

    padding-bottom: 18px;

    background: var(--paper);
}


.site-title {
    display: block;

    margin-bottom: 15px;

    color: var(--rose);

    text-decoration: none;

    font-size: 1.5rem;

    letter-spacing: -0.03em;
}


.site-title:hover {
    color: var(--petrol);
}


/* =========================================
   SUBPAGE NAVIGATION
   ========================================= */

.subpage-nav {
    display: flex;

    flex-wrap: wrap;

    border: 3px solid var(--rose);
}


.subpage-nav a {
    position: relative;

    flex: 1 1 auto;

    padding: 11px 13px;

    color: var(--text);

    text-decoration: none;

    text-align: center;

    font-size: 0.78rem;

    border-right: 1px solid var(--faint);

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


/* =========================================
   SUBPAGE NAV COLOURS
   ========================================= */

.subpage-nav a:nth-child(1) {
    border-top: 4px solid var(--rose);
}

.subpage-nav a:nth-child(2) {
    border-top: 4px solid var(--burnt);
}

.subpage-nav a:nth-child(3) {
    border-top: 4px solid var(--petrol);
}

.subpage-nav a:nth-child(4) {
    border-top: 4px solid var(--violet);
}

.subpage-nav a:nth-child(5) {
    border-top: 4px solid var(--copper);
}

.subpage-nav a:nth-child(6) {
    border-top: 4px solid var(--rose);
}

.subpage-nav a:nth-child(7) {
    border-top: 4px solid var(--burnt);
}

.subpage-nav a:nth-child(8) {
    border-top: 4px solid var(--petrol);
}

.subpage-nav a:nth-child(9) {
    border-top: 4px solid var(--violet);
}


/* =========================================
   CURRENT SUBPAGE
   ========================================= */

.subpage-nav a.current {
    background: #e8d4b4;
}


body.dark-mode .subpage-nav a.current {
    background: #38231d;
}


.subpage-nav a:hover {
    background: var(--rose);

    color: var(--paper);
}


/* =========================================
   SUBPAGE HEADING
   ========================================= */

.page-heading {
    padding: 65px 0 45px;

    border-bottom: 5px solid var(--rose);
}


.page-kicker {
    margin: 0 0 12px;

    color: var(--copper);

    font-size: 0.75rem;

    text-transform: uppercase;

    letter-spacing: 0.18em;
}


.page-heading h1 {
    margin: 0;

    font-size:
        clamp(
            3rem,
            8vw,
            6rem
        );

    font-weight: normal;

    line-height: 0.9;

    letter-spacing: -0.05em;

    color: var(--rose);
}


.page-intro {
    max-width: 650px;

    margin: 25px 0 0;

    color: var(--petrol);

    font-size: 1rem;

    line-height: 1.6;
}


/* =========================================
   UPDATE PAGE
   ========================================= */

.update-list {
    margin-top: 10px;
}


.full-update {
    display: grid;

    grid-template-columns: 140px 1fr;

    gap: 35px;

    padding: 40px 0;

    border-bottom: 2px solid var(--faint);
}


.full-update-date {
    padding-top: 5px;

    color: var(--burnt);

    font-size: 0.9rem;
}


.full-update-content h2 {
    margin: 0 0 15px;

    font-size: 1.5rem;

    font-weight: normal;

    color: var(--rose);
}


.full-update-content p {
    max-width: 650px;

    margin: 0;

    line-height: 1.7;

    font-size: 0.95rem;
}


/* =========================================
   FOOTER LINK
   ========================================= */

footer a {
    color: var(--rose);

    text-decoration: none;
}


footer a:hover {
    color: var(--burnt);
}


/* =========================================
   PROJECTS PAGE
   ========================================= */

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 30px;

    margin-top: 35px;
}


.project-card {
    border: 4px solid var(--rose);

    background: var(--paper);

    overflow: hidden;
}


.project-image {
    border-bottom: 5px solid var(--rose);
}


.project-card:nth-child(2) .project-image {
    border-bottom-color: var(--burnt);
}

.project-card:nth-child(3) .project-image {
    border-bottom-color: var(--petrol);
}

.project-card:nth-child(4) .project-image {
    border-bottom-color: var(--copper);
}


.project-image img {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    object-fit: cover;

    background: #cfc4b5;
}


body.dark-mode .project-image img {
    background: #0D0F18;
}


/* =========================================
   PROJECT INFORMATION
   ========================================= */

.project-info {
    padding: 22px;
}


.project-type {
    margin: 0 0 8px;

    color: var(--copper);

    font-size: 0.7rem;

    letter-spacing: 0.15em;
}


.project-info h2 {
    margin: 0 0 14px;

    font-size: 1.6rem;

    font-weight: normal;

    color: var(--rose);
}


.project-info p:not(.project-type) {
    margin: 0 0 20px;

    font-size: 0.9rem;

    line-height: 1.6;

    color: var(--text);
}


.project-info a {
    color: var(--rose);

    text-decoration: none;

    border-bottom: 1px solid var(--rose);

    padding-bottom: 2px;
}


.project-info a:hover {
    color: var(--burnt);

    border-color: var(--burnt);
}


/* =========================================
   GUESTBOOK
   ========================================= */

.guestbook-area {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 45px;

    margin-top: 40px;
}


.guestbook-form {
    border: 5px solid var(--violet);

    padding: 25px;
}


.guestbook-form h2,
.guestbook-entries h2 {
    margin: 0 0 12px;

    font-size: 1.5rem;

    font-weight: normal;

    color: var(--rose);
}


.guestbook-note {
    margin: 0 0 25px;

    font-size: 0.85rem;

    line-height: 1.6;

    color: var(--petrol);
}


.form-row {
    margin-bottom: 20px;
}


.form-row label {
    display: block;

    margin-bottom: 7px;

    color: var(--copper);

    font-size: 0.75rem;

    text-transform: uppercase;

    letter-spacing: 0.12em;
}


.form-row input,
.form-row textarea {
    display: block;

    width: 100%;

    padding: 12px;

    border: 2px solid var(--faint);

    background: var(--paper);

    color: var(--text);

    font-family: inherit;

    font-size: 0.9rem;
}


.form-row textarea {
    resize: vertical;
}


.form-row input:focus,
.form-row textarea:focus {
    outline: none;

    border-color: var(--violet);
}


.form-row input::placeholder,
.form-row textarea::placeholder {
    color: rgba(62, 57, 53, 0.45);
}


body.dark-mode .form-row input::placeholder,
body.dark-mode .form-row textarea::placeholder {
    color: rgba(240, 232, 216, 0.45);
}


.guestbook-form button {
    padding: 13px 18px;

    border: 3px solid var(--rose);

    background: transparent;

    color: var(--rose);

    font-family: inherit;

    font-size: 0.85rem;

    cursor: pointer;
}


.guestbook-form button:hover {
    background: var(--rose);

    color: var(--paper);
}


.guestbook-entries {
    border-top: 10px solid var(--petrol);

    padding-top: 20px;
}


.guestbook-entry {
    padding: 20px 0;

    border-bottom: 2px solid var(--faint);
}


.guestbook-entry-top {
    display: flex;

    align-items: baseline;

    justify-content: space-between;

    gap: 20px;
}


.guestbook-entry strong {
    color: var(--rose);

    font-weight: normal;

    font-size: 1rem;
}


.guestbook-entry time {
    color: var(--copper);

    font-size: 0.75rem;
}


.guestbook-entry p {
    margin: 12px 0 0;

    font-size: 0.9rem;

    line-height: 1.6;
}


/* =========================================
   GUESTBOOK EMBED
   ========================================= */

.guestbook-embed {
    margin-top: 40px;

    border: 5px solid var(--rose);

    border-top: 10px solid var(--petrol);

    background: var(--paper);

    overflow: hidden;
}


.guestbook-embed iframe {
    display: block;

    width: 100%;

    height: 850px;

    border: none;
}


/* =========================================
   PHOTO GALLERY
   ========================================= */

.photo-gallery {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    grid-auto-flow: dense;

    gap: 25px;

    margin-top: 45px;
}


.gallery-photo {
    margin: 0;

    border: 5px solid var(--rose);

    background: var(--background);

    overflow: hidden;
}


.gallery-photo img {
    display: block;

    width: 100%;

    height: auto;

    max-height: 650px;

    object-fit: cover;

    transition: transform 0.3s ease;
}


.gallery-photo.tall {
    grid-row: span 2;
}


.gallery-photo.tall img {
    height: 100%;

    min-height: 500px;

    object-fit: cover;
}


.gallery-photo.wide {
    grid-column: span 2;
}


.gallery-photo.wide img {
    aspect-ratio: 16 / 7;

    object-fit: cover;
}


.gallery-photo figcaption {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding: 11px 13px;

    border-top: 5px solid var(--rose);

    color: var(--rose);

    font-size: 0.78rem;
}


.gallery-photo:nth-child(2) figcaption {
    border-color: var(--violet);
}

.gallery-photo:nth-child(3) figcaption {
    border-color: var(--petrol);
}

.gallery-photo:nth-child(4) figcaption {
    border-color: var(--copper);
}

.gallery-photo:nth-child(5) figcaption {
    border-color: var(--violet);
}

.gallery-photo:nth-child(6) figcaption {
    border-color: var(--petrol);
}


.gallery-photo figcaption span {
    color: var(--copper);

    white-space: nowrap;
}


.gallery-photo:hover img {
    transform: scale(1.025);
}


/* =========================================
   ARCHIVE
   ========================================= */

.archive-note {
    display: grid;

    grid-template-columns: 170px 1fr;

    gap: 25px;

    margin-top: 40px;

    padding: 20px;

    border: 4px solid var(--rose);

    border-left: 10px solid var(--copper);
}


.archive-note-label {
    color: var(--copper);

    font-size: 0.7rem;

    letter-spacing: 0.15em;
}


.archive-note p {
    margin: 0;

    max-width: 600px;

    font-size: 0.9rem;

    line-height: 1.6;
}


.archive-list {
    margin-top: 45px;
}


.archive-item {
    display: grid;

    grid-template-columns: 170px 1fr;

    gap: 30px;

    padding: 35px 0;

    border-top: 3px solid var(--faint);
}


.archive-item:last-child {
    border-bottom: 3px solid var(--faint);
}


.archive-date {
    padding-top: 5px;
}


.archive-date span {
    display: inline-block;

    padding: 7px 9px;

    border: 2px solid var(--violet);

    color: var(--rose);

    font-size: 0.7rem;

    letter-spacing: 0.1em;
}


.archive-item:nth-child(2) .archive-date span {
    border-color: var(--burnt);
}

.archive-item:nth-child(3) .archive-date span {
    border-color: var(--petrol);
}

.archive-item:nth-child(4) .archive-date span {
    border-color: var(--rose);
}


.archive-type {
    margin: 0 0 8px;

    color: var(--copper);

    font-size: 0.7rem;

    letter-spacing: 0.15em;
}


.archive-content h2 {
    margin: 0 0 12px;

    color: var(--rose);

    font-size: 1.5rem;

    font-weight: normal;
}


.archive-content p:not(.archive-type) {
    max-width: 650px;

    margin: 0 0 18px;

    font-size: 0.9rem;

    line-height: 1.65;
}


.archive-content a {
    color: var(--rose);

    text-decoration: none;

    border-bottom: 1px solid var(--rose);
}


.archive-content a:hover {
    color: var(--burnt);

    border-color: var(--burnt);
}


/* =========================================
   LINKS PAGE
   ========================================= */

.links-area {
    margin-top: 45px;
}


.link-section {
    margin-bottom: 45px;
}


.link-section-heading {
    display: flex;

    align-items: baseline;

    gap: 15px;

    margin-bottom: 15px;

    padding-bottom: 10px;

    border-bottom: 4px solid var(--rose);
}


.link-section-heading span {
    color: var(--copper);

    font-size: 0.7rem;

    letter-spacing: 0.12em;
}


.link-section-heading h2 {
    margin: 0;

    color: var(--rose);

    font-size: 1.5rem;

    font-weight: normal;
}


.link-list {
    display: flex;

    flex-direction: column;
}


.link-item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding: 18px 15px;

    border-bottom: 2px solid var(--faint);

    color: var(--text);

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        padding 0.2s ease;
}


.link-item:first-child {
    border-top: 2px solid var(--faint);
}


.link-item:hover {
    padding-left: 22px;

    background: #e8d4b4;
}


body.dark-mode .link-item:hover {
    background: #38231d;
}


.link-item div {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.link-item strong {
    color: var(--rose);

    font-size: 0.95rem;

    font-weight: normal;
}


.link-item span {
    color: var(--text);

    opacity: 0.7;

    font-size: 0.8rem;

    line-height: 1.5;
}


.link-item b {
    color: var(--rose);

    font-size: 1.2rem;

    font-weight: normal;
}


.link-section:nth-child(2) .link-item b {
    color: var(--violet);
}

.link-section:nth-child(3) .link-item b {
    color: var(--petrol);
}


/* =========================================
   MISC PAGE
   ========================================= */

.misc-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;

    margin-top: 45px;
}


.misc-box {
    border: 5px solid var(--rose);

    padding: 23px;

    background: rgba(112, 75, 88, 0.035);
}


body.dark-mode .misc-box {
    background: rgba(210, 61, 120, 0.06);
}


.misc-box:nth-child(1) {
    border-top-color: var(--violet);
}

.misc-box:nth-child(2) {
    border-top-color: var(--rose);
}

.misc-box:nth-child(3) {
    border-top-color: var(--petrol);
}

.misc-box:nth-child(4) {
    border-top-color: var(--copper);
}

.misc-box:nth-child(5) {
    border-top-color: var(--burnt);
}

.misc-box:nth-child(6) {
    border-top-color: var(--violet);
}


.misc-box-heading {
    display: flex;

    align-items: baseline;

    gap: 12px;

    margin-bottom: 20px;

    padding-bottom: 10px;

    border-bottom: 2px solid var(--faint);
}


.misc-box-heading span {
    color: var(--copper);

    font-size: 0.7rem;
}


.misc-box-heading h2 {
    margin: 0;

    color: var(--rose);

    font-size: 1.3rem;

    font-weight: normal;
}


.list-box ul {
    margin: 0;

    padding-left: 20px;
}


.list-box li {
    margin-bottom: 10px;

    color: var(--text);

    font-size: 0.9rem;

    line-height: 1.5;
}


.list-box li::marker {
    color: var(--rose);
}


.currently-list p {
    margin: 0 0 13px;

    color: var(--text);

    font-size: 0.9rem;
}


.currently-list strong {
    display: inline-block;

    min-width: 95px;

    color: var(--copper);

    font-weight: normal;
}


.big-thought {
    margin: 5px 0 20px;

    color: var(--rose);

    font-size: 1.15rem;

    line-height: 1.7;
}


.thought-date {
    color: var(--burnt);

    font-size: 0.75rem;
}


.misc-photo {
    padding: 0;

    overflow: hidden;
}


.misc-photo img {
    display: block;

    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;
}


.misc-photo-caption {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    padding: 12px 15px;

    border-top: 5px solid var(--burnt);

    color: var(--rose);

    font-size: 0.75rem;
}


.misc-photo-caption span:last-child {
    color: var(--copper);
}


.something-box p {
    margin: 0 0 20px;

    color: var(--text);

    font-size: 0.9rem;

    line-height: 1.6;
}


.something-box a {
    color: var(--rose);

    text-decoration: none;

    border-bottom: 1px solid var(--rose);
}


.something-box a:hover {
    color: var(--burnt);

    border-color: var(--burnt);
}


/* =========================================
   WORK PAGE
   ========================================= */

.work-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;

    margin-top: 45px;
}


.work-card {
    padding: 25px;

    border: 5px solid var(--rose);

    border-top: 8px solid var(--violet);

    background: rgba(112, 75, 88, 0.035);
}


body.dark-mode .work-card {
    background: rgba(210, 61, 120, 0.06);
}


.work-card:nth-child(2) {
    border-top-color: var(--burnt);
}

.work-card:nth-child(3) {
    border-top-color: var(--petrol);
}

.work-card:nth-child(4) {
    border-top-color: var(--violet);
}

.work-card:nth-child(5) {
    border-top-color: var(--copper);
}

.work-card:nth-child(6) {
    border-top-color: var(--rose);
}


.work-number {
    margin: 0 0 25px;

    color: var(--copper);

    font-size: 0.7rem;

    letter-spacing: 0.15em;
}


.work-card h2 {
    margin: 0 0 15px;

    color: var(--rose);

    font-size: 1.6rem;

    font-weight: normal;
}


.work-card p:not(.work-number) {
    margin: 0;

    max-width: 500px;

    color: var(--text);

    font-size: 0.9rem;

    line-height: 1.7;
}


.work-contact {
    margin-top: 45px;

    padding: 35px;

    border-top: 10px solid var(--rose);

    border-bottom: 4px solid var(--rose);
}


.work-contact-label {
    margin: 0 0 12px;

    color: var(--copper);

    font-size: 0.7rem;

    letter-spacing: 0.15em;
}


.work-contact h2 {
    margin: 0 0 15px;

    color: var(--rose);

    font-size: 2.2rem;

    font-weight: normal;
}


.work-contact p:not(.work-contact-label) {
    margin: 0 0 20px;

    color: var(--text);

    font-size: 0.9rem;

    line-height: 1.6;
}


.work-contact a {
    color: var(--rose);

    text-decoration: none;

    border-bottom: 1px solid var(--rose);
}


.work-contact a:hover {
    color: var(--burnt);

    border-color: var(--burnt);
}


/* =========================================
   PROJECT VIDEO
   ========================================= */

.project-card .project-video {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-bottom: 5px solid var(--rose);
}


.project-card .project-video iframe {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border: 0;

    display: block;
}


/* =========================================
   PROJECT DETAIL PAGE
   ========================================= */

.project-detail-header {
    padding: 70px 0 45px;

    max-width: 900px;
}


.project-detail-header h1 {
    margin-bottom: 15px;
}


.project-detail-intro {
    font-size: 1.15rem;

    max-width: 650px;
}


/* =========================================
   PROJECT DETAIL VIDEO
   ========================================= */

.project-detail-video {
    margin-bottom: 60px;
}


.project-detail-video .project-video {
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;
}


.project-detail-video iframe {
    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================
   PROJECT CONTENT
   ========================================= */

.project-detail-content {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(220px, 1fr);

    gap: 60px;

    margin-bottom: 80px;
}


.project-detail-main h2 {
    margin-top: 45px;
    margin-bottom: 15px;
}


.project-detail-main h2:first-of-type {
    margin-top: 0;
}


.project-detail-main p {
    line-height: 1.7;

    max-width: 750px;
}


/* =========================================
   PROJECT SIDEBAR
   ========================================= */

.project-detail-sidebar {
    display: flex;

    flex-direction: column;

    gap: 25px;
}


.project-detail-box {
    padding: 25px;

    border: 1px solid currentColor;
}


.project-detail-box p {
    line-height: 1.6;
}


.project-detail-box strong {
    font-weight: 700;
}


/* =========================================
   PROJECT GALLERY
   ========================================= */

.project-gallery {
    margin-bottom: 70px;
}


.project-gallery h2 {
    margin-bottom: 30px;
}


.project-gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}


.project-gallery-image {
    overflow: hidden;
}


.project-gallery-image img {
    display: block;

    width: 100%;

    height: auto;
}


/* =========================================
   BACK TO PROJECTS
   ========================================= */

.project-back {
    padding: 30px 0 60px;
}


.project-back a {
    font-weight: 700;

    text-decoration: none;
}


.project-back a:hover {
    text-decoration: underline;
}


/* =========================================
   MUSIC ARCHIVE
   ========================================= */

.music-archive-intro {
    max-width: 800px;

    margin: 0 auto;

    padding: 40px 0 60px;
}


.music-archive-intro .archive-back {
    display: inline-block;

    margin-bottom: 55px;

    color: var(--violet);

    text-decoration: none;

    font-weight: bold;
}


.music-archive-intro .archive-back:hover {
    color: var(--petrol);

    text-decoration: underline;
}


.music-archive-intro p:not(.page-kicker):not(.page-intro) {
    max-width: 700px;

    line-height: 1.7;
}


/* =========================================
   MUSIC TIMELINE
   ========================================= */

.music-timeline {
    position: relative;

    max-width: 1000px;

    margin: 0 auto;

    padding: 20px 0 80px;
}


.music-timeline::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 72px;

    width: 2px;

    background: var(--violet);

    opacity: 0.45;
}


/* =========================================
   INDIVIDUAL MUSIC ENTRY
   ========================================= */

.music-entry {
    position: relative;

    display: grid;

    grid-template-columns: 145px 1fr;

    gap: 30px;

    margin-bottom: 75px;
}


.music-entry:last-child {
    margin-bottom: 0;
}


/* =========================================
   NUMBER
   ========================================= */

.music-number {
    position: relative;

    z-index: 2;

    width: 72px;
    height: 72px;

    display: flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: var(--paper);

    border: 2px solid var(--violet);

    border-radius: 50%;

    color: var(--violet);

    font-size: 20px;

    font-weight: bold;
}


/* =========================================
   MUSIC CONTENT
   ========================================= */

.music-content {
    min-width: 0;

    padding: 5px 0 35px;

    border-bottom: 1px solid rgba(155, 77, 204, 0.35);
}


.music-content h2 {
    margin-top: 5px;

    margin-bottom: 12px;

    color: var(--petrol);
}


.music-date {
    margin: 0 0 5px;

    color: var(--violet);

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.music-description {
    max-width: 700px;

    line-height: 1.6;

    margin-bottom: 25px;
}


/* =========================================
   SOUNDCLOUD PLAYER
   ========================================= */

.music-player {
    width: 100%;

    margin: 18px 0 28px;

    overflow: hidden;
}


.music-player iframe {
    display: block;

    width: 100%;

    max-width: 100%;

    border: none;
}


/* =========================================
   VERSIONS
   ========================================= */

.music-version {
    margin-top: 25px;

    margin-bottom: 30px;
}


.music-version-label {
    margin: 0 0 8px;

    color: var(--violet);

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.music-version + .music-version {
    padding-top: 10px;

    border-top: 1px dashed rgba(155, 77, 204, 0.35);
}


/* =========================================
   WRITING
   ========================================= */

.music-writing {
    margin-top: 30px;
}


.music-writing h3 {
    margin-top: 28px;

    margin-bottom: 8px;

    color: var(--violet);

    font-size: 15px;
}


.music-writing p {
    max-width: 720px;

    line-height: 1.7;
}


/* =========================================
   PROGRESSION BOX
   ========================================= */

.music-progression {
    margin-top: 30px;

    padding: 22px 25px;

    border-left: 4px solid var(--violet);

    background: rgba(155, 77, 204, 0.08);
}


.music-progression strong {
    display: block;

    margin-bottom: 8px;

    color: var(--violet);

    font-size: 12px;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.music-progression p {
    margin: 0;
}


/* =========================================
   END OF ARCHIVE
   ========================================= */

.music-archive-end {
    max-width: 800px;

    margin: 0 auto;

    padding: 50px 0 80px;

    text-align: center;

    border-top: 1px solid rgba(155, 77, 204, 0.35);
}


.music-archive-end h2 {
    margin: 10px 0;
}


/* =========================================
   MUSIC LINKS
   ========================================= */

.music-archive-intro a,
.music-archive-intro a:visited,
.music-archive-intro a:hover,
.music-archive-intro a:active,

.music-content a,
.music-content a:visited,
.music-content a:hover,
.music-content a:active,

.music-archive-end a,
.music-archive-end a:visited,
.music-archive-end a:hover,
.music-archive-end a:active {
    color: var(--violet);
}


/* =========================================
   DARK MODE
   ========================================= */

.dark-mode .music-content {
    border-bottom-color: rgba(155, 77, 204, 0.3);
}


.dark-mode .music-progression {
    background: rgba(155, 77, 204, 0.12);
}


/* =========================================
   TABLET / MOBILE
   ========================================= */

@media (max-width: 700px) {

    .site {
        width: calc(100% - 16px);

        margin: 8px auto;

        padding: 15px;

        border-width: 3px;
    }


    .header {
        padding-top: 55px;
    }


    .header h1 {
        font-size:
            clamp(
                3rem,
                14vw,
                5rem
            );
    }


    .navigation {
        grid-template-columns: repeat(2, 1fr);
    }


    .navigation a {
        min-height: 70px;
    }


    .lower-area {
        grid-template-columns: 1fr 1fr;
    }


    .photo-box.third {
        grid-column: span 2;
    }


    .web-area {
        display: block;
    }


    .web-items {
        margin-top: 15px;
    }


    .subpage-header {
        position: relative;
    }


    .site-title {
        font-size: 1.3rem;
    }


    .subpage-nav a {
        flex: 1 1 33.333%;

        padding: 10px 5px;

        font-size: 0.7rem;
    }


    .page-heading {
        padding: 45px 0 35px;
    }


    .full-update {
        grid-template-columns: 1fr;

        gap: 10px;

        padding: 30px 0;
    }


    .full-update-date {
        padding: 0;
    }


    .projects-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .guestbook-area {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .guestbook-form {
        padding: 20px;
    }


    .guestbook-embed {
        margin-top: 30px;

        border-width: 3px;

        border-top-width: 8px;
    }


    .guestbook-embed iframe {
        height: 900px;
    }


    .photo-gallery {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .gallery-photo.tall {
        grid-row: auto;
    }


    .gallery-photo.tall img {
        height: auto;

        min-height: 0;
    }


    .gallery-photo.wide {
        grid-column: auto;
    }


    .gallery-photo.wide img {
        aspect-ratio: auto;
    }


    .archive-note {
        grid-template-columns: 1fr;

        gap: 12px;

        padding: 18px;
    }


    .archive-item {
        grid-template-columns: 1fr;

        gap: 15px;

        padding: 28px 0;
    }


    .archive-date {
        padding: 0;
    }


    .link-item {
        padding: 16px 10px;
    }


    .link-item:hover {
        padding-left: 15px;
    }


    .misc-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .misc-box {
        padding: 20px;
    }


    .work-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .work-card {
        padding: 20px;
    }


    .work-contact {
        padding: 25px 20px;
    }


    .work-contact h2 {
        font-size: 1.8rem;
    }


    /* PROJECT DETAIL */

    .project-detail-header {
        padding: 45px 0 30px;
    }


    .project-detail-content {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .project-detail-sidebar {
        order: -1;
    }


    .project-gallery-grid {
        grid-template-columns: 1fr;
    }


    /* MUSIC ARCHIVE */

    .music-archive-intro {
        padding: 30px 0 45px;
    }


    .music-timeline {
        padding-top: 10px;
    }


    .music-timeline::before {
        left: 34px;
    }


    .music-entry {
        grid-template-columns: 70px 1fr;

        gap: 20px;

        margin-bottom: 55px;
    }


    .music-number {
        width: 68px;
        height: 68px;

        font-size: 17px;
    }


    .music-content {
        padding-top: 2px;
    }


    .music-content h2 {
        font-size: 24px;
    }


    .music-player {
        margin-left: 0;
        margin-right: 0;
    }


    .music-player iframe {
        width: 100%;
    }


    .music-progression {
        padding: 18px 20px;
    }


    /* PHONE THEME BUTTON */

    #theme-toggle {
        top: 8px;
        right: 8px;

        min-height: 42px;

        padding: 9px 11px;

        font-size: 0.72rem;
    }

}


/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 450px) {

    .lower-area {
        grid-template-columns: 1fr;
    }


    .photo-box.third {
        grid-column: auto;
    }


    .subpage-nav a {
        flex: 1 1 50%;
    }


    .page-heading h1 {
        font-size: 3.5rem;
    }


    #theme-toggle {
        font-size: 0;

        width: 42px;
        height: 42px;

        padding: 0;
    }


    body:not(.dark-mode) #theme-toggle::before {
        content: "🌙";

        font-size: 17px;
    }


    body.dark-mode #theme-toggle::before {
        content: "☀️";

        font-size: 17px;
    }


    /* MUSIC ARCHIVE */

    .music-entry {
        grid-template-columns: 55px 1fr;

        gap: 15px;
    }


    .music-timeline::before {
        left: 27px;
    }


    .music-number {
        width: 54px;
        height: 54px;

        font-size: 14px;
    }


    .music-content h2 {
        font-size: 21px;
    }


    .music-description {
        font-size: 14px;
    }


    .music-writing p {
        font-size: 14px;
    }

}