/* Registrace variabilního fontu */
@font-face {
    font-family: "Unbounded";
    src: url("fonts/Unbounded-VariableFont_wght.ttf")
        format("truetype-variations");
    font-weight: 200 900; /* uprav podle reálného rozsahu v souboru */
    font-style: normal;
    font-display: swap; /* rychlejší vykreslení textu */
}

@font-face {
    font-family: "Habibi";
    src: url("fonts/Habibi-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #cce0dd;
    --text-color: #0f1617;
    --red-color: #701217;
    --blue-light-color: #7da1b1;
    --blue-dark-color: #395462;

    /* https://colorpalettes.net/color-palette-3736/ */
}

:root {
    /* Šířka viewportu – bezpečné jednotky pro mobily; fallback na 100vw */
    --vw-inline: 100svw;
    @supports not (width: 1svw) {
        --vw-inline: 100vw;
    }

    /* 1 px při návrhové šířce 1240 px vyjádřený ve viewportových jednotkách */
    --vw-per-px: calc(var(--vw-inline) / 1240);
}

/* Volitelně – proměnná pro snadné použití napříč projektem */
:root {
    --ff-unbounded:
        "Unbounded", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Příklad použití */
h1,
h2,
h3 {
    text-transform: uppercase;
    font-family: var(--ff-unbounded);
    font-weight: 900; /* u variabilních fontů stačí nastavovat běžný font-weight */
}

/* Volitelné – explicitní řízení osy wght přes CSS proměnnou */
.unbounded-wght {
    font-family: var(--ff-unbounded);
    font-variation-settings: "wght" var(--wght, 600);
}

html,
body {
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-color);
    font-family: "Habibi";
    font-size: clamp(12px, 1.2em, 2rem);
}

img {
    box-shadow: 10px 10px var(--blue-dark-color);
}

a {
    color: var(--red-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.redone {
    color: var(--red-color);
}

.blueone {
    color: var(--blue-dark-color);
}

heading {
    width: 100%;
    height: 10wh;
    text-align: right;
    padding: 2em;
}

h1 {
    font-size: calc(96 * var(--vw-per-px));
    line-height: 1.1;
}

h2,
h3,
h4 {
    margin-left: -1em;
    margin-top: 2em;
    margin-bottom: 1em;
}

h3,
h4 {
    color: var(--blue-dark-color);
    margin-left: 0;
}

#hero {
    padding: 2.5em;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

hr {
    width: 60%;
    margin: 2em auto;
    border: 2px solid var(--blue-dark-color);
}

.pushed {
    margin-left: 5em;
}

#hero-ep-text {
    text-align: right;
    margin: 2em;
    padding-right: 2em;
}
#hero-ep-text h1 {
    font-size: calc(80 * var(--vw-per-px));
    line-height: 1.1;
}

#hero-ep-info {
    text-align: center;
    font-style: italic;
    padding: 0.5em;
    border-bottom: 2px double var(--blue-dark-color);
    width: 60%;
    margin: auto;
}

#hero-img {
    align-self: center;
}

#hero img {
    width: 70%;
    float: left;
    box-shadow: none;
}

#quote {
    text-align: center;
    font-weight: 700;
    font-style: italic;
    padding: 0.5em;
    border-bottom: 2px double var(--blue-dark-color);
    width: 40%;
    margin: auto;
    font-size: calc(25 * var(--vw-per-px));
    line-height: 1.1;
}

.borderdown {
    border-bottom: 0.1em solid var(--red-color);
}

main {
    width: 75%;
    margin: auto;
}

main p {
    margin-bottom: 1em;
}

footer {
    width: 60%;
    text-align: center;
    font-size: 0.8rem;
    border-top: 2px double var(--blue-dark-color);
    margin: auto;
    margin-top: 2em;
    padding: 0.5em;
    line-height: 2em;
}

nav {
    width: 100%;
    text-align: center;
    padding: 1em;
    text-transform: uppercase;
    font-family: "Unbounded";
}

footer img {
    width: 20%;
    box-shadow: none;
}

li {
    list-style-type: none;
}

ul h3 {
    color: var(--blue-dark-color);
    margin-left: -0.5em;
}

#author img {
    width: 30%;
    float: right;
    margin-left: 2em;
    margin-bottom: 2em;
}

#audio-container {
    width: 100%;
    text-align: center;
    margin-top: 2em;
    margin-bottom: 2em;
}

audio {
    width: 60%;
}

.italicpar {
    font-style: italic;
}
