:root {
    color-scheme: light;
    --page-bg: #aed0f2;
    --page-surface: rgba(255, 255, 255, 0.45);
    --page-surface-strong: rgba(255, 255, 255, 0.68);
    --page-border: rgba(42, 30, 92, 0.18);
    --page-border-strong: rgba(42, 30, 92, 0.28);
    --page-text: #2a1e5c;
    --page-heading: #6c091f;
    --page-link: #2a1e5c;
    --page-shadow: 0 10px 28px rgba(41, 53, 94, 0.08);
    --page-font: Arial, sans-serif;
}

body {
    background: var(--page-bg);
    color: var(--page-text);
    font-family: var(--page-font);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.5;
}

.page-container {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .page-container {
        max-width: 1500px;
        padding: 0 35px;
    }
}

header {
    width: 100%;
    text-align: center;
    margin: 20px 0;
    padding: 0 15px;
    box-sizing: border-box;
}

.content {
    display: flex;
    width: 100%;
    flex: 1;
    flex-direction: column;
    padding-bottom: 60px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.main {
    padding: 15px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .main {
        flex-grow: 1;
        padding-left: 40px;
    }
}

.sidebar {
    padding: 15px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .sidebar {
        width: 480px;
        flex-shrink: 0;
        padding-right: 15px;
    }
}

h1,
h2,
h3 {
    margin: 10px 0;
    color: var(--page-heading);
}

h3 {
    font-size: 130%;
}

.center-text {
    text-align: center;
}

a {
    color: var(--page-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.project {
    margin-bottom: 20px;
}

.project-header {
    display: flex;
    align-items: center;
}

.project-header h3 {
    margin: 0;
    margin-right: 10px;
}

.topnav {
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.topnav a {
    text-align: center;
    padding: 12px 10px;
    text-decoration: none;
    font-size: 16px;
}

@media (min-width: 480px) {
    .topnav a {
        padding: 14px 16px;
        font-size: 17px;
    }
}

.topnav a:hover {
    background-color: rgba(255, 255, 255, 0.55);
    color: var(--page-text);
}

.topnav a.active {
    background-color: var(--page-text);
    color: white;
}

.webring-footer {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    background-color: var(--page-surface-strong);
    position: fixed;
    bottom: 0;
    left: 0;
    font-size: 14px;
}

.webring-footer p {
    margin: 0;
    padding: 0 10px;
    word-break: break-word;
}

.webring-footer a {
    color: var(--page-link);
    white-space: nowrap;
}
