@font-face{font-family:Fraunces;src:url("/shared/fonts/Fraunces.woff") format("woff");font-weight:100 900;font-display:swap}
@font-face{font-family:Fraunces;src:url("/shared/fonts/Fraunces-Italic.woff") format("woff");font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:Apple;src:url("/shared/fonts/HomemadeApple.woff") format("woff");font-weight:400;font-display:swap}
@font-face{font-family:Caveat;src:url("/shared/fonts/Caveat.woff") format("woff");font-weight:400 700;font-display:swap}
@font-face{font-family:Elite;src:url("/shared/fonts/SpecialElite.woff") format("woff");font-weight:400;font-display:swap}
@font-face{font-family:Instr;src:url("/shared/fonts/InstrumentSerif.woff") format("woff");font-weight:400;font-display:swap}
@font-face{font-family:Instr;src:url("/shared/fonts/InstrumentSerif-Italic.woff") format("woff");font-weight:400;font-style:italic;font-display:swap}

:root{--paper:#f3e6c8;--kraft:#c4a574;--ink:#3a2a1a;--rose:#c97c5d;--olive:#6b8f71;--edge:#6b4f2a}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:#e8d9b8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  color:var(--ink);font-family:Instr,Georgia,serif;line-height:1.45;overflow-x:hidden;
}
body.viewer-open{overflow:hidden}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
:focus-visible{outline:2px dashed var(--rose);outline-offset:3px}
.skip{position:absolute;left:-9999px;top:0}
.skip:focus{left:12px;top:8px;z-index:200;background:var(--ink);color:var(--paper);padding:6px 12px}
.banner{background:#3a2a1a;color:#f3e6c8;text-align:center;font-family:Elite,monospace;font-size:11px;letter-spacing:.12em;padding:7px 12px}
.book{
  max-width:1180px;margin:24px auto 64px;background:var(--paper);
  box-shadow:8px 12px 0 rgba(80,50,20,.12),0 0 0 1px rgba(80,50,20,.15);
  position:relative;padding-bottom:24px;overflow-x:clip;
}
.book:before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:42px;z-index:1;
  background:repeating-linear-gradient(to bottom,#c97c5d 0 18px,transparent 18px 52px),linear-gradient(90deg,#8a4a32,#c97c5d 40%,#8a4a32);
  border-right:3px solid #6b3a28;
}
.top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:22px 28px 10px 72px}
.logo{font-family:Apple,cursive;font-size:22px;text-decoration:none}
.top nav{display:flex;gap:16px;flex-wrap:wrap}
.top nav a{text-decoration:none;font-family:Caveat,cursive;font-size:22px;border-bottom:2px dotted #c97c5d}

/* hero */
.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:32px;align-items:center;padding:20px 36px 36px 72px}
.hero h1{font-family:Fraunces,Georgia,serif;font-weight:500;font-style:italic;font-size:clamp(40px,6vw,72px);line-height:.95}
.hero p{font-family:Caveat,cursive;font-size:26px;margin-top:12px;max-width:26ch;line-height:1.3}
.hero .count{font-family:Elite,monospace;font-size:13px;margin-top:18px;letter-spacing:.04em;max-width:none}
.polaroid-hero{
  background:#fff;padding:14px 14px 18px;width:min(100%,380px);justify-self:center;
  transform:rotate(3deg);box-shadow:4px 8px 16px rgba(80,50,20,.2);position:relative;
}
.polaroid-hero .washi{position:absolute;top:-14px;left:40px;width:90px;height:22px;background:#81b29a;opacity:.85;transform:rotate(-8deg);z-index:1}
.polaroid-hero img{display:block;width:100%;height:auto}
.polaroid-hero figcaption{font-family:Apple,cursive;font-size:16px;text-align:center;margin-top:14px}

/* tabs + page */
.work{padding:8px 28px 28px 72px}
.tabs{display:flex;flex-wrap:wrap;gap:4px 2px;align-items:end;border-bottom:3px solid var(--edge);padding-left:4px}
.tab{
  display:inline-block;text-decoration:none;cursor:pointer;background:#efe0c0;padding:8px 14px 10px;border-radius:8px 8px 0 0;
  font-family:Elite,monospace;font-size:12px;letter-spacing:.04em;
  transform:translateY(4px);border:2px solid var(--edge);border-bottom:0;position:relative;z-index:1;white-space:nowrap
}
.tab:hover{transform:translateY(1px)}
.tab[aria-current]{background:var(--tab);color:#fff;transform:translateY(0);z-index:3}
.tab small{font-size:10px;opacity:.75;margin-left:4px}
.tab.soon{border-style:dashed;color:#7a6550;cursor:default;background:#f1e5c9}
.add-tab{border-style:dashed;background:transparent;color:#7a6550}
.add-tab[aria-expanded="true"]{background:#fff8e6;color:var(--ink)}
.add-note{display:none;font-family:Caveat,cursive;font-size:21px;background:#fffbe9;border:2px dashed #b89a6a;padding:10px 14px;margin:0 0 18px;max-width:60ch;transform:rotate(-.6deg)}
.add-note.open{display:block}
.page{background:#f7edd4;border:3px solid var(--edge);border-top:0;padding:28px 20px 40px;min-height:200px}
.sec-note{font-family:Caveat,cursive;font-size:22px;margin-bottom:18px;line-height:1.3}
.shelf + .shelf{margin-top:44px}
.shelf-label{font-family:Elite,monospace;font-size:12px;letter-spacing:.1em;text-transform:uppercase;display:flex;align-items:center;gap:12px;margin:0 0 22px}
.shelf-label:after{content:"";flex:1;border-top:2px dotted #b89a6a}
.page-head{display:flex;justify-content:space-between;align-items:end;flex-wrap:wrap;gap:8px 24px;margin-bottom:10px}
.page-head h2{font-family:Fraunces,Georgia,serif;font-style:italic;font-weight:500;font-size:clamp(30px,4vw,44px);line-height:1}
.page-head .kind{font-family:Elite,monospace;font-size:12px;letter-spacing:.06em}
.back{font-family:Caveat,cursive;font-size:22px;text-decoration:none;border-bottom:2px dotted var(--rose);display:inline-block;margin-bottom:14px}
.start{display:inline-block;font-family:Caveat,cursive;font-size:22px;text-decoration:none;background:#fff;padding:4px 14px;box-shadow:2px 3px 0 rgba(80,50,20,.18);transform:rotate(-1deg);margin:4px 0 18px}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px 22px}
.item{transform:rotate(var(--rot,0deg));position:relative}
.item > a,.item > button{text-decoration:none;color:inherit;display:block;width:100%;text-align:center}
.item:hover{z-index:2}
.item > a:hover,.item > button:hover{transform:translateY(-3px) rotate(calc(var(--rot,0deg) * -.5))}
.item > a,.item > button{transition:transform .2s}
.polaroid{background:#fff;padding:12px 12px 0;box-shadow:3px 5px 10px rgba(80,50,20,.18);position:relative}
.pic{display:block;aspect-ratio:4/3;background:#f4efe4;overflow:hidden}
.pic img{display:block;width:100%;height:100%;object-fit:contain}
.cap{display:block;padding:10px 4px 14px;text-align:center}
.torn{background:#f7f0e0;padding:16px 14px 8px;position:relative;box-shadow:3px 5px 10px rgba(80,50,20,.12);
  clip-path:polygon(0 8px,8px 0,22px 10px,40px 0,60px 8px,80px 0,100% 12px,100% calc(100% - 8px),calc(100% - 10px) 100%,70% calc(100% - 6px),50% 100%,30% calc(100% - 8px),10px 100%,0 calc(100% - 10px))}
.tape{position:absolute;top:-10px;left:30%;width:70px;height:18px;background:var(--tape);opacity:.8;transform:rotate(-6deg);z-index:2}
.ct{display:block;font-family:Apple,cursive;font-size:15px;line-height:1.6}
.cm{display:block;font-family:Elite,monospace;font-size:11px;margin-top:2px}
.ph{display:block;font-family:Caveat,cursive;font-size:18px;color:#8a4a32}
.untitled{opacity:.6;font-size:13px}

/* booklets (stories & books): a stack of pages */
.booklet{position:relative;background:#fff;padding:12px 12px 0;box-shadow:3px 5px 10px rgba(80,50,20,.18)}
.booklet:before,.booklet:after{content:"";position:absolute;inset:0;background:#fbf6ea;box-shadow:2px 3px 6px rgba(80,50,20,.15);z-index:-1}
.booklet:before{transform:rotate(3deg) translate(6px,4px)}
.booklet:after{transform:rotate(-2.5deg) translate(-5px,6px);background:#f6eedb}
.item.is-book{isolation:isolate}
.pages-badge{position:absolute;right:-10px;top:18px;z-index:3;background:var(--rose);color:#fff;font-family:Caveat,cursive;font-size:19px;padding:2px 12px;transform:rotate(6deg);box-shadow:1px 2px 0 rgba(80,50,20,.25)}

/* spreads (story pages laid out as an open book) */
.spreads{display:grid;grid-template-columns:1fr;gap:30px}
.spread{display:grid;grid-template-columns:1fr 1fr;background:#fff;padding:16px;box-shadow:4px 6px 0 rgba(80,50,20,.12);position:relative}
.spread:after{content:"";position:absolute;top:10px;bottom:10px;left:50%;width:30px;margin-left:-15px;background:linear-gradient(90deg,transparent,rgba(80,50,20,.16) 48%,rgba(80,50,20,.22) 50%,rgba(80,50,20,.16) 52%,transparent);pointer-events:none}
.leaf{display:flex;flex-direction:column;align-items:center;padding:6px 14px;min-width:0}
.leaf button{display:block;width:100%;background:none}
.leaf .pic{aspect-ratio:4/3;background:transparent}
.leaf .pnum{font-family:Caveat,cursive;font-size:22px;margin-top:6px}
.leaf .pdate{font-family:Elite,monospace;font-size:11px}
.leaf.missing .pic{display:grid;place-items:center;border:2px dashed #c8b28a;font-family:Caveat,cursive;font-size:22px;color:#8a6a3b;padding:12px;text-align:center}
.leaf.blank{visibility:hidden}

/* profiles */
.artists{padding:8px 28px 28px 72px}
.artists h2,.about h2{font-family:Fraunces,Georgia,serif;font-style:italic;font-weight:500;font-size:36px}
.profiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:20px;margin-top:16px}
.profile{background:#fff;padding:20px 14px 16px;text-align:center;box-shadow:3px 5px 0 rgba(80,50,20,.1);transform:rotate(-1.5deg);display:flex;flex-direction:column;align-items:center;gap:4px;position:relative;text-decoration:none;color:inherit}
.profile:nth-child(even){transform:rotate(2deg)}
a.profile:hover{box-shadow:0 0 0 3px var(--edge)}
.stamp{width:70px;height:70px;border:3px solid #8a4a32;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:Fraunces,Georgia,serif;font-size:24px;font-weight:600;color:#8a4a32}
.stamp.plus{border-style:dashed}
.prole{font-family:Elite,monospace;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.pname{font-family:Fraunces,Georgia,serif;font-style:italic;font-size:22px}
.pmedia{font-family:Caveat,cursive;font-size:20px}
.pworks{font-size:13px}
.profile.coming{opacity:.65}
.add-slot{cursor:pointer;background:transparent;border:2px dashed #8a6a3b;box-shadow:none;width:100%}
.add-slot .add-more{display:none;font-family:Caveat,cursive;font-size:18px;line-height:1.2;margin-top:4px}
.add-slot[aria-expanded="true"] .add-more{display:block}
.about{padding:8px 28px 36px 72px;max-width:820px}
.about p{font-size:18px;margin:10px 0}
.foot{margin:0 28px 0 72px;padding:16px 0;border-top:2px dotted #8a6a3b;display:flex;flex-wrap:wrap;gap:10px 22px;font-family:Elite,monospace;font-size:12px}
.empty{font-family:Caveat,cursive;font-size:26px;padding:40px 0;text-align:center}

/* viewer */
.viewer{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:16px}
.viewer[hidden]{display:none}
.v-back{position:absolute;inset:0;background:rgba(58,42,26,.78);cursor:default}
.v-panel{position:relative;background:#fff;padding:18px 18px 16px;width:min(96vw,1000px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;transform:rotate(-.6deg);box-shadow:8px 12px 0 rgba(0,0,0,.2)}
.v-tape{position:absolute;top:-12px;left:50%;width:110px;height:24px;margin-left:-55px;background:#81b29a;opacity:.85;transform:rotate(-4deg)}
.v-close{position:absolute;top:6px;right:12px;font-family:Caveat,cursive;font-size:22px}
.v-context{font-family:Elite,monospace;font-size:11px;letter-spacing:.06em;padding-right:90px;margin-bottom:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;background:#f4efe4;padding:10px}
.v-stage img{max-width:100%;max-height:calc(100vh - 230px);max-height:calc(100dvh - 230px);width:auto;height:auto;object-fit:contain;display:block}
.v-caption{text-align:center;padding-top:12px}
.v-caption h2{font-family:Apple,cursive;font-size:20px;font-weight:400;line-height:1.5}
.v-meta{font-family:Elite,monospace;font-size:13px}
.v-note{font-family:Caveat,cursive;font-size:19px;color:#8a4a32}
.v-controls{display:flex;justify-content:space-between;align-items:center;margin-top:8px;gap:12px}
.v-btn{font-family:Caveat,cursive;font-size:24px;padding:2px 14px;background:#f3e6c8;box-shadow:2px 3px 0 rgba(80,50,20,.2)}
.v-btn:hover:not(:disabled){background:var(--rose);color:#fff}
.v-btn:disabled{opacity:.3;cursor:default}
.v-count{font-family:Elite,monospace;font-size:13px}

@media (max-width:900px){
  .book{margin:12px 8px 40px}
  .book:before{width:18px}
  .top,.hero,.work,.artists,.about{padding-left:36px;padding-right:16px}
  .foot{margin-left:36px;margin-right:16px}
  .hero{grid-template-columns:1fr;gap:28px}
  .grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:560px){
  .book{margin:8px 4px 32px}
  .book:before{width:14px}
  .top,.hero,.work,.artists,.about{padding-left:26px;padding-right:12px}
  .foot{margin-left:26px;margin-right:12px}
  .logo{font-size:18px}
  .top nav a{font-size:20px}
  .hero p{font-size:23px}
  .polaroid-hero{width:88%}
  .grid{grid-template-columns:1fr;gap:30px}
  .page{padding:22px 14px 32px}
  .tab{padding:6px 9px 8px;font-size:11px}
  .spread{grid-template-columns:1fr;padding:12px}
  .spread:after{display:none}
  .leaf + .leaf{border-top:2px dotted #e4d6b8;padding-top:14px;margin-top:6px}
  .leaf.blank{display:none}
  .pages-badge{right:-4px}
  .profiles{grid-template-columns:1fr 1fr;gap:16px}
  .v-panel{padding:14px 10px 12px;transform:none}
  .v-stage{padding:4px}
  .v-stage img{max-height:calc(100dvh - 250px)}
  .v-caption h2{font-size:16px}
  .start{font-size:19px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
