/* ==========================================================================
   Paddy Prompt Studio — Blog stylesheet
   Reading-optimised dark theme matching the studio (indigo / cyan / amber).
   Body measure capped at ~68ch, 18px base, 1.75 line-height for comfort.
   ========================================================================== */

:root {
  --bg: #040507;
  --bg-soft: #0b0d14;
  --card: #0e1018;
  --card-2: #12131c;
  --border: rgba(255, 255, 255, 0.10);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text: #e8ecf4;
  --text-muted: #aab4c5;
  --text-dim: #7f8a9e;
  --indigo: #a5b4fc;
  --indigo-strong: #818cf8;
  --cyan: #67e8f9;
  --amber: #fcd34d;
  --measure: 42rem;       /* ~672px reading column */
  --radius: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(640px 640px at 12% -8%, rgba(79, 70, 229, 0.14), transparent 60%),
    radial-gradient(620px 620px at 92% 8%, rgba(8, 145, 178, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Decorative top spectrum strip (mirrors the studio header) */
.spectrum-bar {
  height: 4px; width: 100%;
  background: linear-gradient(90deg, #6366f1, #9333ea, #ec4899, #06b6d4, #fbbf24);
}

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 50;
  background: var(--indigo-strong); color: #0b0620;
  padding: 0.6rem 1rem; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* --------------------------------------------------------------- Layout */
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.measure { max-width: var(--measure); margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(4, 5, 7, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: rgba(255,255,255,0.04); }
.brand .brand-name { font-size: 0.98rem; letter-spacing: -0.01em; }
.brand .brand-tag { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.nav-links { display: flex; align-items: center; gap: 1.25rem; font-size: 0.9rem; }
.nav-links a { color: var(--text-muted); font-weight: 600; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.btn-studio {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.95rem; border-radius: 11px;
  background: rgba(99, 102, 241, 0.14); border: 1px solid rgba(129, 140, 248, 0.35);
  color: #c7d2fe !important; font-weight: 700;
}
.btn-studio:hover { background: rgba(99, 102, 241, 0.24); text-decoration: none; }

/* --------------------------------------------------------------- Footer */
.site-footer {
  margin-top: 4rem; border-top: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.015); padding: 2rem 0; text-align: center;
}
.site-footer p { margin: 0.3rem 0; color: var(--text-dim); font-size: 0.82rem; }
.site-footer .mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.7rem; }
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.25rem;
  margin: 0 auto 1.1rem; max-width: 40rem; padding: 0 1rem;
}
.footer-nav a { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
.footer-nav a:hover { color: #fff; }

/* --------------------------------------------------------------- Forms */
.form {
  display: grid; gap: 1rem; margin: 1.5rem 0 0;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
}
.form label { display: grid; gap: 0.4rem; font-weight: 600; color: var(--text); font-size: 0.92rem; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--text);
  background: #07080d; border: 1px solid var(--border); border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--indigo-strong); outline-offset: 1px; border-color: transparent; }
.form textarea { resize: vertical; min-height: 130px; }
.form .hp { position: absolute; left: -9999px; }
.form-status { margin: 0.4rem 0 0; font-size: 0.92rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #6ee7b7; }
.form-status.err { color: #fca5a5; }

/* --------------------------------------------------------------- Eyebrow / chips */
.eyebrow {
  display: inline-block; font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--indigo); background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(129, 140, 248, 0.22); padding: 0.3rem 0.7rem; border-radius: 999px;
}
.chip {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.22rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--border);
}
.chip.music { color: #c7d2fe; background: rgba(99,102,241,0.12); border-color: rgba(129,140,248,0.3); }
.chip.video { color: #a5f3fc; background: rgba(8,145,178,0.12); border-color: rgba(34,211,238,0.3); }
.chip.workflow { color: #fde68a; background: rgba(245,158,11,0.12); border-color: rgba(251,191,36,0.3); }
.chip.money { color: #bbf7d0; background: rgba(34,197,94,0.12); border-color: rgba(74,222,128,0.3); }

/* --------------------------------------------------------------- Blog index hero */
.index-hero { padding: 3.5rem 0 1.5rem; text-align: center; }
.index-hero h1 {
  font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em;
  margin: 1rem auto 0.75rem; max-width: 16ch;
  background: linear-gradient(120deg, #fff, #c7d2fe 55%, #a5f3fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.index-hero p { color: var(--text-muted); max-width: 52ch; margin: 0 auto; font-size: 1.05rem; }

/* --------------------------------------------------------------- Post grid */
.post-grid {
  display: grid; gap: 1.25rem; padding: 1.5rem 0 1rem;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}
.post-card {
  display: flex; flex-direction: column; gap: 0.75rem;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-card:hover { border-color: rgba(129,140,248,0.45); transform: translateY(-3px); }
/* Card thumbnail */
.post-card .thumb {
  display: block; margin: -1.4rem -1.4rem 0.4rem; border-bottom: 1px solid var(--border-soft);
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 1200 / 630; background: #07080d;
}
.post-card .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card h2 { font-size: 1.18rem; line-height: 1.3; margin: 0.2rem 0 0; letter-spacing: -0.01em; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: #fff; text-decoration: none; }
.post-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.post-card .meta { margin-top: auto; padding-top: 0.6rem; color: var(--text-dim); font-size: 0.8rem; display: flex; gap: 0.6rem; align-items: center; }
.post-card .read-more { font-weight: 700; color: var(--indigo); font-size: 0.9rem; }

/* --------------------------------------------------------------- Article */
.article-header { padding: 2.75rem 0 1.25rem; }
.breadcrumb { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 1.1rem; }
.breadcrumb a { color: var(--text-muted); }
.article-header h1 {
  font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 4.4vw, 2.7rem); line-height: 1.15; letter-spacing: -0.02em;
  margin: 0.9rem 0 0.6rem; color: #fff;
}
.article-header .standfirst { color: var(--text-muted); font-size: 1.12rem; line-height: 1.6; margin: 0; }
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem;
  margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--border-soft);
  color: var(--text-dim); font-size: 0.88rem;
}
.byline .author { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); font-weight: 700; }
.byline .author .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-grid; place-items: center; font-size: 0.8rem; font-weight: 800; color: #0b0620;
  background: linear-gradient(135deg, #a5b4fc, #67e8f9);
}
.byline .dot { color: var(--border); }

/* Article hero illustration */
.hero-figure {
  margin: 0 0 0.5rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: #07080d;
  box-shadow: 0 18px 50px -28px rgba(99, 102, 241, 0.5);
}
.hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; }

.article-body { padding-top: 1rem; }
.article-body h2 {
  font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 700;
  font-size: 1.55rem; line-height: 1.25; letter-spacing: -0.01em;
  margin: 2.4rem 0 0.85rem; color: #fff; scroll-margin-top: 5rem;
}
.article-body h3 { font-size: 1.18rem; font-weight: 700; margin: 1.8rem 0 0.6rem; color: #eef1f7; }
.article-body p { margin: 0 0 1.15rem; color: #d6dced; }
.article-body strong { color: #fff; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem; padding-left: 1.3rem; color: #d6dced; }
.article-body li { margin-bottom: 0.55rem; }
.article-body li::marker { color: var(--indigo-strong); }
.article-body a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(165,180,252,0.4); }
.article-body a:hover { text-decoration-color: var(--indigo); }

.lead { font-size: 1.15rem; color: #e6eaf3 !important; line-height: 1.7; }

/* Author bio intro (About page) */
.author-bio {
  display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap;
  margin: 0 0 1.6rem; padding: 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(129,140,248,0.06), rgba(34,211,238,0.04));
}
.author-bio .portrait {
  flex: 0 0 auto; width: 116px; height: 116px; border-radius: 50%;
  overflow: hidden; border: 2px solid rgba(165,180,252,0.45);
  box-shadow: 0 14px 36px -18px rgba(99,102,241,0.7);
}
.author-bio .portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.author-bio .who { flex: 1 1 220px; min-width: 200px; }
.author-bio .who .name { font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 800; font-size: 1.25rem; color: #fff; margin: 0 0 0.25rem; }
.author-bio .who .role { color: var(--text-muted); font-size: 0.95rem; margin: 0; line-height: 1.55; }

/* Captioned personality photo */
figure.photo { margin: 1.8rem 0; }
figure.photo .frame {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: #07080d; box-shadow: 0 18px 50px -28px rgba(99,102,241,0.5); max-width: 420px;
}
figure.photo .frame img { display: block; width: 100%; height: auto; }
figure.photo figcaption { color: var(--text-dim); font-size: 0.86rem; margin-top: 0.55rem; max-width: 420px; }

/* Code / prompt examples */
.code-block {
  background: #07080d; border: 1px solid var(--border);
  border-radius: 12px; margin: 0 0 1.4rem; overflow: hidden;
}
.code-block .label {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem; font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  color: var(--text-dim); background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border-soft);
}
.code-block pre {
  margin: 0; padding: 1rem 1.1rem; overflow-x: auto;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem; line-height: 1.65; color: #c8f0e6; white-space: pre-wrap; word-break: break-word;
}
:not(pre) > code {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.86em;
  background: rgba(129,140,248,0.12); border: 1px solid var(--border-soft);
  padding: 0.08em 0.4em; border-radius: 6px; color: #c7d2fe;
}

/* Callout */
.callout {
  display: flex; gap: 0.85rem; margin: 0 0 1.5rem; padding: 1.1rem 1.2rem;
  background: rgba(99,102,241,0.07); border: 1px solid rgba(129,140,248,0.25);
  border-left-width: 3px; border-radius: 12px;
}
.callout .ico { font-size: 1.1rem; line-height: 1.6; }
.callout p { margin: 0; color: #dfe4f1; font-size: 0.98rem; }
.callout.tip { background: rgba(8,145,178,0.07); border-color: rgba(34,211,238,0.25); }
.callout.warn { background: rgba(245,158,11,0.07); border-color: rgba(251,191,36,0.28); }

/* Key-takeaways box */
.takeaways {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; margin: 0 0 1.75rem;
}
.takeaways h2 { font-size: 1.1rem !important; margin: 0 0 0.6rem !important; }
.takeaways ul { margin: 0; padding-left: 1.2rem; }
.takeaways li { color: var(--text-muted); }

/* FAQ */
.faq { margin-top: 1rem; }
.faq details {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 0.4rem 1.1rem; margin-bottom: 0.7rem; background: rgba(255,255,255,0.02);
}
.faq summary {
  cursor: pointer; font-weight: 700; color: #fff; padding: 0.7rem 0; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--indigo); font-weight: 700; font-size: 1.3rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 0.9rem; color: var(--text-muted); font-size: 0.98rem; }

/* CTA banner back to the tool */
.cta {
  margin: 2.5rem 0 0; padding: 1.75rem; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(8,145,178,0.12));
  border: 1px solid rgba(129,140,248,0.3); text-align: center;
}
.cta h2 { font-size: 1.3rem !important; margin: 0 0 0.4rem !important; color: #fff; }
.cta p { color: var(--text-muted); margin: 0 0 1.1rem; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem; border-radius: 12px; font-weight: 700;
  background: linear-gradient(135deg, #818cf8, #22d3ee); color: #0b0620 !important;
}
.cta-btn:hover { filter: brightness(1.08); text-decoration: none; }

/* Newsletter signup (Netlify Forms) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.newsletter {
  margin: 2.5rem 0 0; padding: 1.75rem; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(8,145,178,0.12));
  border: 1px solid rgba(129,140,248,0.3); text-align: center;
}
.newsletter h2 { font-size: 1.3rem !important; margin: 0 0 0.4rem !important; color: #fff; }
.newsletter p { color: var(--text-muted); margin: 0 0 1.1rem; }
.newsletter-form {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
  max-width: 30rem; margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1 1 14rem; min-width: 0; font: inherit; font-size: 0.95rem; color: var(--text);
  background: #07080d; border: 1px solid var(--border); border-radius: 12px; padding: 0.7rem 0.95rem;
}
.newsletter-form input[type="email"]:focus { outline: 2px solid var(--indigo-strong); outline-offset: 1px; border-color: transparent; }
.newsletter-form .cta-btn { flex: 0 0 auto; border: 0; cursor: pointer; }
.newsletter-form .hp { position: absolute; left: -9999px; }

/* Related posts */
.related { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--border-soft); }
.related h2 { font-size: 1.25rem !important; margin: 0 0 1rem !important; }
.related-list { display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.related-list a {
  display: block; padding: 1rem 1.1rem; border-radius: 12px;
  background: rgba(255,255,255,0.025); border: 1px solid var(--border); color: var(--text);
  font-weight: 600; font-size: 0.95rem; line-height: 1.4;
}
.related-list a:hover { border-color: rgba(129,140,248,0.45); text-decoration: none; color: #fff; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .nav-links { gap: 0.85rem; }
  .nav-links a.hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

:focus-visible { outline: 2px solid var(--indigo-strong); outline-offset: 2px; border-radius: 4px; }
