:root {
    --bg: #0B0F1A;
    --bg-grad: radial-gradient(ellipse at 50% 30%, #131A2B 0%, #0B0F1A 60%, #06090F 100%);
    --ink: #ECEFF4;
    --ink-soft: #8A95AA;
    --accent: #7BD9D9;
    --accent-soft: rgba(123, 217, 217, 0.55);
    --accent-strong: #A6F0F0;
    --rule: rgba(236, 239, 244, 0.10);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    background-image: var(--bg-grad);
    background-attachment: fixed;
    color: var(--ink);
    font-family: 'Lexend Deca', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow-x: hidden;
}

/* Particle canvas sits behind everything */
#field {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Soft elliptical "hole" around the text in the middle */
    --hole-w: clamp(20rem, 70vw, 36rem);
    --hole-h: clamp(11rem, 34vh, 18rem);
    --mask: radial-gradient(
        ellipse var(--hole-w) var(--hole-h) at 50% 50%,
        transparent 0%,
        transparent 38%,
        rgba(0, 0, 0, 0.85) 75%,
        #000 100%
    );
    mask-image: var(--mask);
    -webkit-mask-image: var(--mask);
}

.lang-switch, main { position: relative; z-index: 1; }

main {
    max-width: 36rem;
    width: 100%;
    margin: 0 auto;
    padding: clamp(2.5rem, 8vh, 6rem) clamp(1.5rem, 5vw, 2.5rem) 4rem;
    align-self: center;
}

/* Language switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    justify-content: flex-end;
    padding: 1.25rem clamp(1.25rem, 5vw, 2rem) 0;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--ink-soft);
}

.lang-switch button {
    background: none;
    border: 0;
    padding: 0.25rem 0.1rem;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: inherit;
    transition: color 160ms ease;
}

.lang-switch button:hover { color: var(--ink); }

.lang-switch button[aria-pressed="true"] {
    color: var(--accent-strong);
    font-weight: 400;
    position: relative;
}

.lang-switch button[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    left: 0.1rem;
    right: 0.1rem;
    bottom: 0.05rem;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-soft);
}

/* Language visibility */
.lang-cs .lang-en-only,
.lang-en .lang-cs-only { display: none; }

/* Intro */
.intro {
    margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: clamp(2.25rem, 6vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0 0 1.5rem;
    color: var(--ink);
    position: relative;
    display: inline-block;
}

h1::after {
    content: "";
    display: block;
    width: 2.25rem;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-soft);
    margin-top: 1.25rem;
}

.tagline {
    margin: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    line-height: 1.55;
    color: var(--ink);
    max-width: 28rem;
    font-weight: 300;
}

.tagline em {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent-strong);
    letter-spacing: 0.01em;
    text-shadow: 0 0 12px var(--accent-soft);
}

/* Links */
.links {
    border-top: 1px solid var(--rule);
    padding-top: 1.5rem;
}

.link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: color 200ms ease, padding-left 240ms ease, border-color 200ms ease;
}

.link-row:hover,
.link-row:focus-visible {
    color: var(--accent-strong);
    padding-left: 0.35rem;
    border-bottom-color: var(--accent-soft);
    outline: none;
}

.link-label {
    font-size: 1rem;
    font-weight: 300;
}

.link-arrow {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    color: var(--ink-soft);
    transition: transform 240ms ease, color 200ms ease, text-shadow 200ms ease;
}

.link-row:hover .link-arrow,
.link-row:focus-visible .link-arrow {
    transform: translateX(0.4rem);
    color: var(--accent-strong);
    text-shadow: 0 0 10px var(--accent-soft);
}

/* Selection */
::selection {
    background: var(--accent-soft);
    color: var(--ink);
}

/* Focus */
:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Reduced motion: keep the field, just stop transitions */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

