:root {
    --background: #231f20;
    --foreground: #ededed;
    --card: #2d292a;
    --card-foreground: #ededed;
    --primary: #80000b;
    --primary-foreground: #ededed;
    --secondary: #3a3637;
    --secondary-foreground: #ededed;
    --accent: #a39161;
    --muted: #3a3637;
    --muted-foreground: #b0b0b0;
    --border: #a39161;
    --input: #a39161;
    --ring: #80000b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "IBM Plex Sans", Arial, sans-serif;
    background: var(--background);
    color: var(--foreground);
}

.site-header {
    border-bottom: 2px solid var(--foreground);
    padding: 0.9rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--foreground);
    padding: 0.45rem 0.9rem;
    border-radius: 0.45rem;
    font-size: 0.88rem;
    transition: background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--primary);
    color: var(--primary-foreground);
}

.site-main {
    flex: 1;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 1.2rem;
}

main h1 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 1rem;
}

main h2 {
    margin-top: 1.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--accent);
}

main a {
    color: var(--accent);
}

.site-footer {
    border-top: 2px solid var(--foreground);
    padding: 1.2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 0.8rem;
}

.social-links a {
    color: var(--foreground);
    font-size: 1.35rem;
}

.social-links a:hover {
    color: var(--accent);
}

.copyright {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.survey-message {
    background: var(--secondary);
    border-left: 4px solid var(--accent);
    padding: 1rem;
    margin-bottom: 1.2rem;
}

.survey-embed-container {
    width: 100%;
    height: 800px;
    border: 2px solid var(--accent);
}

.survey-embed-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.page-clips .site-main {
    max-width: none;
    padding: 1.2rem 0;
}

.clips-title {
    text-align: center;
    margin: 0 0 1rem;
}

.embed-container {
    position: relative;
    width: 100vw;
    height: 85vh;
    min-height: 600px;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    overflow: hidden;
    background: var(--background);
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.embed-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.custom-scrollbar {
    scrollbar-width: auto;
    scrollbar-color: #80000b #ffffff;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 16px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #ffffff;
    border-radius: 5px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #80000b;
    border-radius: 5px;
    border: 3px solid #ffffff;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #3278b3;
}

.custom-scrollbar::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

@media (max-width: 768px) {
    .survey-embed-container {
        height: 600px;
    }

    .embed-container {
        height: 70vh;
        min-height: 500px;
    }
}