/* ================================
   PDF-style essay formatting
================================ */

.essay-format {
  max-width: 700px;           /* typical printed page width */
  margin: 40px auto;          /* center it on the page */
  padding: 40px 50px;         /* inner whitespace like a document */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* subtle PDF viewer shadow */

  font-family: "Times New Roman", Georgia, serif;
  font-size: 18px;            /* readable academic size */
  line-height: 2;             /* paper-like spacing */
  color: rgb(255, 222, 222);

  text-align: left;
  border-radius: 4px;
  border: 1px solid #ddd;     /* fake page margins for PDF feel */
}


/* ================================
   Title / headers
================================ */

.essay-format .title-center {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.essay-format h1,
.essay-format h2,
.essay-format h3 {
  font-family: "Times New Roman", Georgia, serif;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}


/* ================================
   Paragraph styling
================================ */

.essay-format p {
  margin: 1rem 0;
  color: rgb(255, 222, 222);
}

/* Textbook-style indentation */
.essay-format p + p {
  text-indent: 2em;
}


/* ================================
   Inline code (within sentences)
================================ */

.essay-format code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.15em 0.35em;
  border-radius: 4px;
  color: rgb(255, 235, 235);
  white-space: nowrap;
}


/* ================================
   Code blocks (Markdown-style)
================================ */

.essay-format pre {
  background: rgba(0, 0, 0, 0.25);
  border-left: 4px solid rgb(249, 178, 239);
  padding: 1.2em 1.4em;
  margin: 2rem 0;
  overflow-x: auto;

  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  line-height: 1.6;

  border-radius: 6px;
}

/* Prevent double styling inside pre */
.essay-format pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: rgb(255, 235, 235);
  white-space: pre;
}


/* ================================
   Optional language label
   (use: <pre data-lang="php">)
================================ */

.essay-format pre[data-lang]::before {
  content: attr(data-lang);
  display: block;
  font-size: 0.75em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 222, 222, 0.7);
  margin-bottom: 0.5em;
}
