/**
 * ICHNOS - Main styles
 */

/* Layout */
.layout {
  width: 100vw;
}

.flex {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}

/* Cover */
.cover {
  height: 100vh;
  background: url('../img/bg_cartography.png');
}

.wordmark {
  width: 70vw;
  top: 35vh;
  left: 15vw;
  right: 15vw;
  display: block;
  position: fixed;
  opacity: 0.6;
  z-index: 1;
}

.logo {
  width: 55%;
  z-index: 0;
}

/* Table of Contents */
.toc {
  height: 80vh;
  padding: 40px;
  background-color: #DBB700;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

.row {
  width: 90vw;
  height: 20vh;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
}

.row-left a,
.row-right a {
  color: black;
  text-decoration: none;
  width: 20vw;
  height: 80%;
  margin: auto;
  background-color: #EADED0;
  border: 2px solid #B7C7BD;
  z-index: 2;
  opacity: 0.75;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  transition: transform 0.35s;
}

.row-left a {
  transform: skew(20deg);
}

.row-right a {
  transform: skew(-20deg);
}

.row-left a:hover,
.row-right a:hover {
  opacity: 1;
  transform: skew(0deg);
}

.toc-title {
  font-family: klinic_slabbold;
  font-size: 1.3rem;
  margin: 0;
  text-align: center;
}

.toc-author {
  font-family: work_sansextralight;
  font-size: 1.1rem;
  margin: 0;
  text-align: center;
}

/* Title text styling */
.toc-title-upper {
  text-transform: uppercase;
}

.toc-title-from {
  font-variant: small-caps;
}

/* Navigation */
.nav {
  height: 10vh;
  background: url('../img/bg_cartography.png');
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
}

.nav-link {
  font-family: noticia_textbold;
  font-size: 3rem;
  width: 50vw;
  height: 10vh;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}

.nav a {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.nav a:hover {
  color: #DBB700;
  text-decoration: none;
}

/* Focus styles for keyboard navigation */
a:focus,
.row-left a:focus,
.row-right a:focus {
  outline: 3px solid #DBB700;
  outline-offset: 2px;
}

.row-left a:focus,
.row-right a:focus {
  opacity: 1;
  transform: skew(0deg);
}

.nav a:focus {
  color: #DBB700;
}

/* Responsive Design - Tablet */
@media (max-width: 900px) {
  .row-left a,
  .row-right a {
    width: 28vw;
  }

  .toc-title {
    font-size: 1.1rem;
  }

  .toc-author {
    font-size: 0.9rem;
  }
}

/* Responsive Design - Mobile */
@media (max-width: 600px) {
  /* Cover adjustments */
  .wordmark {
    width: 90vw;
    left: 5vw;
    right: 5vw;
    top: 30vh;
  }

  .logo {
    width: 80%;
  }

  /* Table of Contents - stack cards vertically */
  .toc {
    height: auto;
    min-height: 100vh;
    padding: 20px;
  }

  .row {
    width: 100%;
    height: auto;
    flex-flow: column nowrap;
    margin-bottom: 10px;
  }

  .row-left a,
  .row-right a {
    width: 85vw;
    height: auto;
    min-height: 80px;
    padding: 15px;
    margin: 8px auto;
    transform: skew(0deg);
    opacity: 0.9;
  }

  .row-left a:hover,
  .row-right a:hover {
    transform: scale(1.02);
  }

  .toc-title {
    font-size: 1rem;
  }

  .toc-author {
    font-size: 0.85rem;
  }

  /* Navigation - scale font size */
  .nav {
    height: auto;
    min-height: 60px;
    padding: 15px;
  }

  .nav-link {
    font-size: 1.5rem;
    height: auto;
    padding: 10px;
  }
}
