@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@400;600&display=swap');

:root {
  --bg:       #f5f0f7;   /* very pale lavender-white */
  --surface:  #ffffff;
  --ink:      #241828;   /* near-black with plum undertone */
  --muted:    #6b5c72;   /* muted violet-gray */
  --accent:   #6b3075;   /* plum — title and links */
  --accent2:  #c4a0ce;   /* soft lilac — arrows, accents */
  --border:   #ddd0e3;   /* pale plum border */
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

ul.response-list {
  margin: 0.5em 0 0.75em 1.5em;
  padding: 0;
}

ul.response-list li {
  margin-bottom: 0.25em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2.25rem;
  max-width: 1300px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* ── Header ───────────────────────────────────────── */
.site-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.site-subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

/* ── Intro text ───────────────────────────────────── */
.intro {
  color: var(--ink);
  margin-bottom: 2rem;
  border-left: 3px solid var(--accent2);
  padding-left: 1rem;
}

/* ── Divider ──────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 1.75rem;
}

/* ── Links section ────────────────────────────────── */
.links-heading {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.link-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.link-list li::before {
  content: '→';
  color: var(--accent2);
  font-size: 1rem;
  flex-shrink: 0;
}

.link-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
  padding: 0.2rem 0;
  display: inline-block;
}

.link-list a:hover,
.link-list a:focus {
  color: #4a1f55;
  border-bottom-color: var(--accent2);
}

.link-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Footer ───────────────────────────────────────── */
.footer {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ── Responsive tweaks ────────────────────────────── */
@media (max-width: 480px) {
  .card {
    padding: 1.75rem 1.25rem;
    border-radius: 8px;
  }
  .link-list li {
    flex-direction: column;
    gap: 0.1rem;
  }
  .link-list li::before {
    display: none;
  }
}

    /* Title block */
    .title-block {
      text-align: center;
      margin-bottom: 2em;
    }

    .title-block p {
      margin: 0.2em 0;
    }

    .doc-title {
      font-family: 'Lora', serif;
      font-size: clamp(1.4rem, 4vw, 1.9rem);
      font-weight: 600;
      color: var(--accent);
      letter-spacing: -0.01em;
    }

    .doc-subtitle {
      font-family: 'Lora', serif;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--ink);
    }

    .doc-date {
      font-family: 'Lora', serif;
      font-size: 0.95rem;
      font-style: italic;
      font-weight: 400;
      color: var(--muted);
    }

    /* Background section */
    .background {
      margin: 1.5em 0 2em 0;
      border-left: 3px solid var(--accent2);
      padding-left: 1rem;
      color: var(--ink);
    }

    .background-label {
      font-weight: 600;
    }

    /* Speaker headers */
    .speaker {
      font-family: 'Lora', serif;
      font-size: 1.25rem;
      font-weight: 600;
      margin: 2em 0 0.8em 0;
      padding-bottom: 4px;
      border-bottom: 1.5px solid var(--border);
      color: var(--accent);
    }

    .speaker.claude      { color: #6b3075; border-color: #6b3075; }
    .speaker.gemini      { color: #1a73e8; border-color: #1a73e8; }
    .speaker.perplexity  { color: #20a060; border-color: #20a060; }

    /* Exchange blocks */
    .exchange {
      margin-bottom: 1.4em;
    }

    .input-label,
    .response-label {
      font-style: italic;
      color: var(--muted);
      margin-bottom: 0.2em;
      font-size: 0.875rem;
    }

    /* Fictional vignettes */
    .vignette {
      margin: 0.6em 0 0.6em 1.6em;
      font-style: italic;
      color: var(--ink);
    }

    /* Body paragraphs */
    p {
      margin: 0.55em 0;
    }

    /* Tables */
    table {
      border-collapse: collapse;
      width: 100%;
      margin: 1em 0;
      font-size: 0.9rem;
    }

    thead tr {
      background-color: #ede0f2;
    }

    th {
      border: 1px solid var(--border);
      padding: 6px 10px;
      text-align: left;
      font-weight: 600;
      color: var(--ink);
    }

    td {
      border: 1px solid var(--border);
      padding: 5px 10px;
      vertical-align: top;
    }

    tr:nth-child(even) td {
      background-color: #faf5fc;
    }

    /* Section divider */
    .section-break {
      border: none;
      border-top: 1px solid var(--border);
      margin: 2em 0;
    }

    /* Editorial note */
    .editorial-note {
      margin: 1.5em 0;
      padding-left: 1.5em;
      border-left: 3px solid var(--accent2);
      font-style: italic;
      color: var(--muted);
    }

    /* Follow-ups block (Perplexity auto-suggestions) */
    .followups {
      margin-top: 0.8em;
      margin-left: 1em;
    }

    .followups p {
      margin: 0.25em 0;
      font-size: 0.85rem;
      color: var(--muted);
      font-style: italic;
    }

    .followups-label {
      font-weight: 600;
      font-style: normal;
      font-size: 0.85rem;
      color: var(--ink);
    }
