* {
  box-sizing: border-box;
  color: white;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background-color: black;
  font-family: 'Epilogue', system-ui, sans-serif;
}

body.site-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-title {
  font-size: clamp(1.7rem, 5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: clamp(0.08em, 0.22vw, 0.25em);
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  width: 100%;
}

.brand-logo {
  width: min(70%, 686px);
  max-width: 686px;
  display: block;
  align-self: center;
  height: auto;
  margin: clamp(22px, 4.5vh, 58px) 0 clamp(34px, 9vh, 120px);
  max-height: 28dvh;
  object-fit: contain;
  flex-shrink: 1;
}

.brand-home-link {
  display: flex;
  justify-content: center;
  width: 100%;
  line-height: 0;
  text-decoration: none;
}

.brand-home-link:focus-visible {
  outline: 1px solid rgba(255,255,255,0.6);
  outline-offset: 6px;
}

.bottom-section {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 24px clamp(14px, 2vh, 28px);
  background: black;
}

.nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: clamp(6px, 1.2vw, 18px);
  align-items: end;
  width: 100%;
}

.bottom-link {
  font-weight: 400;
  font-size: clamp(1.75rem, 2.8vw, 3.35rem);
  letter-spacing: clamp(0.08em, 0.22vw, 0.25em);
  line-height: 1;
  text-decoration: none;
  border-bottom: 1px solid white;
  padding-bottom: 4px;
  display: inline-block;
  white-space: nowrap;
}

.bottom-link:first-child {
  justify-self: end;
}

.bottom-link:last-child {
  justify-self: start;
}

.bottom-link:hover,
.email-block:hover {
  opacity: 0.8;
}

.cog-wrap {
  justify-self: center;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(3.2rem, 5.6vw, 5.6rem);
  width: calc(clamp(3.2rem, 5.6vw, 5.6rem) * 210 / 297);
  overflow: visible;
  position: relative;
  top: clamp(8px, 1.4vw, 16px);
}

.cog-logo {
  width: 100%;
  height: 100%;
  aspect-ratio: 210 / 297;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  flex-shrink: 0;
}

.inline-icon {
  width: 0.68em;
  height: 0.68em;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.22em;
}

.location-icon {
  position: relative;
  top: -0.06em;
}

.calendar-icon {
  position: relative;
  top: -0.12em;
}

@media (max-width: 900px) {
  .brand-title {
    font-size: clamp(1.55rem, 5.5vw, 3.8rem);
    letter-spacing: clamp(0.06em, 0.16vw, 0.18em);
  }

  .brand-logo {
    width: 70%;
    max-width: 392px;
    max-height: 24dvh;
    margin: clamp(18px, 4vh, 43px) 0 clamp(28px, 7vh, 90px);
  }

  .inline-icon {
    width: 0.7em;
    height: 0.7em;
    margin-right: 0.2em;
  }

  .location-icon,
  .calendar-icon {
    top: -0.1em;
  }
}

@media (max-width: 700px) {
  .brand-title {
    font-size: clamp(1.35rem, 7vw, 2.15rem);
    letter-spacing: clamp(0.04em, 0.12vw, 0.08em);
  }

  .brand-logo {
    width: 70%;
    max-width: 252px;
    max-height: 20dvh;
    margin: clamp(14px, 3.2vh, 34px) 0 clamp(20px, 5.2vh, 70px);
  }

  .bottom-section {
    padding: 10px 18px clamp(12px, 1.8vh, 22px);
  }

  .inline-icon {
    width: 0.72em;
    height: 0.72em;
    margin-right: 0.18em;
  }

  .location-icon,
  .calendar-icon {
    top: -0.08em;
  }
}
