:root {
  --brandHSL:hsl(215, 100%, 64%);
}

html {
  font-size: calc(14px + 0.25vw);
}

body {
  margin:0;
}

svg {
  width: 100%;
  height: 100%;
}

a {
  text-decoration: none;
  color: #09c;
}

h1 {
  font-size: 1.7rem;
}

h4 {
  font-size: 1.1rem;
  max-inline-size: 30ch;
}

p {
  line-height: 1.5;
  max-inline-size: 50ch;
}

.wrapper {
  display: grid;
  grid: [stack] 1fr/min-content [stack] 1fr;
  background-color: #fff;
  min-block-size: 100vh;
}
@media (max-width: 540px) {
  .wrapper > :is(aside,main) {
    grid-area: stack;
  }
}

#sidenav-open {
  --easeOutExpo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: .6s;
  display: grid;
  grid-template-columns: [nav] 2fr [escape] 1fr;
}

@media (max-width: 540px) {
  #sidenav-open {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow: hidden auto;
    -ms-scroll-chaining: none;
        overscroll-behavior: contain;
    visibility: hidden;
    /* not keyboard accessible when closed */
    transform: translateX(-110vw);
    will-change: transform;
    transition: transform var(--duration) var(--easeOutExpo), visibility 0s linear var(--duration);
  }
}
#sidenav-open:target {
  visibility: visible;
  transform: translateX(0);
  transition: transform var(--duration) var(--easeOutExpo);
}
@media (prefers-reduced-motion: reduce) {
  #sidenav-open {
    --duration: 1ms;
  }
}

nav {
  padding: 2rem;
  background-color: #b0bec0;
  box-shadow: 5px 0 40px rgba(176, 190, 192, 0.05);
  font-size: 1rem;
  display: inline-flex;
  flex-direction: column;
}
nav > h4 {
  text-transform: uppercase;
  color: #e2e2e2;
}
nav a {
  outline-color: #00196b;
  outline-offset: 5px;
  line-height: 1.5;
  color: #1a79ff;
}
main {
  padding: 1rem 1.5rem;
}
main > header {
  display: flex;
  justify-content: space-between;
  min-height: 3rem;
  margin-bottom: 1rem;
}
main > header h1 {
  color: #e2e2e2;
  margin: 0 0 0 10px;
}

.hamburger {
  --size:3.5rem;
  display: flex;
  align-content: center;
  justify-content: center;
  place-content: center;
  padding: 1rem;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid transparent;
  height: var(--size);
  width: var(--size);
  flex-shrink: 0;
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.hamburger:hover {
  border-color: rgba(71, 148, 255, 0.5);
  border-color: hsl(var(--brandHSL)/50%);
}

.hamburger:focus {
  border-color: rgba(71, 148, 255, 0.12);
  border-color: hsl(var(--brandHSL)/12%);
  background: rgba(71, 148, 255, 0.1);
  background: hsl(var(--brandHSL)/10%);
}

.hamburger > svg {
  width: 100%;
}

.hamburger > svg > line {
  stroke: #e2e2e2;
  stroke-width: 7px;
  transition: stroke 0.25s ease;
}

.hamburger:hover svg > line {
  stroke: #1a79ff;
}

.hamburger:active {
  background: rgba(0, 25, 107, 0.2);
  background: hsl(var(--brandHSL)/20%);
}

article {
  display: inline-grid;
  grid-gap: 2ch;
  gap: 2ch;
  padding: 2ch;
  border-radius: 1ch;
}

#sidenav-button,
#sidenav-close {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  touch-action: manipulation;
}
@media (min-width: 540px) {
  #sidenav-button,
#sidenav-close {
    display: none;
  }
}
