/* Azusa's diary — kawaii theme (theme colours adapted from parsherr/kawaii-site, Apache-2.0) */
* { box-sizing: border-box; scrollbar-color: #FEDAE6 #fff; }
a, button { cursor: url('/img/cursor.gif'), pointer; }

@font-face {
  font-family: "LucidaHand";
  src: url('/fonts/lucida-handwriting.woff2') format('woff2');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "KawaiiJP";
  src: url('/fonts/kawaii-jp.woff2') format('woff2');
  font-weight: normal; font-style: normal; font-display: swap;
  unicode-range: U+3040-30FF, U+31F0-31FF;
}

html {
  background: #FFD2E9 url('/img/candylighter.jpg') center/cover fixed;
  font-family: "LucidaHand", "KawaiiJP", "Comic Sans MS", "Chalkboard SE",
    "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Segoe UI Emoji", cursive, sans-serif;
  font-size: 12pt;
  cursor: url('/img/cursor.gif'), auto;
  -webkit-text-size-adjust: 100%;
}
body { margin: 0; padding: 14px 8px 40px; color: #95406B; line-height: 1.6; }
img { max-width: 100%; height: auto; }

a { color: #BF3C8E; font-weight: bold; text-decoration: none; }
a:hover, a:focus-visible { color: #A43379; text-decoration: underline wavy #F5B2C3; text-underline-offset: 3px; }
:focus-visible { outline: 2px dashed #F5B2C3; outline-offset: 2px; }

/* ---- shell ---- */
.wrap {
  max-width: 760px; margin: 0 auto; position: relative;
  background: #fff url('/img/cloudslighter.png') 0 0/200px repeat;
  border-image: url('/img/cloud.png') 9 fill round;
  border-width: 9px; border-style: solid;
  filter: drop-shadow(0 0 3px rgba(212, 133, 176, .9));
}
.sheet {
  background: rgba(255, 255, 255, .86);
  border-radius: 10px;
  margin: 6px;
  padding: 14px 16px 20px;
}

/* ---- header ---- */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; padding-bottom: 10px; border-bottom: 2px dashed #F5B2C3; margin-bottom: 14px;
}
.logo { font-size: 21pt; color: #fff; letter-spacing: 1px;
  text-shadow: -1.1px 0 #D663A2, 0 1.1px #D663A2, 1.1px 0 #D663A2, 0 -1.1px #D663A2; }
.logo:hover { text-decoration: none; color: #fff; }
nav.pills { display: flex; flex-wrap: wrap; gap: 6px; font-size: 10.5pt; }
nav.pills a {
  background: #fff; border: 2px solid #FEDAE6; border-radius: 999px;
  padding: 2px 10px; font-weight: normal; color: #BF3C8E; transition: transform .15s, border-color .15s;
}
nav.pills a:hover { transform: translateY(-2px) rotate(-1deg); border-color: #F5B2C3; text-decoration: none; }
nav.pills a[aria-current="page"] { background: #FFEAF3; border-color: #F5B2C3; }

/* ---- hero ---- */
.hero { text-align: center; padding: 6px 0 14px; }
.hero h1 { font-size: 30pt; margin: 0; color: #fff; letter-spacing: 1px;
  text-shadow: -1.3px 0 #D663A2, 0 1.3px #D663A2, 1.3px 0 #D663A2, 0 -1.3px #D663A2; }
.hero p { margin: 6px 0 0; color: #95406B; font-size: 11pt; }

.marquee { overflow: hidden; white-space: nowrap; margin: 12px 0; }
.marquee > div { display: inline-block; animation: scroll 38s linear infinite; }
.marquee img { padding: 0 4px; vertical-align: middle; height: 20px; width: auto; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee > div { animation: none; } }

/* ---- post list ---- */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card {
  display: block; background: #fff; border: 2px solid #FEDAE6; border-radius: 12px;
  padding: 12px 14px; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px) rotate(-.4deg); border-color: #F5B2C3;
  box-shadow: 0 4px 0 rgba(245, 178, 195, .35); text-decoration: none; }
.card h2 { font-size: 16pt; margin: 0 0 4px; color: #BF3C8E; }
.card .meta { font-size: 9.5pt; color: #C2709A; font-weight: normal; }
.card p { margin: 6px 0 0; font-size: 10.5pt; color: #95406B; font-weight: normal; }

.tag {
  display: inline-block; font-size: 9pt; font-weight: normal; color: #8a5a9e;
  background: #F3E6FF; border: 1px solid #E2CCF5; border-radius: 8px; padding: 0 7px; margin: 0 4px 0 0;
}
.tag:hover { text-decoration: none; border-color: #C9A8EA; }

/* ---- article ---- */
article.post { font-size: 11.5pt; }
article.post h1 { font-size: 24pt; margin: 4px 0 8px; color: #C2357F; line-height: 1.3;
  text-shadow: 0 2px 0 #FFD6E9, 0 3px 6px rgba(245,178,195,.45); padding-bottom: 2px; }
.post-meta { font-size: 10pt; color: #C2709A; border-bottom: 2px dashed #F5B2C3; padding-bottom: 8px; margin-bottom: 14px; }
.post-body h2 { font-size: 17pt; color: #BF3C8E; border-left: 6px solid #F5B2C3;
  padding-left: 8px; margin: 22px 0 8px; }
.post-body h3 { font-size: 13.5pt; color: #BF3C8E; margin: 18px 0 6px; }
.post-body p { margin: 10px 0; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li { margin: 4px 0; }
.post-body img { border-radius: 10px; border: 3px solid #FEDAE6; padding: 3px; display: block; margin: 12px auto; }
.post-body blockquote { margin: 14px 0; padding: 8px 12px; background: #FFF6FA;
  border: 2px dashed #F5B2C3; border-radius: 10px; color: #8a5a9e; }
.post-body blockquote p { margin: 4px 0; }
.post-body code { background: #FFF0F6; border: 1px solid #FEDAE6; border-radius: 5px;
  padding: 1px 4px; font-family: "Cascadia Code", Consolas, "Courier New", monospace; font-size: 9.5pt; color: #A43379; }
.post-body pre { background: #FFF6FA; border: 2px solid #FEDAE6; border-radius: 10px;
  padding: 10px 12px; overflow: auto; }
.post-body pre code { background: none; border: 0; padding: 0; font-size: 9.5pt; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 10pt; margin: 12px 0; }
.post-body th, .post-body td { border: 1px solid #FEDAE6; padding: 5px 8px; text-align: left; }
.post-body th { background: #FFF0F6; }
.post-body hr { border: 0; border-top: 2px dashed #F5B2C3; margin: 20px 0; }

.postnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px;
  border-top: 2px dashed #F5B2C3; padding-top: 12px; font-size: 10.5pt; }
.postnav a { background: #fff; border: 2px solid #FEDAE6; border-radius: 10px; padding: 6px 10px; max-width: 48%; }
.postnav a:hover { border-color: #F5B2C3; text-decoration: none; }
.postnav span { color: #C2709A; font-size: 9pt; display: block; font-weight: normal; }

/* ---- misc ---- */
.section-title { font-size: 16pt; color: #fff; margin: 18px 0 10px;
  text-shadow: -.8px 0 #D663A2, 0 .8px #D663A2, .8px 0 #D663A2, 0 -.8px #D663A2; }
.pager { display: flex; gap: 8px; justify-content: center; margin: 18px 0 0; font-size: 10.5pt; }
.pager a, .pager span { border: 2px solid #FEDAE6; background: #fff; border-radius: 999px; padding: 3px 12px; }
.empty { text-align: center; font-size: 10.5pt; color: #C2709A; padding: 20px 0; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

footer.site { margin-top: 26px; padding-top: 12px; border-top: 2px dashed #F5B2C3;
  text-align: center; font-size: 9.5pt; color: #C2709A; }
footer.site img { vertical-align: middle; padding: 0 3px; }

@media (max-width: 560px) {
  body { padding: 8px 4px 24px; }
  .sheet { margin: 4px; padding: 10px 10px 16px; }
  .hero h1 { font-size: 23pt; }
  article.post h1 { font-size: 20pt; }
  .logo { font-size: 17pt; }
}
@media print {
  html { background: #fff; }
  .top, footer.site, .marquee, .postnav { display: none; }
}
