/*
   Primary accent (Akemi Homura purple):
     --accent-light #C9A0F5  pastel
     --accent       #C084FC  base
     --accent-bright #CC90FE bright/vivid
     --accent-dim   #9B59B6  muted/dark
   Secondary accent (Kaname Madoka red):
     --accent2-light #FCA5A5  pastel
     --accent2       #DC2626  base
     --accent2-bright #CC4490 bright/vivid (midpoint toward purple)
     --accent2-dim   #A91E1E  muted/dark
*/

@import 'material-pygments.css';

/* ── reset & base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0C0A10;
  --bg-surface:  #141018;
  --bg-card:     #1A1520;
  --text:        #E8E4ED;
  --text-dim:    #9A92A6;
  --accent-light:  #C9A0F5;
  --accent:        #C084FC;
  --accent-dim:    #9B59B6;
  --accent-bright: #CC90FE;
  --accent2-light: #FCA5A5;
  --accent2:       #DC2626;
  --accent2-dim:   #A91E1E;
  --accent2-bright:#CC4490;
  --border:      #2A2235;
  --code-bg:     #110E16;
  --font-body:   source-serif-4-variable, 'Literata', 'Georgia', serif;
  --font-head:   'Outfit', 'Helvetica Neue', sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --max-w:       680px;
  --gap:         2rem;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding: 0 1.2rem;
  font-weight: 100;

}

/* ── typography ──────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
}
h1 { font-size: 2.25rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.55rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 0.4rem; }

p {
  margin-bottom: 1.2rem;
}

a, a:visited {
  color: var(--accent2-bright);
  text-decoration: none;
  transition: color 1s;
}
a:hover { color: var(--accent); }

strong { color: var(--accent-bright); font-weight: bold; }
em { color: var(--accent-light); }
hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.3rem 0 0.3rem 1.2rem;
  margin: 1.2rem 0;
  color: var(--text-dim);
  font-style: italic;
}

ul, ol { padding-left: 1.4rem; }
ul * p { margin-bottom: 0; }
li { margin-bottom: 0.1rem; }

/* ── code ────────────────────────────────────────── */
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent);
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 1.2rem 0;
  line-height: 1.55;
}
pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

/* ── layout ──────────────────────────────────────── */
.site-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── header ──────────────────────────────────────── */
.site-header {
  padding: 1.8rem 0 1.2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--gap);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.site-title {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-family: 'Didot', sans-serif;
  background: linear-gradient(90deg, var(--accent) 20%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

}
path {
  fill: var(--accent);
}

// .site-title:hover { color: var(--accent); }
.site-title svg {
  height: 3rem;
  width: auto;
  vertical-align: baseline;
  position: relative;
  top: 0em;
}
.site-title:visited { color: #fff; }

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.5s;
}
.site-nav a:hover { color: var(--accent2) !important; }
.site-nav a:visited { color: inherit }

/* ── main content ────────────────────────────────── */
.page-content {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

/* ── single post (long article) ──────────────────── */
.post { margin-bottom: 3rem; }
.post-header { margin-bottom: 1.8rem; }
.post-title {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.post-title a:hover {
  text-decoration: underline;
}

.post-meta {
  font-family: var(--font-head);
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.post-meta time { color: var(--accent-dim); }
.post-meta a { color: var(--accent2-dim); font-weight: 500; }
.post-content { }

.post blockquote p { color: var(--accent2-lighter); margin-bottom: 0; }
.post blockquote em { font-style: italic; color: var(--accent-dim) }

/* ── feed / post preview (short) ─────────────────── */
.feed-list { list-style: none; padding: 0; }
.feed-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.feed-item:last-child { border-bottom: none; }
.feed-item h2 {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
}
.feed-item h2 a {
  color: var(--accent);
  text-decoration: none;
}
.feed-item h2 a:hover { color: var(--accent2); }
.feed-item h2 a:visited { color: var(--accent-dim); }
.feed-date {
  font-family: var(--font-head);
  font-size: 0.78rem;
  color: var(--accent-dim);
  margin-bottom: 0.35rem;
}
.feed-desc {
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ── about page ──────────────────────────────────── */
.about-page h1 {
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-page .about-lead {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.6rem;
}

/* ── footer ──────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0 2rem;
  margin-top: 3rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}
.site-footer a { color: var(--accent-dim); }

/* ── footnotes ───────────────────────────────────── */
sup a {
  font-family: var(--font-mono);
  font-size: 0.7em;
  color: var(--accent);
  text-decoration: none;
  vertical-align: super;
  line-height: 0;
  padding: 0 0.1em;
}
sup a:hover { color: var(--accent2); }

.footnotes {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.footnotes ol {
  padding-left: 1.6rem;
}
.footnotes li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}
.footnotes li p {
  display: inline;
  margin: 0;
}
.footnotes a[role="doc-backlink"] {
  font-size: 0.85em;
  color: var(--accent-dim);
  text-decoration: none;
  margin-left: 0.3em;
}
.footnotes a[role="doc-backlink"]:hover { color: var(--accent2); }

/* ── small text ──────────────────────────────────── */

/* ── misc ────────────────────────────────────────── */
.small {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: -0.6rem;
}

aside {
  color: var(--text-dim);
  font-size: .82rem;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  border: 1px var(--accent-dim) solid;
  padding: 1rem;
}

aside h3 { color: inherit; }

span.aside { color: var(--text-dim) }

ul * aside {
  margin-top: 1rem;
}

.secret {
  background: var(--accent2-dim);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.2rem;
}
.secret button.close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

a.flower-anchor::before { margin-left: .2em; content: "¶"; }
a:not(hover).flower-anchor { opacity: .18; text-decoration: none; }

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ── responsive ──────────────────────────────────── */
@media (max-width: 520px) {
  html { font-size: 15px; }
  h1 { font-size: 1.7rem; }
  .site-header { flex-direction: column; gap: 0.4rem; }
  .site-nav { gap: 1rem; }
}
