:root {
    color-scheme: light dark;

    /* Base */
    --bg: light-dark(#ede8e8, #1f1f1f);
    --text: light-dark(#2b2b2b, #e6e1e1);

    /* Headings (slightly softer than pure text) */
    --heading: light-dark(#444444, #f2eeee);

    /* Subtle surfaces (buttons, nav, etc.) */
    --surface: light-dark(#e2dddd, #2a2a2a);

    /* Borders / separators */
    --border: light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2));

    /* Link */
    --link: light-dark(#2b2b2b, #f0eaea);

    /* Hover accent color  */
    --accent: light-dark(#444444, #444444);
}

/* Base */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'SN Pro Variable', system-ui, -apple-system, sans-serif;
    margin: 0 auto;
}

/* Layout */
.container {
    max-width: 70rem;
    margin: 0 auto;
    padding: 1rem;
}

.site-header {
    display: flex;
    justify-content: space-between;

    max-width: 70rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    gap: 2rem;
    align-items: baseline;
}

.icon-cluster {
    align-items: stretch;
    display: inline-flex;
    flex-direction: column;
}

/* ---- Define Current Logo - Consider refining later as SVG ---- */
.logo a {
    font-family: 'EB Garamond Variable', serif;
    letter-spacing: -0.17em;
    font-size: 4rem;
    line-height: 1;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.logo a:hover {
    color: var(--accent)
}

/* Body text */
.nav p,
.nav li {
    line-height: 1.27;
    font-size: 1.57rem;
}



@media (max-width: 640px) {

    .nav p,
    .nav li {
        font-size: 1.4rem
    }
}

@media (max-width: 380px) {

    .nav p,
    .nav li {
        font-size: 1.2rem
    }
}

/* ---- center nav and language switcher to midline of logo ---- */
.nav a,
.language-switcher a {
    display: inline-block;
}

/* ---- Nav and Language Switcher Base Styles ---- */

.nav {
    font-size: 0.75rem;
    font-weight: 700;
    transform: translateY(-0.65rem);
}

.language-switcher {
    font-size: 0.75rem;
    font-weight: 700;
    justify-content: space-between;
    transform: translateX(0.235rem);
    font-size: 1.33rem;
}

/* Shared list layout */
.nav ul,
.language-switcher ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

/* Slightly tighter spacing for language switcher */
.language-switcher ul {
    gap: 0.75rem;
}

/* base link */
.nav a,
.language-switcher a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 160ms ease;
}

/* ONLY active + hover get underline */
.nav a::after,
.language-switcher a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0;
    background: currentColor;
    border-radius: 999px;
    transition: width 180ms ease;
}

/* hover */
.nav a:hover::after,
.language-switcher a:hover::after {
    width: 100%;
}

/* active stays underlined */
.nav a.active::after,
.language-switcher a.active::after {
    width: 100%;
}

/* color change only on interaction/active */
.nav a:hover,
.nav a.active,
.language-switcher a:hover,
.language-switcher a.active {
    color: var(--text-main);
}

/* Headings */
h1,
h2,
h3 {
    font-family: 'EB Garamond Variable', serif;
    color: var(--heading);
    font-weight: 600;
    letter-spacing: -0.047em;
    margin-bottom: -0.5rem;
    margin-top: 0;
}

h1 {
    font-size: 8.7rem;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 2.3rem;
}

/* Body text */
main p,
main li {
    line-height: 1.27;
    font-size: 1.87rem;
}

main p {
    margin-bottom: 2.7rem
}

main hr {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

/* Links */
main a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

main a:hover {
    border-bottom: 1px solid var(--link);
}

strong {
    font-weight: 700;
}

footer {
    padding: 2rem 0;
}

footer a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

footer p {
    text-align: center;
    color: var(--text);
    font-size: 1.3rem;
}
