:root {
    --bg: #000000;
    --fg: #ffffff;
    --subtitle: #cccccc;
    --desc: #e0e0e0;
    --btn-bg: #1a1a1a;
    --btn-border: #333333;
    --btn-hover: #333333;
    --toggle-bg: #333333;
    --toggle-fg: #ffffff;
}

body.light {
    --bg: #ffffff;
    --fg: #111111;
    --subtitle: #555555;
    --desc: #333333;
    --btn-bg: #f0f0f0;
    --btn-border: #cccccc;
    --btn-hover: #dddddd;
    --toggle-bg: #e0e0e0;
    --toggle-fg: #111111;
}

body {
    font-family: 'SUIT', sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

#theme-toggle {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    background-color: var(--toggle-bg);
    color: var(--toggle-fg);
    border: none;
    border-radius: 50%;
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 100;
}

#theme-toggle:hover {
    opacity: 0.8;
}

.container {
    max-width: 600px;
    width: 90%;
    padding: 4rem 0 3rem;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 1rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--subtitle);
    margin-bottom: 2rem;
}

.hero img {
    max-width: 100%;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--desc);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    background-color: var(--btn-bg);
    color: var(--fg);
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
    border: 1px solid var(--btn-border);
}

.btn:hover {
    background-color: var(--btn-hover);
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

input[type="email"] {
    padding: 0.75rem;
    border: 1px solid var(--btn-border);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--btn-bg);
    color: var(--fg);
}

button[type="submit"] {
    background-color: #007BFF;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.hidden {
    display: none;
}

#confirmation-message {
    margin-top: 1rem;
    color: #4CAF50;
    font-weight: bold;
}

.disqus-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--btn-border);
    text-align: left;
}

.disqus-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

#disqus_thread {
    color-scheme: normal;
}

.articles-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--btn-border);
    text-align: left;
}

.articles-title {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.articles-desc {
    font-size: 1rem;
    color: var(--subtitle);
    margin-bottom: 1.2rem;
}

.articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.articles-list a {
    display: block;
    color: var(--fg);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--btn-border);
    background-color: var(--btn-bg);
    transition: background-color 0.2s;
}

.articles-list a:hover {
    background-color: var(--btn-hover);
}

.contact-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--btn-border);
    text-align: left;
}

.contact-title {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.contact-desc {
    font-size: 1rem;
    color: var(--subtitle);
    margin-bottom: 1.5rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#contact-form input,
#contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--btn-border);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--btn-bg);
    color: var(--fg);
    transition: border-color 0.2s, background-color 0.3s, color 0.3s;
    font-family: inherit;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #888;
}

#contact-form textarea {
    resize: vertical;
}

#contact-submit {
    background-color: var(--fg);
    color: var(--bg);
    padding: 0.85rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
}

#contact-submit:hover {
    opacity: 0.75;
}

#contact-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#contact-confirmation {
    margin-top: 1rem;
    color: #4CAF50;
    font-weight: bold;
    text-align: center;
}
