:root {
  --link-accent: #6192ff;    
  --link-accent-visited: #a77cff;
}

body {
    background: #181818;
    color: #ffffff;
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 2rem;
}

.return-icon {
    position: fixed;
    top: 20px;
    left: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 1.8em;
    z-index: 100;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease;
}

.return-icon:hover {
    transform: scale(1.2);
}

#fieldnotes-container {
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
    line-height: 1.6;
    padding: 0;
    padding-top: 120px; 
}

h1 {
    text-align: center;
    margin: 20px 0;
    font-size: 2em;
    font-weight: 300;
    color: #fff;
}

.note {
    background: #fff;
    color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 0 0 20px 0;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
}

.note:hover {
    transform: translateY(-2px);
}

.note-info h2 {
    margin: 0;
    font-size: 1.4em;
    color: #000;
}

.note-date {
    margin: 4px 0 0;
    font-size: 0.9em;
    color: #333;
}

.note-content {
    display: block;
    font-size: 1rem;
    line-height: 1.75;
    word-wrap: break-word;
    max-width: 40rem;
    margin: 0 auto;
    white-space: pre-line;
}

.note-content a {
    color: var(--link-accent);
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.note-content a:visited {
    color: var(--link-accent-visited);
}

.note-content a::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    opacity: 0.6;
}

.note-content a:hover,
.note-content a:focus-visible {
    color: #000;
}

.note-content a:hover::after,
.note-content a:focus-visible::after {
    transform: scaleX(1);
    opacity: 1;
}

.note::after {
    display: none;
}

.note-content p {
    white-space: pre-line;
}

@media (max-width: 600px) {
    .note-content {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

@media (max-width: 600px) {
    #fieldnotes-container {
        padding-top: 80px;
    }
}

@media (max-width: 600px) {
    .note-header {
        flex-direction: column;
        align-items: stretch;
    }

    .note-thumbnail {
        width: 100%;
        height: auto;
        margin-bottom: 12px;
    }

    .note-info h2 {
        font-size: 1.4em;
    }
}

.permalink {
  text-decoration: none;
  color: inherit;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.permalink:hover {
  opacity: 1;
  text-decoration: underline;
}

.watermark-group {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap; 
}

.watermark {
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1px);
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin: 0;
}

.launch-note { position: relative; }

.fireworks-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.firework {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 4px currentColor;
  mix-blend-mode: multiply;
  animation: explode 3.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes explode {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(calc(var(--x)), calc(var(--y) + 40px)) scale(0.8);
    opacity: 0;
  }
}

.audio-wrapper {
  display: flex;
  justify-content: center;
  padding: 0.5em 0;
}

audio {
  width: 200px;
  height: 32px;
  filter: grayscale(100%) contrast(120%);
  background: none;
  border: none;
  outline: none;
  opacity: 0.9;
}

/* WebKit (Chrome, Safari) – clean up but keep timeline and play/pause */
audio::-webkit-media-controls-panel {
  background-color: transparent;
}

audio::-webkit-media-controls-play-button {
  filter: invert(100%);
}

/* Hide extra UI: volume, mute, time-remaining */
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-time-remaining-display {
  display: none;
}

#canvas {
  display: block;
  margin-left: 0;             /* aligns to the left */
  padding: 0;
  width: min(70vw, 250px);    /* responsive width, max 250px */
  aspect-ratio: 1 / 1;        /* keeps it square */
  height: auto;
}

#seedform-instruction {
  font-style: italic;
  text-align: left;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

#seedform-message {
  text-align: left;
  font-size: 1.1rem;
  font-weight: 300;
  margin-top: 0.5rem;
  opacity: 0;
  transition: opacity 1.2s ease;
}

#seedform-message.visible {
  opacity: 1;
}

#seedform-message.hidden {
  display: block;
  opacity: 0;
}

@media (max-width: 600px) {
  #canvas {
    display: block;
    margin-left: 0;
    margin-right: 0;
    max-width: 70vw;
  }
}