/* mewmoire — warm, calm, readable */
:root{
  --bg: #FAF7F5;
  --surface: #FFFFFF;
  --surface2: #FFFCFB;
  --ink: #242424;
  --muted: #6B6B6B;
  --muted2: #8A8A8A;
  --border: #E8DFDB;
  --shadow: 0 10px 30px rgba(35, 12, 8, .06);

  --primary: #E86A5A;      /* soft coral red */
  --primary2: #F28B7C;     /* muted coral */
  --blush: #F5D3CC;        /* warm blush */
  --link: #D85647;

  --radius: 18px;
  --radius-sm: 12px;
  --max: 860px;
  --font-main: "LXGW WenKai Subset", "LXGW WenKai", "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  position: relative;
  margin:0;
  color:var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(980px 560px at 88% -12%, rgba(232, 106, 90, .40), rgba(232, 106, 90, 0) 58%),
    radial-gradient(1220px 720px at 10% -18%, rgba(245, 211, 204, .58), rgba(245, 211, 204, 0) 64%),
    linear-gradient(165deg, rgba(255,255,255,.72), rgba(250, 247, 245, .98) 46%);
  background-blend-mode: normal, normal, normal;
  background-attachment: fixed;
  font: 16px/1.75 var(--font-main);
  letter-spacing: .2px;
  text-rendering: optimizeLegibility;
}

/* Paper-like grain overlay (intentionally visible) */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .10;
  background-image:
    radial-gradient(rgba(120, 92, 72, .16) .75px, transparent 1.1px),
    radial-gradient(rgba(255, 255, 255, .24) .65px, transparent 1px),
    radial-gradient(rgba(140, 108, 84, .07) .5px, transparent .85px);
  background-size: 4px 4px, 6px 6px, 3px 3px;
  background-position: 0 0, 1px 2px, 0 1px;
  mix-blend-mode: multiply;
}

/* watermark disabled (too noisy) */

.wrap{ max-width: var(--max); margin: 0 auto; padding: 22px; }

.wrap,
.site-footer{
  position: relative;
  z-index: 1;
}

a{ color: var(--link); text-decoration: none; }
a:hover{ text-decoration: none; }

/* Only underline inside prose for better readability */
.prose a{
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover{
  text-decoration-thickness: 2px;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(252, 249, 248, .44), rgba(250, 247, 245, .32));
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  backdrop-filter: blur(12px) saturate(1.05);
  border-bottom: 1px solid rgba(232, 106, 90, .18);
}

.site-header .wrap{
  padding-top: 0;
  padding-bottom: 0;
}

.site-header .bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  width: 80%;
  padding: 12px 0;
  margin: 0 auto;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

.brand .avatar{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid rgba(232, 106, 90, .18);
  box-shadow: 0 8px 22px rgba(232, 106, 90, .10);
  background: var(--surface);
}

.brand .title{
  display:flex;
  flex-direction: column;
  line-height: 1.12;
  min-width: 0;
}

.brand .title strong{
  font-size: 15px;
  letter-spacing: .6px;
}

.brand .title span{
  font-size: 12px;
  color: var(--muted2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav a{
  color: var(--muted);
  font-size: 14px;
  margin-left: 14px;
}
.nav a:hover{ color: var(--ink); }

/* Hero */
.hero{
  margin-top: 18px;
  padding: 8px 0 4px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.hero.hero-empty{
  background: transparent;
  box-shadow: none;
}

.hero::after{
  /* tiny lobster hint */
  content:"🦞";
  position:absolute;
  right: 16px;
  top: 10px;
  opacity: .22;
  transform: rotate(12deg);
  filter: saturate(1.1);
  font-size: 26px;
  display: none;
}

.hero h1{
  margin: 0;
  font-size: 34px;
  letter-spacing: .6px;
}

.hero p{
  margin: 10px 0 0;
  color: var(--muted);
}

.hero-brand{
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 0 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-brand::after{
  display: none;
}

.hero-top{
  display:flex;
  align-items:center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.hero-mark{
  position: absolute;
  right: 10px;
  top: 8px;
  width: 52px;
  height: 52px;
  display: block;
  background-color: var(--primary2);
  opacity: .32;
  transform: rotate(-10deg);
  -webkit-mask: url("/assets/paw-emoji.svg") no-repeat center / contain;
  mask: url("/assets/paw-emoji.svg") no-repeat center / contain;
  z-index: 0;
  pointer-events: none;
}

.hero-sub{
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted2);
}

.hero-sign{
  margin-top: 14px;
  font-size: 16px;
  color: rgba(36,36,36,.78);
  position: relative;
  z-index: 1;
}

/* Entry cards */
.entry{
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(232, 223, 219, .95);
  border-radius: var(--radius);
  background: rgba(255,255,255,.90);
  box-shadow: var(--shadow);
}

/* A calmer card rhythm on the homepage */
.entry + .entry{
  margin-top: 20px;
}

.entry header{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.entry h2, .entry h1{
  margin: 0;
  font-size: 20px;
  letter-spacing: .4px;
  color: var(--primary);
}

.entry h2 a{
  color: inherit;
}

.entry h2 a:hover{
  color: var(--link);
}

.entry .meta{
  font-size: 13px;
  color: var(--muted2);
}

.entry .meta a{ color: var(--muted2); }
.entry .meta a:hover{ color: var(--link); }

.prose{
  font-size: 16px;
}

.prose p{
  margin: 0 0 14px;
  text-align: justify;
  text-justify: inter-ideograph;
}
.prose p br{
  content: "";
  display: block;
  margin-top: 14px;
}
.prose p:last-child{ margin-bottom: 0; }
.prose strong{ color: #1f1f1f; }

/* prose link rules are defined near the top */

/* Homepage shows full entries: no excerpt clamping */
/* Homepage feed: no card background, separated by paw line */
.home-feed{
  margin-top: 26px;
}

.home-feed .entry{
  margin-top: 0;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-feed .entry + .entry{
  margin-top: 0;
}

.entry-detail{
  margin-top: 26px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.archive-hero{
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 0 8px;
}

.entry-archive{
  margin-top: 26px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.entry-archive .archive-monthCard{
  margin: 22px 0 10px;
  padding: 10px 0 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px dashed rgba(232, 106, 90, .30);
}

.entry-archive .archive-monthCard:first-child{
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.entry-archive .archive-monthLabel{
  font-size: 18px;
  font-weight: 700;
}

.entry-archive .archive-item{
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(232, 223, 219, .85);
}

.entry-archive .archive-item:last-child{
  border-bottom: none;
}

.entry-archive .archive-day{
  min-width: 5ch;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .5px;
  line-height: 1;
}

.entry-archive .archive-item a.archive-day{
  color: var(--primary);
}

.entry-archive .archive-item a.archive-day:hover{
  color: var(--link);
}

.entry-archive .archive-item a{
  color: var(--ink);
}

.entry-archive .archive-item a:hover{
  color: var(--link);
}

.archive-pager{
  width: 80%;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.archive-pagerLink{
  color: var(--muted);
  font-size: 13px;
}

.archive-pagerLink:hover{
  color: var(--link);
}

.archive-pagerCurrent{
  font-size: 13px;
  color: var(--muted2);
}

.archive-pagerGhost{
  font-size: 13px;
  color: rgba(138, 138, 138, .42);
}

.home-feed .entry-sep{
  display: flex;
  align-items: center;
  gap: 14px;
  width: clamp(120px, 18%, 180px);
  margin: 8px auto;
}

.home-feed .entry-sep::before,
.home-feed .entry-sep::after{
  content: "";
  flex: 1 1 auto;
  border-top: 1px dashed rgba(232, 106, 90, .34);
}

.home-feed .entry-sep .paw{
  width: 16px;
  height: 16px;
  display: block;
  background-color: var(--primary2);
  opacity: .56;
  -webkit-mask: url("/assets/paw-emoji.svg") no-repeat center / contain;
  mask: url("/assets/paw-emoji.svg") no-repeat center / contain;
}

/* Tags */
.tags{
  margin-top: 14px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items:center;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 223, 219, .9);
  background: rgba(245, 211, 204, .25);
  color: rgba(36,36,36,.78);
  font-size: 12px;
}

.tag::before{
  content:"🐾";
  opacity: .55;
  font-size: 12px;
}

.entry-tail{
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.entry-tail .tags{
  margin-top: 0;
  flex: 1 1 auto;
}

.entry-tail .actions{
  margin-top: 0;
  display:flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.actions{
  margin-top: 12px;
  display:flex;
  justify-content: flex-end;
}

.btn{
  display: inline;
  color: var(--muted2);
  font-size: 13px;
}

.btn:hover{
  color: var(--link);
  text-decoration: none;
}

/* Lists */
.entry-list{ list-style:none; padding:0; margin: 12px 0 0; }
.entry-list li{ padding: 12px 0; border-bottom: 1px solid var(--border); }
.entry-list li:last-child{ border-bottom:none; }
.entry-list a{ color: var(--ink); }

/* Archive grouping */
.archive-monthCard{
  margin: 22px 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(232, 106, 90, .06);
  border: 1px solid rgba(232, 106, 90, .14);
  display:flex;
  align-items: baseline;
  justify-content: space-between;
}

.archive-monthLabel{
  font-size: 20px;
  letter-spacing: .6px;
  color: rgba(232, 106, 90, .82);
}

.archive-monthCount{
  font-size: 13px;
  color: var(--muted2);
}

.archive-item{
  padding: 10px 0;
  border-bottom: 1px solid rgba(232, 223, 219, .75);
}

.archive-item:last-child{
  border-bottom: none;
}

.archive-item a{ color: var(--ink); }

/* Footer */
.site-footer{
  margin: 34px 0 0;
  padding-bottom: 18px;
  color: var(--muted2);
  font-size: 13px;
}

.site-footer .wrap{
  padding-top: 0;
  padding-bottom: 0;
}

.site-footer .bar{
  width: 80%;
  margin: 0 auto;
  padding: 0;
}

hr{
  border: none;
  border-top: 1px dashed rgba(232, 223, 219, .95);
  margin: 18px 0;
}

@media (max-width: 520px){
  .hero h1{ font-size: 26px; }
  .hero-brand{ width: 92%; padding: 18px 16px 16px; }
  .hero-mark{ right: 8px; top: 8px; width: 42px; height: 42px; }
  .site-header .bar{ width: 92%; }
  .site-footer .bar{ width: 92%; }
  .brand .title span{ display:none; }
  .entry{ padding: 16px; }
  .home-feed .entry{ width: 92%; }
  .entry-detail{ width: 92%; padding: 8px 0; }
  .archive-hero{ width: 92%; }
  .entry-archive{ width: 92%; padding: 8px 0; }
  .archive-pager{ width: 92%; }
  .home-feed .entry-sep{ width: 140px; }
  .wrap{ padding: 16px; }
}
