
:root {
  --page-pad: clamp(16px, 3vw, 32px);
  --content-max: 840px;
}

html, body {
  margin: 0;
  min-height: 100%;
  color: rgba(235, 248, 255, 0.95);
  font-family: Georgia, "Times New Roman", serif;
}

/* Fixed visual background */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;

  canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 6.0s ease-out;
  }
}

/* Normal page content (scrollable + interactive) */
main {
  position: relative;
  z-index: 1;
  padding: var(--page-pad);
}

.spacer-top {
  min-height: 100px;
}

.poem {
  max-width: min(var(--content-max), 92vw);
  margin: 0 auto;
  margin-bottom: 16vh;
  text-align: center;
  line-height: 2.0;
  letter-spacing: 0.01em;
  font-size: clamp(16px, 2.2vw, 20px);
  padding: 18px 20px;
  border-radius: 14px;
  color: rgba(235, 248, 255, 0.92);
  text-shadow: 
    0 0.5em 0.6em rgba(0, 0, 0, 0.9),
    0 0 10px rgba(128, 250, 255, 0.5);
  box-sizing: border-box;

  div {
    margin: 0.05em 0;
  }
}

.content {
  max-width: min(var(--content-max), 92vw);
  margin: 100px auto 40vh auto;
  padding: 18px 20px;
  border-radius: 20px;
  color: rgba(185, 194, 199, 0.92);
  background: rgba(7, 19, 28, 0.3);
  box-sizing: border-box;
  line-height: 1.7;
  font-size: clamp(15px, 2vw, 18px);
}

.expand-note-toggle {
  display: inline-block;
  margin-top: 0.2em;
  font-size: 0.88em;
  font-style: italic;
  color: rgba(120, 190, 220, 0.7);
  text-decoration: none;
  border-bottom: 1px dotted rgba(120, 190, 220, 0.4);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;

  &:hover {
    color: rgba(160, 220, 245, 1);
    border-bottom-color: rgba(160, 220, 245, 0.7);
  }
}

.expandable-note {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.instruction-row {
  display: flex;
  align-items: center;
  gap: 8px;

  blockquote {
    flex: 1;
    margin: 0.5em 0;
    padding-left: 18px;
    border-left: 3px solid rgba(120, 190, 220, 0.4);
    font-style: italic;
  }
}

.copy-btn {
  border: 1px solid rgba(180, 230, 255, 0.35);
  border-radius: 6px;
  background: rgba(7, 19, 28, 0.5);
  color: rgba(225, 243, 255, 0.95);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  padding: 6px 8px;
  font-family: arial, sans-serif;
  transition: border-color 0.15s, background 0.15s, color 0.15s;

  &:hover {
    border-color: rgba(70, 200, 235, 0.6);
    background: rgba(70, 200, 235, 0.1);
    color: rgba(235, 248, 255, 1);
  }

  &:active {
    background: rgba(70, 200, 235, 0.22);
    border-color: rgba(70, 200, 235, 0.85);
  }
}

.reviews,
.before-after {
  font-family: arial, sans-serif;
  line-height: 1.5;
}

.reviews {
  p {
    margin: 0 0 8px 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(7, 19, 28, 0.35);
    font-size: 0.95em;
    line-height: 1.6;
  }

  b {
    display: block;
    margin-bottom: 2px;
    color: rgba(210, 228, 240, 0.95);
    font-size: 1.0em;
  }

  .show-more-link {
    display: block;
    text-align: center;
  }
}

.before-after {
  .example {
    margin: 0;
    margin-top: 2.5em;
    padding: 16px 18px;
    padding-top: 20px;
    border-radius: 14px;
    background: rgba(7, 19, 28, 0.4);
    border-top: 1px solid rgba(120, 190, 220, 0.08);
  }

  .question {
    margin: 0 0 1em 0;
    font-style: italic;
    font-size: 0.95em;
    color: rgba(200, 225, 240, 0.85);
    letter-spacing: 0.01em;
    padding: 8px 14px;
    border-left: 2px solid rgba(120, 190, 220, 0.3);
    background: rgba(120, 190, 220, 0.05);
    border-radius: 0 8px 8px 0;

    b {
      display: block;
      font-style: normal;
      font-size: 0.72em;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: rgba(140, 190, 220, 0.55);
      margin-bottom: 3px;
    }
  }

  .model {
    display: table;
    margin-left: auto;
    font-size: 0.75em;
    font-weight: 600;
    font-family: arial, sans-serif;
    letter-spacing: 0.04em;
    color: rgba(90, 210, 240, 0.88);
    background: rgba(70, 200, 235, 0.1);
    border: 1px solid rgba(70, 200, 235, 0.3);
    border-radius: 999px;
    padding: 2px 11px;
    margin-bottom: 0.9em;
  }

  .qa-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;

    @media (min-width: 860px) {
      grid-template-columns: 1fr 1fr;
    }
  }

  .answer {
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(7, 19, 28, 0.55);
    border: 1px solid rgba(120, 190, 220, 0.15);
    border-top: 3px solid rgba(130, 145, 160, 0.4);

    &:last-child {
      border-top-color: rgba(70, 200, 235, 0.55);

      h3 {
        color: rgba(90, 210, 240, 0.9);
      }
    }

    h3 {
      margin: 0 0 0.6em 0;
      font-size: 0.75em;
      font-family: arial, sans-serif;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: rgba(150, 160, 172, 0.8);
    }

    p {
      /* margin: 0; */
      color: rgba(215, 232, 242, 0.88);
      line-height: 1.65;
      font-size: 0.95em;
    }
  }
}

.show-more-link {
  font-size: 0.82em;
  color: rgba(120, 190, 220, 0.85);
  text-decoration: underline;
  white-space: nowrap;

  &:hover {
    color: rgba(150, 220, 255, 0.98);
  }
}

div.continued {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

h1, h2, h3 {
  margin: 0 0 0.6em 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1, h2 {
  font-size: 1.5em;
}

h2 {
  padding-bottom: 0.3em;
  border-bottom: 1px solid rgba(150, 180, 200, 0.15);
  margin-bottom: 0.75em;
}

h3 {
  margin: 0 0 0.3em 0;
}

p {
  margin: 0 0 1em 0;
}

a {
  color: rgba(180, 230, 255, 0.98);
}

::selection {
  background: rgba(150, 220, 255, 0.25);
}