body {
    font-family: sans-serif;
    padding: 20px;
}

.editor-container {
    display: flex;
    gap: 20px;
}

svg {
    border: 1px solid #ccc;
    background: #fafafa;
}

.icon {
    margin-right: 0.4em;
    vertical-align: middle;
    background: none;
    display: inline-block;
    width: 1.3em;
    height: 1.3em;
    fill: currentColor;
    border: none;
}

.input-fields {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.swatch-block {
    text-align: center;
    font-family: monospace;
    font-size: 10px;
    width: 100%;
    /* padding: 5px; */
}

.swatch-block-color {
    width: 100%;
    height: 80px;
    margin-bottom: 5px;
    border: 1px solid black;
}

/* .swatch-combined { }
.swatch-tone { }
.swatch-colorcast { }
.swatch-hue { } */

.top-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    font-family: system-ui, sans-serif;
}

.branding .logo {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

@media (min-width: 600px) {
    .top-banner {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 2rem;
    }
    
    .branding .logo {
        margin-bottom: 0;
    }
}



.branding a.logo {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #222;
    text-decoration: none;
}

.btn {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    background: #eee;
    /* font-size: 0.95rem; */
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
}

.btn.primary {
    background-color: #111;
    color: #fff;
}

.btn.primary:hover {
    background-color: #333;
}

.btn.secondary {
    background-color: #f2f2f2;
    color: #222;
}

.btn.secondary:hover {
    background-color: #e0e0e0;
}

@media (min-width: 600px) {
    .top-banner {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 2rem;
    }
    
    .branding .logo {
        margin-bottom: 0;
    }
}

.cta {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.cta h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-links a {
    text-decoration: none;
    color: #0066ff;
    font-weight: 500;
    font-size: 0.95rem;
}


/* Modal */
/* Modal backdrop */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Hidden class */
.hidden {
    display: none;
}

/* Modal content */
.modal-content {
    background: white;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    position: relative;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 0.5em;
    right: 1em;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}
