
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

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

html, body, h1, h2, h3, h4, h5, h6,
p, a, span, small, strong, b, em,
button, input, select, textarea,
label, li, summary, div {
    font-family: 'Poppins', sans-serif !important;
}

body {
    margin: 0;
    background: #faf9f6;
    color: #242421;
    font: 15px/1.65 'Poppins', sans-serif;
}

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

main {
    max-width: 1440px;
    margin: auto;
    padding: 38px 5vw 72px;
}

section {
    margin-bottom: 64px;
}

h1, h2, h3, h4, p {
    margin: 0 0 12px;
}

h1 {
    font: 700 clamp(44px, 6vw, 88px)/1.02 'Poppins', sans-serif;
    letter-spacing: -.055em;
}

h1 em {
    font-weight: 400;
    color: #686e5c;
}

h2 {
    font: 600 clamp(28px, 3.5vw, 46px)/1.15 'Poppins', sans-serif;
    letter-spacing: -.025em;
}

h3 {
    font-size: 21px;
    font-weight: 600;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    padding: 30px 0 48px;
    border-bottom: 1px solid #dedbd4;
}

.hero p {
    max-width: 510px;
    color: #575750;
}

.eyebrow {
    display: block;
    color: #65675d;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 18px;
}

.cta, button {
    display: inline-block;
    background: #242421;
    color: white;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.secondary {
    display: inline-block;
    padding: 12px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.muted {
    color: #686861;
    font-size: 14px;
}

.hero-art {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: clamp(24px, 4vw, 52px);
    background: #e9e5db;
    border: 1px solid #ddd7cb;
    color: #354638;
}

.hero-art small, .collection small {
    letter-spacing: 2px;
    font-size: 10px;
    font-weight: 600;
}

.hero-art h2 {
    font-size: clamp(38px, 5vw, 68px);
    margin: 28px 0 12px;
}

.hero-art a {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.collections, .looks, .steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.collection {
    padding: 24px;
    min-height: 185px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    border-radius: 3px;
}

.collection h3 {
    font: 600 27px/1.1 'Poppins', sans-serif;
    margin-top: 20px;
}

.gold {
    background: #e9dfca;
    color: #483d2c;
}

.ice {
    background: #e4eaec;
    color: #34454d;
}

.red {
    background: #eaded9;
    color: #643c37;
}

.city {
    background: #dedfd9;
    color: #354139;
}

.collection b {
    font-size: 12px;
}

.style-group {
    margin: 38px 0;
}

.looks {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.look {
    cursor: pointer;
    min-width: 0;
    padding: 0 0 12px;
    border-bottom: 1px solid #dedbd4;
}

.look h4 {
    margin: 12px 0 6px;
    font-weight: 600;
}

.look img, .sample-empty {
    display: block;
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 3px;
}

.sample-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eeece6;
    color: #67665e;
    text-align: center;
    padding: 10px;
}

.sample-empty small {
    font-size: 12px;
}

.choose {
    background: transparent;
    color: #242421;
    padding: 6px 0;
    font-size: 13px;
    text-align: left;
    width: 100%;
}

.look.is-selected {
    outline: 2px solid #465d49;
    outline-offset: 5px;
}

.look.is-selected .choose {
    color: #36533b;
    font-weight: 700;
}

.workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    scroll-margin-top: 15px;
}

.controls, .result {
    background: white;
    border: 1px solid #dedbd4;
    padding: 28px;
    border-radius: 8px;
    min-width: 0;
}

.controls h2, .result h2 {
    font: 600 20px/1.4 'Poppins', sans-serif;
    margin-top: 15px;
}

.result img, .result canvas {
    display: block;
    margin: 12px auto;
    object-fit: contain;
}

.result {
    background: #f1efe9;
}

input:not([type=checkbox]), select {
    width: 100%;
    padding: 12px;
    border: 1px solid #c9c7bf;
    border-radius: 5px;
    background: white;
    color: #242421;
    font: inherit;
    margin: 8px 0 16px;
}

input[type=checkbox] {
    accent-color: #354638;
}

#selectedLook {
    color: #36533b;
    font-weight: 600;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.actions button:not(:first-child) {
    background: white;
    color: #242421;
    border-color: #c9c7bf;
}

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

#generate {
    width: 100%;
}

#status {
    overflow-wrap: anywhere;
    margin-top: 12px;
}

.steps {
    grid-template-columns: repeat(3, 1fr);
}

.steps article {
    padding: 20px 0;
    border-top: 1px solid #c9c7bf;
}

.steps b {
    color: #686e5c;
}

footer {
    border-top: 1px solid #dedbd4;
    padding: 28px 5vw;
    color: #242421;
}

footer span {
    float: right;
    color: #686861;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #465d49;
    outline-offset: 3px;
}

@media(max-width: 850px) {

    main {
        padding: 24px 5vw 40px;
    }

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

    .looks {
        grid-template-columns: repeat(3, 1fr);
    }

    .collections {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-art {
        min-height: 240px;
    }
}

@media(max-width: 480px) {

    .looks {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .controls, .result {
        padding: 16px;
    }

    .collection {
        padding: 15px;
        min-height: 170px;
    }

    .collection h3 {
        font-size: 22px;
    }

    section {
        margin-bottom: 40px;
    }

    footer span {
        float: none;
        display: block;
    }
}
