/* ============================================
   chatgptprompts.in — design system
   Concept: "the reference card" — prompts treated like
   catalogued index cards in a research library. Ink-navy
   surface, warm parchment ink, mustard + cobalt accents.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #14161f;
  --ink-2: #1c1f2b;
  --ink-3: #262a38;
  --paper: #f2efe6;
  --paper-dim: #b9b6ab;
  --mustard: #e0a828;
  --mustard-dim: #8a6d2c;
  --cobalt: #6f8dff;
  --line: #33374a;
  --radius-s: 4px;
  --radius-m: 8px;
  --measure: 42rem;
  --wide: 74rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--paper);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: #d9d6cb; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; }

code, .mono {
  font-family: 'IBM Plex Mono', monospace;
}

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.75rem; }
.measure { max-width: var(--measure); }

section { padding: 5.5rem 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(20,22,31,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.75rem; max-width: var(--wide); margin: 0 auto;
}
.brand {
  font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--paper);
  display: flex; align-items: baseline; gap: .35rem;
}
.brand span { color: var(--mustard); }
.nav ul { list-style: none; display: flex; gap: 1.9rem; margin: 0; padding: 0; }
.nav ul a { color: #cfccc2; font-size: .95rem; }
.nav ul a:hover { color: var(--paper); text-decoration: none; }
.btn {
  display: inline-block; padding: .7rem 1.35rem; border-radius: var(--radius-s);
  font-size: .95rem; font-weight: 600; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--mustard); color: #201703; }
.btn-primary:hover { background: #eeb941; text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper-dim); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 5rem 0 5.5rem; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.hero .kicker { color: var(--mustard); font-family: 'IBM Plex Mono', monospace; font-size: .85rem; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.15rem; color: #cfccc2; max-width: 34rem; }
.hero-ctas { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }

.card-stack { position: relative; }
.prompt-card {
  background: var(--ink-2); border: 1px solid var(--line);
  border-top: 3px dashed var(--mustard-dim);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  padding: 1.4rem 1.5rem; box-shadow: 0 22px 44px rgba(0,0,0,.35);
}
.prompt-card .tag {
  font-family: 'IBM Plex Mono', monospace; font-size: .72rem; color: var(--mustard);
  margin-bottom: .6rem; display: block;
}
.prompt-card p { font-family: 'IBM Plex Mono', monospace; font-size: .88rem; color: #e7e4d9; margin: 0; line-height: 1.55; }
.prompt-card.behind {
  position: absolute; top: -14px; right: -18px; width: 90%; z-index: -1;
  opacity: .5; transform: rotate(2.5deg);
}

/* ---------- section headers ---------- */
.section-head { max-width: 34rem; margin-bottom: 2.6rem; }
.section-head p { color: #b8b5aa; }

/* ---------- stats strip ---------- */
.stats-strip { padding: 2.4rem 0; border-bottom: 1px solid var(--line); }
.stats-strip .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.stat b { display: block; font-family: 'Fraunces', serif; font-size: 1.9rem; color: var(--mustard); font-weight: 500; }
.stat span { font-size: .85rem; color: var(--paper-dim); }

/* ---------- before / after comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.compare-card { border-radius: var(--radius-m); padding: 1.5rem 1.6rem; border: 1px solid var(--line); }
.compare-card.bad { background: var(--ink-2); }
.compare-card.good { background: var(--ink-2); border-color: var(--mustard-dim); }
.compare-card .label { font-family: 'IBM Plex Mono', monospace; font-size: .75rem; margin-bottom: .8rem; display: block; }
.compare-card.bad .label { color: #d9736a; }
.compare-card.good .label { color: var(--mustard); }
.compare-card p { font-family: 'IBM Plex Mono', monospace; font-size: .87rem; color: #e7e4d9; margin-bottom: 0; line-height: 1.55; }
.compare-note { font-size: .88rem; color: #b8b5aa; margin-top: 1rem; }

/* ---------- steps (real sequence, numbering justified) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.step { padding: 2rem 1.9rem; border-right: 1px solid var(--line); }
.step:last-child { border-right: none; }
.step .num { font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--mustard-dim); display: block; margin-bottom: .6rem; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: .92rem; margin-bottom: 0; }

/* ---------- why / education grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.why-grid h3 { color: var(--mustard); font-size: 1.05rem; font-family: 'Inter', sans-serif; font-weight: 700; }
.why-grid p { font-size: .95rem; }

/* ---------- category cards (varied, not uniform SaaS kit) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
.cat-card {
  grid-column: span 3;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 1.6rem; position: relative; overflow: hidden;
}
.cat-card:nth-child(3n+1) { grid-column: span 4; }
.cat-card:nth-child(3n+2) { grid-column: span 2; }
.cat-card:nth-child(3n+3) { grid-column: span 6; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cat-card h3 { margin-bottom: .4rem; }
.cat-card p { font-size: .9rem; margin-bottom: 0; color: #b8b5aa; }
.cat-card .count { font-family: 'IBM Plex Mono', monospace; color: var(--cobalt); font-size: .8rem; }

/* ---------- featured pack / sell section ---------- */
.pack {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 2.8rem; display: grid; grid-template-columns: 1.3fr .7fr; gap: 2.5rem; align-items: center;
}
.pack ul { padding-left: 1.1rem; color: #d9d6cb; }
.pack ul li { margin-bottom: .5rem; }
.price-box { text-align: left; border-left: 1px solid var(--line); padding-left: 2.2rem; }
.price-box .old { color: var(--paper-dim); text-decoration: line-through; font-size: .95rem; }
.price-box .new { font-family: 'Fraunces', serif; font-size: 2.1rem; color: var(--mustard); margin: .2rem 0 1rem; }

/* ---------- blog preview (auto-populated) ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.blog-card { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--ink-2); display: flex; flex-direction: column; }
.blog-card .thumb { height: 130px; background: linear-gradient(135deg, var(--ink-3), var(--ink)); border-bottom: 1px solid var(--line); }
.blog-card .body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card time { font-family: 'IBM Plex Mono', monospace; font-size: .75rem; color: var(--paper-dim); }
.blog-card h3 { font-size: 1.05rem; margin: .5rem 0 .5rem; }
.blog-card p { font-size: .9rem; flex: 1; }
.blog-card a.read { font-size: .88rem; font-weight: 600; }

/* ---------- faq ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
.faq-item summary { cursor: pointer; font-family: 'Fraunces', serif; font-size: 1.08rem; color: var(--paper); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: 'Inter', sans-serif; color: var(--mustard); font-size: 1.3rem; flex-shrink: 0; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .a { padding-top: .8rem; color: #c9c6bb; max-width: 40rem; }

/* ---------- footer ---------- */
footer.site { padding: 3.5rem 0 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.foot-grid h4 { font-family: 'Inter', sans-serif; font-size: .82rem; color: var(--paper-dim); margin-bottom: .9rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .55rem; }
.foot-grid a { color: #c9c6bb; font-size: .92rem; }
.foot-grid a:hover { color: var(--paper); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: var(--paper-dim); }

/* ---------- generic inner-page layout ---------- */
.page-hero { padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-hero .kicker { font-family: 'IBM Plex Mono', monospace; color: var(--mustard); font-size: .85rem; margin-bottom: .8rem; }
.prose { padding: 3.5rem 0; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; color: var(--mustard); font-family: 'Inter', sans-serif; font-size: 1.05rem; }
.prose ul, .prose ol { color: #d9d6cb; padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }

/* contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
label { display: block; font-size: .85rem; color: var(--paper-dim); margin-bottom: .4rem; }
input, textarea {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-s);
  color: var(--paper); padding: .75rem .9rem; font-family: 'Inter', sans-serif; font-size: .95rem; margin-bottom: 1.2rem;
}
textarea { min-height: 130px; resize: vertical; }

/* blog listing */
.blog-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

@media (max-width: 900px) {
  .nav ul { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card, .cat-card:nth-child(3n+1), .cat-card:nth-child(3n+2), .cat-card:nth-child(3n+3) { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .pack { grid-template-columns: 1fr; }
  .price-box { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.6rem; }
  .blog-grid, .blog-list-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
  .stats-strip .wrap { justify-content: flex-start; gap: 1.8rem 3rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

::selection { background: var(--mustard); color: #201703; }
