/*
Theme Name:         Oáza
Description:        Téma pre Oázu
Version:            1.1
Author:             Alexander Mravčák
Author URI:         https://mravcak.com
Text Domain:        oaza
License:            GNU General Public License version 2
License URI:        https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Requires PHP:       8.1
Requires at least:  5.9
*/

@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --serif: 'PT Serif', serif;

  --text-regular: 16px;
  --text-small: 12px;

  --cornsilk: #F8E6B1;
  --cornsilk-light: #FFF7E1;

  --brown: #594239;

  --color-background: var(--cornsilk);
  --color-text: var(--brown);

  --line-height-tight: 1.33;
  --line-height-normal: 1.875;
}

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

html {
  font-size: var(--text-regular);
  line-height: var(--line-height-tight);

  color: var(--color-text);
  font-family: var(--serif);
}

body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-background);
}

@media screen and (min-width: 54rem) {
  body {
    flex-direction: row;
    justify-content: center;
    padding: 4rem 1rem 2rem;
    background-image: url('./assets/img/oaza-pozadie.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;  
  }
}

h1 {
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
}
h2 {
  font-size: 1.25rem;
}
h3, h4, h5 {
  font-size: 1.1rem;
}

a {
  color: unset;
  text-decoration: underline;
}

/* Components */

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  & li {
    margin-bottom: 0.75rem;
  }
  & a {
    text-decoration: none;
  }
  & a:hover {
    text-decoration: underline;
  }
  & .current-menu-item {
    font-style: italic;
  }
}

/* Home */
.home-about {
  font-style: italic;
}

.home-copyright {
  font-size: var(--text-small);
}

@media screen and (max-width: 53.98rem) {
  .home-title,
  .home-about,
  .home-content {
    text-align: center;
  }
  .home-title {
    font-size: 1.5rem;
  }
  .home-image {
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: 2rem;
  }
  .home-image img {
    display: block;
    width: 100%;
  }
  .home-copyright {
    margin-top: 2rem;
  }
}

@media screen and (min-width: 54rem) {
  body.home {
    background-image:
      url('./assets/img/korytnacka-cista.png'),
      url('./assets/img/korytnacka-pozadie.jpg');
    background-size: contain, cover;
    background-position: center;
    background-repeat: no-repeat;
    justify-content: flex-start;
  }
  .home-content {
    max-width: 19rem;
    margin-left: 2rem;
  }
  .home-title {
    width: 22rem;
    font-size: 2rem;
  }
  .home-image {
    display: none;
  }
  .home-copyright {
    margin-top: 4rem;
    max-width: 9rem;
  }
}

/* Pages */

.page-main {
  max-width: 38rem;
}

.page-title {
  font-size: 1.5rem;
  margin: 0 0 3rem;
}

.page-nav {
  font-size: var(--text-small);
  & .page-nav-widget summary {
    cursor: pointer;
    padding: 0.25rem 0.25rem 0.25rem 0;
    width: fit-content;
    border-bottom: 1px dotted var(--brown);
    margin-bottom: 1rem;
  }
}

.page-content {
  font-size: 1.1rem;
  line-height: var(--line-height-normal);
  & a {
    text-decoration: underline;
  }
  & blockquote {
    margin: 1rem 0;
    font-size: 1.2rem;
    text-align: center;
  }
  & img.alignnone {
    display: block;
    width: 100%;
  }
  & .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }
  & .alignleft {
    display: block;
    float: left;
    margin-right: 1rem;
  }
  & .alignright {
    display: block;
    float: right;
    margin-left: 1rem;
  }
}

.page-copyright {
  margin-top: 4em;
  font-size: var(--text-small);
}

@media screen and (min-width: 54rem) {
  .page-nav {
    width: 10rem;
    padding-top: 6.125rem;
    margin-left: -10rem;
  }
  .page-nav-widget {
    position: sticky;
    top: 1rem;
  }
  .page-title {
    margin: 0 0 4rem;
  }
}
