/* Dars lesson plan stylesheet — applied to standalone LP HTML in /showcase/lp-showcase/.
   Tokens mirror webapp/app/globals.css. Keep values in sync if those move. */

:root {
  --ink: #1c1410;
  --ink-soft: #2c2420;
  --parchment: #faf7f2;
  --parchment-mid: #f0ebe3;
  --parchment-deep: #e8dfd3;
  --terra: #bf4e30;
  --terra-light: #e8a07a;
  --muted: #7a6b62;
  --muted-light: #a89890;
  --rule-light: #e0d5c8;
  --rule-dark: #2e2420;

  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.lp-doc {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: 48px 28px 96px;
}

.lp-doc > h1,
.lp-doc > h2,
.lp-doc > h3,
.lp-doc > p,
.lp-doc > ul,
.lp-doc > ol {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.lp-doc h1 {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  font-weight: 600;
  margin: 0 auto 8px;
  color: var(--ink);
}

.lp-doc .lp-eyebrow {
  display: block;
  max-width: 720px;
  margin: 0 auto 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terra);
}

.lp-doc .lp-divider {
  max-width: 720px;
  margin: 28px auto;
  border: 0;
  border-top: 1px solid var(--rule-light);
}

.lp-doc h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terra);
  margin: 36px auto 12px;
  padding-left: 14px;
  border-left: 2px solid var(--terra);
  line-height: 1.4;
}

.lp-doc h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 28px auto 10px;
  color: var(--ink);
}

.lp-doc p {
  margin: 0 auto 14px;
  color: var(--ink-soft);
}

.lp-doc strong,
.lp-doc b {
  color: var(--ink);
  font-weight: 600;
}

.lp-doc em,
.lp-doc i {
  color: var(--ink-soft);
}

.lp-doc ul,
.lp-doc ol {
  margin: 0 auto 18px;
  padding-left: 22px;
}

.lp-doc li {
  margin: 6px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.lp-doc li strong {
  color: var(--ink);
}

.lp-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--parchment-mid);
  padding: 1px 5px;
  border-radius: 3px;
}

.lp-doc a {
  color: var(--terra);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-light);
}

.lp-doc a:hover {
  border-bottom-color: var(--terra);
}

.lp-doc table {
  max-width: 720px;
  margin: 0 auto 18px;
  border-collapse: collapse;
  width: 100%;
}

.lp-doc th,
.lp-doc td {
  border: 1px solid var(--rule-light);
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
}

.lp-doc th {
  background: var(--parchment-mid);
  font-weight: 600;
}

.lp-doc .lp-footer {
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule-light);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted-light);
}

@media (max-width: 600px) {
  body.lp-doc {
    padding: 28px 18px 64px;
    font-size: 15px;
  }
  .lp-doc h1 {
    font-size: 26px;
  }
}

@media print {
  body.lp-doc {
    background: #fff;
    color: #000;
    padding: 0 18mm;
    font-size: 11pt;
    line-height: 1.55;
  }
  .lp-doc h1 {
    font-size: 22pt;
    margin-top: 12pt;
  }
  .lp-doc h2 {
    color: #000;
    border-left-color: #000;
    margin-top: 16pt;
    margin-bottom: 6pt;
  }
  .lp-doc .lp-divider {
    border-color: #999;
    margin: 14pt auto;
  }
  .lp-doc p,
  .lp-doc li {
    color: #000;
  }
  .lp-doc .lp-footer {
    display: none;
  }
  @page {
    margin: 14mm;
  }
}
