:root {
    --bg-color: #EDE6DB;
    /* Off White - Pantone 11-0701 TCX (RGB: 237, 230, 219) */
    --text-color: #333333;
    /* Softer black */

    /* White Glossy Switch Variables */
    --plate-color: #fcfcfc;
    /* Slightly off-white to sit better on muted bg */
    --plate-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(0, 0, 0, 0.03);
    /* Subtle border definition */
    --toggle-color: #fcfcfc;
    --screw-head: #dcdcdc;
    --screw-slot: #a0a0a0;
}

body[data-theme="dark"] {
    --bg-color: #183028;
    /* Dark Forest Green - Pantone 5535C (RGB: 24, 48, 40) */
    --text-color: #d1d1d1;
    /* Muted light gray */
}

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

/* Screen reader only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Courier New', Courier, monospace;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow: hidden;
}

.container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    opacity: 0;
}

.logo-container {
    margin-bottom: 1rem;
}

.logo-container h1 {
    margin: 0;
    padding: 0;
    display: block;
}

.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.5s ease;
    filter: invert(1);
}

[data-theme="dark"] .logo {
    filter: none;
}

/* Desktop scale */
@media (min-width: 769px) {
    body {
        justify-content: center;
        padding: 1.5rem 1.5rem 3rem 1.5rem;
    }
    
    .switch-container {
        transform: scale(0.8);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .logo {
        max-width: 250px;
    }
    
    .switch-container {
        transform: scale(0.6);
    }
}

.info-container {
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align text to the right relative to its container */
    width: 100%;
    max-width: 400px;
    text-align: right;
}

.info-container a {
    text-decoration: none;
    color: inherit;
}

.info-container a:link,
.info-container a:visited,
.info-container a:hover,
.info-container a:active {
    color: inherit;
    text-decoration: none;
}

.info-line {
    margin-bottom: 0.2rem;
}

.instagram-link {
    display: inline-block;
    line-height: 1;
}

.instagram-icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
    vertical-align: middle;
    transition: fill 0.5s ease;
}

.spacer {
    height: 1.5rem;
}

/* Realistic White Glossy Lightswitch */
.switch-container {
    position: fixed;
    bottom: 50px;
    left: 50px;
    z-index: 100;
    /* Scale handled responsively via media queries */
}

.switch-plate {
    width: 120px;
    height: 180px;
    background-color: var(--plate-color);
    border-radius: 6px;
    /* Slightly softer corners */
    box-shadow: var(--plate-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
    position: relative;
    cursor: pointer;
    /* Make entire plate clickable */
    /* Glossy reflection hint */
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
}

.screw {
    width: 12px;
    height: 12px;
    background-color: var(--screw-head);
    border-radius: 50%;
    position: relative;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.screw::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--screw-slot);
    transform: translate(-50%, -50%) rotate(90deg);
    /* Vertical slot */
}

.switch-body {
    width: 34px;
    height: 70px;
    background-color: #f0f0f0;
    /* Slightly darker than plate for contrast */
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: visible;
    /* Allow toggle to stick out */
}

/* The Toggle Lever */
.switch-toggle {
    width: 32px;
    height: 40px;
    background-color: var(--toggle-color);
    position: absolute;
    left: 0;
    /* Centered horizontally relative to body width (40px - 2px border) -> 36px fits */
    /* We need to position it based on state */
    transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), box-shadow 0.2s ease;
    box-shadow:
        2px 2px 5px rgba(0, 0, 0, 0.1),
        inset 1px 1px 2px rgba(255, 255, 255, 1);

    /* Shape refinement */
    border-radius: 2px;
}

/* "ON" Text embossing - subtle */
.switch-toggle::before {
    content: 'ON';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    font-family: sans-serif;
    color: rgba(0, 0, 0, 0.1);
    font-weight: bold;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.2s;
}

.switch-toggle::after {
    content: 'OFF';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    font-family: sans-serif;
    color: rgba(0, 0, 0, 0.1);
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Toggle State: UP (Light Mode - ON) */
/* In the US, UP is usually ON. So Light Mode = ON? Or Dark Mode = ON? 
   Let's say Light Mode is "Lights ON" (Switch UP).
   Dark Mode is "Lights OFF" (Switch DOWN). 
*/

/* Default (Light Mode / ON) */
.switch-toggle {
    top: 0;
    transform: translateY(-4px) rotateX(20deg);
    /* Stick up */
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 1px 1px 2px rgba(255, 255, 255, 1);
    background: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%);
}

.switch-toggle::before {
    opacity: 1;
}

/* Show ON */

/* Dark Mode (OFF) */
[data-theme="dark"] .switch-toggle {
    transform: translateY(34px) rotateX(-20deg);
    /* Slide down */
    box-shadow:
        0 -4px 8px rgba(0, 0, 0, 0.15),
        inset 1px 1px 2px rgba(255, 255, 255, 1);
    background: linear-gradient(to bottom, #f8f8f8 0%, #fff 100%);
}

[data-theme="dark"] .switch-toggle::before {
    opacity: 0;
}

[data-theme="dark"] .switch-toggle::after {
    opacity: 1;
}

/* Show OFF */