* {
  box-sizing: border-box;
}
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}
body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 15px;
  background-color: rgb(207 189 156);
  color: rgb(68 39 25);
  font-optical-sizing: auto;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.2em;
  line-height: 170%;
}
body > div {
  margin: 0 auto;
  height: 100%;
  overflow: auto;
  border: 2px solid rgb(112 120 96);
  background-color: rgb(164 172 148);
  background-image: linear-gradient(
    to bottom,
    rgb(207 189 156),
    rgb(164 172 148)
  );
  background-attachment: fixed;
  background-size: 100% 33rem;
  background-repeat: no-repeat;
}
h1,
h2,
h3,
h4 {
  font-style: normal;
  margin: 0 0 1.6rem;
  line-height: 110%;
}
h1 {
  font-weight: 900;
  font-size: 3em;
  line-height: 100%;
  margin-bottom: 0.66rem;
}
h2 {
  font-size: 1.2em;
  line-height: 1.4em;
  font-weight: bold;
  color: rgb(68 39 26);
  text-shadow: -2px -1px 2px rgb(207 189 156 / 60%),
    2px 1px 3px rgb(0 0 0 / 20%);
  span {
    display: block;
    font-size: 2em;
  }
}
h3 {
  font-size: 1.4rem;
  font-weight: 100;
  margin: 0 0 2rem;
  padding: 1rem;
  color: rgb(221 219 215);
  text-align: center;
  background: rgb(112 121 97);
  border-radius: 3px;
  text-shadow: 2px 2px 3px #44493a;
  mix-blend-mode: luminosity;
}
h4 {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(68 39 25);
}
p {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}
section {
  margin: 0 auto;
  padding: 1.25rem;
}
.logo {
  text-align: center;
  padding: 0;
  h1 {
    margin: 0;
    width: 100%;
    height: auto;
    max-height: 30rem;
    aspect-ratio: 3/2;
    background: url(assets/adam-martinez.png) no-repeat center center;
    background-size: contain;
    text-indent: -9999px;
    overflow: hidden;
    filter: drop-shadow(0 0 5px rgb(0 0 0/30%));
  }
}

.tagline {
  font-size: 1.2em;
}

.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-12 {
  margin-bottom: 3rem;
}

.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-4 {
  padding: 1rem;
}
.p-8 {
  padding: 2rem;
}

.flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-12 {
  gap: 3rem;
}

ul.no-style {
  list-style: none;
  margin: 0;
  padding: 0;
}

.button {
  display: inline-block;
  padding: 0.25rem 2rem;
  border: 2px solid rgb(68 39 25);
  background: transparent;
  color: rgb(68 39 25);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-family: sans-serif;
  font-size: 1rem;
  font-weight: 100;
  box-shadow: 2px 2px rgb(68 39 25);
  transition: all 0.2s ease-in-out;
  &:hover {
    box-shadow: 1px 1px rgb(68 39 25);
    transform: translateY(2px);
  }
}

.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  background: rgb(207 189 156);
  border: 1px solid rgb(68 39 25);
  color: rgb(112 120 96);
  border-radius: 4px;
  box-shadow: 3px 2px rgb(68 39 25);
  transition: all 0.2s ease-out;
  svg {
    stroke-width: 1px;
    height: 3rem;
    width: auto;
  }
  &:hover {
    color: rgb(68 39 26);
    box-shadow: 1px 0px rgb(68 39 25);
    transform: translateY(2px);
  }
}
.icon.circle {
  border-radius: 50%;
}

.section {
  div {
    padding: 0 2rem;
    ul {
      list-style: none;
      margin: 0;
      padding: 0;
      li {
        margin-bottom: 2rem;
      }
    }
  }
}

.cta {
  margin: 0 1.25rem 2rem;
  border-radius: 4px;
  background: rgb(221 219 215);
  color: rgb(112 120 96);
  box-shadow: 4px 3px #76796b;

  h3 {
    color: rgb(68 39 25);
  }
}

dt,
dd,
h3 {
  z-index: 1;
}
.timeline {
  order: -1;
}
.timeline dl {
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 4px solid rgb(112 121 97);
}
.timeline dl::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 7%;
  width: 1px;
  height: 100%;
  border-left: 4px dashed rgb(112 121 97);
}
.timeline dt {
  margin: 0;
  padding: 0.25rem 1.25rem;
  width: fit-content;
  background-color: rgb(207 189 156);
  border: 1px solid #707a61;
  border-radius: 4px;
  box-shadow: 1px 1px #707a61;
  transform: translateX(3%);
  transition: all 0.3s ease-in;
}
.timeline dd {
  margin: 0 0 4rem auto;
  padding: 1.25rem 1.25rem 1.25rem 2rem;
  width: 96%;
  background-color: rgb(221 219 215 / 60%);
  border-radius: 4px;
  box-shadow: 2px 2px #76796b;
  backdrop-filter: blur(2px);
  opacity: 0.6;
  transition: opacity 0.6s ease-in-out;

  h4 {
    margin: 0 0 1rem;
    font-size: 96%;
    font-weight: 600;
    color: rgb(68 39 25);
  }
  p {
    font-size: 81%;
    font-weight: 200;
    color: rgb(68 39 25);
  }

  &.visible {
    opacity: 1;
  }
}

ul.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  li {
    padding: 0.25rem 1rem;
    border: 1px solid rgb(112 121 97);
    /* background-color: rgb(112 121 97); */
    color: rgb(68 39 26);
    border-radius: 4px;
    box-shadow: 1px 1px #76796b;
    font-family: sans-serif;
    font-weight: 100;
    font-size: 0.7em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
  }
}
.more-toggle,
.even-more-toggle {
  width: fit-content;
  margin: 0 auto 2rem;
  transition: all 0.3s ease-out;
}
.even-more-toggle {
  display: none;
}
.more,
.even-more {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}
#more-checkbox,
#even-more-checkbox {
  display: none;
  position: absolute;
}
#more-checkbox:checked ~ .more-toggle {
  opacity: 0;
  transform: translateY(-33%);
}
#more-checkbox:checked ~ .more {
  display: block;
  max-height: 100vh;
}
#more-checkbox:checked ~ .even-more-toggle {
  display: block;
  max-height: 100vh;
}
#even-more-checkbox:checked ~ .even-more-toggle {
  opacity: 0;
  transform: translateY(-33%);
}
#even-more-checkbox:checked ~ .even-more {
  display: block;
  max-height: 100vh;
}

.tools {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  strong {
    font-size: 120%;
  }
}

@media (min-width: 800px) {
  header,
  .sections {
    max-width: 80em;
    margin: 0 auto;
  }
  h2 {
    font-size: 1.6rem;
  }
  header {
    max-width: 60em;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  header > div:nth-child(2) {
    max-width: 21em;
  }
  .logo {
    flex-basis: 40%;
  }

  .social-icons {
    flex-direction: column;
    padding: 4rem;
  }
  .sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(7, auto);
    gap: 2rem;
    padding: 2rem;
    min-height: 100vh;
    section {
      width: 100%;
      grid-column: 2;
    }
    section.timeline {
      order: -1;
      grid-column: 1;
      break-inside: avoid;
      grid-row: 1 / -1;
    }
  }
}
