:root {
    --bg: #f4f4f3;
    --bg-tint: #faf7f3;
    --surface: #ffffff;
    --text: #262626;
    --muted: #6b6b6b;
    --accent: #ff8814;
    --accent-strong: #e06f00;
    --accent-soft: rgba(255, 136, 20, 0.12);
    --accent-softer: rgba(255, 136, 20, 0.06);
    --border: #e6e3df;
    --link: #1264a9;
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
    --radius: 14px;
    --max-width: 800px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111110;
        --bg-tint: #16130f;
        --surface: #1b1b19;
        --text: #e8e6e3;
        --muted: #9a9691;
        --accent: #ff9a3d;
        --accent-strong: #ffb061;
        --accent-soft: rgba(255, 154, 61, 0.16);
        --accent-softer: rgba(255, 154, 61, 0.07);
        --border: #2c2a27;
        --link: #6cb3f0;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px rgba(0, 0, 0, .35);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(1200px 480px at 80% -120px, var(--accent-softer), transparent 70%),
        var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Top accent bar */
body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    z-index: 100;
}

::selection { background: var(--accent); color: #fff; }

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

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

.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 72px;
}

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(140%) blur(8px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: .2px;
    color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-badge {
    display: inline-grid;
    place-items: center;
    width: 30px; height: 30px;
    border-radius: 8px;
    background: linear-gradient(150deg, var(--accent), var(--accent-strong));
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .5px;
    box-shadow: 0 2px 8px var(--accent-soft);
}

.topnav {
    display: flex;
    gap: 4px;
    margin-left: auto;
    flex-wrap: wrap;
}
.topnav a {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--muted);
}
.topnav a:hover { color: var(--text); background: var(--accent-softer); text-decoration: none; }
.topnav a.is-current { color: var(--accent-strong); background: var(--accent-soft); }

.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
    padding: 5px 11px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--muted);
    border-radius: 8px;
    border: 1px solid var(--border);
    user-select: none;
}
.lang-switch a:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.lang-switch a.is-current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ---- Hero (home) ---- */
.hero { margin: 22px 0 30px; }
.hero .eyebrow {
    display: inline-block;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 12px;
}
.hero h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin: 0 0 14px;
    color: var(--text);
}
.hero h1 .dot { color: var(--accent); }
.hero .lead { color: var(--text); max-width: 62ch; margin: 0; }

/* ---- About / profile sections (home) ---- */
.section-label {
    display: inline-block;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 12px;
}
.about {
    margin: 0 0 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.about p {
    margin: 0 0 14px;
    max-width: 66ch;
    color: var(--text);
}
.about p:last-child { margin-bottom: 0; }

/* ---- Info cards (home, non-interactive) ---- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 40px 0 36px;
}
.card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
}
.card .card-icon {
    display: inline-grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    margin-bottom: 4px;
}
.card h2 { margin: 0; font-size: 1.12rem; }
.card p {
    margin: 0;
    color: var(--text);
    font-size: .96rem;
    line-height: 1.55;
}

/* ---- Contact line (home) ---- */
.contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: var(--bg-tint);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .98rem;
}
.contact-line .icon { color: var(--accent-strong); flex: none; }

/* ---- Legal page head ---- */
.page-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 14px 0 28px;
}
.backlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 14px;
}
.backlink .icon { transition: transform .15s ease; }
.backlink:hover { color: var(--accent-strong); text-decoration: none; }
.backlink:hover .icon { transform: translateX(-3px); }
.page-head h1 {
    font-size: 2rem;
    margin: 0;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--accent);
}

/* ---- Legal content ---- */
.card-block {
    margin-bottom: 22px;
}
.card-block h2 {
    font-size: 1.02rem;
    margin: 22px 0 4px;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
}
.card-block h2:first-of-type { margin-top: 6px; }
.card-block p { margin: 0 0 12px; }
.card-block address {
    font-style: normal;
    line-height: 1.75;
    margin: 4px 0 18px;
}

.muted { color: var(--muted); font-size: .9rem; }

/* ---- Email obfuscation helpers ---- */
.decoy { display: none !important; }
.rev { unicode-bidi: bidi-override; direction: rtl; }
.email-link {
    font-weight: 600;
    color: var(--accent-strong);
}

/* ---- Footer ---- */
.site-footer {
    position: relative;
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding-top: 24px;
    font-size: .85rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    justify-content: space-between;
}
/* Short accent bar sitting on the top border, taken out of the flex flow */
.site-footer::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 40px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.footer-nav { display: flex; gap: 16px; }
.footer-nav a { color: var(--muted); font-weight: 600; }
.footer-nav a:hover { color: var(--accent-strong); }

/* ---- Icons ---- */
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.card-icon .icon { width: 22px; height: 22px; }

/* ---- Small screens ---- */
@media (max-width: 720px) {
    .cards { grid-template-columns: 1fr; }
}

@media (min-width: 650px) {
    .site-header { flex-wrap: nowrap; }
}

@media (max-width: 649px) {
    .site-header { gap: 10px; }
    .topnav { margin-left: 0; width: 100%; order: 3; }
    .lang-switch { margin-left: auto; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .hero h1 { font-size: 2rem; }
    .hero { margin-top: 8px; }
}
