:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --ink: #2b2333;
  --muted: #6f6680;
  --accent: #6b3fa0;
  --accent-deep: #4a2a73;
  --gold: #a8853b;
  --gold-soft: #cdb06a;
  --border: #e3d9c6;
  --quote-bg: #f2ebfa;
  --shadow: 0 2px 14px rgba(74, 42, 115, 0.08);
  --maxw: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15101f;
    --surface: #1e1730;
    --ink: #ece5f4;
    --muted: #a79dbb;
    --accent: #b48ae0;
    --accent-deep: #cbaaf0;
    --gold: #d0b166;
    --gold-soft: #9a7f45;
    --border: #35294d;
    --quote-bg: #261d3d;
    --shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  font-size: 1.02rem;
  line-height: 2;
  font-feature-settings: "palt";
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding: 0.85rem 1.4rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--gold));
  opacity: 0.85;
}
.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  text-decoration: none;
}
.brand::before {
  content: "\2726\FE0E";
  color: var(--gold);
  margin-right: 0.45rem;
  font-size: 0.9em;
}
.tagline { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.04em; }
.site-header nav { margin-left: auto; }
.pair-link {
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 0.2rem 0.95rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}
.pair-link:hover { background: var(--gold); color: var(--surface); }

/* ---------- layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 2.75rem 1.4rem 5rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

/* ---------- article ---------- */
article h1 {
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  line-height: 1.65;
  letter-spacing: 0.02em;
  margin: 0.5rem 0 0.75rem;
  color: var(--accent-deep);
}
.pubdate, .date { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em; }
article h2 {
  font-size: 1.25rem;
  line-height: 1.7;
  margin: 3rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  color: var(--accent-deep);
}
article h2::before {
  content: "\25C6\FE0E";
  color: var(--gold);
  font-size: 0.7em;
  margin-right: 0.55rem;
  vertical-align: 0.12em;
}
article .body > p { margin: 1.4rem 0; }
article strong { color: var(--accent-deep); }
hr { border: none; border-top: 1px solid var(--border); margin: 3rem auto; width: 60%; }
article .body > hr + p, article .body > p:last-child em {
  color: var(--muted);
}
article .body > hr ~ p { color: var(--muted); font-size: 0.85rem; line-height: 1.9; }

.draft-banner, .pr-banner {
  border: 1px dashed var(--gold);
  color: var(--gold);
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 0.06em;
  margin-right: 0.5rem;
}

/* ---------- quote figure ---------- */
.yquote {
  position: relative;
  margin: 2.2rem 0;
  padding: 1.6rem 1.5rem 1.1rem 1.7rem;
  background: var(--quote-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 4px 14px 14px 4px;
  box-shadow: var(--shadow);
}
.yquote::before {
  content: "\300C";
  position: absolute;
  top: -0.85rem;
  left: 0.7rem;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--gold);
  background: transparent;
}
.yquote blockquote {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.96rem;
  line-height: 1.95;
}
.yquote figcaption {
  margin-top: 0.85rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}
.yquote .quote-note { margin-top: 0.4rem; color: var(--muted); font-size: 0.76rem; font-style: italic; }
.twitter-tweet { margin: 2.2rem auto; }

/* ---------- index ---------- */
.article-list { list-style: none; padding: 0; margin-top: 2rem; }
.article-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.article-list li:hover { transform: translateY(-2px); border-color: var(--gold-soft); }
.article-list li > a {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--accent-deep);
  text-decoration: none;
}
.article-list li > a:hover { color: var(--accent); }
.article-list .desc { color: var(--muted); font-size: 0.88rem; line-height: 1.8; margin: 0.5rem 0 0; }
.article-list .empty {
  text-align: center;
  color: var(--muted);
  border-style: dashed;
  box-shadow: none;
}
.badge {
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  font-size: 0.68rem;
  padding: 0.05rem 0.45rem;
  margin-left: 0.55rem;
  vertical-align: 0.15em;
  letter-spacing: 0.08em;
}
h1 + .article-list { margin-top: 1.5rem; }
main > h1 {
  font-size: 1.4rem;
  color: var(--accent-deep);
  letter-spacing: 0.05em;
}

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 2.2rem 0 2.6rem;
  border-top: 1px solid var(--border);
}
.site-footer::before {
  content: "\2726\FE0E \2004 \25C6\FE0E \2004 \2726\FE0E";
  display: block;
  color: var(--gold-soft);
  font-size: 0.7rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5em;
}
.site-footer a { color: var(--muted); }

/* ---------- landing ---------- */
.landing { background: radial-gradient(ellipse at 50% -10%, color-mix(in srgb, var(--accent) 14%, var(--bg)) 0%, var(--bg) 55%); }
.landing-main {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1.4rem;
}
.landing-ornament {
  color: var(--gold);
  letter-spacing: 0.9em;
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
}
.landing-main h1 {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 3.4rem);
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  line-height: 1.3;
}
.landing-main .hime {
  display: block;
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--gold);
  letter-spacing: 0.45em;
  margin-top: 0.9rem;
  text-indent: 0.45em;
}
.landing-lede {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  margin: 1.6rem 0 0;
  line-height: 2.1;
}
.lang-choice {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.8rem;
}
.lang-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 17.5rem;
  max-width: 100%;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.lang-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.lang-card strong { color: var(--accent-deep); font-size: 1.15rem; letter-spacing: 0.1em; }
.lang-card span { font-size: 0.84rem; color: var(--muted); line-height: 1.9; }
