:root {
    /* Palette */
    --parchment: #faf6ed;
    --ink: #0a0a0a;
    --rust: #92400e;
    
    /* Structural */
    --line: rgba(10, 10, 10, 0.15);
    --line-heavy: rgba(10, 10, 10, 0.8);
}

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

body {
    background-color: var(--parchment);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Utility Class */
.hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Header & Typography */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.hero-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 50px;
    display: block;
    mix-blend-mode: multiply; /* Helps duotone sit cleanly on background */
}

.meta-tag {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rust);
    margin-bottom: 24px;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 30px;
    color: var(--ink);
}

.countdown {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    margin: 0 auto 20px;
    display: inline-block;
    color: rgba(10, 10, 10, 0.8);
}

#cd-time {
    color: var(--rust);
    font-weight: bold;
    margin-left: 8px;
}

/* Prize Block */
.prize-block {
    border-top: 1px solid var(--line-heavy);
    border-bottom: 1px solid var(--line-heavy);
    margin-bottom: 40px;
}

.prize-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 8px;
    border-bottom: 1px solid var(--line);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
}

.prize-row:last-child {
    border-bottom: none;
}

.prize-item {
    font-weight: 400;
}

.prize-value {
    color: var(--rust);
    text-align: right;
    min-width: 80px;
}

/* Content */
.editorial-text {
    font-weight: 300;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: rgba(10, 10, 10, 0.9);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 0;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

input:focus {
    outline: none;
    border-color: var(--line-heavy);
}

input::placeholder {
    color: rgba(10, 10, 10, 0.4);
}

button {
    background: var(--ink);
    color: var(--parchment);
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 28px;
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 0;
}

button:hover {
    background: var(--parchment);
    color: var(--ink);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Messages */
.message {
    font-size: 13px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    font-family: 'Space Mono', monospace;
}

.message.error {
    border-color: var(--rust);
    color: var(--rust);
}

.status-box {
    text-align: center;
    border: none;
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--rust);
}

/* Success State */
.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--rust);
}

.share-box {
    border: 1px solid var(--line);
    padding: 32px 24px;
    margin-top: 40px;
    background: rgba(10, 10, 10, 0.02);
}

.share-text {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--ink);
}

.share-row {
    display: flex;
    gap: 12px;
}

/* Footer */
.footer {
    margin-top: 80px;
    text-align: center;
    border-top: 1px solid var(--line);
    padding-top: 40px;
}

.fine-print {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: rgba(10, 10, 10, 0.5);
    margin-bottom: 40px;
    line-height: 1.5;
}

#wbx-powered-by-slot {
    display: flex;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 50px 20px 40px;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    button {
        padding: 16px 24px;
        width: 100%;
    }
    
    .share-row {
        flex-direction: column;
    }
}