:root {
    --color-void: #030304;
    --color-starlight: #f4f4f5;
    --color-nebula-dim: rgba(255, 255, 255, 0.1);
    --color-nebula-active: rgba(255, 255, 255, 0.8);
    --font-primary: 'Helvetica Neue', 'Inter', system-ui, sans-serif;
    --font-display: 'Playfair Display', 'Georgia', serif;
    --spacing-unit: 1rem;
    --z-ambient: -10;
    --z-surface: 10;
    --z-overlay: 100;
}

body {
    background-color: var(--color-void);
    color: var(--color-starlight);
    font-family: var(--font-primary);
    line-height: 1.5;
    scrollbar-width: thin;
    scrollbar-color: rgba(244, 244, 245, 0.08) transparent;
}

body::-webkit-scrollbar {
    width: 4px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background: rgba(244, 244, 245, 0.08);
    border-radius: 2px;
}

#ambient-starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: var(--z-ambient);
    pointer-events: none;
}

#app-core {
    position: relative;
    z-index: var(--z-surface);
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--spacing-unit) * 2);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.ingest-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit) * 3);
    width: 100%;
    max-width: 400px;
}

.brand-mark {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0;
}

#date-ingest {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: calc(var(--spacing-unit) * 1.5);
}

#target-date {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1) 0;
    font-size: 1.25rem;
    color: var(--color-starlight);
    border-bottom: 1px solid var(--color-nebula-dim);
    transition: border-color 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#target-date:focus {
    border-bottom-color: var(--color-nebula-active);
}

#target-date::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

#target-date::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

#initiate-reveal {
    padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 2);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-void);
    background-color: var(--color-starlight);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

#initiate-reveal:hover {
    transform: translateY(-2px);
}

#initiate-reveal:active {
    transform: translateY(1px);
}

#template-root {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: var(--z-overlay);
    pointer-events: none;
}

#template-root.active-layer {
    pointer-events: auto;
}