/* Site layout, shared by every page in every language.
   Add a page: link this file, put the rays div and the lang switcher in the body,
   then write sections inside <main>. No page defines its own layout. */

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

html { background-color: #0a0a0a; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #f0f0f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Rays behind the page, at full strength. The teal matches the artwork, so a slow
   or failed load never shows black.
   The SVG is embedded with <object>, not with background-image or <img>: those two
   freeze it on its first frame in Chrome. <object> gives the artwork a document of
   its own, so the sweep runs and the prefers-reduced-motion rule inside rays.svg
   is honoured. */
.rays {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: #4196a6;
}

.rays object {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 0.25rem;
    max-width: 860px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 0;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lang-switcher a {
    color: rgba(240, 240, 240, 0.75);
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    transition: color 0.15s;
}

.lang-switcher a:hover { color: #f0f0f0; }
.lang-switcher a.active { color: #f0f0f0; }
.lang-switcher .sep { color: rgba(240, 240, 240, 0.35); align-self: center; }

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 9rem);
    max-width: 860px;
    margin: 3rem auto;
    padding: 4rem 3rem;
    gap: 5rem;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(28px) saturate(130%);
    -webkit-backdrop-filter: blur(28px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* Without a backdrop filter the panel is only a tint, so make it carry more. */
@supports not (backdrop-filter: blur(1px)) {
    main { background: rgba(0, 0, 0, 0.55); }
}

.hero {
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.hero h1 {
    color: #f0f0f0;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero p {
    color: #f0f0f0;
    font-size: 1.25rem;
    font-weight: 400;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.prose {
    text-align: left;
    max-width: 700px;
    color: #f0f0f0;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.45;
    text-wrap: pretty;
}

.prose p + p { margin-top: 2.25rem; }

.quote {
    text-align: left;
    max-width: 700px;
}

.quote p {
    color: #f0f0f0;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.45;
    text-wrap: pretty;
}

.quote .qm {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.5rem;
    line-height: 0;
    vertical-align: -0.10em;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #f0f0f0;
    font-size: 1rem;
    font-weight: 400;
}

.contact a {
    color: #f0f0f0;
    text-decoration: none;
}

.contact a:hover { opacity: 0.7; }

.obf { unicode-bidi: bidi-override; direction: rtl; }
.obf-hide { display: none; }

@media (max-width: 720px) {
    main {
        min-height: calc(100vh - 5rem);
        margin: 1rem;
        padding: 3rem 1.5rem;
        border-radius: 14px;
    }

    .lang-switcher { padding: 1rem 1rem 0; }
    .hero h1 { font-size: 2.25rem; }
    .prose { font-size: 1.15rem; }
    .quote p { font-size: 1.15rem; }
    .quote .qm { font-size: 1.9rem; }
}
