* {
    box-sizing: border-box;
}
:root{
    --scroll-pos: 0;
}
body {
  background: url(./assets/bg.webp) 50% calc(var(--scroll-pos) * 100%) no-repeat;
  background-size: cover;
  font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
  margin: 0;
  background-attachment: fixed;
  line-height: 1.7;
  letter-spacing: 0.05em;
}
h1, h2 {
  text-align: center;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}
h3 {
  text-transform: uppercase;
  font-size:1rem;
  font-weight: bold;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
nav {
    position: fixed;
    top: 0;
    right: 0;
    left:0;
    z-index: 1;
    padding: 0.5rem 1rem;
    background:rgba(0,0,0,min(calc(var(--scroll-pos) * 5), .8))
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    justify-content: end;
}
nav a {
    color: #ffeed6;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.2rem;
}
section{
    width:100%;
    overflow: hidden;
}
section.logo{
    min-height: 800px;

    padding:3rem 0 6rem;
    position:relative;

    .content {
      width:80vw;
      margin:0 auto;
      max-width: 1280px;
    }

    h1 {
      img {
        margin: 0;
        display: block;
        max-width:90vw;
        width:220px;
        height:auto;
      }
    }
    p {
      color: rgba(26, 26, 29, 1);
      text-transform: uppercase;
      text-shadow: 0 0 1px #ffeed6;
      font-size:1.7rem;
      letter-spacing: .05rem;
      line-height: 1.3;
      margin:1rem 0;

      span {
        font-style: italic;
      }
    }
    .hero {
      position:absolute;
      inset:0;
      width:100%;
      height:100%;
      margin:auto;
      max-width:1600px;
      object-fit: cover;
      object-position: center;
      z-index: -1;
    }
    &:before {
      content:'';
      background-color: #1a1a1d;
      position:absolute;
      z-index: -1;
      inset:0;
    }
}
@media (max-width:1600px) {
  section.logo{
    min-height: 50vw;
  }
}
@media (max-width:500px) {
  section.logo{
    flex-direction: column;
    justify-content: center;
    h1 {
      margin-right:0;
    }
  }
}

.container {
    width: 40rem;
    max-width: calc(100vw - 4rem);
    margin:6rem auto;
    &.wide {
      width:65rem;
    }
}
footer {
    min-height:100vh;
    display:flex;
    flex-direction: column;
    justify-content: end;
    align-items: end;
    .container {
        margin:1rem auto;
        display:flex;
        gap:2rem;
        @media (max-width:500px) {
          gap: .2rem;
          flex-direction: column;
        }
        :first-child{
          margin-right: auto;
        }
    }
}
section.light {
    color: #1a1a1d;
    background: rgba(255, 238, 214, .8);
    backdrop-filter: blur(7px);
}
section.dark {
    color: #ffeed6;
    background: #350B0D;
}
section.space {
    margin-top:60vh;
}
video.bg {
    display:none;
}
.people {
  list-style: none;
  padding:0;
  display:grid;
  gap:2rem;

  @media (min-width:600px) {
    grid-template-columns: repeat(2,1fr) !important;  
  }
  @media (min-width:900px) {
    grid-template-columns: repeat(3,1fr) !important;  
  }
  figure {
    margin:0;
    text-align: center;
    position: relative;
    overflow:hidden;
    border-radius: .5rem;
    box-shadow: 0 3px 6px rgba(0,0,0,.3);

    figcaption{
      text-transform: uppercase;
      font-size:1rem;
      font-weight: bold;
      padding:.2rem;
      position:absolute;
      inset:auto 0 0 0;
      color: #ffeed6;
      background:rgba(0,0,0,.5);
    }
    img {
      display: block;
      width:100%;
      height:auto;
    }
  }
}

dialog {
    border: none;
    border-radius: 8px;
    padding: 0;
    max-width: 30rem;
    background: #ffeed6;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.dialog-content {
    padding: 2rem;

  h2 {
      text-align: left !important;
      margin-bottom: 1.5rem !important;
      font-size: 1.5rem !important;
  }

  p {
      margin-bottom: 1rem;
      font-size: 0.9rem;
  }

  button {
      margin-top: 1rem;
      padding: 0.5rem 1.5rem;
      background: #350B0D;
      color: #ffeed6;
      border: none;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 0.1em;
  }
}

@media (max-width:500px) {
  .hide-mobile {
    display:none;
  }
  section.logo {
    text-align: center;
    background-color: rgba(255, 238, 214, .4);
    .content {
      margin-top:4rem;
    }
    h1 img {
      margin: 0 auto;
    }
    p {
      font-size:1.2rem;
    }
  }
}
@media (min-width:501px) {
  .hide-desktop {
    display:none;
  }
  body {
      background:transparent;
  }
  video.bg{
      top:0;
      left:0;
      display: block;
      position:fixed;
      z-index: -2;
      object-fit: cover;
      object-position: 50% calc(var(--scroll-pos) * 100%);
      width:100%;
      height:100%;
  }
}
