:root {
  --bg: #000;
  --fg: #fff;
  --deadline-x: 20vw;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.poster {
  margin: auto;
  width: min(980px, 100%);
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.nav {
  position: fixed;
  top: 36px;
  right: 36px;
  display: flex;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

.nav a {
  opacity: 0.75;
}

.nav a.active {
  opacity: 1;
}

.backhome {
  position: fixed;
  top: 36px;
  left: 36px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  z-index: 2;
}

.phrase {
  font-size: clamp(28px, 6vw, 64px);
  line-height: 1.2;
  white-space: pre-wrap;
}

.phrase.small {
  font-size: clamp(18px, 3vw, 28px);
  opacity: 0.8;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s steps(1, end) infinite;
}

.oracleline {
  position: relative;
  display: inline-block;
}

.signature {
  font-size: 16px;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

.sig {
  position: absolute;
  right: 0;
  top: 100%;
  transform: translateY(12px);
  text-align: right;
}

.oraclemeta {
  position: absolute;
  right: 0;
  top: 100%;
  transform: translateY(24px);
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.oraclemeta .sig {
  position: static;
  transform: none;
}

.shareicon {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.sharefixed {
  position: fixed;
  right: 36px;
  bottom: 36px;
  z-index: 2;
}

.shareicon svg {
  width: 20px;
  height: 20px;
}

.sharelabel {
  display: none;
}

.shareicon:hover,
.shareicon:focus-visible {
  opacity: 0.9;
}

.share {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.sharepanel {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2;
}

.sharepanel:target {
  display: grid;
}

.sharebox {
  position: relative;
  border: 1px solid #333;
  padding: 24px;
  width: min(560px, 90vw);
  background: #050505;
}

.shareinner {
  position: relative;
  border: 1px solid #333;
  padding: 24px;
  width: min(560px, 90vw);
  background: #050505;
}

.sharetitle {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.shareurl {
  margin: 16px 0;
  padding: 12px;
  background: #0c0c0c;
  border: 1px solid #222;
  font-size: 14px;
  user-select: all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shareclose {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 16px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.shareclose:hover,
.shareclose:focus-visible {
  opacity: 0.9;
}

/* Respect reduced motion preferences for cursor blink. */
@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
    opacity: 1;
  }
}

.archivelist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.archiverow {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 14px;
}

.archivedate {
  min-width: 110px;
  opacity: 0.6;
}

.archivetext {
  flex: 1;
}

.archiveshare {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}

.deadline {
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--deadline-x);
  width: 2px;
  background-image: url("/assets/img/deadline.svg");
  background-repeat: no-repeat;
  background-size: 2px 100%;
  background-position: center top;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 720px) {
  .poster {
    padding: 64px 20px;
    gap: 16px;
  }

  .nav {
    gap: 12px;
  }

  .shareurl {
    white-space: normal;
    word-break: break-all;
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
