/* Mobile layout */

:root {
  --bg-color:#f7f2e8;
  --text-color:#2c2c2c;
  --section-bg-color:#FFFFFF;
  --link-color: #8b5e3c;
  --link-hover-color:#8b5e3c;
  --name-color:#FB718E;
  --Зима-color:#f7f2e8;
  /*--link-color:#01B3F7;*/
}

body.dark-mode {
    --bg-color:#212121;
    --text-color:#FFFFFF;
    --section-bg-color:#303030;
    --link-color:#00BBD6;
    --link-hover-color:#00BBD6;
    --Зима-color:#00BBD6;
}

* {
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    font-size: clamp(14px, 1vw, 18px);
}

body {
    margin: 0;
    line-height: 1.5;
    background-color: var(--bg-color);
    color: var(--text-color);
}

header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  margin: 0;
  transition: all 0.3s ease-in-out;
  color: var(--link-color);
  text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
    color: var(--link-hover-color);
    text-shadow: 0 0 5px var(--link-hover-color);
}

main {
    margin: 0rem 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

section {
    background-color: var(--section-bg-color);
    padding: 0.1rem 1.5rem;
    border-radius: .7rem;
}

footer {
    display: grid;
    margin: 2rem 2rem;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-top: .12rem solid var(--link-color);
    transition: background-color 0.7s ease-in-out, color 0.7s ease-in-out;
}

#catchphrase {
    grid-column: 2;
    justify-self: center;
}

#Зима {
    grid-column: 3;
    justify-self: end;
    width: 0.2rem;
    height: 0.2rem;
    margin: .5rem 0; 
    background-color: var(--Зима-color);
}

#Зима:hover {
    color: var(--name-color);
}

#name {
    cursor: pointer;
    transition: color 0.3s ease;
}

#name:hover {
    color: var(--name-color);
}



/* Tablet layout (>= 540px) */

@media (min-width: 540px) {

    html {
        font-size: clamp(14px, 1.7vw, 18px);
    }

    header {
        display: flex;
        flex-direction: row;
    }

    nav {
        display: flex;
        align-items: flex-end;
        gap: 2rem;
    }

}

/* Desktop layout (>= 1024px) */

@media (min-width: 1024px) {

    html {
        font-size: clamp(14px, 2vw, 18px);
    }

    body {
        max-width: 960px;
        margin: 0 auto;
    }

    nav {
        flex-direction: row;
        justify-content: center;
        gap: 3em;
    }

}

@font-face {
    font-family: 'Outfit';
    src: url('Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}