:root {
  --ink: #16121f;
  --ink-raised: #201a33;
  --mist: #f5f3fa;
  --paper: #ffffff;
  --ember: #d9922e;
  --verdigris: #2f9c8f;
  --violet: #6c4fd1;
  --ink-soft: #6e6780;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-card: 0 12px 32px -16px rgba(22, 18, 31, 0.28);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--ink);
  color: var(--mist);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wordmark svg {
  width: 26px;
  height: 26px;
}
.header-links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: rgba(245, 243, 250, 0.8);
}
.header-links a:hover {
  color: var(--ember);
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 28px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb a:hover {
  color: var(--violet);
}
.breadcrumb span[aria-hidden] {
  opacity: 0.6;
}

main {
  padding-bottom: 64px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin: 6px 0 14px;
  letter-spacing: -0.015em;
}
.description {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chip {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(108, 79, 209, 0.1);
  color: var(--violet);
  border: 1px solid rgba(108, 79, 209, 0.18);
}
.chip:hover {
  background: rgba(108, 79, 209, 0.16);
}
.chip.category {
  background: rgba(217, 146, 46, 0.14);
  color: #9c6417;
  border-color: rgba(217, 146, 46, 0.25);
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
  background: var(--ink-raised);
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.prompt-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.prompt-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--ember), var(--verdigris));
}
.prompt-body {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: #241d38;
  margin: 6px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  border-radius: var(--radius-md);
  padding: 11px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  box-shadow: 0 8px 20px -10px rgba(22, 18, 31, 0.5);
}
.btn-secondary {
  background: rgba(22, 18, 31, 0.06);
  color: var(--ink);
}
.btn-secondary[aria-pressed="true"] {
  background: var(--verdigris);
  color: #fff;
}
.btn-accent {
  background: var(--ember);
  color: #241804;
}

.ad-slot {
  margin: 8px 0 40px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.related-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 8px 20px -14px rgba(22, 18, 31, 0.25);
  display: block;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.related-card:hover {
  box-shadow: 0 12px 24px -12px rgba(22, 18, 31, 0.32);
  transform: translateY(-2px);
}
.related-card .rc-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--verdigris);
  font-weight: 600;
}
.related-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 6px 0 4px;
}
.related-card p {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 0;
}

.site-footer {
  background: var(--ink);
  color: rgba(245, 243, 250, 0.75);
  font-size: 0.85rem;
}
.site-footer .wrap {
  padding: 32px 20px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.site-footer a:hover {
  color: var(--ember);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Shared by public/legal/*.html — this stylesheet covers every standalone
   static page, not just prompts, despite the filename. */
.legal-content {
  max-width: 720px;
}
.legal-content .updated {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 36px 0 12px;
}
.legal-content p {
  margin: 0 0 14px;
  color: #241d38;
}
.legal-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: #241d38;
}
.legal-content li {
  margin-bottom: 6px;
}
.legal-content a {
  color: var(--violet);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .prompt-card {
    padding: 20px;
  }
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
  box-shadow: 0 12px 24px -8px rgba(22, 18, 31, 0.4);
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
