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

html {
    font-size: 16px;
    scroll-behavior: auto; /* No smooth scroll to reduce motion */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #cccccc;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #222222;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

header .subtitle {
    font-size: 0.875rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Main Content */
main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Info Sections */
.info-section {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 24px;
}

.info-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #222222;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
}

.info-section p {
    margin-bottom: 12px;
    color: #444444;
}

.info-section p:last-child {
    margin-bottom: 0;
}

/* Info Grid */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    font-weight: 500;
    color: #666666;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.info-item .value {
    font-weight: 600;
    color: #222222;
    font-size: 1rem;
}

/* Notice */
.notice {
    background-color: #f0f0f0;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #555555;
    text-align: center;
    margin-top: 8px;
}

.note {
    font-size: 0.875rem;
    color: #666666;
    font-style: italic;
}

/* Links */
a {
    color: #444444;
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    color: #222222;
}

a:focus {
    outline: 2px solid #666666;
    outline-offset: 2px;
}

.link {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 20px;
    background-color: #e8e8e8;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    background-color: #dddddd;
}

/* Buttons */
button {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 24px;
    background-color: #555555;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: none; /* No transitions */
}

button:hover {
    background-color: #444444;
}

button:focus {
    outline: 2px solid #333333;
    outline-offset: 2px;
}

button:active {
    background-color: #333333;
}

/* Form Elements */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

input[type="email"] {
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 16px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333333;
}

input[type="email"]:focus {
    outline: 2px solid #666666;
    outline-offset: 0;
    border-color: #666666;
}

input[type="email"]::placeholder {
    color: #999999;
}

/* Status Messages */
#email-status {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    text-align: center;
}

#email-status.success {
    background-color: #e8e8e8;
    color: #333333;
}

#email-status.error {
    background-color: #f0e0e0;
    color: #663333;
}

/* Address Box */
#address-box {
    margin-top: 16px;
    padding: 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

#address-box p {
    margin-bottom: 4px;
    text-align: center;
}

#loading-msg {
    margin-top: 12px;
    color: #666666;
    text-align: center;
}

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

/* Footer */
footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #cccccc;
    text-align: center;
}

footer p {
    color: #666666;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.back-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #999999;
    border-radius: 4px;
    color: #555555;
    text-decoration: none;
    font-size: 0.875rem;
}

.back-link:hover {
    background-color: #eeeeee;
    color: #333333;
}

/* Reveal Info */
.reveal-info {
    color: #666666;
    margin-bottom: 16px;
}

/* Bottom Image */
.bottom-image {
    margin-top: 40px;
    text-align: center;
}

.bottom-image img {
    max-width: 200px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
}

/* Responsive adjustments */
@media (min-width: 480px) {
    .container {
        padding: 32px 24px;
    }
    
    form {
        flex-direction: row;
        gap: 8px;
    }
    
    input[type="email"] {
        flex: 1;
    }
    
    button[type="submit"] {
        white-space: nowrap;
    }
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}


@media (prefers-contrast: high) {
    body {
        background-color: #ffffff;
        color: #000000;
    }
    
    .info-section {
        border: 2px solid #000000;
    }
    
    button {
        background-color: #000000;
        color: #ffffff;
    }
    
    a {
        color: #000000;
        text-decoration: underline;
    }
}
