/* The aperture in the artwork is centered at 49.7%, 48.1%. */
:root {
  color-scheme: dark;
  background: #030403;
  color: #f5e3bc;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  position: absolute;
  z-index: 2;
  inset: max(.8rem, env(safe-area-inset-top)) 0 auto;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
nav {
  display: inline-flex;
  padding: .12rem;
  border: 1px solid rgba(186, 162, 120, .24);
  border-radius: 2rem;
  background: #0e0e0be6;
  pointer-events: auto;
}
nav a {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding: .15rem 1rem;
  border-radius: inherit;
  color: #d8ccbb;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .018em;
  text-decoration: none;
}
nav a[aria-current] { background: #29251e; color: #f4dfb9; }
nav a:hover { color: #fff3db; }
main {
  --side: min(129vw, 91vh);
  --side: min(129vw, 91svh);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: clip;
  background: radial-gradient(ellipse at 26% 66%, #100d07 0%, transparent 43%),
              radial-gradient(ellipse at 69% 35%, #0a100d 0%, transparent 42%), #030403;
}
.art {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: var(--side);
  height: var(--side);
  max-width: none;
  transform: translate(-49.7%, -48.1%);
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 91%, transparent), linear-gradient(to bottom, transparent, black 7%, black 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, black 10%, black 91%, transparent), linear-gradient(to bottom, transparent, black 7%, black 94%, transparent);
  mask-composite: intersect;
}
.wordmark {
  display: grid;
  position: relative;
  place-items: center;
  width: calc(var(--side) * .274);
  min-width: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #f7e5bd;
  text-decoration: none;
  text-shadow: 0 1px 10px #ba925b35;
  font: 400 calc(var(--side) * .116)/1 'Baskervville', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  -webkit-tap-highlight-color: #9c713f40;
}
.wordmark span { letter-spacing: -.055em; padding-inline-end: .055em; }
.wordmark::before {
  content: '';
  position: absolute;
  top: 22%;
  width: clamp(2px, .42vh, 4px);
  aspect-ratio: 1;
  background: #e5bd78;
  border-radius: 50%;
  box-shadow: 0 0 .5rem #ca8e4f80;
}
.download {
  position: absolute;
  inset-block-end: max(.75rem, env(safe-area-inset-bottom));
  justify-self: center;
  max-width: calc(100% - 2rem);
  min-height: 2.75rem;
  align-content: center;
  padding: .5rem .75rem;
  color: #e4ceb0;
  font-size: .83rem;
  font-weight: 500;
  letter-spacing: .035em;
  text-align: center;
  text-decoration-line: underline;
  text-decoration-color: #947950;
  text-decoration-thickness: 1px;
  text-underline-offset: .38em;
  text-shadow: 0 1px 5px black;
}
.download:hover { color: #ffebcb; text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid #f9da9a; outline-offset: 3px; }
.wordmark:is(:hover, :focus-visible) { color: #fff3d7; text-shadow: 0 0 .3em #d9a25a75; }
.wordmark:active { color: #f5d394; }
@media (prefers-reduced-motion: no-preference) {
  .wordmark, .download, nav a { transition: color .18s ease, text-shadow .18s ease; }
}
@media (max-height: 31rem) {
  main { --side: min(129vw, 84vh); --side: min(129vw, 84svh); }
  header { inset-block-start: max(.18rem, env(safe-area-inset-top)); }
  .download { inset-block-end: max(.1rem, env(safe-area-inset-bottom)); }
}
@media (forced-colors: active) {
  .art { opacity: .15; }
  nav a[aria-current], .wordmark, .download { text-decoration: underline; }
}
