:root {
  --bg: #0b0d10;
  --panel: #11151b;
  --text: #e7edf3;
  --muted: #9aa7b4;
  --faint: #66717d;
  --line: #26313d;
  --accent: #8fd3ff;
  --accent2: #c7a6ff;
  --codebg: #07090c;
  --max: 820px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.75; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  background: radial-gradient(circle at 12% 0%, rgba(143,211,255,0.14), transparent 34rem), radial-gradient(circle at 86% 8%, rgba(199,166,255,0.10), transparent 30rem), linear-gradient(180deg, #0b0d10 0%, #080a0d 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 44px 44px;
}
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(143,211,255,0.35); }
a:hover { color: #bde7ff; border-bottom-color: #bde7ff; }
header, main, footer { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
header { padding: 72px 0 34px; border-bottom: 1px solid var(--line); }
.site-title, header h1 { margin: 0; color: var(--text); font-size: clamp(2.1rem, 7vw, 4.2rem); line-height: 1.02; letter-spacing: -0.055em; font-weight: 720; }
.site-title::before, header h1::before {
  content: "C";
  display: inline-grid;
  place-items: center;
  width: 0.92em;
  height: 0.92em;
  margin-right: 0.22em;
  border: 1px solid rgba(143,211,255,0.55);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72em;
  letter-spacing: 0;
  vertical-align: 0.08em;
}
.tagline, header p { max-width: 680px; margin: 18px 0 0; color: var(--muted); font-size: 1.02rem; }
nav { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
nav a { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(17,21,27,0.72); }
nav a:hover { color: var(--text); border-color: rgba(143,211,255,0.6); }
main { padding: 36px 0 72px; }
article, .post, .post-card, section { background: rgba(17,21,27,0.72); border: 1px solid rgba(38,49,61,0.92); border-radius: 18px; padding: clamp(22px, 4vw, 38px); }
article + article, .post + .post, .post-card + .post-card, section + section { margin-top: 22px; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.28; letter-spacing: -0.025em; }
article h1, main h1 { margin-top: 0; font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { margin-top: 2.2em; padding-top: 0.25em; font-size: 1.55rem; border-top: 1px solid rgba(38,49,61,0.75); }
h3 { margin-top: 1.7em; font-size: 1.18rem; color: #d7e2ec; }
p { margin: 1.05em 0; }
ul, ol { padding-left: 1.35em; }
li + li { margin-top: 0.32em; }
blockquote { margin: 1.6em 0; padding: 0.8em 1em; color: #d9e4ed; background: rgba(143,211,255,0.055); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; }
code { padding: 0.12em 0.36em; border: 1px solid rgba(102,113,125,0.35); border-radius: 6px; color: #d6efff; background: var(--codebg); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.92em; }
pre { overflow-x: auto; margin: 1.5em 0; padding: 1em; background: var(--codebg); border: 1px solid var(--line); border-radius: 14px; }
pre code { padding: 0; border: 0; background: transparent; }
hr { height: 1px; margin: 2.3em 0; border: 0; background: var(--line); }
.post-meta, .meta, time { color: var(--faint); font-size: 0.92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag, .tags a, .tags span { display: inline-flex; padding: 2px 9px; border: 1px solid rgba(143,211,255,0.28); border-radius: 999px; color: var(--muted); background: rgba(143,211,255,0.045); font-size: 0.84rem; }
footer { padding: 28px 0 46px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.92rem; }
footer::after { content: "Structure first. Separate leaps."; display: block; margin-top: 8px; color: var(--muted); }
@media (max-width: 640px) { header { padding-top: 44px; } article, .post, .post-card, section { border-radius: 14px; } }

/* CIPHER_LAYOUT_GUARD_START */
:root {
  --content-max: 760px;
}

main,
.site-header,
.site-footer,
.post-header,
.post-main,
.post-article,
body.post-page > article,
body > article {
  width: min(var(--content-max), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.post-page {
  margin-left: 0;
  margin-right: 0;
}

.post-header {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.post-article {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 600px) {
  main,
  .site-header,
  .site-footer,
  .post-header,
  .post-main,
  .post-article,
  body.post-page > article,
  body > article {
    width: calc(100% - 24px);
  }
}
/* CIPHER_LAYOUT_GUARD_END */

/* CIPHER_CONCEPT_PAIR_START */
.concept-pair {
  margin: 1.8rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--line);
  background: rgba(0, 0, 0, 0.025);
}

.concept-pair p {
  margin: 0.35rem 0;
}
/* CIPHER_CONCEPT_PAIR_END */
