/* AV Outreach Analyzer — site.css
 * Overrides and one-off elements that don't fit inside Tailwind utility classes.
 * Everything colour-related is expressed with the tokens declared in
 * layout.gohtml's tailwind.config so palette changes stay in one place. */

:root {
  --ink:      #000000;
  --offblack: #0A0A0A;
  --paper:    #F5F4F0;
  --pure:     #FFFFFF;
  --ash:      #8C8C8C;
  --rule:     #1A1A1A;
}

html, body {
  background-color: var(--paper);
}

::selection {
  background: var(--ink);
  color: var(--pure);
}

/* --- Signature: V-slash section mark ------------------------------------- */
/* The // is skewed to roughly match the ~72° leg of the AV logo's V. Used on
   the Analyze/Results sequence where numbered sections are semantically true. */
.mark-slash {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  position: relative;
}
.mark-slash .mark-num {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 4.5rem;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--ink);
  transform: skewX(-18deg);
  transform-origin: bottom left;
}
.mark-slash .mark-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ash);
}
.mark-slash.smaller .mark-num { font-size: 2.5rem; }

/* --- Analyze: pulse dot ------------------------------------------------- */
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 0;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.2; transform: scale(0.7); }
}

/* --- Drop-zone drag state ------------------------------------------------ */
#drop-zone.is-dragging {
  background: var(--ink) !important;
  color: var(--pure) !important;
}
#drop-zone.is-dragging .text-ash { color: var(--pure); }

/* --- Transcript rendering (results page) --------------------------------- */
.transcript { border-top: 1px solid var(--rule); }
.transcript .utt {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.transcript .utt .meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  line-height: 1.6;
}
.transcript .utt .meta .speaker {
  color: var(--ink);
  display: block;
  margin-top: 0.15rem;
}
.transcript .utt .body { line-height: 1.65; color: var(--ink); }

/* --- Wiki prose --------------------------------------------------------- */
/* Enough structural type to make the rendered markdown legible without
   installing @tailwindcss/typography. Restrained on purpose. */
.wiki-prose { color: var(--ink); font-size: 1rem; line-height: 1.7; }
.wiki-prose > * + * { margin-top: 1rem; }
.wiki-prose h1, .wiki-prose h2, .wiki-prose h3, .wiki-prose h4 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.1;
  color: var(--ink);
  margin-top: 2.5rem;
}
.wiki-prose h1 { font-size: 2.5rem; }
.wiki-prose h2 { font-size: 1.75rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.5rem; }
.wiki-prose h3 { font-size: 1.35rem; }
.wiki-prose h4 { font-size: 1.1rem; }
.wiki-prose a  { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.wiki-prose a:hover { color: var(--ash); }
.wiki-prose ul, .wiki-prose ol { padding-left: 1.5rem; }
.wiki-prose ul li { list-style: square; }
.wiki-prose ol li { list-style: decimal; }
.wiki-prose li + li { margin-top: 0.35rem; }
.wiki-prose blockquote {
  border-left: 2px solid var(--ink);
  padding-left: 1rem;
  color: var(--ink);
  font-style: normal;
}
.wiki-prose code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--ink);
  color: var(--pure);
  padding: 0.05em 0.35em;
}
.wiki-prose pre {
  background: var(--ink);
  color: var(--pure);
  padding: 1rem;
  overflow-x: auto;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  border: 1px solid var(--rule);
}
.wiki-prose pre code { background: none; padding: 0; }
.wiki-prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.wiki-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.wiki-prose th, .wiki-prose td {
  border: 1px solid var(--rule);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.wiki-prose th {
  background: var(--ink);
  color: var(--pure);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
