:root {
  --super-white: #fefefe;
  --white: #f1f1f1;
  --highlight-white: #eeeeee;
  --white-active: #a8a8a8;
  --separator: #a8a8a8;
  --faded: #a8a8a8;
  --lighter-font: #606060;
  --separator-dark: #42505b;
  --dark: #353535;
  --black: #141414;
  --link: #e3655a;
  --link-hover: #8b3d37;
  --alarm: #c1372d;
  --notice: #452DC1;
  --success: #5ca05c;
  --header-link: #f0ef13;
  --article-background: #f1ede5;
  --blog-border: var(--black);
  --blog: #666666;
  --dossier-border: #6a3724;
  --dossier: #dd9980;
  --panóptico: #048a81;
  --panóptico-border: #185463;
  --section: #2e3558;
  --section-border: #070913;
  --crítica: var(--section);
  --crítica-border: var(--section-border);
  --multimedia: #70555d;
  --multimedia-border: #583438;
}

* {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5 {
  font-weight: normal;
}

h1, h2, h3 {
  text-align: center;
}

body {
  font-family: 'Overpass', sans-serif;
  padding: 0;
  margin: 0;
  background-color: var(--super-white);
  color: var(--black);
}

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

a:hover {
  color: var(--link-hover);
}

blockquote {
  font-family: 'Cormorant', serif;
  font-style: italic;

  border-left: thick solid var(----highlight-white);

  padding-left: 1em;
  padding-right: 1em;

  max-width: 50em;
  margin: auto;
}

blockquote em {
  font-style: normal;
}

body, html {
  /* 4em for the nav, 4em for the "culturaUNAM" banner and (4+2)em for the red nav */
  min-height: calc(100% - 14em);
}

/*******
 * NAV *
 *******/

nav {
  display: flex;
  background-color: var(--black);
  font-size: 1em;
  clear: both;
  height: 4em;
  line-height: 4em;
  width: 100%;
  padding: 0 5em;
}

#cultura-unam {
  background-color: var(--dark);
}

#cultura-unam img {
  height: 2.4em;
  margin: auto;
}

nav a {
  display: block;

  text-align: center;
  margin: 0;
  flex: 1;

  font-weight: bold;
  font-size: small;
  text-transform: uppercase;
  color: var(--white);
  fill: var(--white);
}

nav a:hover path,
nav a:hover {
  color: var(--white-active);
  fill: var(--white-active);
}

nav a:hover img[alt=U] {
  opacity: 0.5;
}

nav a#u {
  font-weight: normal;
  height: 5em;
  min-width: 12em !important;
  margin: auto;
  padding: 10px;
}

nav a#u img {
  height: 3.2em;
  display: inline-block;
  margin-right: 3px;
}

nav a#u div {
  width: 7.5em;
  display: inline-block;
  line-height: 1.24em !important;
  text-transform: uppercase;
  text-align: left !important;
}

nav#site-nav {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 10;
}

nav#site-nav a.active {
  color: var(--white-active);
  border-bottom: 2px solid var(--white-active);
}

nav#sub-nav a.active {
  color: var(--dark);
}

nav .attention-button {
  font-weight: bold;
  background-color: var(--link);
  line-height: 3em;
  padding: 0 1.5em;
  margin: 1em;
  flex: 0;
  white-space: nowrap;
}

nav .attention-button:hover {
  color: white;
}

nav a[href="/search"] {
  flex: 0;
  padding: 6px 1em 0 1em;
  font-size: 1.5em;
}

@keyframes pulse {
  0%   { opacity: 0.7; }
  50%  { opacity: 1.0; }
  100% { opacity: 0.7; }
}

/**********
 * HEADER *
 **********/

header {
  position: relative;

  background-color: var(--black);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  padding: 4em;

  text-align: center;
  z-index: 8;
}

header a {
  color: var(--header-link) !important;
  fill: var(--header-link) !important;
}

header h1 {
  font-weight: 300;
  font-size: 5em;
  margin: 0;
}

header h2 {
  font-size: 3em;
  padding: 0;
  margin: 0;
}

header h3 {
  margin-top: 0;
  font-family: 'Cormorant', serif;
  font-weight: normal;
  font-size: 2em;
}

header h4 {
  font-family: 'Cormorant', serif;
  font-size: 1.4em;
  margin: 0;
}

/********
 * MAIN *
 ********/

main {
  display: block;
  max-width: 72em;
  margin: auto auto 3em;
  clear: both;
  z-index: 1;
}

main > content {
  display: block;
}

main nav {
  background-color: transparent;
  text-transform: uppercase;
  color: var(--white-active);

  margin: 1em auto 0;

  height: 4em;
  line-height: 4em;
}

main nav a {
  display: inline-block;
  text-transform: uppercase;
  color: var(--white-active);
  margin-bottom: 0em;
}

main section h2 {
  color: var(--white);
  fill: var(--white);

  background-color: var(--section);

  font-size: 1.2em;
  font-weight: bold;
  text-align: left;
  text-transform: uppercase;

  border-top: 3px solid var(--section-border);

  height: 2.5em;
  line-height: 2.5em;

  padding-left: 1em;
  z-index: 9;
}

main section h2 a {
  color: var(--white);
}

/**********
 * OTHERS *
 **********/

.overlay,
.overlay > a {
  color: white;
}

.overlay:before {
  content: "";
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  bottom: -1px;
  right: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.overlay > * {
  position: relative;
}

a.tag {
  display: inline-block;
  color: var(--lighter-font);
  border: none;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5em 1.5em;
}

a.tag:hover {
  color: var(--black);
  background-color: var(--highlight-white);
}

/* desktop specifics */
@media (min-width: 72em) {
  .no-desktop {
    display: none;
  }

  .flex-column {
    display: flex;
    flex-flow: column wrap;

    margin: 1em -1em;

    align-content: space-between;
  }

  .flex-row {
    display: flex;
    flex-flow: row nowrap;

    margin: 1em -1em;

    align-content: space-between;
  }
}

/* mobile specifics */
@media (max-width: 72em) {
  main {
    width: 100% !important;
  }

  nav {
    padding: 0 1em;
  }

  main nav {
    width: 100%;
  }

  header {
    padding: 4em 1em;
  }

  header h1 {
    font-size: 10vw;
  }

  header h3 {
    font-size: 7vw;
  }

  header h4 {
    font-size: 5vw;
  }

  .no-mobile {
    display: none !important;
  }

  nav#site-nav {
    display: block;
    height: auto !important;
  }

  nav div {
    text-align: center;
    margin: 0;
    flex: 1;
  }

  nav .attention-button {
    margin: 1em auto;
  }

  nav #toggle {
    display: none;
    width: 0;
  }

  nav label[for="toggle"] {
    position: absolute;
    right: 0;

    font-weight: bold;
    font-size: 1.9em;

    color: var(--white);
    cursor: pointer;
  }

  nav #toggle:not(:checked) ~ .toggleable {
    position: absolute;
    top: -1000px !important;
    display: none;
    clear: both;
  }

  nav #share-links {
    line-height: 5.5em !important;
    height: 4em !important;
  }

  nav #share-links a {
    display: inline;
  }

  nav #share-links a img {
    height: 3em;
  }
}
