.side-navigation {
  position: fixed;
  inset: 0 auto 0 0;
  width: 104px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: var(--background-color);
  color: var(--status-color);
}
.home-page { padding-left: 104px; }
.side-navigation a, .mobile-navigation a {
  color: inherit;
  font-family: "Sweet Boys Pretender Light", sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}
.side-navigation a {
  padding: 12px 16px;
  font-size: 1.35rem;
  position: relative;
  isolation: isolate;
  transition: color 200ms ease;
}
.side-navigation a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--status-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms cubic-bezier(.2, .7, .3, 1);
}
.side-navigation a[aria-current="location"] { color: var(--background-color); }
.side-navigation a[aria-current="location"]::before { transform: scaleX(1); transform-origin: right; }
.side-navigation a:hover { text-decoration: underline; text-underline-offset: 5px; }
.side-navigation a:focus-visible, .mobile-navigation a:focus-visible,
.mobile-nav-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.mobile-nav-close:focus-visible { outline: none; }
.mobile-nav-close:focus-visible .nav-fork { filter: drop-shadow(0 0 3px currentColor); }
.mobile-nav-toggle { display: none; }
.mobile-navigation { display: none; }
.theme-dial { width: 96px; color: var(--status-color); text-align: center; }
.side-navigation > .theme-dial { position: absolute; bottom: 20px; left: 4px; }
.theme-arc { display: block; width: 100%; height: 24px; overflow: visible; }
.theme-arc path { fill: none; stroke: currentColor; stroke-width: 1; opacity: .4; }
.theme-time-dot { fill: currentColor; }
.theme-icon-buttons { display: flex; justify-content: space-between; margin-top: -12px; }
.theme-dial button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.theme-icon { display: block; width: 24px; height: 24px; background: currentColor; }
.theme-icon--sun { -webkit-mask: url('assets/theme-sun.png') center / contain no-repeat; mask: url('assets/theme-sun.png') center / contain no-repeat; }
.theme-icon--moon { -webkit-mask: url('assets/theme-moon.png') center / contain no-repeat; mask: url('assets/theme-moon.png') center / contain no-repeat; }
.theme-dial button[aria-pressed="true"] { background: transparent; color: #000000; }
body[data-theme="dark"] .theme-dial button[aria-pressed="true"] { color: #b52024; }
.theme-dial button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.theme-dial .theme-auto { font: 12px "Sweet Boys Pretender Light", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 900px) {
  .home-page { padding-left: 0; }
  .side-navigation { display: none; }
  .mobile-nav-toggle, .mobile-nav-close {
    appearance: none;
    display: grid;
    place-items: center;
    position: fixed;
    left: max(8px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--background-color);
    color: var(--status-color);
    cursor: pointer;
    z-index: 40;
  }
  .nav-fork {
    display: block;
    width: 42px;
    height: 32px;
    background: currentColor;
    -webkit-mask: url("div_fork_left.svg") center / contain no-repeat;
    mask: url("div_fork_left.svg") center / contain no-repeat;
    transform: rotate(90deg);
    transition: transform .25s ease;
  }
  .mobile-nav-close {
    appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav-close .nav-fork { transform: rotate(180deg); }
  .mobile-navigation[open] .mobile-nav-close .nav-fork { animation: nav-turn .25s ease; }
  .mobile-navigation[open].is-closing .mobile-nav-close .nav-fork { animation: nav-turn-back .25s ease both; }
  .mobile-nav-close { left: var(--toggle-left); top: var(--toggle-top); bottom: auto; width: 56px; grid-template-columns: 1fr; outline: none; }
  .mobile-navigation[open] {
    display: grid;
    align-content: center;
    gap: 24px;
    align-items: center;
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    padding: 72px max(32px, env(safe-area-inset-left), env(safe-area-inset-right));
    background: transparent;
    color: var(--status-color);
    isolation: isolate;
  }
  .mobile-navigation[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--background-color);
    pointer-events: none;
  }
  .mobile-navigation[open]::before,
  .mobile-navigation[open] > nav,
  .mobile-navigation[open] > .theme-dial { animation: nav-panel-in .25s ease both; }
  .mobile-navigation[open].is-closing::before,
  .mobile-navigation[open].is-closing > nav,
  .mobile-navigation[open].is-closing > .theme-dial { animation: nav-panel-out .25s ease both; }
  .mobile-navigation::backdrop { background: transparent; }
  @keyframes nav-panel-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes nav-panel-out { from { opacity: 1; } to { opacity: 0; } }
  .mobile-navigation nav { display: grid; gap: 16px; justify-items: center; text-align: center; }
  .mobile-navigation > .theme-dial { justify-self: center; width: 112px; }
  .mobile-navigation a { font-family: "Sweet Boys Pretender Bold", sans-serif; font-size: clamp(3rem, 12vw, 5rem); line-height: 1.15; }
  .mobile-navigation a[aria-current="location"] { text-decoration: underline; text-underline-offset: 8px; }
  body:has(.mobile-navigation[open]) { overflow: hidden; }
  body:has(.mobile-navigation[open]) .mobile-nav-toggle { visibility: hidden; }
  @keyframes nav-turn { from { transform: rotate(90deg); } to { transform: rotate(180deg); } }
  @keyframes nav-turn-back { from { transform: rotate(180deg); } to { transform: rotate(90deg); } }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-navigation[open]::before,
  .mobile-navigation[open].is-closing::before,
  .mobile-navigation[open] > nav,
  .mobile-navigation[open].is-closing > nav,
  .mobile-navigation[open] > .theme-dial,
  .mobile-navigation[open].is-closing > .theme-dial { animation: none; }
  .side-navigation a, .side-navigation a::before { transition: none; }
  .nav-fork { transition: none; }
  .mobile-navigation[open] .mobile-nav-close .nav-fork,
  .mobile-navigation[open].is-closing .mobile-nav-close .nav-fork { animation: none; }
}
