*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  background: hsl(153, 22%, 8%);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: hsl(153, 22%, 8%);
  color: hsl(153, 25%, 94%);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

nav {
  position: fixed;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 0 1.25rem;
  background: hsla(153, 20%, 8%, 0.97);
  color: hsl(153, 25%, 94%);
  font-family: "Figtree", "Trebuchet MS", sans-serif;
}

.brand {
  color: inherit;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 1.15rem;
}

.nav-links a {
  color: inherit;
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand:hover,
.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 3px solid hsl(189, 85%, 64%);
  outline-offset: 3px;
}

.blocks {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 14px calc(124px + 14px);
  align-items: start;
}

.blocks .panel:nth-child(1) { grid-column: 2 / span 5; }
.blocks .panel:nth-child(2) { grid-column: 1 / span 10; }
.blocks .panel:nth-child(3) { grid-column: 2 / span 10; }
.blocks .panel:nth-child(4) { grid-column: 2 / span 9; }
.blocks .panel:nth-child(5) { grid-column: 3 / span 7; }
.blocks .panel:nth-child(6) { grid-column: 6 / span 4; }

.sheet {
  position: relative;
  z-index: 1;
  padding: 14px 14px calc(124px + 14px);
}

.sheet .panel {
  width: min(68ch, 100%);
  max-width: 68ch;
}

.panel {
  min-width: 0;
  padding: 1.25rem;
  border-radius: 8px;
  background: hsla(153, 18%, 12%, 0.9);
  color: hsl(153, 25%, 94%);
  overflow-wrap: break-word;
}

.panel a {
  color: hsl(189, 85%, 64%);
  text-underline-offset: 0.15em;
}

h1,
h2,
.name {
  font-family: "Figtree", "Trebuchet MS", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.opening h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  overflow: visible;
}

h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.sheet h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

p {
  margin: 0;
}

.panel p + p,
.panel h2 + p {
  margin-top: 0;
}

.panel p + p {
  margin-top: 0.9rem;
}

.name {
  margin: 1rem 0 0.35rem;
  font-size: 1.7rem;
}

@media (max-width: 759px) {
  nav {
    top: 0;
    bottom: auto;
    height: auto;
    min-height: 124px;
    flex-wrap: wrap;
    align-content: center;
    padding: 1rem 1.25rem;
  }

  .blocks {
    display: flex;
    flex-direction: column;
    padding: calc(124px + 14px) 14px 14px;
  }

  .blocks .panel {
    width: 86%;
  }

  .blocks .panel:nth-child(odd) {
    align-self: flex-start;
  }

  .blocks .panel:nth-child(even) {
    align-self: flex-end;
  }

  .sheet {
    padding: calc(124px + 14px) 14px 14px;
  }
}
