/* @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");

/* Carina — night-sky theme. Carina is the keel of Argo Navis,
   so the deck sails on a deep navy sky with a gold Canopus accent. */

.peitho-slide {
  width: 1280px;
  height: 720px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 64px 88px;
  background: linear-gradient(160deg, #101a38 0%, #0a1022 60%, #070c19 100%);
  color: #e8ebf4;
  font-family: "Noto Sans JP Variable", "Noto Sans Variable", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans CJK JP", 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;
}

.crn h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  line-break: strict;
  word-break: auto-phrase;
}

.crn h1 .slot-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 20px;
  background: #e6b95c;
  border-radius: 2px;
}

.crn h1 .slot-title code {
  font-size: 0.92em;
}

/* --- cover --- */

.crn-cover {
  justify-content: center;
  background-image:
    radial-gradient(2px 2px at 12% 24%, rgba(255, 255, 255, 0.85) 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 26% 68%, rgba(255, 255, 255, 0.5) 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 38% 14%, rgba(255, 255, 255, 0.65) 50%, transparent 55%),
    radial-gradient(2px 2px at 52% 42%, rgba(255, 255, 255, 0.4) 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 64% 78%, rgba(255, 255, 255, 0.55) 50%, transparent 55%),
    radial-gradient(2px 2px at 72% 30%, rgba(255, 255, 255, 0.7) 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 84% 62%, rgba(255, 255, 255, 0.45) 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 92% 12%, rgba(255, 255, 255, 0.6) 50%, transparent 55%),
    radial-gradient(4px 4px at 80% 20%, #ffe9b3 45%, rgba(255, 233, 179, 0.35) 60%, transparent 75%),
    linear-gradient(160deg, #101a38 0%, #0a1022 60%, #070c19 100%);
}

.crn-cover .crn-inner::before {
  content: "CARINA — THE KEEL OF ARGO NAVIS";
  display: block;
  margin-bottom: 26px;
  font-family: "M PLUS 1 Code Variable", "Noto Sans JP Variable", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: #e6b95c;
}

.crn-cover h1 {
  font-size: 58px;
  max-width: 22ch;
}

.crn-cover .crn-inner::after {
  content: "A strongly typed infrastructure management tool written in Rust";
  display: block;
  margin-top: 30px;
  font-family: "M PLUS 1 Code Variable", "Noto Sans JP Variable", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 18px;
  color: #8b94ad;
}

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

.crn-body {
  margin-top: 34px;
}

.slot-body {
  font-size: 25px;
  line-height: 1.75;
  color: #c3cbdf;
}

.slot-body p {
  margin: 0 0 18px;
  max-width: 46ch;
}

.slot-body a {
  color: #e6b95c;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.slot-body strong {
  color: #ffffff;
}

.slot-body code {
  font-size: 0.85em;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(230, 185, 92, 0.12);
  color: #ffd98a;
}

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

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

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

/* --- code slide --- */

.crn-code-slide .slot-body p {
  max-width: 54ch;
  margin-bottom: 0;
}

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

.slot-code {
  display: block;
  margin: 0;
  padding: 22px 26px;
  background: rgba(4, 8, 18, 0.72);
  border: 1px solid #223052;
  border-radius: 12px;
  overflow: hidden;
}

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

.slot-code .hl-comment {
  color: #6d7896;
}

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

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

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

.slot-code .hl-function {
  color: #93c5fd;
}

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

/* Keyed overrides: selectors are validated against each slide's layout slots,
   and every key must exist in the deck. */

/* The closing slide is just the repo URL — render it as gold monospace. */
[data-slide-key="closing"] .slot-title {
  font-family: "M PLUS 1 Code Variable", "Noto Sans JP Variable", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 46px;
  color: #e6b95c;
}

/* The roadmap list gets more air so three items fill the slide calmly. */
[data-slide-key="roadmap"] .slot-body li {
  margin-bottom: 22px;
  font-size: 28px;
}