/* @importはpeitho.css(css/*.cssをファイル名順に連結)の先頭に来ないと無効。
   このファイル名はcss/内で必ず最初にソートされるよう00-を維持すること。 */
@import url("fonts/noto-sans-jp/index.css");
@import url("fonts/noto-serif-jp/index.css");
@import url("fonts/noto-sans/index.css");
@import url("fonts/noto-serif/index.css");
@import url("fonts/m-plus-1-code/index.css");

.peitho-slide {
  width: 1280px;
  height: 720px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 56px 84px;
  background: #16141d;
  color: #eae6dd;
  font-family: "Noto Sans JP Variable", "Noto Sans Variable", "Hiragino Sans", "Helvetica Neue", system-ui, sans-serif;
}

/* Single upstream rule so every code-ish element gets the webfont — slot-scoped
   rules kept leaking inline <code> in other slots to the browser default (OS fonts).
   Noto Sans JP is second because M PLUS 1 Code subsets claim some codepoints
   (e.g. U+2192 arrows) without containing the glyph, so a webfont catches them
   for environment-independent PDFs. */
pre,
code,
kbd,
samp {
  font-family: "M PLUS 1 Code Variable", "Noto Sans JP Variable", ui-monospace, "SF Mono", Menlo, monospace;
}

.intro h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: "Noto Serif JP Variable", "Noto Serif Variable", "Iowan Old Style", "Hiragino Mincho ProN", ui-serif, Georgia, serif;
  color: #f4eee1;
  line-break: strict;
  word-break: auto-phrase;
}

.intro h1 .slot-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 18px;
  background: #c9a35c;
}

/* --- cover --- */

.intro-cover {
  justify-content: center;
  align-items: center;
}

.cover-inner {
  max-width: 960px;
  text-align: center;
}

.cover-inner::before {
  content: "ΠΕΙΘΩ";
  display: block;
  margin-bottom: 28px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: #c9a35c;
}

.intro-cover h1 {
  font-size: 84px;
  letter-spacing: 0.04em;
}

.intro-cover h1 .slot-title::after {
  margin: 36px auto 0;
}

/* --- shared body --- */

.topic-body {
  margin-top: 36px;
}

.slot-body {
  font-size: 25px;
  line-height: 1.85;
  color: #c9c3b6;
  line-break: strict;
  word-break: auto-phrase;
}

.slot-body p {
  margin: 0 0 20px;
  max-width: 38em;
}

.slot-body a {
  color: #d9b878;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.slot-body strong {
  color: #f4eee1;
  font-weight: 600;
}

.slot-body code {
  font-size: 0.88em;
  color: #e3d9c3;
  background: #24212e;
  padding: 2px 8px;
  border-radius: 6px;
}

.slot-body ul {
  margin: 0;
  padding-left: 1.1em;
}

.slot-body li {
  margin-bottom: 16px;
}

.slot-body li::marker {
  color: #c9a35c;
}

/* --- code --- */

.code-body {
  margin-top: 28px;
}

.intro-code .slot-body p {
  max-width: none;
  margin-bottom: 0;
}

.code-panel {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.slot-code {
  display: block;
  margin: 0;
  padding: 24px 30px;
  background: #0e0d14;
  border: 1px solid #2c2839;
  border-radius: 12px;
  overflow: hidden;
}

.slot-code code {
  font-size: 19px;
  line-height: 1.6;
  color: #ddd8ea;
}

.slot-code .hl-comment {
  color: #746e88;
}

.slot-code .hl-string {
  color: #a8d5a2;
}

.slot-code .hl-keyword,
.slot-code .hl-storage {
  color: #d4a95c;
}

.slot-code .hl-constant {
  color: #e0a8a2;
}

.slot-code .hl-function {
  color: #9db8e8;
}

.slot-code .hl-type,
.slot-code .hl-entity {
  color: #7fcfc4;
}

/* --- shot --- */

.intro-shot h1 {
  font-size: 38px;
}

.shot-body {
  margin-top: 18px;
}

.intro-shot .slot-body {
  font-size: 22px;
  line-height: 1.7;
}

.intro-shot .slot-body p {
  max-width: none;
  margin-bottom: 0;
}

.shot-frame {
  flex: 1;
  min-height: 0;
  margin: 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-frame img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid #2c2839;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

/* Keyed overrides: each selector is validated against the deck at build
   time — a key that no longer exists is a build error, not a stale rule. */

/* The closing statement gets the accent color itself. */
[data-slide-key="closing"] .slot-title {
  color: #c9a35c;
}

/* The pillars are the core message — give the list more air. */
[data-slide-key="pillars"] .slot-body li {
  margin-bottom: 26px;
}