.heirloom-book{margin:0;background:#c2aba2;color:#30241f;font-family:"DM Sans",system-ui,sans-serif}
.heirloom-book::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background:linear-gradient(#331d1c28,#331d1c52),url("/assets/recipe-book-grapefruit.jpg") center 49% / cover}
.heirloom-book main{position:relative;width:min(70rem,calc(100% - clamp(1rem,11vw,9rem)));margin:clamp(.75rem,5vw,4.5rem) auto;background:#faf5eb;box-shadow:0 1rem 4rem #331d1c50}
.hb-masthead{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.6rem;padding:1.15rem clamp(1rem,4vw,3rem);border-bottom:1px solid #d8c9ba;font-size:clamp(.68rem,1.5vw,.87rem)}
.hb-masthead a{color:#663142;text-decoration:none}
.hb-masthead a:hover{text-decoration:underline}
.hb-masthead a:last-child{justify-self:end}
.hb-brand{font:600 clamp(1.2rem,3vw,2rem)/1 "Cormorant Garamond",Georgia,serif;white-space:nowrap}
.hb-cover-inner{text-align:center;padding:clamp(2.2rem,8vw,6rem) clamp(.75rem,5vw,4rem)}
.hb-label{text-transform:uppercase;letter-spacing:.16em;font-size:.71rem;font-weight:700}
.hb-title-stage{position:relative;isolation:isolate;display:grid;place-items:center;margin:clamp(1rem,3vw,2rem) auto;max-width:57rem;min-height:clamp(8rem,21vw,18rem)}
.hb-cover h1,.hb-page h2,.hb-grid h3{font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;line-height:.96;margin:0}
.hb-cover h1{position:relative;font-size:clamp(2.65rem,8.5vw,7.1rem);letter-spacing:-.055em;color:#783747;text-shadow:0 1px #faf5eb}
.hb-cover em{color:#783747;font-weight:500}
.hb-cutout{position:absolute;object-fit:cover;z-index:-1;width:clamp(2.7rem,11vw,8.8rem);aspect-ratio:1;box-shadow:.2rem .35rem .8rem #402b2030}
.hb-cutout-left{left:0;bottom:0;transform:rotate(-9deg);opacity:.7}
.hb-cutout-right{right:0;top:0;transform:rotate(8deg);opacity:.74}
.hb-cover-note{font-size:clamp(.9rem,2vw,1.1rem);max-width:32ch;margin:1.15rem auto .5rem}
.hb-edition{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.45rem 1rem;padding:.85rem clamp(1rem,4vw,3rem);border-block:1px solid #c9ae98;color:#633a3f;text-transform:uppercase;letter-spacing:.12em;font-size:.68rem;font-weight:700}
.hb-page{padding:clamp(1.35rem,6vw,5.2rem);scroll-margin-top:1rem;line-height:1.65}
.hb-page h2{font-size:clamp(2.3rem,6vw,4.4rem);margin:.35em 0 .45em}
#first-page{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:clamp(1.25rem,5vw,4rem);align-items:center;background:#264b41;color:#fff6e7}
.hb-history-copy p{max-width:66ch}
.hb-history-photo{margin:0;transform:rotate(2deg)}
.hb-history-photo img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center 68%;border:.35rem solid #f7ecdb}
.hb-history-photo figcaption{font:italic 500 1.4rem "Cormorant Garamond",Georgia,serif;padding:.5rem;text-align:right}
.hb-button{display:inline-block;margin-top:1rem;padding:.65rem 1rem;background:#783747;color:#fff8ea;text-decoration:none}
.hb-button:hover{background:#552534;color:#fff8ea}
#first-page .hb-button{background:#f4e5ce;color:#263b32}
#first-page .hb-button:hover{background:#e9d1b0}
.hb-index a:not(.hb-button){color:#682f45}
.hb-signature{font-family:Georgia,serif;font-style:italic}
.hb-sources summary{cursor:pointer}
.hb-sources a{color:#ffe5c2}
#hb-tools{margin:1.35rem 0}
#hb-tools label{display:block;font-weight:600}
#hb-search{width:min(100%,27rem);padding:.65rem .8rem;border:1px solid #91775e;background:#fffdf4;color:#37251e;font:inherit}
.hb-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.7rem}
.hb-tabs button{background:#f6eadb;color:#472d21;border:1px solid #91775e;padding:.45rem .8rem;border-radius:999px;font:inherit;cursor:pointer}
.hb-tabs button[aria-pressed="true"]{background:#264b41;color:#fff4dc}
.hb-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem}
.hb-grid article{padding:1.15rem;border-top:2px solid #b98d85;background:#f4e8de}
.hb-grid h3{font-size:1.65rem;margin:.35em 0 .55em}
.hb-grid a{display:block;width:fit-content;margin-top:.35rem}
.hb-end{margin-top:2rem}
@media(max-width:640px){.heirloom-book main{width:calc(100% - 1rem)}#first-page{grid-template-columns:1fr}.hb-history-photo{width:min(75%,18rem);justify-self:center;transform:none}.hb-history-photo img{aspect-ratio:5/4}.hb-cutout{opacity:.36}.hb-edition{justify-content:center}}

/* The heirloom card box now lives with the recipe book. */
.heirloom-book .home-recipe-memory{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);scroll-margin-top:1rem}
.heirloom-book .home-recipe-memory .recipe-box-stage{grid-column:1/-1}
.heirloom-book .home-recipe-memory .recipe-memory-photo,.heirloom-book .home-recipe-memory .recipe-memory-copy{min-height:590px}
@media(max-width:680px){.heirloom-book .home-recipe-memory{grid-template-columns:minmax(0,1fr)}.heirloom-book .home-recipe-memory .recipe-memory-photo{min-height:340px}.heirloom-book .home-recipe-memory .recipe-memory-copy{min-height:0}.heirloom-book .home-recipe-memory .recipe-box-stage{grid-column:auto}}
