:root {
    --background: #f5f5f0;
    --foreground: #1a1a1a;
    --foreground-secondary: #6b6b6b;
    --link: #1a1a1a;
    --surface: #ebebea;
    --border: #e0e0de;
}

@media (prefers-color-scheme: dark) {
    :root {
    --background: #242423;
    --foreground: #e8e8e3;
    --foreground-secondary: #8a8a85;
    --link: #e8e8e3;
    --surface: #2e2e2d;
    --border: #333332;
}
}

@font-face {
    font-family: "Inter";
    src: url("../font/Inter/Inter-VariableFont_opsz\,wght.ttf") format("truetype");
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../font/Inter/Inter-Italic-VariableFont_opsz\,wght.ttf") format("truetype");
    font-style: italic;
    font-display: swap;
}

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

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-feature-settings: "ss03" 1, "dlig" 1, "cv06" 1, "cv12" 1;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main {
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

h1 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

p {
    font-size: 1rem;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

p:last-of-type {
    margin-bottom: 0;
}

.secondary {
    color: var(--foreground-secondary);
    margin-bottom: 1.5rem;
}

a {
    color: var(--foreground);
    text-decoration: underline;
    text-decoration-color: var(--foreground-secondary);
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-color: var(--foreground);
}

footer {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

footer nav {
    display: flex;
    gap: 1rem;
}

footer nav a {
    text-decoration: none;
    color: var(--foreground-secondary)
}

footer nav a:hover {
    color: var(--foreground)
}

.lang-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .lang-icon {
    filter: invert(1);
  }
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground-secondary);
    font-size: 0.875rem;
    font-family: "Inter", sans-serif;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

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

.chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.15s;
}

.lang-btn.open .chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    min-width: 120px;
}

.lang-dropdown.open {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: var(--foreground-secondary);
    text-decoration: none;
}

.lang-dropdown a:hover {
    background-color: var(--surface);
    color: var(--foreground);
}

.lang-dropdown a.active {
    color: var(--foreground);
    font-weight: 500;
}