html {
  overflow-y: scroll;
}

:root {
  --apple-black: #1d1d1f;
  --brand-green: #19bf00;
  --text-grey: #86868b;
  --soft-grey: #f5f5f7;
  --site-mobile-header-offset: 128px;
  --mobile-safe-bottom: max(18px, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  color: var(--apple-black);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-page {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 0 10px;
}

.site-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--soft-grey);
  border: 1px solid rgba(29, 29, 31, 0.08);
}

.site-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--text-grey);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.site-tab:hover {
  color: var(--apple-black);
}

.site-tab.is-active {
  background: var(--apple-black);
  color: #ffffff;
}

.site-brand {
  display: inline-flex;
  justify-content: center;
  padding: 12px 0;
  text-decoration: none;
}

.site-brand-image {
  display: block;
  width: min(560px, 82vw);
  height: auto;
}

@media (max-width: 768px) {
  body {
    padding-top: calc(var(--site-mobile-header-offset) + env(safe-area-inset-top));
    background:
      linear-gradient(180deg, rgba(246, 255, 243, 0.86), rgba(255, 255, 255, 0) 320px),
      #ffffff;
  }

  .site-page {
    width: min(1200px, calc(100% - 28px));
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 80;
    gap: 6px;
    margin-inline: 0;
    padding: calc(5px + env(safe-area-inset-top)) 14px 8px;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(29, 29, 31, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .site-tabs {
    width: 100%;
    justify-content: center;
    padding: 4px;
    background: rgba(245, 245, 247, 0.86);
  }

  .site-tab {
    flex: 1;
    min-width: 0;
    min-height: 38px;
    padding: 0 12px;
  }

  .site-brand-image {
    width: min(264px, 72vw);
  }

  .site-brand {
    padding: 2px 0 0;
  }
}
