/* Main site stylesheet */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

body {
  font-family: "Atkinson Hyperlegible", sans-serif;
  background: #eee;
  color: #111;
  display: flex;
  justify-content: center;
}

.site-header,
.site-footer,
.site-main {
  width: 100%;
  box-sizing: border-box;
}

.canvas {
  width: 100%;
  max-width: 1080px;
  min-width: 0;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  padding: 40px;
  border-color: #bbb;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.site-header {
  border-bottom-style: solid;
  border-bottom-width: 1px;
}

.brand-group {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.footer-logo {
  width: auto;
  max-height: 60px;
  object-fit: contain;
}

.reel-logo {
  max-height: 90px;
  width: auto;
  object-fit: contain;
}

.reel-frame {
  overflow: hidden;
  height: 90px;
  width: 100%;
}

.reel {
  display: flex;
  flex-direction: column;
  transition: transform 0.55s cubic-bezier(.4, 0, .2, 1);
}

.title {
  width: 100%;
  height: 90px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 64px;
  padding-left: 0;
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 40px;
  row-gap: 8px;
  font-size: 18px;
}

.site-nav button {
  border: none;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-nav button:focus-visible {
  outline: 3px solid #555;
}

.active {
  font-weight: 700;
}

.home-link {
  font-style: italic;
}

.site-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;
}

.panel-content {
  width: 100%;
  max-width: 760px;
}

.search {
  width: 100%;
  max-width: 600px;
  padding: 16px 24px;
  border-radius: 40px;
  border: 1px solid #aaa;
  font-size: 18px;
}

.site-footer {
  border-top-style: solid;
  border-top-width: 1px;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  width: auto;
  max-height: 48px;
  object-fit: contain;
}

img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.location {
  font-size: 16px;
}

.hidden {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .canvas {
    max-width: 100%;
    min-width: auto;
  }

  .site-header,
  .site-footer {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 10;
    background: #fff;
    transition: transform 0.3s ease;
  }

  .site-header {
    top: 0;
    padding: 16px 12px;
    border-bottom-width: 1px;
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    bottom: 0;
    padding: 14px 12px;
    border-top-width: 1px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
  }

  .site-footer > * {
    min-width: 0;
  }

  .site-main {
    padding: 110px 12px 90px;
    min-height: calc(100vh - 200px);
  }

  .panel-content {
    max-width: 100%;
  }

  .title {
    font-size: clamp(22px, 6vw, 28px);
    min-height: 72px;
    height: 72px;
    padding-left: 0;
    justify-content: center;
    align-items: center;
    line-height: 1.1;
    text-align: center;
  }

  .title.title-logo {
    min-height: 88px;
    height: 88px;
  }

  .reel-frame {
    height: 88px;
  }

  .reel-logo {
    max-height: 66px;
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
  }

  .site-nav button {
    width: 100%;
    text-align: left;
    font-size: 14px;
  }

  .footer-logo {
    max-height: 42px;
  }

  .site-header,
  .site-footer {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .mobile-hidden .site-header {
    transform: translateY(-110%);
  }

  .mobile-hidden .site-footer {
    transform: translateY(110%);
  }
}
