/* =====================================
   1. RESET / BASE
===================================== */

*,
::after,
::before {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
}

img {
    max-width: 100%;
}


/* =====================================
   2. TOKENS / VARIABLES
===================================== */

:root {
    --color-body-copy-black: #000;
    --color-body-copy-charcoal: #333;
    --color-accent:#FFBD1A;
}


/* =====================================
   3. BASE TYPOGRAPHY
===================================== */

h1,
h2 {
    font-family: "Gloock";
    font-weight: 400;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 2rem;
}

p {
    font-family: "Lexend", sans-serif;
    color: var(--color-body-copy-charcoal);
    line-height: 1.5;
}

a {
    color: var(--color-body-copy-charcoal);
    font-family: "Lexend", sans-serif;
    font-weight: 400;
    text-decoration: none;
}

nav ul li a {
    display: inline-block;
    padding: 0.5rem 0;
}

nav ul li a:hover {
    text-decoration: underline;
}


/* =====================================
   4. GLOBAL LAYOUT / HEADER
===================================== */

body > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

header h1 a {
    font-family: "Gloock";
}

header h1 a:hover {
    opacity: 0.8;
}

nav ul {
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-bottom: 0.25rem;
}


/* =====================================
   5. COMPONENTS
===================================== */

/* --- Home --- */

html {
    scroll-behavior: smooth;
}

.role-pill {
    display: inline-block;
    background-color: var(--color-accent);
    border-radius: 32px;
    padding: 0.3rem 0.75rem;
    font-family: "Lexend", sans-serif;
    font-weight: 300;
    font-size: 1rem;
    text-align: center;
}

section.hero {
    margin-top: 3rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 2rem;
}

p.tag-line {
    font-family: "Gloock";
    color: var(--color-body-copy-charcoal);
    font-size: 1rem;
}

a.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 3rem;
}

a.cta > img {
    height: 1.25em;
    width: 1.25em;
}

p.hero-meta {
    margin-top: 1.5em;
    font-family: "Lexend", sans-serif;
    color: #808080;
}

.work {
    margin-top: 2rem;
    padding: 1rem 2rem;
}

.work-content > a {
    display: block;
    margin-bottom: 4rem;
}

.work-content img {
    border-radius: 25px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.work-content img:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.work-info h3 {
    text-transform: uppercase;
    font-family: "Lexend", sans-serif;
    font-weight: 400;
    color: var(--color-body-copy-black);
    margin-bottom: 0.25rem;
}

.work-info p {
    margin-top: 0;
}

.what-i-do {
    margin: 2rem auto 0 auto;
    padding: 2rem;
    background-color: #F6FCFE;
}

.what-i-do h3 {
    display: inline-block;
    font-family: "Lexend", sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: var(--color-body-copy-black);
    position: relative;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.what-i-do h3::before {
    content: "";
    background: #FFBD1A;
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.what-i-do p {
    line-height: 1.1;
    margin-bottom: 1rem;
    margin-top: 0;
}

.what-i-do h3, .what-i-do p {
    padding-left: 0.7rem;
}

.ui-implementation {
    margin-top: 2rem;
    padding: 1rem 2rem;
}

.ui-implementation h2 {
    font-family: "Gloock";
    font-size: 2rem;
    color: var(--color-body-copy-charcoal);
}

.ui-implementation p {
    color: #808080;
}

.implementation-content > a {
    display: block;
    margin-bottom: 4rem;
}

.implementation-content h3 {
    font-weight: 400;
    margin-top: 0.7rem;
    margin-bottom: 0.3rem;
}

.implementation-content p {
    margin-block: 0;
}

.about {
    padding: 1rem 2rem;
}

.about > h2 {
    text-align: center;
}

/* --- Case Study Pages --- */

.case-study-page {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* controls spacing between sections */
    padding-inline: 2rem;
    max-width: 960px;
    margin-inline: auto;
}

.case-study-page header h2 {
    margin-bottom: 0.5rem;
}

.case-block p {
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 0.2rem;
}

.case-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-block li {
    position: relative;
    padding-left: 1rem;
    font-family: "Lexend", sans-serif;
    font-size: 1rem;
    color: var(--color-body-copy-charcoal);
    line-height: 1.8;
}

.case-block li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

.case-block li + li {
    margin-top: 0.4rem;
}

.case-block h2 {
    font-family: "Gloock";
    font-size: 2rem;
    color: var(--color-body-copy-charcoal);
    margin-bottom: 0.5rem;
}

.key-screens {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.key-screens + .key-screens {
    margin-top: 2rem;
}

.key-screens-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.key-screens-row .key-screens + .key-screens {
    margin-top: 0;
}

.key-screens h3 {
    font-size: 0.7rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
}

.key-screens p {
    font-size: 0.6rem;
    font-weight: 300;
    color: var(--color-body-copy-charcoal);
    margin: 0;
}

.key-screens img {
    border-radius: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* --- UI Implementation Pages --- */

.ui-frame {
    margin-top: 1rem;
}

.ui-frame iframe {
    width: 100%;
    /* min-height: 500px; */
    border: 1px solid #E3E3E3;
    height: 85vh;
    background: #fff;
}



/* =====================================
   6. FOOTER
===================================== */

footer {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #F6FCFE;
}

.footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.footer-inner div.links {
    margin-inline: auto;
}

.footer-inner h3 {
    font-family: "Gloock";
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.footer-inner > div p {
    color: #808080;
}

.footer-inner > div.contact {
    display: flex;
    flex-direction: column;
}

.footer-inner > div.contact p {
    display: inline-block;
}

.footer-inner a {
    display: inline-block;
    text-decoration: none;
    color: var(--color-body-copy-charcoal);
}

.footer-inner a:hover {
    text-decoration: underline;
}

.footer-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-inner li {
    position: relative;
    padding-left: 0.65rem;
    margin-bottom: 0.25rem;
}

.footer-inner li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.70em;
    width: 6px;
    height: 6px;
    background: #FFBD1A;
    border-radius: 50%;
}

.footer-inner h3 a {
    text-decoration: none;
    color: inherit;
    font: inherit;
}

/* =====================================
   7. MEDIA QUERIES (DESKTOP)
===================================== */

@media (min-width:768px) {

    nav ul {
        display: flex;
        gap: 1.5rem;
        list-style: none;
    }

    nav ul li {
        margin-bottom: 0;
    }

    section.hero {
        margin-top: 2rem;
        display: flex;
        gap: 2rem;
        max-width: 1280px;
    }

    .hero-content,
    .hero-illustration {
        flex: 1;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 2.5rem; }

    .work h3 { font-size: 0.6rem; }

    .work-info {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 1rem;
        align-items: start;
    }

    .work-info p {
        font-size: 0.6rem;
        justify-self: end;
        text-align: right;
    }

    .what-i-do p {
    font-size: 0.6rem;
    }

    .work > h2 { text-align: center; }

    h2.role-pill { margin-top: 3rem; }

    p.tag-line { font-size: 1.5rem; }

    a.cta { margin-top: 2rem; }

    p.hero-meta {
        margin-top: 0.5rem;
        font-size: 0.70rem;
    }

    .work-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }

    .work-content > a {
        margin-bottom: 2rem;
    }

    .what-i-do { text-align: center; }

    .ui-implementation h2 { text-align: center; }

    .ui-implementation > p {
        font-size: 0.70rem;
        text-align: center;
        max-width: 80ch;
        margin-inline: auto;
    }

    .implementation-content {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        margin-top: 2rem;
    }

    .implementation-content > a {
        min-width: 0;
    }

    .implementation-content img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.25s ease;    
    }

    .implementation-content img:hover {
        transform: translateY(-2px);    
    }

    .implementation-content h3 {
        font-size: 0.7rem;
    }

    .implementation-content p {
        font-size: 0.6rem;
    }

    .about p {
        text-align: center;
        font-size: 0.6rem;
        max-width: 60ch;
        margin-inline: auto;
    }

    /* --- Case Study Pages --- */

    .case-block p {
        font-size: 0.7rem;
    }

    .case-block li {
    font-size: 0.7rem;
    }

    .key-screens-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 3rem;
    }

    .footer-inner {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }

    .footer-inner h3 {
        font-size: 1rem;
    }

    .footer-inner > div p {
        font-size: 0.6rem;
    }

    .footer-inner a {
        font-size: 0.6rem;
    }
}