/* ==========================================================
   FONTS
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=DM+Mono&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap");


/* ==========================================================
   COLOURS
   ========================================================== */

:root {
    --paper: #f6f1e8;
    --ink: #1d2020;

    --line: rgba(29, 32, 32, 0.22);

    --accent: #da6559;

    --peach: #f4ab83;
    --lime: #b6d45f;
    --lavender: #b9b7e7;
}


/* ==========================================================
   GLOBAL
   ========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;

    background: var(--paper);
    color: var(--ink);

    font-family: "DM Sans", Arial, sans-serif;
}

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


/* ==========================================================
   PAGE WIDTH
   ========================================================== */

.site-header,
main,
footer {
    width: min(1160px, calc(100% - 48px));
    margin: auto;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    height: 88px;

    border-bottom: 1px solid var(--line);

    font-size: 0.82rem;
    letter-spacing: 0.04em;
}


/* Logo */

.wordmark {
    font-family: "Fraunces", serif;
    font-size: 1.25rem;
    font-weight: 600;

    letter-spacing: -0.08em;
}

.wordmark span {
    margin-left: 0.16em;

    color: var(--accent);

    font-size: 0.8em;
}


/* Navigation */

nav {
    display: flex;
    gap: 25px;
}

nav a,
.mail-link {
    transition: opacity 0.2s;
}

nav a:hover,
.mail-link:hover {
    opacity: 0.52;
}

.mail-link {
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    position: relative;

    min-height: 620px;

    padding: 82px 0 60px;

    border-bottom: 1px solid var(--line);
}


/* Small uppercase text */

.eyebrow,
.section-number,
.card-type {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;

    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.eyebrow {
    margin: 0;
}


/* Headings */

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

h1,
h2,
h3 {
    font-weight: 500;
    letter-spacing: -0.06em;
}

h1 {
    margin: auto 0;

    font-family: "Fraunces", serif;
    font-size: clamp(4.8rem, 12vw, 9.5rem);
    font-weight: 600;
    line-height: 0.84;
}

h1 em {
    color: var(--accent);
    font-style: italic;
}


/* Bottom of hero */

.hero-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Scroll button */

.round-button {
    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;

    border: 1px solid var(--ink);
    border-radius: 50%;

    font-size: 1.6rem;

    transition:
        background 0.25s,
        color 0.25s,
        transform 0.25s;
}

.round-button:hover {
    background: var(--ink);
    color: var(--paper);

    transform: translateY(4px);
}

/* ==========================================================
   ABOUT
   ========================================================== */

.intro-band {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;

    padding: 120px 0;

    border-bottom: 1px solid var(--line);
}

.intro-band h2 {
    max-width: 620px;
    margin-bottom: 27px;

    font-family: "Fraunces", serif;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 0.96;
}

.intro-band div p {
    max-width: 440px;

    line-height: 1.55;
}


/* ==========================================================
   WORK
   ========================================================== */

.work {
    padding: 110px 0 130px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    align-items: end;
    gap: 30px;

    margin-bottom: 48px;
}

.section-heading h2,
.elsewhere h2 {
    margin: 0;

    font-family: "Fraunces", serif;
    font-size: clamp(3rem, 6vw, 5.4rem);
    font-weight: 500;
    line-height: 0.88;
}

.section-note {
    margin-bottom: 3px;

    font-size: 0.85rem;
    line-height: 1.45;
}


/* ==========================================================
   WORK GRID
   ========================================================== */

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}


/* ==========================================================
   CARDS
   ========================================================== */

.work-card {
    display: flex;
    flex-direction: column;

    min-height: 535px;

    overflow: hidden;

    border: 1px solid var(--line);

    background: rgba(255, 255, 255, 0.18);
}


/* ==========================================================
   CARD ARTWORK
   ========================================================== */

.card-art {
    position: relative;

    height: 305px;

    overflow: hidden;
}


/* ---------- Visual Archive ---------- */

.art-one {
    background: var(--peach);
}

.sun {
    position: absolute;

    top: 49px;
    left: 24%;

    width: 175px;
    height: 175px;

    border-radius: 50%;

    background: #ffdd78;
}

.arch {
    position: absolute;

    right: 14%;
    bottom: -70px;

    width: 165px;
    height: 235px;

    border: 20px solid #42616a;
    border-bottom: none;
    border-radius: 95px 95px 0 0;
}

.dot {
    position: absolute;

    bottom: 31px;
    left: 16%;

    width: 27px;
    height: 27px;

    border-radius: 50%;

    background: #e05b50;
}


/* ---------- Code Card ---------- */

.art-two {
    display: flex;
    align-items: center;

    padding: 70px 14%;

    background: var(--lavender);
}

.art-two pre {
    margin: 0;

    font-family: "DM Mono", monospace;
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    line-height: 1.35;

    color: #2e315c;
}

.art-two pre span {
    color: #ed5d4f;
}


/* ==========================================================
   CARD CONTENT
   ========================================================== */

.card-copy {
    padding: 25px 27px 30px;
}

.card-type {
    margin-bottom: 12px;
}

.card-copy h3 {
    margin-bottom: 16px;

    font-size: 1.75rem;
    line-height: 1;
}

.card-copy p:not(.card-type) {
    max-width: 410px;
    margin-bottom: 18px;

    font-size: 0.88rem;
    line-height: 1.45;
}

.card-copy a {
    font-size: 0.78rem;
    font-weight: 600;

    text-decoration: underline;
    text-underline-offset: 5px;
}


/* Status badge */

.status {
    display: inline-block;

    padding: 7px 9px;

    border-radius: 15px;

    background: var(--lime);

    font-family: "DM Mono", monospace;
    font-size: 0.67rem;
}


/* ==========================================================
   WIDE CARD
   ========================================================== */

.wide-card {
    grid-column: 1 / -1;

    display: flex;
    flex-direction: row;

    min-height: 190px;
}

.wide-card .card-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* Left-hand visual */

.wide-visual {
    display: flex;
    align-items: center;
    gap: 13px;

    width: 43%;
    min-height: 190px;

    padding: 0 10%;

    overflow: hidden;
    white-space: nowrap;

    background: #9ec5b3;

    font-family: "DM Mono", monospace;
    font-size: 1.2rem;
}

.wide-visual span {
    color: #204846;
}

.wide-visual i,
.wide-visual b {
    display: block;

    width: 21px;
    height: 21px;

    flex: none;

    border-radius: 50%;

    background: #f4ea82;
}

.wide-visual b {
    background: #e85f50;
}

/* ==========================================================
   ELSEWHERE
   ========================================================== */

.elsewhere {
    padding: 90px 0 120px;

    border-top: 1px solid var(--line);
}

.elsewhere h2 {
    margin: 24px 0 50px;
}


/* ==========================================================
   SOCIAL LINKS
   ========================================================== */

.social-links {
    border-top: 1px solid var(--line);
}

.social-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 17px 4px;

    border-bottom: 1px solid var(--line);

    font-family: "Fraunces", serif;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 500;

    transition:
        padding 0.2s,
        color 0.2s;
}

.social-links a:hover {
    padding-left: 16px;
    color: var(--accent);
}


/* ==========================================================
   FOOTER
   ========================================================== */

footer {
    display: flex;
    justify-content: space-between;

    padding: 25px 0 35px;

    border-top: 1px solid var(--line);

    color: #555;

    font-family: "DM Mono", monospace;
    font-size: 0.68rem;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 720px) {

    /* ---------- Header ---------- */

    .site-header {
        height: 71px;
    }

    .site-header nav {
        display: none;
    }


    /* ---------- Hero ---------- */

    .hero {
        min-height: 545px;
        padding-top: 60px;
    }


    /* ---------- About ---------- */

    .intro-band {
        grid-template-columns: 1fr;
        gap: 42px;

        padding: 86px 0;
    }


    /* ---------- Work ---------- */

    .work {
        padding: 85px 0;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-column: auto;
        flex-direction: column;
    }

    .wide-visual {
        width: 100%;
    }


    /* ---------- Elsewhere ---------- */

    .elsewhere {
        padding: 70px 0 90px;
    }


    /* ---------- Footer ---------- */

    footer {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }
}
