/* What the three directions share: the fonts, the strip above the page that switches direction, language and
   theme, and the phone-wide column on a wide screen. Nothing here is part of a direction's look. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/newsreader-latin-opsz-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/newsreader-latin-opsz-italic.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(../fonts/instrument-sans-latin-wght-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(../fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2-variations");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The strip: not part of any direction. */
.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  background: #101114;
  color: #b9bcc6;
  font:
    500 12px / 1 "Geist",
    system-ui,
    sans-serif;
  letter-spacing: 0.01em;
}
.strip nav,
.strip div {
  display: flex;
  align-items: center;
  gap: 2px;
}
.strip a,
.strip button {
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.strip [aria-current="page"],
.strip [aria-pressed="true"] {
  background: #2a2c33;
  color: #fff;
}
.strip .name {
  color: #fff;
  padding-right: 6px;
}
.strip a:focus-visible,
.strip button:focus-visible {
  outline: 2px solid #8aa0ff;
  outline-offset: 1px;
}
.bare .strip {
  display: none;
}

/* On a wide screen the page stays as wide as a phone. */
.phone {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
}
@media (min-width: 520px) {
  html {
    background: #e9e9ec;
  }
  html[data-theme="dark"] {
    background: #050506;
  }
  .phone {
    max-width: 390px;
    box-shadow:
      0 0 0 1px rgb(0 0 0 / 0.08),
      0 30px 80px rgb(0 0 0 / 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion has to win from every animation on the page */
    animation-duration: 0.01ms !important;
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion has to win from every animation on the page */
    animation-delay: 0ms !important;
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion has to win from every animation on the page */
    transition-duration: 0.01ms !important;
  }
}
