:root {
  color-scheme: light dark;
  --sky: #dcebf3;
  --ink: #243f4d;
  --line: rgba(36, 63, 77, .35);
  --far: #c0d8e4;
  --ridge: #95bacb;
  --lake: #a9cbd9;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--ink);
}

.landscape {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.landscape > div { position: absolute; inset: 0; }

.far {
  background: var(--far);
  clip-path: polygon(0 67%, 13% 65%, 26% 61%, 39% 59%, 50% 56%, 60% 58%, 70% 53%, 80% 56%, 90% 54%, 100% 57%, 100% 100%, 0 100%);
}

.ridge {
  background: var(--ridge);
  clip-path: polygon(0 73%, 12% 70%, 24% 71%, 35% 67%, 46% 69%, 56% 65%, 68% 68%, 78% 64%, 89% 67%, 100% 65%, 100% 100%, 0 100%);
}

.landscape .lake {
  top: 75%;
  background: var(--lake);
}

main {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

a {
  display: inline-flex;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  font-size: 1rem;
  text-decoration: none;
}

a:hover { border-color: currentColor; }

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky: #182b3b;
    --ink: #e7f2f4;
    --line: rgba(231, 242, 244, .4);
    --far: #263f51;
    --ridge: #34566a;
    --lake: #29495d;
  }
}
