/* meowmeowproject — sticker aesthetic: black keylines, hard offset shadows */

:root{
  --cream:      #FDF2E9;
  --cream-deep: #F7E4D3;
  --mint:       #40D6A3;
  --mint-deep:  #1F9E71;
  --ink:        #000000;
  --paper:      #FFFFFF;
  --rule:       #D9CBBD;

  --shadow-hard:    5px 5px 0 var(--ink);
  --shadow-hard-sm: 3px 3px 0 var(--ink);

  --wrap: 1080px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"DM Sans", system-ui, -apple-system, sans-serif;
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; }
img{ max-width:100%; }

:focus-visible{ outline:3px solid var(--mint-deep); outline-offset:3px; }

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

/* ---------- masthead ---------- */

.masthead{ background:var(--cream); padding:28px 0 26px; border-bottom:2px solid var(--ink); }

.masthead-inner{
  position:relative;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:16px;
}

.menu-btn{
  justify-self:start;
  display:flex; flex-direction:column; gap:5px;
  width:34px; padding:8px 0;
  background:none; border:0; cursor:pointer;
}
.menu-btn span{ display:block; height:3px; background:var(--ink); border-radius:2px;
                transition:transform .18s ease, opacity .18s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.menu-btn[aria-expanded="true"] span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }

.menu{
  position:absolute; top:calc(100% + 14px); left:0; z-index:20;
  min-width:264px; margin:0; padding:12px; list-style:none;
  background:var(--paper); border:2.5px solid var(--ink); box-shadow:var(--shadow-hard);
}
.menu[hidden]{ display:none; }
.menu a{
  display:block; padding:11px 14px;
  font-family:"Caveat Brush", cursive; font-size:1.6rem; line-height:1.1;
  text-decoration:none;
}
.menu a:hover, .menu a:focus-visible{ background:var(--mint); }

.brand{ justify-self:center; display:flex; flex-direction:column; align-items:center; gap:6px; text-decoration:none; }
.brand img{ width:82px; height:auto; display:block; }
.wordmark{ font-family:"Caveat Brush", cursive; font-size:clamp(20px,5.5vw,26px); line-height:1; white-space:nowrap; }

/* ---------- hero ---------- */

.hero{ background:var(--cream); border-bottom:2px solid var(--ink); text-align:center; padding:76px 0 88px; }
.hero h1{ font-family:"Caveat Brush", cursive; font-weight:400;
          font-size:clamp(3.4rem,11vw,7rem); line-height:.94; margin:0 0 22px; }
.hero p{ max-width:38ch; margin:0 auto; font-size:clamp(1rem,2.3vw,1.12rem); line-height:1.6; }
.hero .rule{ width:64px; height:4px; background:var(--mint); border:2px solid var(--ink); margin:34px auto 0; }

/* ---------- section label ---------- */

.section-label{
  text-align:center; font-size:11px; font-weight:700;
  letter-spacing:.3em; text-indent:.3em; margin:0 0 46px;
}

/* ---------- songs grid ---------- */

.posts{ padding:74px 0 84px; }
.grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:44px 40px; }
.card{ display:flex; flex-direction:column; text-decoration:none; }

.thumb{
  position:relative; aspect-ratio:16/9;
  background:var(--cream-deep);
  border:2.5px solid var(--ink); box-shadow:var(--shadow-hard);
  overflow:hidden;
}
.thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }

.play{
  position:absolute; inset:0; margin:auto;
  width:60px; height:44px;
  background:var(--mint); border:2.5px solid var(--ink); border-radius:10px;
  display:grid; place-items:center;
}
.play::after{
  content:""; width:0; height:0;
  border-left:15px solid var(--ink);
  border-top:9px solid transparent; border-bottom:9px solid transparent;
  margin-left:3px;
}
.card:hover .play{ background:var(--paper); }

.card h3{ font-size:1.06rem; font-weight:700; line-height:1.35; margin:22px 0 6px; }
.card:hover h3{ text-decoration:underline; text-decoration-thickness:2px; }
.card p{ margin:0; font-size:.94rem; line-height:1.55; }

/* ---------- recent writing ---------- */

.writing{ background:var(--cream); border-top:2px solid var(--ink); padding:64px 0 70px; }
.writing ul{ margin:0 auto; padding:0; list-style:none; max-width:720px; }
.writing li{ border-bottom:1px solid var(--rule); }
.writing a{ display:flex; justify-content:space-between; gap:20px; align-items:baseline;
            padding:15px 4px; text-decoration:none; }
.writing a:hover .t{ text-decoration:underline; text-decoration-thickness:2px; }
.writing .t{ font-weight:500; }
.writing .d{ font-size:.82rem; color:#6a6a6a; white-space:nowrap; }
.writing .more{ text-align:center; margin:34px 0 0; }

/* ---------- buttons ---------- */

.btn{
  display:inline-block; padding:14px 28px;
  font-weight:700; font-size:1rem; text-decoration:none;
  background:var(--mint); border:2.5px solid var(--ink); box-shadow:var(--shadow-hard-sm);
}
.btn:active{ transform:translate(3px,3px); box-shadow:none; }

/* ---------- album ---------- */

.album{ background:var(--cream); border-top:2px solid var(--ink); padding:70px 0 76px; }
.album-inner{ display:grid; grid-template-columns:minmax(0,400px) minmax(0,1fr); gap:56px; align-items:center; }
/* height:auto is load-bearing — the img has a height attribute that would
   otherwise win over aspect-ratio and stretch the box, cropping the sides. */
.album-art{ width:100%; height:auto; display:block;
            border:2.5px solid var(--ink); box-shadow:var(--shadow-hard); }
.album-text{ text-align:left; }
.album h2{ font-family:"Caveat Brush", cursive; font-weight:400;
           font-size:clamp(2.8rem,8vw,4.4rem); line-height:1; margin:0 0 2px; }
.album .kicker{ font-size:.95rem; margin:0 0 22px; }
.album p.blurb{ max-width:42ch; margin:0 0 30px; }

/* ---------- archive ---------- */

.archive{ padding:64px 0 80px; }
.archive h1{ font-family:"Caveat Brush", cursive; font-weight:400;
             font-size:clamp(3rem,9vw,5rem); line-height:1; margin:0 0 8px; text-align:center; }
.archive .count{ text-align:center; margin:0 0 54px; font-size:.95rem; }

.year{ font-size:.8rem; font-weight:700; letter-spacing:.24em; text-indent:.24em;
       margin:52px 0 18px; padding-bottom:8px; border-bottom:2px solid var(--ink); }
.year:first-of-type{ margin-top:0; }

.entry{ display:block; padding:20px 0; border-bottom:1px solid var(--rule); text-decoration:none; }
.entry:hover{ background:var(--cream); }
.entry h2{ font-size:1.12rem; font-weight:700; line-height:1.3; margin:0 0 5px;
           font-family:"DM Sans", sans-serif; letter-spacing:0; }
.entry:hover h2{ text-decoration:underline; text-decoration-thickness:2px; }
.entry .meta{ font-size:.8rem; color:#6a6a6a; margin:0 0 7px; }
.entry p.ex{ margin:0; font-size:.93rem; line-height:1.55; max-width:70ch; }

.tags{ margin:9px 0 0; font-size:.74rem; }
.tag{ display:inline-block; margin:0 5px 5px 0; padding:2px 8px;
      background:var(--mint); border:1.5px solid var(--ink); }

/* ---------- single post ---------- */

.post{ padding:56px 0 70px; }
.post .wrap{ max-width:720px; }

.post-head{ margin:0 0 40px; padding-bottom:26px; border-bottom:2px solid var(--ink); }
.post-head h1{ font-family:"Caveat Brush", cursive; font-weight:400;
               font-size:clamp(2.4rem,7vw,3.8rem); line-height:1.02; margin:0 0 12px; }
.post-head .meta{ font-size:.85rem; color:#6a6a6a; margin:0; }

.prose{ font-size:1.08rem; line-height:1.75; }
.prose p{ margin:0 0 1.35em; }
.prose h2,.prose h3{ font-family:"Caveat Brush", cursive; font-weight:400;
                     line-height:1.1; margin:1.8em 0 .5em; }
.prose h2{ font-size:2.1rem; }
.prose h3{ font-size:1.6rem; }
.prose a{ text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:2px; }
.prose a:hover{ background:var(--mint); }
.prose img{ display:block; width:auto; height:auto; max-width:100%; margin:2em auto;
            border:2.5px solid var(--ink); box-shadow:var(--shadow-hard); }
.prose figure{ margin:2em 0; }
.prose figcaption{ font-size:.85rem; color:#6a6a6a; text-align:center; margin-top:.7em; }
.prose blockquote{
  margin:1.8em 0; padding:18px 22px;
  background:var(--cream); border:2.5px solid var(--ink); box-shadow:var(--shadow-hard-sm);
}
.prose blockquote p:last-child{ margin-bottom:0; }
.prose ul,.prose ol{ margin:0 0 1.35em; padding-left:1.4em; }
.prose li{ margin-bottom:.5em; }
.prose hr{ border:0; border-top:2px solid var(--ink); margin:2.4em 0; }

.video{ position:relative; padding-bottom:56.25%; height:0; margin:2em 0;
        border:2.5px solid var(--ink); box-shadow:var(--shadow-hard); background:var(--cream-deep); }
.video iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

.postnav{ display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
          margin:52px 0 0; padding-top:24px; border-top:2px solid var(--ink); }
.pn{ font-size:.9rem; font-weight:500; text-decoration:none; max-width:48%; }
.pn:hover{ text-decoration:underline; }
.pn-r{ margin-left:auto; text-align:right; }
.back{ text-align:center; margin:44px 0 0; }

/* ---------- private build banner ---------- */

.private-banner{
  background:#FFD86B; border-bottom:2.5px solid var(--ink);
  padding:11px 24px; text-align:center; font-size:.88rem;
}
.private-banner code{ background:var(--paper); border:1.5px solid var(--ink); padding:0 5px; }

.tag-private{ background:#FFD86B; margin-right:8px; }

.vid{ display:block; width:100%; height:auto; margin:2em 0;
       border:2.5px solid var(--ink); box-shadow:var(--shadow-hard); background:#000; }
.aud{ display:block; width:100%; margin:1.6em 0; }

/* ---------- comments ---------- */

.comments{ margin:56px 0 0; padding-top:34px; border-top:2px solid var(--ink); }
.comments .section-label{ text-align:left; margin:0 0 22px; }

.cmt-list{ margin:0; padding:0; list-style:none; }
.cmt{
  margin:0 0 18px; padding:16px 20px;
  background:var(--cream); border:2.5px solid var(--ink); box-shadow:var(--shadow-hard-sm);
}
.cmt-meta{ margin:0 0 8px; font-size:.82rem; }
.cmt-meta strong{ font-weight:700; }
.cmt-meta time{ color:#6a6a6a; margin-left:8px; }
.cmt p{ margin:0 0 .8em; font-size:.97rem; line-height:1.6; }
.cmt p:last-child{ margin-bottom:0; }
.cmt-note{ font-size:.78rem; color:#6a6a6a; margin:14px 0 0; }

#cusdis_thread{ margin-top:8px; }

.reply{
  margin:40px 0 0; padding:20px 24px;
  background:var(--cream); border:2.5px solid var(--ink); box-shadow:var(--shadow-hard-sm);
  text-align:center;
}
.reply p{ margin:0; font-size:.97rem; }
.reply-addr{ margin-top:6px !important; font-size:1.05rem !important; }
.reply-addr a{ word-break:break-all; }
.reply a{ font-weight:700; text-decoration:underline; text-decoration-thickness:2px;
          text-underline-offset:2px; }
.reply a:hover{ background:var(--mint); }

/* ---------- footer ---------- */

.foot{ background:var(--cream); border-top:2px solid var(--ink); padding:52px 0 58px; text-align:center; }
.foot img{ width:56px; height:auto; margin-bottom:16px; }
.foot-links{ display:flex; justify-content:center; flex-wrap:wrap; gap:26px;
             margin:0 0 22px; padding:0; list-style:none; font-size:.94rem; font-weight:500; }
.foot-links a{ text-decoration:none; }
.foot-links a:hover{ text-decoration:underline; }
.foot small{ display:block; font-size:.82rem; color:#5c5c5c; }

/* ---------- responsive ---------- */

@media (max-width:720px){
  .grid{ grid-template-columns:1fr; gap:38px; }
  .hero{ padding:56px 0 64px; }
  .album-inner{ grid-template-columns:1fr; gap:32px; justify-items:center; }
  .album-art{ max-width:74vw; }
  .album-text{ text-align:center; }
  .album p.blurb{ margin-left:auto; margin-right:auto; }
  .pn{ max-width:100%; }
  .pn-r{ text-align:left; margin-left:0; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
}

@media print{
  .masthead,.foot,.postnav,.back{ display:none; }
  body{ font-size:12pt; }
  .prose img{ box-shadow:none; }
}
