/* ============================================================
   ceejay + diggy — shared foundation
   Loaded by every page except the word search, which is kept
   self-contained on purpose.
   ============================================================ */
:root{
  color-scheme: light;
  --card:#FFFCFA;
  --ink:#2E5C43;
  --ink-soft:#4E7F63;
  --mute:#9E7688;
  --rose:#E8437E;
  --rose-deep:#B62A5C;
  --rose-soft:#FFD9E5;
  --rose-line:#F6B4CB;
  --leaf:#5FB268;
  --leaf-soft:#DCEFD6;
  --leaf-line:#A9D8A4;
  --shadow:0 22px 48px -30px rgba(182,42,92,.55);
  --font-display:"Fredoka","Baloo 2","Segoe UI",system-ui,sans-serif;
  --font-body:"Quicksand","Segoe UI",system-ui,sans-serif;
  --font-hand:"Caveat","Segoe UI",system-ui,cursive;
}
*{box-sizing:border-box}
html,body{margin:0}
body{
  min-height:100vh;
  min-height:100dvh;
  background:
    radial-gradient(900px 540px at 6% -10%, #FFD5E7 0%, rgba(255,213,231,0) 62%),
    radial-gradient(780px 460px at 98% 0%, #DBF2D2 0%, rgba(219,242,210,0) 60%),
    radial-gradient(840px 520px at 82% 104%, #FFDDEA 0%, rgba(255,221,234,0) 62%),
    radial-gradient(720px 440px at 2% 92%, #E2F4D9 0%, rgba(226,244,217,0) 60%),
    linear-gradient(168deg, #FFF9F5 0%, #FFF2F7 54%, #FAFBF2 100%);
  background-attachment:fixed;
  color:var(--ink);
  font-family:var(--font-body);
  font-weight:600;
  font-size:clamp(.98rem,.95rem + .15vw,1.06rem);
  line-height:1.6;
  -webkit-text-size-adjust:100%;
}
body::before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.42;
  background-image:var(--tile);background-size:118px 118px;
}
.wrap{position:relative;z-index:1;padding:clamp(14px,3vw,40px);display:flex;justify-content:center}
.card{
  width:min(880px,100%);
  background:var(--card);
  border:2px dashed var(--rose-line);
  border-radius:26px;
  box-shadow:var(--shadow);
  padding:clamp(22px,3.4vw,44px);
  animation:cardIn .5s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes cardIn{from{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:none}}

/* ---------- type ---------- */
.eyebrow{
  margin:0;font-family:var(--font-hand);font-weight:700;color:var(--rose);
  font-size:clamp(1.2rem,1.05rem + .7vw,1.6rem);line-height:1.15;
}
h1{
  font-family:var(--font-display);font-weight:600;margin:0;
  font-size:clamp(1.9rem,1.4rem + 2.2vw,3rem);line-height:1.06;
  letter-spacing:-.01em;text-wrap:balance;
}
h2{
  font-family:var(--font-display);font-weight:600;margin:0;
  font-size:clamp(1.35rem,1.2rem + .9vw,1.8rem);line-height:1.1;letter-spacing:-.005em;
}
.lede{margin:2px auto 0;max-width:46ch;color:var(--ink-soft);
  font-size:clamp(1rem,.95rem + .35vw,1.12rem)}

.pagehead{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}
.marks{display:flex;gap:.28em;align-items:center;font-size:clamp(2.2rem,7vw,3.2rem);line-height:1}
.marks svg{width:1em;height:1em;flex:none}

/* ---------- section headers ---------- */
.section{margin-top:clamp(30px,5vw,48px)}
.section-head{
  display:flex;align-items:baseline;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding-bottom:10px;margin-bottom:clamp(16px,2.6vw,24px);
  border-bottom:2px dashed var(--rose-line);
}
.section-head p{margin:0;font-size:.88rem;color:var(--mute)}

/* ---------- entry cards (cover on top, words beneath) ---------- */
.items{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(228px,1fr));
  gap:clamp(18px,2.8vw,30px);justify-content:center;
}
.items--tight{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:clamp(14px,2vw,20px)}
.item{width:100%;max-width:340px;justify-self:center}
.items--tight .item{max-width:260px}
.item a,.item .locked{
  display:flex;flex-direction:column;gap:13px;
  text-decoration:none;color:inherit;transition:transform .18s ease;
}
.item a:hover{transform:translateY(-4px)}
.item a:focus-visible{outline:3px solid var(--leaf);outline-offset:5px;border-radius:20px}
.cover{
  display:block;aspect-ratio:1;border-radius:18px;overflow:hidden;
  border:2px solid var(--rose-line);background:#fff;
  box-shadow:0 16px 30px -26px rgba(182,42,92,.9);
  transition:border-color .18s ease,box-shadow .18s ease;
}
.item a:hover .cover{border-color:var(--rose);box-shadow:0 22px 34px -24px rgba(182,42,92,.95)}
.cover svg,.cover img{display:block;width:100%;height:100%;object-fit:cover}
.meta{display:flex;flex-direction:column;gap:3px}
.kicker{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-weight:800;font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--rose);
}
.title{font-family:var(--font-display);font-weight:600;line-height:1.15;
  font-size:clamp(1.1rem,1rem + .5vw,1.38rem)}
.items--tight .title{font-size:clamp(.98rem,.94rem + .3vw,1.14rem)}
.desc{font-size:.9rem;color:var(--ink-soft);line-height:1.5}
.items--tight .desc{font-size:.82rem}

.item--locked .cover{border-style:dashed;box-shadow:none;opacity:.85}
.item--locked .kicker,.item--locked .title,.item--locked .desc{color:var(--mute)}

/* ---------- links & chips ---------- */
.linkish{
  background:none;border:0;padding:0;font:inherit;color:var(--rose);cursor:pointer;
  text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px;
}
.linkish:hover{color:var(--rose-deep)}
.linkish:focus-visible{outline:2px solid var(--leaf);outline-offset:3px;border-radius:6px}
.backlink{
  display:inline-flex;align-items:center;gap:6px;text-decoration:none;
  font-weight:700;font-size:.8rem;color:var(--rose-deep);
  background:var(--rose-soft);padding:.42em 1.1em;border-radius:999px;
  transition:background .15s ease,transform .15s ease;
}
.backlink:hover{background:var(--rose-line);transform:translateX(-2px)}
.backlink:focus-visible{outline:2px solid var(--rose);outline-offset:2px}
.topbar{display:flex;margin-bottom:clamp(10px,1.6vw,18px)}

.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:clamp(18px,2.6vw,26px)}
.chip{
  font:inherit;font-size:.78rem;font-weight:700;cursor:pointer;
  padding:.42em 1em;border-radius:999px;border:2px solid var(--rose-line);
  background:transparent;color:var(--mute);
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.chip:hover{border-color:var(--rose);color:var(--rose-deep)}
.chip[aria-pressed="true"]{background:var(--rose);border-color:var(--rose);color:#fff}
.chip:focus-visible{outline:2px solid var(--leaf);outline-offset:2px}

.yeargroup{margin-bottom:clamp(26px,4vw,38px)}
.yearlabel{
  font-family:var(--font-hand);font-size:clamp(1.4rem,1.2rem + .8vw,1.9rem);
  color:var(--rose);margin:0 0 14px;
}
.empty{
  text-align:center;color:var(--mute);padding:clamp(26px,5vw,44px) 16px;
  border:2px dashed var(--rose-line);border-radius:18px;
}

footer{margin-top:clamp(26px,4vw,38px);text-align:center;
  font-family:var(--font-hand);font-size:1.2rem;color:var(--mute)}

@media (max-width:640px){
  .wrap{padding:10px}
  .card{padding:20px 15px 26px;border-radius:20px}
  .items{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}
  .items--tight{grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:12px}
  .desc{font-size:.84rem}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms !important;transition-duration:.001ms !important}
}
