* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #202a28;
  background: #b1b0a7;
}
body {
  margin: 0;
}
#work {
  height: 100vh;
  height: 100dvh;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #b1b0a7;
}
#marsh,
#sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#marsh {
  object-fit: cover;
  object-position: 62% 72%;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
#sky {
  display: block;
  touch-action: none;
  cursor: crosshair;
  outline-offset: -5px;
}
header {
  position: absolute;
  top: max(6.4%, env(safe-area-inset-top));
  left: clamp(20px, 4.7vw, 80px);
  pointer-events: none;
  text-shadow: 0 1px 15px #deddd480;
}
h1 {
  font:
    500 clamp(34px, 4.1vw, 77px) / 1.2 'Songti SC',
    'STSong',
    'Noto Serif CJK SC',
    'Iowan Old Style',
    Georgia,
    serif;
  letter-spacing: 0.04em;
  margin: 0;
}
html[lang='en'] h1 {
  letter-spacing: -0.035em;
}
header p {
  font-size: clamp(12px, 1.04vw, 16px);
  letter-spacing: 0.025em;
  line-height: 1.5;
  margin: 0.8em 0 0;
}
footer {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  padding: 60px clamp(16px, 4.7vw, 80px) max(3.8vh, env(safe-area-inset-bottom), 14px);
  background: linear-gradient(transparent, rgba(21, 24, 18, 0.72));
  color: #fffdf6;
  pointer-events: none;
}
#credit {
  font:
    400 12px/1.6 'Songti SC',
    'STSong',
    Georgia,
    serif;
  letter-spacing: 0.09em;
  padding-bottom: 12px;
  text-shadow: 0 1px 3px #191b17;
}
nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
button,
nav a {
  font: inherit;
  font-size: 13px;
  color: inherit;
  border: 0;
  border-radius: 2px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: none;
  padding: 0 12px;
  text-decoration: none;
  cursor: pointer;
}
nav a {
  border-left: 1px solid #f2efe481;
  border-radius: 0;
  margin-left: 5px;
}
button:hover,
nav a:hover,
button[aria-pressed='true'] {
  background: #ffffff24;
}
:focus-visible {
  outline: 2px solid #fffaf0;
  outline-offset: 2px;
}
#sky:focus-visible {
  outline-color: #9c382a;
}
.sr-only {
  position: absolute;
  height: 1px;
  width: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
noscript {
  position: absolute;
  left: 5%;
  top: 40%;
  background: #eae9e1;
  padding: 12px;
}
@media (max-width: 650px) {
  header {
    top: 6%;
  }
  footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
    padding: 48px 16px max(15px, env(safe-area-inset-bottom));
  }
  #credit {
    padding: 0 8px;
    font-size: 11px;
  }
  nav {
    gap: 2px;
  }
  button,
  nav a {
    padding: 0 9px;
  }
}
@media (max-height: 400px) {
  header {
    top: 5%;
  }
  h1 {
    font-size: 30px;
  }
  footer {
    flex-direction: row;
    align-items: center;
    padding: 20px 15px 6px;
  }
  #credit {
    padding: 0;
  }
}
