:root {
  --bg-top: #f4f6fb;
  --bg-mid: #fbf8f4;
  --bg-bottom: #edf1fb;
  --text: #171a21;
  --muted: #596273;
  --subtle: #707b8a;
  --card: rgba(255, 255, 255, 0.9);
  --card-border: rgba(20, 28, 40, 0.08);
  --shadow: 0 12px 40px rgba(22, 34, 56, 0.08), 0 2px 8px rgba(22, 34, 56, 0.04);
  --radius-lg: 28px;
  --radius-sm: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --accent: #8d4eb0;
  --link: #1f62ea;
}

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

body.creator-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(ellipse 120% 72% at 50% -14%, rgba(255, 255, 255, 0.98), transparent 58%),
    linear-gradient(165deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
  background-attachment: fixed;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: #fff;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
}

.site-header {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1.15rem, 4vw, 1.75rem) clamp(1.25rem, 5vw, 2rem) 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--subtle);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.22rem 0.4rem;
  border-radius: 7px;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.site-nav__sep {
  color: rgba(0, 0, 0, 0.12);
  user-select: none;
  font-weight: 400;
}

.page-hero {
  text-align: center;
  padding: clamp(1.75rem, 5vw, 2.75rem) 0 clamp(0.25rem, 2vw, 0.75rem);
}

.page-hero__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--subtle);
}

.page-hero__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 28, 40, 0.06);
  color: var(--accent);
  font-size: 28px;
}

.page-hero__title {
  margin: 0.85rem 0 0;
  font-size: clamp(2.1rem, 5.5vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.page-hero__intro {
  margin: 1.05rem auto 0;
  max-width: 44rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.page-note {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(20, 28, 40, 0.07);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(22, 34, 56, 0.05);
}

.page-main {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 5vw, 2rem) clamp(3rem, 7vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 4vw, 2.4rem);
}

.quote-card {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78)),
    linear-gradient(150deg, rgba(141, 78, 176, 0.1), rgba(34, 104, 255, 0.06));
  border: 1px solid rgba(20, 28, 40, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.35rem;
  text-align: center;
}

.quote-card p {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.6;
  color: #2c3240;
  letter-spacing: -0.01em;
}

.group-section__title {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.group-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.05rem, 3vw, 1.35rem);
  backdrop-filter: blur(12px);
}

.poems-help {
  margin-bottom: 0.15rem;
}

.body-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.poems-state {
  text-align: center;
  font-weight: 600;
}

.poem-group {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.poem-group__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.poem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.poem-card {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem 1.35rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
}

.poem-card--artistic {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.poem-card--artistic:hover {
  transform: translateY(-3px);
  border-color: rgba(141, 78, 176, 0.18);
  box-shadow: 0 20px 48px rgba(22, 34, 56, 0.12), 0 8px 20px rgba(141, 78, 176, 0.08);
}

.poem-card__title {
  margin: 0;
  font-size: clamp(1.08rem, 2.8vw, 1.2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: #2a2438;
}

.poem-card__subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: #4a5568;
  font-weight: 500;
  line-height: 1.45;
}

.poem-card__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--subtle);
  line-height: 1.5;
}

.poem-card__meta span {
  white-space: normal;
}

.poem-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.poem-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.poem-status--draft {
  background: rgba(130, 142, 158, 0.18);
  border-color: rgba(130, 142, 158, 0.28);
  color: #4a5568;
}

.poem-status--concept {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(180, 140, 40, 0.25);
  color: #7c5e10;
}

.poem-status--live {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(22, 163, 74, 0.22);
  color: #166534;
}

.poem-status--default {
  background: rgba(141, 78, 176, 0.1);
  border-color: rgba(141, 78, 176, 0.18);
  color: #6f2f95;
}

.poem-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.26rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 650;
  background: rgba(34, 104, 255, 0.07);
  border: 1px solid rgba(34, 104, 255, 0.14);
  color: #2d3d5a;
}

.poem-card__desc {
  margin: 0.15rem 0 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--muted);
}

.poem-card__primary {
  margin-top: 0.35rem;
}

.btn-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #8d4eb0 0%, #6366f1 48%, #2268ff 100%);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.32);
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-read:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.38);
  color: #fff;
}

.poem-card__secondary {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.btn-textual {
  align-self: flex-start;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--accent);
  background: rgba(141, 78, 176, 0.1);
  border: 1px solid rgba(141, 78, 176, 0.22);
  cursor: pointer;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.btn-textual:hover {
  background: rgba(141, 78, 176, 0.16);
}

.poem-card__media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
}

.media-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.media-link--download {
  background: rgba(34, 104, 255, 0.1);
  border: 1px solid rgba(34, 104, 255, 0.22);
  color: #1b4bc2;
}

.media-link--visual {
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.25);
  color: #0f766e;
}

.media-link--audio {
  background: rgba(141, 78, 176, 0.11);
  border: 1px solid rgba(141, 78, 176, 0.2);
  color: #6f2f95;
}

.media-link:hover {
  text-decoration: none;
  filter: brightness(1.03);
}

.coming-soon {
  font-size: 0.76rem;
  font-weight: 600;
  color: #8b95a5;
  font-style: italic;
}

.poem-card__reflection {
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(20, 28, 40, 0.12);
}

.poem-card__reflection-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #3c4351;
}

.poem-card__reflection-text + .poem-card__reflection-text {
  margin-top: 0.65rem;
}

.poem-card__reflection-text--secondary {
  color: var(--muted);
  font-size: 0.88rem;
}

  margin: 0.28rem 0 0;
  color: #414957;
  font-weight: 600;
  font-size: 0.9rem;
}

.poem-short {
  margin: 0.35rem 0 0;
}

.poem-details {
  margin-top: 0.7rem;
  border-top: 1px dashed rgba(20, 28, 40, 0.16);
  padding-top: 0.65rem;
}

.poem-summary {
  margin: 0;
  color: #3c4351;
  line-height: 1.65;
  font-size: 0.93rem;
}

.poem-text {
  margin: 0.65rem 0 0;
  color: #2f3644;
  line-height: 1.75;
  font-size: 0.97rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.06);
  color: #2b3340;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.pill--status {
  background: rgba(141, 78, 176, 0.1);
  border-color: rgba(141, 78, 176, 0.14);
}

.pill--tag {
  background: rgba(34, 104, 255, 0.08);
  border-color: rgba(34, 104, 255, 0.14);
}

.poem-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.audio-link,
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.audio-link {
  background: rgba(141, 78, 176, 0.11);
  border: 1px solid rgba(141, 78, 176, 0.2);
  color: #6f2f95;
}

.audio-link:hover {
  text-decoration: none;
  background: rgba(141, 78, 176, 0.17);
}

.download-btn {
  background: rgba(34, 104, 255, 0.11);
  border: 1px solid rgba(34, 104, 255, 0.2);
  color: #1b4bc2;
}

.download-btn:hover {
  text-decoration: none;
  background: rgba(34, 104, 255, 0.18);
}

.download-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(130, 142, 158, 0.12);
  border: 1px solid rgba(130, 142, 158, 0.2);
  color: #586272;
}

.page-footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem) clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
}

.page-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.page-footer a {
  color: var(--muted);
  font-weight: 700;
}

.page-footer a:hover {
  color: var(--accent);
}

.app-breadcrumb {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.85rem;
  padding: 0 clamp(1.25rem, 5vw, 2rem);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.app-breadcrumb a {
  color: var(--link);
  text-decoration: none;
}

.app-breadcrumb a:hover {
  text-decoration: underline;
}

.app-breadcrumb__sep {
  color: var(--subtle);
  font-weight: 500;
  user-select: none;
}

.app-breadcrumb__here {
  color: var(--text);
  font-weight: 700;
}

.asset-tab-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

@media (max-width: 820px) {
  .poem-grid {
    grid-template-columns: 1fr;
  }
}
