:root {
      color-scheme: dark;
      --accent: #00c8ff;
      --accent-bright: #00e5ff;
      --text: #e6e6e6;
      --text-strong: #e8eef4;
      --muted: #7a9bb0;
      --panel-edge: rgba(0, 200, 255, 0.14);
      --panel-bar: #00c8ff;
    }
    html[data-theme="light"] {
      color-scheme: light;
      --accent: #006a94;
      --accent-bright: #006a94;
      --text: #1b2a38;
      --text-strong: #14212e;
      --muted: #5a7a8c;
      --panel-edge: rgba(0, 90, 140, 0.18);
      --panel-bar: #006a94;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    html { height: 100%; scroll-behavior: smooth; }

    html, body, .blog-card, .post-view, .music-btn, .log-back {
      transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    }

    body {
      min-height: 100%;
      background: #050810;
      background-image:
        radial-gradient(ellipse at 15% 18%, rgba(0, 47, 167, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(0, 200, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 35%, rgba(0, 30, 80, 0.22) 0%, transparent 70%),
        linear-gradient(180deg, #050810 0%, #0a1220 50%, #060a14 100%);
      background-attachment: fixed;
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      color: #e6e6e6;
      overflow-x: hidden;
      position: relative;
    }
    html[data-theme="light"] body {
      background: #eef3f8;
      background-image:
        radial-gradient(ellipse at 15% 18%, rgba(0, 120, 180, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(0, 148, 200, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #eef3f8 0%, #e4edf5 50%, #e8f0f6 100%);
      color: #1b2a38;
    }
    body::after {
      content: "";
      position: fixed;
      inset: 0;
      box-shadow: inset 0 0 140px rgba(0, 10, 30, 0.7);
      pointer-events: none;
      z-index: 1;
    }
    html[data-theme="light"] body::after { box-shadow: inset 0 0 100px rgba(20, 50, 90, 0.06); }

    .music-ctrl {
      position: fixed;
      top: 24px;
      right: 24px;
      z-index: 40;
    }
    .music-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      background: transparent;
      border: 1.5px solid rgba(255, 255, 255, 0.55);
      border-radius: 6px;
      color: #fff;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.9px;
      text-transform: uppercase;
      cursor: pointer;
      backdrop-filter: blur(6px);
      transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    }
    .music-btn:hover {
      border-color: #00d4ff;
      color: #00e5ff;
      background: rgba(0, 180, 255, 0.08);
      box-shadow: 0 0 18px rgba(0, 200, 255, 0.25);
    }
    .theme-btn svg { width: 16px; height: 16px; display: block; fill: currentColor; }
    .theme-btn .icon-sun { display: none; }
    html[data-theme="light"] .theme-btn .icon-moon { display: none; }
    html[data-theme="light"] .theme-btn .icon-sun { display: block; }
    html[data-theme="light"] .music-btn {
      border-color: rgba(0, 90, 140, 0.35);
      color: #1b2a38;
    }
    html[data-theme="light"] .music-btn:hover {
      border-color: #0094c8;
      color: #006a94;
      background: rgba(0, 148, 200, 0.08);
    }
    @media (max-width: 720px) {
      .music-ctrl { top: 14px; right: 14px; }
      .theme-btn { padding: 8px 11px; }
    }

    .log-page {
      position: relative;
      z-index: 2;
      max-width: 760px;
      margin: 0 auto;
      padding: 5.5rem 1.5rem 3rem;
    }
    .log-top {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px 20px;
      margin-bottom: 2rem;
    }
    .log-back {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      background: transparent;
      border: 1.5px solid rgba(255, 255, 255, 0.45);
      border-radius: 6px;
      color: #fff;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 1.1px;
      text-transform: uppercase;
      text-decoration: none;
      backdrop-filter: blur(6px);
      transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    }
    .log-back:hover {
      border-color: #00d4ff;
      color: #00e5ff;
      background: rgba(0, 180, 255, 0.08);
      box-shadow: 0 0 18px rgba(0, 200, 255, 0.22);
    }
    html[data-theme="light"] .log-back {
      border-color: rgba(0, 90, 140, 0.35);
      color: #1b2a38;
    }
    html[data-theme="light"] .log-back:hover {
      border-color: #0094c8;
      color: #006a94;
      background: rgba(0, 148, 200, 0.08);
    }

    .log-page-title {
      font-weight: 900;
      font-size: clamp(28px, 6vw, 40px);
      color: #fff;
      letter-spacing: -0.5px;
      margin: 0 0 0.35rem;
      text-shadow: 2px 4px 14px rgba(0, 0, 0, 0.85);
    }
    html[data-theme="light"] .log-page-title { color: #0a1628; text-shadow: none; }
    .log-page-sub {
      color: rgba(180, 210, 230, 0.75);
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.4px;
      margin: 0 0 1rem;
    }
    html[data-theme="light"] .log-page-sub { color: #5a7a8c; }

    /* Search */
    .blog-search-wrap {
      position: relative;
      margin: 0 0 1.5rem;
    }
    .blog-search {
      width: 100%;
      padding: 12px 40px 12px 14px;
      border-radius: 8px;
      border: 1px solid rgba(0, 200, 255, 0.22);
      background: rgba(5, 12, 28, 0.85);
      color: #e8eef4;
      font-family: inherit;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.2px;
      outline: none;
      transition: border-color 0.22s ease, box-shadow 0.22s ease;
      /* hide native clear so only our × shows */
      -webkit-appearance: none;
      appearance: none;
    }
    .blog-search::-webkit-search-cancel-button,
    .blog-search::-webkit-search-decoration {
      -webkit-appearance: none;
      appearance: none;
      display: none;
    }
    .blog-search::placeholder { color: rgba(180, 210, 230, 0.45); }
    .blog-search:focus {
      border-color: rgba(0, 229, 255, 0.55);
      box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.12);
    }
    .blog-search-clear {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      width: 28px;
      height: 28px;
      border: none;
      border-radius: 6px;
      background: transparent;
      color: #7a9bb0;
      font-size: 16px;
      line-height: 1;
      cursor: pointer;
      display: none;
    }
    .blog-search-clear.is-on { display: inline-flex; align-items: center; justify-content: center; }
    .blog-search-clear:hover { color: #00e5ff; background: rgba(0, 180, 255, 0.1); }
    .blog-search-meta {
      margin: -0.6rem 0 1rem;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.3px;
      color: #7a9bb0;
      min-height: 1.2em;
    }
    html[data-theme="light"] .blog-search {
      background: rgba(255, 255, 255, 0.92);
      border-color: rgba(0, 90, 140, 0.22);
      color: #14212e;
    }
    html[data-theme="light"] .blog-search::placeholder { color: rgba(90, 122, 140, 0.55); }
    html[data-theme="light"] .blog-search:focus {
      border-color: rgba(0, 106, 148, 0.5);
      box-shadow: 0 0 0 3px rgba(0, 148, 200, 0.12);
    }
    html[data-theme="light"] .blog-search-clear { color: #5a7a8c; }
    html[data-theme="light"] .blog-search-clear:hover { color: #006a94; background: rgba(0, 148, 200, 0.1); }
    html[data-theme="light"] .blog-search-meta { color: #5a7a8c; }

    /* Post list */
    .blog-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .blog-card {
      display: block;
      width: 100%;
      text-align: left;
      padding: 18px 20px;
      background:
        linear-gradient(to right, rgba(5, 12, 28, 0.97), rgba(8, 18, 40, 0.94));
      border: 1px solid rgba(0, 200, 255, 0.14);
      border-left: 4px solid var(--panel-bar);
      border-radius: 10px;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
      cursor: pointer;
      color: inherit;
      font: inherit;
      transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .blog-card:hover,
    .blog-card:focus-visible {
      border-color: rgba(0, 220, 255, 0.4);
      box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 180, 255, 0.12);
      transform: translateX(3px);
      outline: none;
    }
    .blog-card.active {
      border-color: rgba(0, 229, 255, 0.5);
      box-shadow: 0 0 22px rgba(0, 200, 255, 0.18);
    }
    html[data-theme="light"] .blog-card {
      background: linear-gradient(to right, #f7fafc, #eef5fa);
      border-color: rgba(0, 90, 140, 0.15);
      box-shadow: 0 10px 28px rgba(20, 50, 90, 0.1);
    }
    .blog-card-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 14px;
      margin-bottom: 6px;
    }
    .blog-date {
      color: var(--accent-bright);
      font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.6px;
      font-variant-numeric: tabular-nums;
    }
    .blog-tag {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      color: #00e5ff;
      background: rgba(0, 180, 255, 0.12);
      border: 1px solid rgba(0, 200, 255, 0.22);
    }
    html[data-theme="light"] .blog-tag {
      color: #006a94;
      background: rgba(0, 148, 200, 0.1);
      border-color: rgba(0, 90, 140, 0.2);
    }
    .blog-card h2 {
      margin: 0 0 6px;
      font-size: 19px;
      font-weight: 800;
      letter-spacing: 0.2px;
      color: #e8eef4;
      font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    }
    html[data-theme="light"] .blog-card h2 { color: #14212e; }
    .blog-excerpt {
      margin: 0;
      color: #a8c4d8;
      font-size: 14px;
      line-height: 1.5;
      font-weight: 500;
    }
    html[data-theme="light"] .blog-excerpt { color: #5a7a8c; }

    /* Single post view */
    .post-view {
      display: none;
      padding: 28px 28px 24px;
      background:
        linear-gradient(to right, rgba(5, 12, 28, 0.97), rgba(8, 18, 40, 0.94)),
        radial-gradient(circle at top right, rgba(0, 47, 167, 0.22), transparent 45%);
      border: 1px solid rgba(0, 200, 255, 0.14);
      border-left: 5px solid var(--panel-bar);
      border-radius: 10px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
      animation: postIn 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .post-view.is-open { display: block; }
    .blog-list.is-hidden { display: none; }
    @keyframes postIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    html[data-theme="light"] .post-view {
      background: linear-gradient(to right, #f7fafc, #eef5fa);
      border-color: rgba(0, 90, 140, 0.18);
      box-shadow: 0 18px 46px rgba(20, 50, 90, 0.12);
    }

    .post-back {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 1.1rem;
      padding: 0;
      border: none;
      background: none;
      color: var(--accent);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      cursor: pointer;
      font-family: inherit;
    }
    .post-back:hover { color: var(--accent-bright); text-decoration: underline; }

    .post-view .post-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      align-items: center;
      margin-bottom: 10px;
    }
    .post-view h1 {
      font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
      font-size: clamp(24px, 5vw, 32px);
      font-weight: 800;
      letter-spacing: 0.2px;
      color: #fff;
      margin: 0 0 1.25rem;
      line-height: 1.2;
    }
    html[data-theme="light"] .post-view h1 { color: #0a1628; }

    /* Markdown body */
    .md-body {
      font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
      font-size: 17px;
      font-weight: 500;
      line-height: 1.7;
      color: #e0e6ec;
    }
    html[data-theme="light"] .md-body { color: #243443; }
    .md-body > *:first-child { margin-top: 0; }
    .md-body > *:last-child { margin-bottom: 0; }
    .md-body h1, .md-body h2, .md-body h3, .md-body h4 {
      color: var(--accent-bright);
      font-weight: 800;
      letter-spacing: 0.3px;
      margin: 1.35em 0 0.55em;
      line-height: 1.25;
    }
    .md-body h1 { font-size: 1.45em; }
    .md-body h2 {
      font-size: 1.2em;
      padding-bottom: 6px;
      border-bottom: 1px solid rgba(0, 200, 255, 0.2);
    }
    .md-body h3 { font-size: 1.08em; }
    .md-body p { margin: 0 0 1em; }
    .md-body a {
      color: #00e5ff;
      text-decoration: none;
      border-bottom: 1px solid rgba(0, 229, 255, 0.35);
    }
    .md-body a:hover { border-bottom-color: #00e5ff; }
    html[data-theme="light"] .md-body a { color: #006a94; border-bottom-color: rgba(0, 106, 148, 0.35); }
    .md-body strong { color: var(--accent-bright); font-weight: 700; }
    .md-body em { color: #b8d4e8; font-style: italic; }
    html[data-theme="light"] .md-body em { color: #3d5668; }
    .md-body ul, .md-body ol {
      margin: 0 0 1em;
      padding-left: 1.4em;
    }
    .md-body li { margin-bottom: 0.35em; }
    .md-body li::marker { color: var(--accent); }
    .md-body blockquote {
      margin: 0.85em 0 1.1em;
      padding: 14px 16px 12px;
      border-left: 3px solid var(--accent);
      border-radius: 0 8px 8px 0;
      background: rgba(0, 180, 255, 0.07);
      color: #c8dce8;
      box-shadow: inset 0 0 0 1px rgba(0, 200, 255, 0.06);
    }
    .md-body blockquote p { margin: 0 0 0.55em; }
    .md-body blockquote p:last-child { margin-bottom: 0; }
    html[data-theme="light"] .md-body blockquote {
      background: rgba(0, 120, 180, 0.07);
      color: #3d5668;
      box-shadow: inset 0 0 0 1px rgba(0, 90, 140, 0.08);
    }
    .md-body code {
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 0.88em;
      padding: 1px 6px;
      border-radius: 4px;
      background: rgba(0, 180, 255, 0.12);
      color: #00e5ff;
    }
    html[data-theme="light"] .md-body code {
      background: rgba(0, 120, 180, 0.1);
      color: #006a94;
    }
    .md-body pre {
      margin: 0 0 1em;
      padding: 14px 16px;
      border-radius: 8px;
      background: rgba(0, 10, 24, 0.75);
      border: 1px solid rgba(0, 200, 255, 0.15);
      overflow-x: auto;
    }
    html[data-theme="light"] .md-body pre {
      background: rgba(15, 40, 60, 0.06);
      border-color: rgba(0, 90, 140, 0.15);
    }
    .md-body pre code {
      padding: 0;
      background: none;
      color: #c8e6f5;
      font-size: 0.9em;
      line-height: 1.5;
    }
    html[data-theme="light"] .md-body pre code { color: #1b2a38; }
    .md-body hr {
      border: none;
      border-top: 1px solid rgba(0, 200, 255, 0.2);
      margin: 1.4em 0;
    }
    .md-body img {
      max-width: 100%;
      border-radius: 8px;
      margin: 0.5em 0;
    }

    .site-footer {
      position: relative;
      z-index: 2;
      text-align: center;
      padding: 2rem 1rem 2.5rem;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.8px;
      color: rgba(255, 255, 255, 0.72);
    }
    html[data-theme="light"] .site-footer { color: rgba(30, 50, 70, 0.65); }

    @media (max-width: 720px) {
      .log-page { padding: 4.5rem 1rem 2.5rem; }
      .post-view { padding: 20px 16px; }
      .blog-card { padding: 14px 14px; }
      .md-body { font-size: 16px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .post-view, .blog-card { animation: none !important; transition: none !important; }
    }

/* ===== Sakura theme (shared secondary pages) ===== */
html[data-theme="sakura"] {
  color-scheme: light;
  --accent: #d46a8c;
  --accent-bright: #c4456e;
  --accent-mid: #e891ad;
  --accent-dim: rgba(212, 106, 140, 0.22);
  --text: #3d2a32;
  --text-strong: #2a1a22;
  --muted: #9a7a85;
  --panel-edge: rgba(212, 106, 140, 0.28);
  --panel-bar: #d46a8c;
  --focus-ring: #c4456e;
}
html[data-theme="sakura"] body {
  background: #fdf6f8;
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(255, 200, 220, 0.55) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 230, 240, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, #fff8fa 0%, #fdf2f5 50%, #faf0f3 100%);
  color: #3d2a32;
}
html[data-theme="sakura"] body::after {
  box-shadow: inset 0 0 100px rgba(255, 220, 230, 0.35);
}
html[data-theme="sakura"] .music-btn,
html[data-theme="sakura"] .log-back {
  border-color: rgba(212, 106, 140, 0.4);
  color: #3d2a32;
  background: rgba(255, 255, 255, 0.55);
}
html[data-theme="sakura"] .music-btn:hover,
html[data-theme="sakura"] .log-back:hover {
  border-color: #d46a8c;
  color: #c4456e;
  background: rgba(212, 106, 140, 0.1);
  box-shadow: 0 0 18px rgba(212, 106, 140, 0.22);
}
html[data-theme="sakura"] .theme-btn .icon-moon { display: none; }
html[data-theme="sakura"] .theme-btn .icon-sun { display: none; }
html[data-theme="sakura"] .theme-btn .icon-sakura { display: block; }
html[data-theme="sakura"] .log-page-title {
  color: #2a1a22;
  text-shadow: none;
}
html[data-theme="sakura"] .log-page-sub {
  color: #9a7a85;
}
html[data-theme="sakura"] .site-footer {
  color: rgba(61, 42, 50, 0.55);
}

html[data-theme="sakura"] .blog-search {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(212, 106, 140, 0.28);
  color: #2a1a22;
}
html[data-theme="sakura"] .blog-search::placeholder { color: rgba(154, 122, 133, 0.6); }
html[data-theme="sakura"] .blog-search:focus {
  border-color: rgba(196, 69, 110, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 106, 140, 0.14);
}
html[data-theme="sakura"] .blog-search-clear { color: #9a7a85; }
html[data-theme="sakura"] .blog-search-clear:hover {
  color: #c4456e;
  background: rgba(212, 106, 140, 0.1);
}
html[data-theme="sakura"] .blog-search-meta { color: #9a7a85; }
html[data-theme="sakura"] .blog-card {
  background: linear-gradient(to right, #fffafb, #fdf2f5);
  border-color: rgba(212, 106, 140, 0.2);
  box-shadow: 0 10px 28px rgba(180, 100, 130, 0.1);
}
html[data-theme="sakura"] .blog-card:hover,
html[data-theme="sakura"] .blog-card:focus-visible {
  border-color: rgba(212, 106, 140, 0.45);
  box-shadow: 0 14px 36px rgba(180, 100, 130, 0.14), 0 0 20px rgba(255, 180, 200, 0.18);
}
html[data-theme="sakura"] .blog-card.active {
  border-color: rgba(196, 69, 110, 0.55);
  box-shadow: 0 0 22px rgba(212, 106, 140, 0.2);
}
html[data-theme="sakura"] .blog-date { color: #c4456e; }
html[data-theme="sakura"] .blog-tag {
  color: #c4456e;
  background: rgba(212, 106, 140, 0.12);
  border-color: rgba(212, 106, 140, 0.25);
}
html[data-theme="sakura"] .blog-card h2 { color: #2a1a22; }
html[data-theme="sakura"] .blog-excerpt { color: #9a7a85; }
html[data-theme="sakura"] .post-view {
  background:
    linear-gradient(to right, #fffafb, #fdf2f5),
    radial-gradient(circle at top right, rgba(255, 200, 220, 0.35), transparent 45%);
  border-color: rgba(212, 106, 140, 0.22);
  box-shadow: 0 18px 46px rgba(180, 100, 130, 0.12);
}
html[data-theme="sakura"] .post-view h1 { color: #2a1a22; }
html[data-theme="sakura"] .post-back { color: #d46a8c; }
html[data-theme="sakura"] .post-back:hover { color: #c4456e; }
html[data-theme="sakura"] .md-body { color: #3d2a32; }
html[data-theme="sakura"] .md-body h1,
html[data-theme="sakura"] .md-body h2,
html[data-theme="sakura"] .md-body h3,
html[data-theme="sakura"] .md-body h4 { color: #c4456e; }
html[data-theme="sakura"] .md-body h2 { border-bottom-color: rgba(212, 106, 140, 0.25); }
html[data-theme="sakura"] .md-body a {
  color: #c4456e;
  border-bottom-color: rgba(196, 69, 110, 0.35);
}
html[data-theme="sakura"] .md-body a:hover { border-bottom-color: #c4456e; }
html[data-theme="sakura"] .md-body strong { color: #c4456e; }
html[data-theme="sakura"] .md-body em { color: #7a5a65; }
html[data-theme="sakura"] .md-body li::marker { color: #d46a8c; }
html[data-theme="sakura"] .md-body blockquote {
  border-left-color: #d46a8c;
  background: rgba(212, 106, 140, 0.08);
  color: #6a4a55;
  box-shadow: inset 0 0 0 1px rgba(212, 106, 140, 0.1);
}
html[data-theme="sakura"] .md-body code {
  background: rgba(212, 106, 140, 0.12);
  color: #c4456e;
}
html[data-theme="sakura"] .md-body pre {
  background: rgba(61, 42, 50, 0.05);
  border-color: rgba(212, 106, 140, 0.18);
}
html[data-theme="sakura"] .md-body pre code { color: #3d2a32; }
html[data-theme="sakura"] .md-body hr { border-top-color: rgba(212, 106, 140, 0.25); }

/* Sakura content polish — match index typography & glow */
html[data-theme="sakura"] .blog-card,
html[data-theme="sakura"] .post-view {
  font-family: "Nunito", "M PLUS Rounded 1c", sans-serif;
}
html[data-theme="sakura"] .blog-card h2,
html[data-theme="sakura"] .post-view h1 {
  font-family: "M PLUS Rounded 1c", "Nunito", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
html[data-theme="sakura"] .blog-date,
html[data-theme="sakura"] .blog-tag {
  font-family: "Nunito", sans-serif;
}
html[data-theme="sakura"] .md-body {
  font-family: "Nunito", "M PLUS Rounded 1c", sans-serif;
  font-size: 17.5px;
  line-height: 1.75;
  color: #3d2a32;
}
html[data-theme="sakura"] .md-body h1,
html[data-theme="sakura"] .md-body h2,
html[data-theme="sakura"] .md-body h3 {
  font-family: "M PLUS Rounded 1c", "Nunito", sans-serif;
}
html[data-theme="sakura"] .blog-card:hover,
html[data-theme="sakura"] .blog-card:focus-visible {
  box-shadow:
    0 14px 36px rgba(180, 100, 130, 0.14),
    0 0 22px rgba(255, 180, 200, 0.28);
}
html[data-theme="sakura"] .blog-search:focus {
  box-shadow: 0 0 0 3px rgba(212, 106, 140, 0.16), 0 0 18px rgba(255, 180, 200, 0.25);
}


/* ===== Unified fluent backgrounds (match index — no seams) ===== */
html {
  height: 100%;
  background-color: #050810; /* fallback while CSS paints */
}
html[data-theme="light"] { background-color: #e9f0f7; }
html[data-theme="sakura"] { background-color: #fdf6f8; }

body {
  min-height: 100vh;
  background-color: #050810;
  background-image:
    radial-gradient(ellipse at 15% 18%, rgba(0, 47, 167, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(0, 200, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 35%, rgba(0, 30, 80, 0.22) 0%, transparent 70%),
    linear-gradient(180deg, #050810 0%, #0a1220 50%, #060a14 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  background-attachment: fixed;
  color: #e6e6e6;
}
html[data-theme="light"] body {
  background-color: #e9f0f7;
  background-image:
    radial-gradient(ellipse at 15% 18%, rgba(0, 120, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(0, 200, 255, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #f2f6fb 0%, #e3edf7 50%, #eaf1f8 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  background-attachment: fixed;
  color: #1b2a38;
}
html[data-theme="sakura"] body {
  background-color: #fdf6f8;
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(255, 200, 220, 0.55) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 230, 240, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, #fff8fa 0%, #fdf2f5 50%, #faf0f3 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  background-attachment: fixed;
  color: #3d2a32;
  font-family: "Nunito", "M PLUS Rounded 1c", "Helvetica Neue", sans-serif;
}

/* Single soft vignette — no double stacking cracks */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  box-shadow: inset 0 0 140px rgba(0, 10, 30, 0.7);
  pointer-events: none;
  z-index: 1;
}
html[data-theme="light"] body::after {
  box-shadow: inset 0 0 100px rgba(20, 50, 90, 0.06);
}
html[data-theme="sakura"] body::after {
  box-shadow: inset 0 0 100px rgba(255, 220, 230, 0.35);
}

/* Content above vignette — keep music-ctrl fixed at top-right */
.log-page,
.site-footer {
  position: relative;
  z-index: 2;
}
.music-ctrl {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 40;
}

@media (prefers-reduced-motion: reduce) {
  body { background-attachment: scroll; }
}


/* ---- Light / Sakura: no text glow; theme-menu entries stay flat ---- */
html[data-theme="light"] .theme-menu button,
html[data-theme="light"] .theme-menu button:hover,
html[data-theme="light"] .theme-menu button.active,
html[data-theme="light"] .music-btn:hover,
html[data-theme="light"] .theme-btn:hover,
html[data-theme="light"] .log-back:hover {
  text-shadow: none !important;
  filter: none !important;
}
html[data-theme="sakura"] .theme-menu button,
html[data-theme="sakura"] .theme-menu button:hover,
html[data-theme="sakura"] .theme-menu button.active,
html[data-theme="sakura"] .music-btn:hover,
html[data-theme="sakura"] .theme-btn:hover,
html[data-theme="sakura"] .log-back:hover {
  text-shadow: none !important;
  filter: none !important;
}
html[data-theme="sakura"] .theme-menu button {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
html[data-theme="sakura"] .theme-menu button:hover,
html[data-theme="sakura"] .theme-menu button:focus-visible,
html[data-theme="sakura"] .theme-menu button.active {
  background: rgba(212, 106, 140, 0.1) !important;
  color: #c4456e !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html[data-theme="sakura"] .theme-btn:hover,
html[data-theme="sakura"] .theme-wrap.open .theme-btn,
html[data-theme="sakura"] .theme-wrap:hover .theme-btn,
html[data-theme="sakura"] .music-btn:hover,
html[data-theme="sakura"] .log-back:hover {
  box-shadow: 0 4px 14px rgba(196, 69, 110, 0.14) !important;
  text-shadow: none !important;
}
html[data-theme="light"] .theme-btn:hover,
html[data-theme="light"] .theme-wrap.open .theme-btn,
html[data-theme="light"] .theme-wrap:hover .theme-btn,
html[data-theme="light"] .music-btn:hover,
html[data-theme="light"] .log-back:hover {
  box-shadow: 0 4px 14px rgba(30, 105, 145, 0.12) !important;
  text-shadow: none !important;
}
