/* Pisma u webu (latin + latin-ext kvuli cestine), promenna sirka i tloustka */
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 500 800;
    font-stretch: 100% 125%;
    font-display: swap;
    src: url("fonts/archivo-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 500 800;
    font-stretch: 100% 125%;
    font-display: swap;
    src: url("fonts/archivo-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("fonts/public-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("fonts/public-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Rozvrzeni: tmavy panel s mozaikou fotek, osm karet, panel s mapou pro cestovatele, kontakt; osa 72rem */
:root {
    --bg: #f3f4f2;
    --card: #ffffff;
    --ink: #121815;
    --muted: #5d6862;
    --accent: #f5a524;
    --accent-text: #a86a00;
    --hero: #121815;
    --hero-ink: #f3f4f2;
    --hero-muted: #a3aea7;
    --hero-line: #2c3832;
    --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
    --wrap: 72rem;
    --radius: 1.5rem;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d110f;
        --card: #161c19;
        --ink: #eef1ef;
        --muted: #98a39c;
        --accent: #f7b141;
        --accent-text: #f7b141;
        --hero: #161c19;
        --hero-ink: #eef1ef;
        --hero-muted: #98a39c;
        --hero-line: #29342e;
        color-scheme: dark;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus {
    outline: none;
}

h1, h2, h3, p {
    margin: 0;
}

h1, h2 {
    font-family: var(--font-display);
    font-stretch: 112%;
    letter-spacing: -0.025em;
    line-height: 1;
    text-wrap: balance;
}

.page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-block: calc(1.25rem + env(safe-area-inset-top, 0px)) calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1.5rem;
    padding-block: 0.25rem 0.75rem;
}

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

.brand {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.brand span {
    color: var(--accent-text);
}

/* Tmave panely (uvod a cestovani) */
.panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--hero);
    color: var(--hero-ink);
}

.panel-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.25rem;
    min-width: 0;
    padding: clamp(1.75rem, 4vw, 3.5rem);
}

.panel-text p {
    max-width: 28rem;
    font-size: 1.1875rem;
    color: var(--hero-muted);
}

.panel canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 22rem;
}

.hero {
    min-height: 34rem;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
}

.hero h1 span {
    display: block;
}

.hero h1 em,
.travel h2 em {
    font-style: normal;
    color: var(--accent);
}

.labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.875rem;
}

.label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: var(--hero-line);
    color: var(--hero-ink);
    font-size: 0.8125rem;
    font-weight: 600;
}

.travel h2 {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 800;
}

.app-name {
    font-weight: 600;
    color: var(--accent);
}

/* Text s poznamkou tesne pod nim */
.panel-copy {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.panel-text .note {
    font-size: 0.875rem;
}

.travel-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.travel-list li {
    display: flex;
    gap: 1rem;
    padding-block: 0.75rem;
    border-top: 1px solid var(--hero-line);
}

.travel-list strong {
    flex: none;
    width: 4.5rem;
    font-weight: 600;
}

.travel-list span {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    color: var(--hero-muted);
}

/* Doplnek k mistum pro fotografy */
.travel-list small {
    padding-left: 0.75rem;
    border-left: 2px solid var(--accent);
    font-size: 0.875rem;
}

/* Karty */
.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-width: 0;
    padding: 1.75rem;
    border-radius: var(--radius);
    background: var(--card);
}

.card h2 {
    font-size: 1.625rem;
    font-weight: 700;
}

.card p {
    color: var(--muted);
}

/* Kontakt */
.contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: var(--radius);
    background: var(--card);
}

.contact > div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.contact h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
}

.contact p {
    color: var(--muted);
}

.contact-mail {
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    background: var(--ink);
    color: var(--bg);
    font-weight: 600;
    overflow-wrap: anywhere;
    user-select: all;
}

.contact-mail:hover {
    background: var(--accent-text);
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.footer-link {
    color: var(--ink);
}

.footer-link:hover {
    color: var(--accent-text);
}

@media (max-width: 60rem) {
    .panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        min-height: 0;
    }

    .panel canvas {
        order: -1;
        height: 18rem;
        min-height: 0;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 36rem) {
    .cards {
        grid-template-columns: minmax(0, 1fr);
    }
}
