@import url('https://use.typekit.net/jih6pev.css');

html {
  background: #2b323e;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
  font-family: 'cheddar-gothic-rough', sans-serif;
  font-weight: 400;
  font-style: normal;
  opacity: 0.9;
  text-transform: lowercase;
}

h1.logo {
  margin-top: 1rem;
  font-size: 3rem;
  text-align: center;
  white-space: nowrap;
  width: 10rem;
  line-height: 1;
  margin: 20px 0;
  small {
    font-size: 0.5em;
    vertical-align: middle;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
  }
}

h2 {
  font-size: 4rem;
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-transform: lowercase;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  text-transform: lowercase;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  text-transform: lowercase;
}

p {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 1.5rem;
}

a {
  color: inherit;
}

#page {
  position: relative;
  margin: auto;
}

main {
  padding: 0;
}

header {
  padding: 10px 10px;

  a {
    color: inherit;
    text-decoration: underline; /* underline clickable (alternate) */
    &.selected {
      text-decoration: none; /* current locale not underlined */
    }
  }

  .right {
    margin-top: 2rem !important;
    > * {
      margin-left: 0.25rem;
    }
  }
}

/* tighten header spacing for better vertical centering */
header h1.logo {
  margin: 0;
}
header.cols > div:nth-child(2) {
  display: flex;
  align-items: center;
}
header.cols > div:nth-child(2) h4 {
  margin: 0;
}

/* Header as a responsive grid: logo left, language toggle right */
header.cols {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'logo lang';
  column-gap: 1rem;
  align-items: center; /* vertically center items */
}
header.cols > div:nth-child(1) {
  grid-area: logo;
}
header.cols > div:nth-child(2) {
  grid-area: lang;
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}

section {
  .container {
    padding: 30px;
    position: relative;
  }
}

.key,
.map,
.marcos {
  display: none;
}

section .video-wrapper {
  /* position: relative; */
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0 0 30px 0 !important;

  iframe {
    background-color: black;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
  }
}

.parchment {
  background-color: #dfd7bc;
  background-image: url(/images/bg-parchment.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: black;
}

.olive {
  background: #444f4a;
}

.fpo {
  display: inline-block;
  background: rgba(0, 0, 0, 0.25);
  color: #999;
  width: 60%;
  aspect-ratio: 16 / 9;
  margin-bottom: 2rem;
  img {
    max-width: 100%;
    height: auto;
  }
}

table td {
  padding: 0 0.5rem 1rem 0;
}

a.button {
  display: inline-block;
  border-radius: 4px;
  border: none;
  background: #892400;
  color: white;
  text-align: center;
  text-decoration: none;
  line-height: 1;
}

section a.button {
  width: 180px;
  padding: 1.25rem;
  text-transform: uppercase;
  font-family: 'cheddar-gothic-rough', sans-serif;
  font-weight: 400;
  font-size: 1.75rem;
}

header a.button {
  padding: 1rem;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  .col {
    flex: 1 1 25%;
    margin: 0 1.5rem 2rem;
    text-align: center;
  }
}

img.profile {
  border-radius: 50%;
  width: 220px;
  height: 220px;
  object-fit: cover;
  margin-bottom: 2rem;
  background-color: gray;
  border: none;
}

footer {
  opacity: 0.25;
  text-align: center;
  padding: 3rem;

  line-height: 1.25;
  a {
    text-decoration: none;
  }
}

.left {
  text-align: left;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

@media (min-width: 768px) {
  /* tablet */
  #page {
    width: 768px;
  }
  header {
    padding: 16px 10px;
  }
  /* On tablet+ keep 2 columns: logo and language */
  header.cols {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'logo lang';
    align-items: center; /* vertically center across the row */
  }
  header.cols > div:nth-child(1) h1.logo {
    margin: 0;
    text-align: left;
  }
  header.cols > div:nth-child(2) {
    align-self: center;
  }
  section .container {
    padding: 40px;
  }
}

@media (min-width: 1024px) {
  /* laptop */
  #page {
    width: 1024px;
  }
  section .container {
    padding: 70px;
  }

  .key,
  .map,
  .marcos {
    display: block;
  }

  #marrano .container {
    background-image: url(/images/bg-marrano.png);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 100%;
    padding-top: 140px;
    padding-right: 40%;
  }
  #porque .container {
    background-image: url(/images/bg-porque.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100%;
    padding-top: 40px;
    padding-left: 38%;
  }
  #historia .container {
    background-image: url(/images/bg-historia.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100%;
    padding-bottom: 3rem;
    .quotes {
      padding-left: 36%;
    }
  }
  #percentages .container {
    background-image: url(/images/bg-percentages.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100%;
    padding-top: 45px;
    padding-right: 40px;
    padding-bottom: 35px;
    padding-left: 38%;
  }
  #locaciones .container {
    background-image: url(/images/bg-parchment-olive.png);
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: cover;
    padding-right: 50%;
  }
  #pitchdeck .container {
    background-image: url(/images/bg-pitchdeck.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100%;
    padding-top: 50px;
  }
  #donacion .container {
    background-image: url(/images/bg-parchment-olive.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: cover;
    padding-left: 40%;
  }
}

#tagline {
  margin-top: 0rem;
  margin-bottom: 2rem;
  text-align: center;
  h4 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0 2rem;
    text-transform: uppercase;
    text-align: center;
  }
}
