/* Signature: night switchboard fairy tale — cobalt channel, copper friend-dots, long wait dial */
@import url("https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,600;1,7..72,400&family=Syne+Mono&display=swap");

:root {
  --ink: #e8dcc8;
  --mute: #9a8f7e;
  --accent: #d4a574;
  --line: rgba(212, 165, 116, 0.35);
  --paper: #122038;
  --void: #060d18;
  --display: "Literata", Georgia, serif;
  --mono: "Syne Mono", ui-monospace, monospace;
  --measure: min(38rem, calc(100vw - 2.5rem));
  --baseline: 1.62;
}

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

html {
  color-scheme: dark;
  background: var(--void);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--display);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: var(--baseline);
  color: var(--ink);
  background:
    radial-gradient(80% 50% at 50% -10%, rgba(212, 165, 116, 0.12), transparent 55%),
    radial-gradient(60% 40% at 100% 80%, rgba(70, 120, 180, 0.18), transparent 50%),
    var(--void);
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

.site-nav {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}

.site-nav a {
  color: inherit;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.sheet {
  position: relative;
  max-width: var(--measure);
  margin: 1.5rem auto 4rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: linear-gradient(165deg, #15263f 0%, var(--paper) 55%, #0e1a2e 100%);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.dial {
  position: absolute;
  inset: auto 1.25rem 1.25rem auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--line);
  opacity: 0.55;
  pointer-events: none;
  background:
    conic-gradient(from 210deg, transparent 0 70%, rgba(212, 165, 116, 0.35) 70% 78%, transparent 78%);
}

.dial::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(232, 220, 200, 0.2);
}

.meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.75rem;
}

.meta span {
  color: var(--accent);
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.85rem, 1.4rem + 2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  max-width: 14ch;
}

.score-strip {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding: 0.35rem 0 0.35rem 0.9rem;
  margin: 0 0 1.75rem;
}

.prose p {
  margin: 0 0 1.15rem;
  text-align: justify;
  hyphens: auto;
  text-wrap: pretty;
}

.prose p:last-child {
  margin-bottom: 0;
}

.friends {
  display: flex;
  gap: 0.55rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.friends i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  animation: ping 4.8s ease-in-out infinite;
}

.friends i:nth-child(2) {
  animation-delay: -1.2s;
  opacity: 0.55;
}
.friends i:nth-child(3) {
  animation-delay: -2.4s;
  opacity: 0.75;
}
.friends i:nth-child(4) {
  animation-delay: -3.6s;
}
.friends i:nth-child(5) {
  animation-delay: -0.6s;
  opacity: 0.45;
}

@keyframes ping {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .friends i {
    animation: none;
    opacity: 0.55;
  }
}
