/* All illustrated surfaces use the supplied generative artwork and extracted pieces. */
.scrapbook-landing {background:#fff7eb;}
.scrapbook-landing main {display:block;max-width:1600px;min-height:0;padding:52px 0 20px;}
.scrapbook-landing .hf-album-library {position:relative;isolation:isolate;box-sizing:border-box;width:calc(100% - 24px);margin:40px auto 60px;padding:75px 9% 70px;min-height:780px;border:0;border-radius:0;background:none;box-shadow:none;}
.scrapbook-landing .hf-album-library::before {content:"";position:absolute;inset:-65px 0 -28px;z-index:-1;border:solid transparent;border-width:110px 82px 90px;border-image:url('art/book-balanced-edges.png.webp') 140 125 120 125 fill stretch;pointer-events:none;}
.memory-title-art {position:absolute;left:4%;top:-98px;width:44%;height:auto;z-index:2;pointer-events:none;}
.scrapbook-landing .memory-intro {text-align:center;width:44%;max-width:none;margin:0 0 38px;}
.scrapbook-landing .memory-intro h1 {display:inline;font:400 clamp(30px,3.2vw,46px)/1.15 Gaegu,cursive;color:#513624;text-decoration:underline;text-decoration-color:#e7bd59;text-decoration-thickness:3px;text-underline-offset:8px;}
.scrapbook-landing .memory-intro p {font-size:16px;line-height:1.65;margin:18px auto 0;max-width:64ch;}
.scrapbook-landing .hf-album-filters {position:absolute;top:-57px;right:4%;width:max-content;max-width:48%;display:flex;align-items:flex-end;gap:4px;margin:0;z-index:3;}
.scrapbook-landing .hf-album-filters button {position:relative;height:66px;min-height:66px;min-width:86px;flex:none;display:flex;align-items:center;justify-content:center;padding:14px 18px 7px;white-space:nowrap;border:0;border-radius:0;background:transparent url('art/landing-tabs.png.webp') 0% 44%/400% 300% no-repeat;color:#48352a;font:16px/1.25 Playpen,system-ui,sans-serif;transition:transform .18s ease;}
.scrapbook-landing .hf-album-filters button:nth-child(2) {background-position-x:33.333%;}
.scrapbook-landing .hf-album-filters button:nth-child(3) {background-position-x:66.667%;}
.scrapbook-landing .hf-album-filters button:nth-child(4) {background-position-x:100%;}
.scrapbook-landing .hf-album-filters button[aria-pressed=true] {text-decoration:underline;text-underline-offset:5px;}
.scrapbook-landing .hf-album-filters button:hover {transform:translateY(-2px);}
.scrapbook-landing .hf-album-grid {position:relative;grid-template-columns:repeat(4,minmax(0,1fr));gap:34px 20px;align-items:stretch;}
.scrapbook-landing .hf-album-card {position:relative;gap:9px;padding:14px 14px 24px;isolation:isolate;background:transparent;box-shadow:none;filter:none;transform:rotate(-.6deg);color:#493527;transition:transform .2s;}
.scrapbook-landing .hf-album-card:nth-child(2n) {transform:rotate(.6deg);}
.scrapbook-landing .hf-album-card:hover {transform:translateY(-4px) rotate(0);}
.scrapbook-landing .hf-album-card::before {content:"";position:absolute;pointer-events:none;z-index:1;top:-13px;left:35%;width:32%;height:35px;background:url('art/washi.webp') center/contain no-repeat;}
.scrapbook-landing .hf-album-card:nth-child(4n+2)::before {filter:hue-rotate(24deg) saturate(.8);}
.scrapbook-landing .hf-album-card:nth-child(4n+3)::before {filter:hue-rotate(155deg) saturate(.6);}
.scrapbook-landing .hf-album-card:nth-child(4n+4)::before {filter:hue-rotate(260deg) saturate(.6);}
.scrapbook-landing .hf-album-card>img {width:100%;aspect-ratio:4/3;object-fit:cover;}
.scrapbook-landing .hf-album-card strong {font:400 clamp(23px,1.9vw,29px)/1.08 Gaegu,cursive;text-decoration:underline;text-decoration-color:#e7bd597f;text-decoration-thickness:3px;text-underline-offset:4px;}
.scrapbook-landing .hf-album-card p {font-size:16px;line-height:1.65;margin:0 0 8px;color:#584532;}
.scrapbook-landing .hf-album-card-details {display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:auto;}
.scrapbook-landing .hf-album-card-details span {font-size:13px;color:#65503c;}
.scrapbook-landing .hf-album-open-label {text-decoration:underline;text-underline-offset:3px;}
.scrapbook-landing .hf-album-pages-link {display:block;width:44%;text-align:center;margin-top:30px;font-size:14px;}
.memory-palm,.memory-heart {position:absolute;pointer-events:none;}
.memory-palm {width:7%;z-index:0;}
.memory-palm-top {left:3%;top:160px;transform:rotate(-8deg);}
.memory-palm-bottom {left:2.5%;bottom:8%;transform:rotate(8deg);}
.memory-heart {width:3%;right:10%;top:95px;}
.scrapbook-landing .hf-album-library :focus-visible {outline:3px solid #417875;outline-offset:4px;}
@media(max-width:1150px) {
 .scrapbook-landing main {padding-top:75px;}
 .scrapbook-landing .hf-album-library {padding:75px 8% 65px;}
 .memory-title-art {top:-90px;width:47%;left:3%;}

 .scrapbook-landing .hf-album-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px;}
 .scrapbook-landing .hf-album-card {padding:12px 12px 22px;}
 .scrapbook-landing .hf-album-card p {font-size:16px;}
 .scrapbook-landing .hf-album-card-details {flex-wrap:wrap;gap:5px;}
}
@media(max-width:950px) {
 .scrapbook-landing .hf-album-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 25px;}
 .scrapbook-landing .memory-intro {width:100%;max-width:90%;margin-inline:auto;}
 .scrapbook-landing .hf-album-pages-link {width:100%;}
 .scrapbook-landing .hf-album-card strong {font-size:29px;}
 .scrapbook-landing .hf-album-card p {font-size:16px;}
 .scrapbook-landing .hf-album-filters {width:100%;position:relative;inset:auto;margin:0 0 30px;}
 .scrapbook-landing .hf-album-filters button {min-height:66px;font-size:16px;}
 .memory-title-art {width:65%;max-width:560px;top:-100px;left:6%;}
 .scrapbook-landing .hf-album-library {padding-top:90px;}
 .scrapbook-landing .hf-album-library::before {inset:-20px 0; background:url('art/portrait-paper.webp') center/548px 684px repeat;background-clip:padding-box;border-style:solid;border-color:transparent;border-width:60px 40px;border-image:url('art/book-continuous-cutout.png.webp') 100 110 100 110 stretch;}
 .memory-heart {top:95px;right:12%;width:5%;}
 .memory-palm-top {top:160px;left:2%;}
}
@media(max-width:1200px) {
 .scrapbook-landing .hf-album-filters {position:relative;inset:auto;width:100%;max-width:none;justify-content:flex-end;flex-wrap:wrap;margin:0 0 34px;gap:5px;}
}
@media(max-width:560px) {
 .scrapbook-landing main {padding-top:65px;}
 .scrapbook-landing .hf-album-library {width:calc(100% - 12px);padding:55px 9% 45px;margin-top:45px;}
 .scrapbook-landing .hf-album-library::before {border-width:42px 25px;}
 .memory-title-art {width:92%;left:4%;top:-82px;}
 .scrapbook-landing .memory-intro {width:100%;max-width:none;margin-bottom:20px;}
 .scrapbook-landing .memory-intro h1 {font-size:32px;}
 .scrapbook-landing .memory-intro p {font-size:15px;line-height:1.7;}
 .scrapbook-landing .hf-album-filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 0;margin-bottom:32px;}
 .scrapbook-landing .hf-album-filters button {height:64px;min-height:64px;font-size:15px;white-space:normal;padding-inline:12px;}
 .scrapbook-landing .hf-album-grid {grid-template-columns:1fr;gap:30px;}
 .scrapbook-landing .hf-album-card {padding:17px 17px 25px;gap:11px;}
 .scrapbook-landing .hf-album-card strong {font-size:30px;}
 .scrapbook-landing .hf-album-card-details span {font-size:14px;}
 .memory-palm {width:12%;}
 .memory-palm-top {top:340px;left:-1%;}
 .memory-palm-bottom {left:-1%;bottom:2%;}
 .memory-heart {width:7%;right:5%;top:390px;}
}
@media(prefers-reduced-motion:reduce) {.scrapbook-landing .hf-album-card,.scrapbook-landing .hf-album-filters button {transition:none;}}


/* Shadow the illustrated paper surface only, keeping live text crisp. */
.scrapbook-landing .hf-album-card::after {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('art/landing-photo-paper.png.webp') center/100% 100% no-repeat;filter:drop-shadow(2px 5px 4px #69442d2b) drop-shadow(0 1px 1px #69442d1a);}

/* Generated watercolor keepsakes balance the title across the open spread. */
.memory-keepsakes {position:absolute;top:65px;right:7%;width:38%;max-width:500px;height:auto;max-height:165px;object-fit:contain;pointer-events:none;}
@media(max-width:950px) {.memory-keepsakes {position:static;display:block;width:min(420px,85%);max-height:none;margin:-15px auto 28px;}}
@media(max-width:560px) {.memory-keepsakes {width:min(270px,94%);margin:0 auto 22px;}}

/* Keep copy safely inside the illustrated paper edge at every breakpoint. */
.scrapbook-landing .hf-album-card > :is(strong,p,.hf-album-card-details) {box-sizing:border-box;min-width:0;padding-inline:12px;overflow-wrap:anywhere;}
.scrapbook-landing .hf-album-card-details {padding-bottom:8px;}

/* Fill each tile with its paper surface, then keep a real inset for the photo. */
.scrapbook-landing .hf-album-library {padding-inline:8%;}
.scrapbook-landing .hf-album-grid {column-gap:18px;}
.scrapbook-landing .hf-album-card {box-sizing:border-box;padding:18px 18px 26px;}
.scrapbook-landing .hf-album-card::after {background-size:106% 106%;}
.scrapbook-landing .hf-album-card>img {display:block;max-width:100%;min-width:0;box-sizing:border-box;}
.scrapbook-landing .hf-album-card::before {top:-8px;}
@media (min-width:561px) and (max-width:1150px) {
 .scrapbook-landing .hf-album-library {padding-inline:7%;}
 .scrapbook-landing .hf-album-grid {column-gap:20px;}
}

/* Match the album viewer's mobile edge, excluding transparent leather-art gutters. */
@media(max-width:700px){
 .scrapbook-landing main {overflow-x:clip;}
 .scrapbook-landing .hf-album-library {
  --book-edge-left:max(1px,env(safe-area-inset-left,0px));
  --book-edge-right:max(1px,env(safe-area-inset-right,0px));
  --book-art-gutter:9.818182px;
  width:calc(100% - var(--book-edge-left) - var(--book-edge-right));
  margin-left:var(--book-edge-left);margin-right:var(--book-edge-right);
 }
 .scrapbook-landing .hf-album-library::before {
  left:calc(-1 * var(--book-art-gutter));right:calc(-1 * var(--book-art-gutter));
  clip-path:inset(0 var(--book-art-gutter));
 }
}
@media(max-width:560px){.scrapbook-landing .hf-album-library {--book-art-gutter:6.136364px;}}

/* Stop the neighboring green tab from bleeding into the yellow sprite cell. */
.scrapbook-landing .hf-album-filters button:nth-child(3) {background-image:none;isolation:isolate;}
.scrapbook-landing .hf-album-filters button:nth-child(3)::before {
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:transparent url('art/landing-tabs.png.webp') 66.667% 44%/400% 300% no-repeat;
 -webkit-mask-image:linear-gradient(to right,#000,#000 calc(100% - 12px),transparent calc(100% - 8px));
 mask-image:linear-gradient(to right,#000,#000 calc(100% - 12px),transparent calc(100% - 8px));
}

/* Individual photographic prints mounted directly on the album paper. */
.scrapbook-landing .hf-album-grid {column-gap:clamp(22px,2.4vw,38px);row-gap:34px;align-items:start;}
.scrapbook-landing .hf-album-card:nth-child(n) {
 padding:0;gap:5px;transform:none;background:none;border:0;border-radius:0;
 box-shadow:none;filter:none;align-items:stretch;
}
.scrapbook-landing .hf-album-card::before,
.scrapbook-landing .hf-album-card::after {display:none;}
.scrapbook-landing .hf-album-card .hf-album-cover-print {
 position:relative;display:block;box-sizing:border-box;min-width:0;margin:0;
 padding:5px 5px 24px;background:#fffdf7;border-radius:0;
 box-shadow:1px 3px 5px #65472930,0 1px 2px #6547291a;
 transform:rotate(-.8deg);transition:transform .2s ease;
}
.scrapbook-landing .hf-album-card:nth-child(4n+2) .hf-album-cover-print {transform:rotate(.65deg);}
.scrapbook-landing .hf-album-card:nth-child(4n+3) .hf-album-cover-print {transform:rotate(-.35deg);}
.scrapbook-landing .hf-album-card:nth-child(4n+4) .hf-album-cover-print {transform:rotate(.8deg);}
.scrapbook-landing .hf-album-cover-print :is(img,video) {display:block;width:100%;max-width:100%;aspect-ratio:4/3;object-fit:cover;}
.scrapbook-landing .hf-album-card .hf-album-cover-count {
 position:absolute;right:12px;bottom:3px;height:21px;display:flex;align-items:center;margin:0;padding:0;
 font:400 10.5px/1 Playpen,system-ui,sans-serif;color:#85715d;white-space:nowrap;
}
.scrapbook-landing .hf-album-card strong {
 padding-inline:3px;font:400 clamp(21.6px,1.71vw,27px)/1.02 Gaegu,cursive;
 text-align:center;text-decoration:none;color:#493527;
}
.scrapbook-landing .hf-album-card:hover strong {text-decoration:none;}
.scrapbook-landing .hf-album-card:hover .hf-album-cover-print {transform:translateY(-3px) rotate(0);}
.scrapbook-landing .hf-album-cover-print::before {
 content:"";position:absolute;z-index:1;pointer-events:none;
 top:-12px;left:28%;width:34%;height:28px;
 background:url('art/washi.webp') center/contain no-repeat;transform:rotate(-8deg);
}
.scrapbook-landing .hf-album-card:nth-child(4n+3) .hf-album-cover-print::before {
 left:35%;transform:rotate(5deg);filter:hue-rotate(155deg) saturate(.6);
}
.scrapbook-landing .hf-album-card:nth-child(4n+5) .hf-album-cover-print::before {filter:hue-rotate(50deg) saturate(.65);}

@media(max-width:560px) {
 .scrapbook-landing .hf-album-grid {row-gap:30px;}
 .scrapbook-landing .hf-album-card strong {font-size:25.2px;}
}
@media(prefers-reduced-motion:reduce) {.scrapbook-landing .hf-album-cover-print {transition:none;}}

/* Paper and shadow pixels taken from the approved mockup, kept as whole
   layers so the varying contact edge and lower-corner lift remain intact. */
.scrapbook-landing .hf-album-card .hf-album-cover-print {
 isolation:isolate;background:none;box-shadow:none;
}
.scrapbook-landing .hf-album-cover-print > :is(img,video) {position:relative;z-index:1;}
.scrapbook-landing .hf-album-card .hf-album-cover-count {z-index:2;}
.scrapbook-landing .hf-album-card .hf-album-cover-surface,
.scrapbook-landing .hf-album-card .hf-album-cover-lift {
 position:absolute;inset:-8% -5.633803%;margin:0;pointer-events:none;
 background-position:center;background-size:100% 100%;background-repeat:no-repeat;
 border:0;border-radius:0;box-shadow:none;filter:none;transform:none;
}
.scrapbook-landing .hf-album-card .hf-album-cover-surface {
 z-index:0;background-image:url('art/mockup-paper-v2.png');
}
.scrapbook-landing .hf-album-card .hf-album-cover-lift {
 z-index:-1;background-image:url('art/mockup-shadow-v2.png');
}
.scrapbook-landing .hf-album-cover-lift::before,
.scrapbook-landing .hf-album-cover-lift::after {content:none;}
.scrapbook-landing .hf-album-card:nth-child(even) .hf-album-cover-print::before {
 left:auto;right:28%;top:-11px;width:30%;height:28px;
 transform:rotate(9deg);filter:hue-rotate(30deg) saturate(.55);
}
.scrapbook-landing .hf-album-card:nth-child(4n) .hf-album-cover-print::before {
 right:36%;transform:rotate(-4deg);filter:hue-rotate(260deg) saturate(.45);
}
@media(min-width:561px) and (max-width:1150px) {
 .scrapbook-landing .hf-album-library {padding-inline:10%;}
 .scrapbook-landing .hf-album-grid {column-gap:clamp(36px,5vw,58px);}
}

/* Tape overlaps the photo as well as the paper rim. */
.scrapbook-landing .hf-album-cover-print::before {z-index:3;}

/* A small ink-and-pencil flourish, like a heading written on the page. */
.scrapbook-landing .memory-intro h1 {
 display:inline-block;position:relative;padding-bottom:12px;text-decoration:none;
 background:url('art/memory-heading-flourish.svg') center bottom / 100% 14px no-repeat;
}

/* Reserve the title illustration's full height as the spread grows wider. */
@media(min-width:951px) {
 .scrapbook-landing .hf-album-library {padding-top:clamp(90px,calc(14.667vw - 82px),158px);}
}
@media(min-width:561px) and (max-width:950px) {
 .scrapbook-landing .hf-album-library {padding-top:110px;}
}
/* Keep the decorative palms in the outer paper gutter, outside the copy. */
.scrapbook-landing .memory-palm-top {left:1%;width:5%;}
@media(max-width:560px) {
 .scrapbook-landing .memory-palm-top {left:0;width:7%;}
}
