* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: SF Pro Text, Inter, system-ui, sans-serif;
    background: #FFF;
    color: #1D1D1F;
}

main {
    width: 100%;
    min-height: 100vh;
    margin: auto;
    display: flex;
    gap: 32px;
    padding: 0 8px;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
    padding: 80px 64px;
}

.ds-logo {
    width: max-content;
    height: max-content;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.25s ease-in;
}

.ds-logo:hover {
    opacity: 1;
    cursor: pointer;
}

.ds-logo svg {
    height: 48px;
}

.ds-logo svg path {
    fill: #000;
}

p {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.13px;
    max-width: 360px;
    width: 100%;
    color: #6E6E73;
    text-align: center;
}

input[type="text"] {
    max-width: 360px;
    width: 100%;
    height: 52px;
    font-size: 16px;
    line-height: 20px;
    padding: 4px 20px;
    border: 2px solid rgba(0, 0, 0, 0);
    background: #F5F5F8;
    border-radius: 32px;
    outline: none;
    transition: 0.2s ease;
    text-transform: uppercase;
    font-family: SF Pro Text, Inter, system-ui, sans-serif;
    color: #1D1D1F;
}

input[type="text"]:focus {
    border-color: #007CFF;
}

.palette-wrapper {
    width: 100%;
    height: 100vh;
    background: #FAFAFD;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 80px 64px;
}

.palette {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    width: 100%;
    margin-inline: auto;
}

.color-box {
    border-radius: 12px;
    padding: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #FFF;
    border: 1px solid rgb(128 128 128 / 12.5%);
    font-weight: 600;
    aspect-ratio: 1 / 1;
    min-width: 80px;
    width: 100%;
    max-height: 80px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.color-box:hover {
    transform: translateY(-1.25%);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12);
}

.color-box:active {
    transform: translateY(0);
}

code {
    font-family: SF Pro Text, Inter, monospace;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.3px;
    padding: 4px;
    color: #F5F5F8;
    background: #1D1D1F;
    border-radius: 8px;
    width: 100%;
    text-align: center;
}

.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1D1D1F;
    color: #F5F5F8;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1024px) {
    main {
        flex-direction: column;
    }

    .controls {
        padding: 80px 32px;
    }

    .palette-wrapper {
        height: 100%;
        padding: 80px 32px;
    }
}

@media (max-width: 768px) {
    .controls {
        padding: 80px 16px;
    }

    .palette-wrapper {
        height: 100%;
        padding: 80px 16px;
    }
}