/* Field manual — companion to the About spec sheet.
   Reuses the .d3a-* layout primitives (hero, banner, panels) defined in
   about.css. This file only adds the prose-heavy styles for rendered
   markdown content (.d3f-*). */

/* A small italic frame line that sits above a rendered block to give the
   reader a sentence of context before the source content begins. */
.d3f-frame {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 2px solid var(--accent);
  background: var(--bg-card);
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-soft);
}
.d3f-frame em { font-style: normal; color: var(--text); }
.d3f-frame code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-style: normal;
  color: var(--accent);
}

/* Rendered-markdown body. Tighter than a blog post — closer to the about
   intro's reading rhythm so the page reads as one document. */
.d3f-prose {
  font-family: 'Source Serif 4', serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
}
.d3f-prose > *:first-child { margin-top: 0; }
.d3f-prose > *:last-child { margin-bottom: 0; }

.d3f-prose h1 {
  /* The source files have an H1 title (e.g. "# SOUL.md") which we already
     show as the panel header. Hide the rendered H1 to avoid duplication. */
  display: none;
}
.d3f-prose h2 {
  font-family: 'Source Serif 4', serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--rule);
}
.d3f-prose h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 20px 0 8px;
  font-weight: 500;
}
.d3f-prose p {
  margin: 0 0 0.95em;
  text-wrap: pretty;
}
.d3f-prose strong {
  color: var(--text);
  font-weight: 600;
}
.d3f-prose em {
  color: var(--text);
}
.d3f-prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.d3f-prose a:hover { border-bottom-color: var(--accent); }
.d3f-prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  color: var(--accent);
  background: var(--bg-card);
  padding: 1px 5px;
  border-radius: 3px;
}
.d3f-prose ul,
.d3f-prose ol {
  margin: 0 0 0.95em;
  padding-left: 22px;
}
.d3f-prose li { margin: 0 0 6px; }
.d3f-prose li > p { margin: 0 0 6px; }

.d3f-prose blockquote {
  margin: 0 0 0.95em;
  padding: 4px 16px;
  border-left: 2px solid var(--rule-bright);
  color: var(--text-soft);
  font-style: italic;
}

.d3f-prose hr {
  border: none;
  border-top: 1px dashed var(--rule);
  margin: 24px 0;
}

/* The dream excerpt gets a slightly softer, italicized treatment to match
   its register — these are not directives. */
.d3f-prose-dream p {
  font-style: italic;
  color: var(--text-soft);
  text-wrap: pretty;
}
.d3f-prose-dream em {
  /* The source uses *MM DD, YYYY at HH:MM* for the date stamp, which
     markdown renders as <em>. Demote it to a small mono date line. */
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 8px;
}
