/* Myriad Things Co. — read page (3-ring constellation, hover-to-panel descriptions, linkFor names) */

.read-root {
  --read-bg:       #17170f;
  --read-text:     #d8d5c8;
  --read-muted:    #8a8676;
  --read-dim:      #5a5748;
  --read-accent:   #c9a86b;
  --read-hair:     rgba(216, 213, 200, 0.08);

  color: var(--read-text);
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  margin-top: 24px;
}

.read-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- loading state --- */

.mt-vibe--loading {
  color: var(--read-muted);
  text-align: center;
  font-size: 18px;
  font-style: italic;
  margin: 32px 0 6px;
}
.mt-vibe--loading .dots {
  display: inline-block;
  margin-left: 2px;
  letter-spacing: 0.06em;
}
.mt-vibe--loading .dots span {
  opacity: 0.2;
  display: inline-block;
  animation: mt-dots 1.4s ease-in-out infinite;
}
.mt-vibe--loading .dots span:nth-child(2) { animation-delay: 0.2s; }
.mt-vibe--loading .dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes mt-dots {
  0%, 60%, 100% { opacity: 0.2; }
  30%           { opacity: 1;   }
}
.mt-loading-sub {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--read-dim);
  text-align: center;
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .mt-vibe--loading .dots span { animation: none; opacity: 0.6; }
}

/* --- vibe --- */

.mt-vibe {
  font-size: clamp(18px, 1.5vw, 24px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--read-text);
  max-width: 620px;
  margin: 0 auto 26px;
  text-align: center;
  padding: 0 16px;
}

/* --- meta (tags + medium) --- */

.meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding-bottom: 14px;
  margin: 0 auto 4px;
  max-width: 620px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tags .mt-tag {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-size: clamp(14px, 1.1vw, 18px);
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--read-accent);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.tags .mt-tag:hover,
.tags .mt-tag:focus-visible { opacity: 1; text-decoration: none; }
.medium-read {
  font-size: clamp(18px, 1.5vw, 24px);
  font-style: italic;
  color: var(--read-muted);
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0;
  opacity: 0.9;
}
.medium-read::before {
  content: 'read as: ';
  font-style: normal;
  color: var(--read-dim);
  letter-spacing: 0.06em;
  font-size: clamp(18px, 1.5vw, 24px);
}

/* --- hairline --- */

.mt-hairline {
  height: 1px;
  background: var(--read-hair);
  width: 100%;
  max-width: 620px;
  margin: 22px auto;
}

/* --- constellation container capped at 400px --- */

.mt-const-wrap {
  max-width: 400px;
  margin: 0 auto;
}
#mt-const {
  display: block;
  width: 100%;
  height: auto;
  max-width: 400px;
  margin: 0 auto;
  overflow: visible;
}

/* --- rings + print --- */

.mt-ring-arc {
  fill: none;
  stroke: rgba(216, 213, 200, 0.20);
  stroke-width: 1;
}
.mt-print {
  fill: var(--read-accent);
  opacity: 0.7;
}

/* --- nodes: dot + name-only label --- */

.mt-node {
  fill: var(--read-text);
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.mt-node:hover,
.mt-node.on { opacity: 1; }

/* Prevent default browser link styling from leaking into SVG-in-<a> */
#mt-const a { text-decoration: none; }
#mt-const a:hover { text-decoration: none; }

.mt-node-label-link { cursor: pointer; text-decoration: none; }

.mt-node-label {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-size: clamp(18px, 1.5vw, 24px);
  fill: var(--read-text);
  cursor: pointer;
  transition: fill 0.2s ease;
  user-select: none;
  text-decoration: none;
}
.mt-node-label-link:hover .mt-node-label,
.mt-node-label.on { fill: var(--read-accent); }

/* --- description panel (below constellation, hover-driven) --- */

.mt-desc {
  min-height: 40px;
  font-size: clamp(18px, 1.5vw, 24px);
  font-style: italic;
  color: var(--read-muted);
  text-align: center;
  max-width: 560px;
  margin: 10px auto 0;
  padding: 0 16px;
  transition: opacity 0.25s ease;
}
.mt-desc.empty { color: var(--read-dim); }

/* --- ring summaries --- */

.rings {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 22px 20px;
  max-width: 620px;
  margin: 20px auto 0;
  padding: 22px 16px 0;
  border-top: 1px solid var(--read-hair);
  align-items: baseline;
}
.rings .ring-label {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--read-muted);
  font-weight: 500;
}
.rings .ring-text {
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.65;
  color: var(--read-text);
  margin: 0;
}
@media (max-width: 640px) {
  .rings { grid-template-columns: 1fr; gap: 20px; }
  .rings .ring-label { margin-bottom: 4px; }
}

/* --- footer row (correction + share) --- */

.mt-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 620px;
  margin: 40px auto 0;
  padding: 22px 16px 0;
  border-top: 1px solid var(--read-hair);
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-size: clamp(18px, 1.5vw, 24px);
  color: var(--read-muted);
}
@media (max-width: 620px) {
  .mt-footer-row {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}
.mt-footer-row a,
.mt-footer-row button {
  font-family: inherit;
  font-size: inherit;
  color: var(--read-muted);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.mt-footer-row a:hover,
.mt-footer-row button:hover { color: var(--read-accent); }
.mt-footer-row button.copied { color: var(--read-accent); }

/* --- sample credit --- */

.mt-sample-credit {
  max-width: 620px;
  margin: 28px auto 0;
  text-align: center;
  font-size: clamp(18px, 1.5vw, 24px);
  font-style: italic;
  color: var(--read-dim);
  opacity: 0.8;
  padding: 0 16px;
}

/* --- error state --- */

.read-root.error .mt-const-wrap,
.read-root.error .meta,
.read-root.error .rings,
.read-root.error .mt-footer-row,
.read-root.error .mt-desc,
.read-root.error .mt-hairline { display: none; }

.error-again {
  display: block;
  text-align: center;
  margin: 22px auto 0;
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-size: 13px;
  color: var(--read-accent);
  text-decoration: none;
}
.error-again:hover { text-decoration: underline; }
