/* North River Provisions: the public pages. Old magazine spread: two-ink photos, Young Serif
 * headings, paper pieces with soft shadows, sections that slide over each other. */
:root{ --paper:#F6EDDA; --navy:#012340; --navy-2:#011A30; --red:#AB011B; --ink:#1E1A15; --soft:#4B4336; --gut:5px;
  --head:"Young Serif",Georgia,serif; --hand:"Besley",Georgia,serif; --body:"Libre Franklin",Arial,sans-serif; --k:1.15; --hw:400; --ls:-.01em; }
*{ box-sizing:border-box }
html{ overflow-x:clip }
body{ margin:0; background:var(--paper) url(/assets/img/grain.png); color:var(--ink); font-family:var(--body); font-size:17px; line-height:1.65; text-wrap:pretty; overflow-x:clip }
a{ color:var(--navy); text-underline-offset:3px }
a:hover{ color:var(--red) }
img{ display:block; max-width:100% }
.wrap{ width:min(100% - 40px, 1180px); margin-inline:auto }
:focus-visible{ outline:2px solid var(--red); outline-offset:3px }
h1,h2,h3{ font-family:var(--head); font-weight:400; color:var(--navy); margin:0 }
.btn, .mast nav, .index a, .tk-top b, .tk-top strong, .steps li::before{ font-weight:400 !important; font-synthesis:none }
h2{ font-weight:var(--hw); font-size:calc(clamp(34px,5.4vw,78px) * var(--k)); line-height:.98; letter-spacing:var(--ls) }
p{ margin:0 } figure{ margin:0 }

.btn{ display:inline-block; font-family:var(--head); font-weight:700; font-size:17px; text-decoration:none; padding:13px 24px; border:1.5px solid var(--navy); color:var(--navy); background:transparent; transition:background .15s, color .15s, border-color .15s }
.btn:hover{ background:var(--navy); color:var(--paper) }
.btn.fill{ background:var(--red); border-color:var(--red); color:var(--paper) }
.btn.fill:hover{ background:var(--navy); border-color:var(--navy); color:var(--paper) }
.btn.lite{ border-color:var(--paper); color:var(--paper) }
.btn.lite:hover{ background:var(--paper); color:var(--navy) }

/* photos print in two inks, navy on cream, the way a 1940s magazine page did */
.duo{ position:relative; isolation:isolate; overflow:hidden; background:var(--paper) }
.duo img{ width:100%; height:100%; object-fit:cover; filter:grayscale(1) contrast(1.18) brightness(1.04); mix-blend-mode:multiply }
.duo::after{ content:""; position:absolute; inset:0; background:var(--navy); mix-blend-mode:lighten; pointer-events:none }
.plate{ overflow:hidden } .plate img{ width:100%; height:100%; object-fit:cover }

/* depth: paper and prints cast a soft shadow on whatever they lie on */
:root{ --lift:0 1px 2px rgba(1,26,48,.22), 0 18px 34px -16px rgba(1,26,48,.55); --lift-lo:0 1px 2px rgba(1,26,48,.2), 0 10px 22px -12px rgba(1,26,48,.5) }
.note, .who .page, .ticket{ box-shadow:var(--lift) }
.colour .plate, .colour .second, .who .small{ box-shadow:var(--lift) }
.band{ box-shadow:0 12px 26px -12px rgba(1,10,20,.75), 0 -8px 20px -14px rgba(1,10,20,.5) }
.sheet .duo{ box-shadow:inset 0 0 0 1px rgba(1,26,48,.15) }

/* ---------- opening spread: four photos edge to edge, one red band of lettering across them ---------- */
.spread{ position:relative; padding-bottom:clamp(36px,5vw,70px) }
main > section{ background:var(--paper) url(/assets/img/grain.png) }
.sheet{ display:grid; grid-template-columns:5fr 4fr 3fr; grid-template-rows:1.15fr 1fr; gap:var(--gut); height:clamp(540px,84vh,880px); background:var(--paper) }
.sheet .t{ grid-row:1 / 3 }
.sheet .w{ grid-column:2 / 4 }
.band{ position:absolute; left:0; right:0; top:47%; transform:translateY(-50%); background:var(--red); padding:.12em 0 .16em; text-align:center; z-index:2 }
h1{ color:var(--paper); font-weight:var(--hw); font-size:calc(clamp(12px,2.85vw,54px) * var(--k)); line-height:1.05; letter-spacing:var(--ls); white-space:nowrap }
.note{ position:absolute; z-index:3; left:max(20px, calc((100vw - 1180px) / 2)); bottom:0; width:min(540px, calc(100vw - 40px)); background:var(--paper) url(/assets/img/grain.png); padding:26px 28px 28px }
.note{ text-align:center }
.note p{ font-size:18.5px }
.note .acts{ justify-content:center }
.acts{ display:flex; flex-wrap:nowrap; gap:12px; margin-top:22px }
.acts .btn{ white-space:nowrap; padding:13px 20px }

/* ---------- what we carry ---------- */
.carry{ display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:clamp(26px,5vw,74px); padding:clamp(54px,6.4vw,90px) 0 clamp(50px,7vw,100px); align-items:start }
.carry h2{ font-size:calc(clamp(32px,4.8vw,70px) * var(--k)); white-space:nowrap }
.carry .lede{ margin:16px 0 0; max-width:none; font-size:18.5px }
.carry .lede.minor{ margin:12px 0 26px; font-size:17px; color:var(--soft) }
.index{ list-style:none; margin:0; padding:0; columns:2; column-gap:clamp(24px,4vw,48px); border-top:3px solid var(--navy) }
.index li{ break-inside:avoid; border-bottom:1px solid rgba(30,26,21,.35) }
.index a{ display:block; padding:11px 0 10px; text-decoration:none; font-family:var(--head); font-weight:500; font-size:19px; color:var(--ink) }
.index a:hover{ color:var(--red) }
.more{ margin-top:26px }
.colour{ position:relative; z-index:3; padding-bottom:16%; margin-top:calc(-1 * clamp(54px,6.4vw,90px) - clamp(36px,5vw,70px) - clamp(40px,5vw,80px)) }
.colour > .plate:first-of-type{ aspect-ratio:3 / 4; width:min(100%, 470px); margin-left:auto; border:var(--gut) solid var(--paper) }
.colour .second{ position:absolute; left:-10%; bottom:0; width:min(48%, 300px); aspect-ratio:1; border:var(--gut) solid var(--paper) }
.cap{ font-family:var(--hand); font-style:italic; font-weight:500; font-size:15px; color:var(--soft); padding-top:8px }

/* ---------- how ordering works ---------- */
.works{ --strip:clamp(84px,8vw,104px); color:var(--paper); position:relative; padding-bottom:var(--strip) }
main > section.works{ background:linear-gradient(var(--navy-2) 0 calc(100% - var(--strip)), transparent calc(100% - var(--strip))), var(--paper) url(/assets/img/grain.png) }
.works .wrap{ display:grid; grid-template-columns:minmax(0,6fr) minmax(0,5fr); gap:clamp(26px,5vw,74px); padding:clamp(54px,7vw,104px) 0 clamp(60px,8vw,120px) }
.works h2{ color:var(--paper); font-size:calc(clamp(26px,3.7vw,48px) * var(--k)); white-space:nowrap }
.steps{ list-style:none; margin:clamp(22px,3vw,36px) 0 0; padding:0; counter-reset:s }
.steps li{ counter-increment:s; display:grid; grid-template-columns:clamp(60px,7vw,96px) 1fr; gap:10px; align-items:start; padding:18px 0; border-top:1px solid rgba(246,237,218,.3) }
.steps li::before{ content:counter(s); font-family:var(--head); font-weight:var(--hw); font-size:clamp(54px,6.4vw,92px); line-height:.82; color:var(--paper) }
.steps h3{ color:var(--paper); font-weight:400; font-size:clamp(21px,2.1vw,27px); line-height:1.2 }
.steps p{ color:#E3D9C4; margin-top:4px; max-width:40ch }
.side{ position:relative; align-self:end }
.side .duo{ aspect-ratio:4 / 3 }
/* the sample order, drawn as a paper ticket off a pad: punched top, ruled columns, tear-off stub */
.ticket{ position:relative; z-index:2; color:var(--ink); margin:-22% 0 clamp(-170px,-13vw,-110px) -8%; width:min(80%, 400px); padding:26px 18px 0;
  background:
    radial-gradient(circle at 50% 0, var(--navy-2) 0 7px, transparent 7.5px) 0 -1px / 28px 16px repeat-x,
    #FBF4E4 url(/assets/img/grain.png) }
.tk-top{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; padding-bottom:10px; border-bottom:3px double var(--navy) }
.tk-top b{ display:block; font-family:var(--head); font-weight:var(--hw); font-size:16.5px; line-height:1.1; color:var(--navy) }
.tk-top span{ display:block; font-size:11px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--soft); margin-top:3px }
.tk-top strong{ font-family:var(--head); font-weight:700; font-size:19px; line-height:1; color:var(--red); white-space:nowrap }
.tk-who{ display:grid; grid-template-columns:1.15fr .85fr 1.2fr; margin:0; border-bottom:1.5px solid var(--navy) }
.tk-who div{ padding:8px 10px 9px 0 } .tk-who div + div{ padding-left:10px; border-left:1px solid var(--navy) }
.tk-who dd{ white-space:nowrap }
.tk-who dt{ font-size:10.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--soft) }
.tk-who dd{ margin:1px 0 0; font-family:var(--hand); font-weight:500; font-style:italic; font-size:15.5px; line-height:1.25; color:#0B2A66 }
.ticket table{ width:100%; border-collapse:collapse }
.ticket th{ font-size:10.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; text-align:left; color:var(--soft); padding:7px 10px 6px; border-bottom:1.5px solid var(--navy) }
.ticket td{ font-family:var(--hand); font-weight:500; font-style:italic; font-size:15.5px; color:#0B2A66; padding:7px 8px 6px; border-bottom:1px solid #9FB4C9; height:34px }
.ticket th:first-child, .ticket td:first-child{ width:46px; text-align:center; padding-left:0; border-right:1px solid var(--red) }
.ticket th:last-child, .ticket td:last-child{ width:56px; text-align:right; padding-right:0; border-left:1px solid var(--red) }
.tk-stub{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 -18px; padding:12px 18px 14px; border-top:2px dashed var(--navy); font-weight:600; font-size:13.5px; color:var(--soft) }
.tk-stub .btn{ font-size:15px; padding:9px 16px }

/* ---------- who we deliver to: one wide photo with a page of copy laid over its corner ---------- */
.who{ position:relative; padding-top:clamp(84px,7.5vw,104px); padding-bottom:clamp(70px,9vw,120px) }
.who .wide{ height:clamp(360px,56vw,640px) }
.who .page{ position:absolute; z-index:2; right:max(20px, calc((100vw - 1180px) / 2)); top:clamp(26px,2.4vw,40px); width:min(500px, calc(100vw - 40px)); background:var(--paper) url(/assets/img/grain.png); padding:28px 30px 30px }
.who .page h2{ font-size:calc(clamp(30px,3.6vw,50px) * var(--k)) }
.who .page p{ margin-top:14px }
.who .small{ position:absolute; z-index:3; left:max(20px, calc((100vw - 1180px) / 2)); bottom:clamp(20px,3vw,50px); width:clamp(180px,24vw,330px); aspect-ratio:3 / 2; border:var(--gut) solid var(--paper) }

.close{ color:var(--paper) }
main > section.close{ background:var(--red) }
.close .wrap{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:18px 30px; padding:clamp(30px,4vw,54px) 0 }
.close h2{ color:var(--paper); font-size:calc(clamp(28px,4vw,56px) * var(--k)) }
.close p{ margin-top:8px; max-width:50ch }


/* ---------- effects (only when .fx is on: scripting works and motion is allowed) ---------- */
/* 1. opening: the photos come up like prints developing, the red band is pulled across, the note settles */
@keyframes develop{ from{ opacity:0; transform:scale(1.06) } to{ opacity:1; transform:none } }
@keyframes pull{ from{ clip-path:inset(0 100% 0 0) } to{ clip-path:inset(0 0 0 0) } }
@keyframes settle{ from{ opacity:0; transform:translateY(26px) } to{ opacity:1; transform:none } }
@keyframes inked{ from{ opacity:0; letter-spacing:.06em } to{ opacity:1 } }
.fx .sheet .duo{ animation:develop 1.1s cubic-bezier(.2,.7,.2,1) both }
.fx .sheet .duo:nth-child(1){ animation-delay:.05s } .fx .sheet .duo:nth-child(2){ animation-delay:.22s }
.fx .sheet .duo:nth-child(3){ animation-delay:.39s } .fx .sheet .duo:nth-child(4){ animation-delay:.56s }
.fx .band{ animation:pull .8s cubic-bezier(.6,0,.2,1) .85s both }
.fx .band h1{ animation:inked .7s ease-out 1.35s both }
.fx .note{ animation:settle .7s cubic-bezier(.2,.7,.2,1) 1.55s both }
/* 3. as each part scrolls in: list lines arrive one by one, the steps count off, the ticket gets written */
.fx .index li, .fx .steps li{ opacity:0; transform:translateY(12px); transition:opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); transition-delay:calc(var(--i, 0) * 70ms) }
.fx .steps li{ transition-delay:calc(var(--i, 0) * 220ms) }
.fx .index.in li, .fx .steps.in li{ opacity:1; transform:none }
.fx .ticket dd, .fx .ticket tbody td{ clip-path:inset(0 100% 0 0); transition:clip-path .55s ease-out; transition-delay:calc(.25s + var(--i, 0) * 260ms) }
.fx .ticket.in dd, .fx .ticket.in tbody td{ clip-path:inset(0 0 0 0) }
.fx .ticket .tk-stub .btn{ opacity:0; transform:scale(.94); transition:opacity .4s ease 1.9s, transform .4s cubic-bezier(.2,1.4,.4,1) 1.9s, background .15s, color .15s, border-color .15s }
.fx .ticket.in .tk-stub .btn{ opacity:1; transform:none }
/* 2. pages: each section holds still once you reach its end, and the next slides up over it like a turned page */
.fx main > section{ position:sticky; top:var(--pin, 0px) }
/* each page rests for a moment, fully in view, before the next one starts to cover it */
.fx main > section:not(:last-child){ margin-bottom:40vh }
.fx main > section + section{ box-shadow:0 -22px 44px -22px rgba(1,10,20,.55) }
.fx .nr-foot{ box-shadow:0 -22px 44px -22px rgba(1,10,20,.55) }
/* 4. small touches: list lines nudge on hover */
.index a{ transition:color .15s, padding-left .2s ease }
.index a:hover{ padding-left:10px }

@media(max-width:860px){
  .sheet{ grid-template-columns:1fr 1fr; grid-template-rows:1.3fr 1fr; height:clamp(420px,70vh,600px) }
  .sheet .t{ grid-row:auto; grid-column:1 / 3 }
  .sheet .w{ display:none }
  .spread{ padding-bottom:26px }
  .note{ position:relative; left:auto; bottom:auto; width:auto; margin:0 20px; margin-top:-34px; padding:22px 16px 24px }
  .acts{ gap:8px } .acts .btn{ flex:1 1 0; min-width:0; text-align:center; font-size:13px; padding:11px 4px }
  .carry{ grid-template-columns:1fr; padding-top:50px }
  .index{ columns:1 }
  .colour{ margin-left:8%; margin-top:0 }
  .works .wrap{ grid-template-columns:1fr }
  .ticket{ margin:-14% auto -110px; width:min(100%, 340px) }
  .who{ padding-top:96px; padding-bottom:50px }
  .who .page{ position:relative; right:auto; top:auto; width:auto; margin:-60px 20px 0 }
  .who .small{ display:none }
}
@media(max-width:600px){ h1{ white-space:normal; font-size:clamp(24px,7vw,34px); line-height:1.12; text-wrap:balance; padding:0 14px } .band{ padding:.3em 0 .36em } }
@media(max-width:375px){ .acts .btn{ font-size:12px; padding:11px 2px } }
@media(prefers-reduced-motion:reduce){ .btn{ transition:none } }

/* ---------- phones ---------- */
@media(max-width:860px){
  body{ font-size:16.5px }
  /* top spread: one tall print and two small ones, slogan across the join */
  .sheet{ height:clamp(400px,62vh,520px); gap:4px }
  .band{ position:relative; top:auto; transform:none; box-shadow:none; margin-top:4px }
  .note{ margin:14px 16px 0 !important; box-shadow:var(--lift-lo) }
  .note p{ font-size:17px }
  /* what we carry */
  .carry{ padding-top:44px; gap:30px }
  .carry h2{ white-space:normal }
  .index{ columns:2; column-gap:18px }
  .index a{ font-size:16.5px; padding:10px 0 9px }
  .more .btn{ display:block; text-align:center }
  .colour{ margin:0 auto; width:min(100%, 380px); padding-bottom:14% }
  .colour .second{ left:-6px; width:44% }
  /* how ordering works */
  .works .wrap{ padding:44px 0 50px; gap:34px }
  .steps li{ grid-template-columns:56px 1fr; padding:14px 0 }
  .side{ width:min(100%, 420px); margin-inline:auto }
  /* who we deliver to */
  .who .wide{ height:clamp(240px,62vw,360px) }
  .who .page{ padding:24px 22px 26px; text-align:center }
  .who .page h2{ font-size:calc(clamp(28px,8vw,36px) * var(--k)) }
  /* new customer band and footer: centered and compact */
  .close .wrap{ flex-direction:column; text-align:center; padding:34px 0 38px }
  .close p{ margin-inline:auto }
  .close .btn{ align-self:stretch; text-align:center }
  /* shorter pause between pages on a phone */
  .fx main > section:not(:last-child){ margin-bottom:26vh }
}
@media(max-width:860px){ .tk-who dt{ white-space:nowrap; letter-spacing:.06em } .tk-who div{ padding-right:6px } .tk-who div + div{ padding-left:7px } }

/* ================= inner pages ================= */
/* pages without the page stack (forms, long reading) */
.fx .flat main > section{ position:relative; top:auto; margin-bottom:0; box-shadow:none }
/* title: one wide two-ink photo with the red band across its lower edge, or the band alone */
.lead{ position:relative }
.lead .duo{ height:clamp(200px,36vh,380px) }
.lead .band{ top:auto; bottom:clamp(16px,3vw,38px); transform:none }
.lead.bare{ padding:clamp(16px,2.4vw,30px) 0 0 }
.lead.bare .band{ position:relative; bottom:auto; box-shadow:none }
.lead h1{ font-size:calc(clamp(22px,4.4vw,72px) * var(--k)) }
.sec{ padding:clamp(40px,6vw,84px) 0 }
.two{ display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:clamp(26px,5vw,74px); align-items:start }
.two.flip{ grid-template-columns:minmax(0,5fr) minmax(0,7fr) }
.sec h2{ font-size:calc(clamp(28px,3.6vw,50px) * var(--k)); line-height:1.02 }
.sec h2 + p, .sec p + p{ margin-top:14px }
.sec p{ max-width:60ch }
.big{ font-size:19px }
.print{ border:var(--gut) solid var(--paper); box-shadow:var(--lift) }
.print.duo{ aspect-ratio:4 / 3 } .print.plate{ aspect-ratio:5 / 4 }
.stackp{ position:relative; padding:0 0 18% 12% }
.stackp .print + .print{ position:absolute; left:0; bottom:0; width:54% }
main > section.navy{ background:var(--navy-2); color:var(--paper) }
.navy h2, .navy h3{ color:var(--paper) } .navy p{ color:#E3D9C4 }
.lines{ list-style:none; margin:22px 0 0; padding:0; border-top:3px solid currentColor }
.lines li{ padding:12px 0 11px; border-bottom:1px solid rgba(30,26,21,.3); font-family:var(--head); font-size:19px; line-height:1.3 }
.navy .lines li{ border-bottom-color:rgba(246,237,218,.3) }
.cols2{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(24px,5vw,70px) }
.cols2 h3{ font-size:26px; line-height:1.15 }
/* a sheet of paper lying on the page: used for forms and long text */
.paper{ background:#FBF4E4 url(/assets/img/grain.png); box-shadow:var(--lift); padding:clamp(22px,3.4vw,40px) }
.field{ margin-bottom:16px }
.formrow{ display:grid; grid-template-columns:1fr 1fr; gap:0 18px }
.field label{ display:block; font-weight:600; font-size:14.5px; color:var(--soft); margin-bottom:5px }
.field input, .field select, .field textarea{ width:100%; font:inherit; font-size:16.5px; color:var(--ink); background:#FFFDF8; border:1.5px solid var(--navy); border-radius:0; padding:11px 12px }
.field textarea{ min-height:130px; resize:vertical }
.field input:focus, .field select:focus, .field textarea:focus{ outline:2px solid var(--red); outline-offset:1px }
.btnrow{ display:flex; flex-wrap:wrap; gap:12px; margin-top:8px }
.btnrow button{ cursor:pointer }
.formnote{ margin-top:14px; font-size:14.5px; color:var(--soft) }
.banner{ margin:0 0 16px; padding:12px 14px; background:#fff; border-left:5px solid var(--red); font-weight:600; color:var(--navy) }
.aside h3{ font-size:26px; line-height:1.15 }
.aside p{ margin-top:12px }
.aside .print{ margin-top:26px }
/* long reading */
.prose{ max-width:74ch; margin-inline:auto }
.prose .date{ color:var(--soft); margin-bottom:10px }
.prose h2{ font-size:calc(clamp(21px,2.3vw,27px) * var(--k)); line-height:1.2; letter-spacing:0; margin:1.7em 0 .45em }
.prose h2:first-of-type{ margin-top:.4em }
.prose p{ margin:0 0 .9em; max-width:none }
.prose ul{ margin:0 0 .9em; padding-left:1.2em }
.prose li{ margin-bottom:.35em }
.centerbox{ text-align:center; max-width:640px; margin-inline:auto }
.centerbox p{ margin:14px auto 0 }
.centerbox .btnrow{ justify-content:center; margin-top:24px }
@media(max-width:860px){
  .two, .two.flip, .cols2{ grid-template-columns:1fr }
  .formrow{ grid-template-columns:1fr }
  .lead .duo{ height:clamp(170px,30vh,240px) }
  .lead .band{ position:relative; bottom:auto; box-shadow:none; margin-top:4px }
  .stackp{ width:min(100%, 380px); margin-inline:auto }
  .btnrow .btn{ flex:1 1 auto; text-align:center }
}
@media(max-width:600px){ .lead h1{ white-space:normal; font-size:clamp(26px,8vw,36px); line-height:1.1; padding:0 14px } }

/* "New Customer?" sits on the bottom photo of the home page, as a red panel over its lower left corner */
.newc{ position:absolute; z-index:3; left:max(20px, calc((100vw - 1180px) / 2)); bottom:clamp(30px,4vw,60px); width:min(520px, calc(100vw - 40px));
  background:var(--red); color:var(--paper); padding:26px 30px 30px; box-shadow:var(--lift) }
.newc h2{ color:var(--paper); font-size:calc(clamp(28px,3.4vw,46px) * var(--k)); line-height:1.02 }
.newc p{ margin-top:10px }
.newc-btns{ display:flex; flex-wrap:nowrap; gap:12px; margin-top:20px }
.newc-btns .btn{ white-space:nowrap }
.btn.lite.solid{ background:var(--paper); color:var(--navy); border-color:var(--paper) }
.btn.lite.solid:hover{ background:var(--navy); color:var(--paper); border-color:var(--navy) }
.close .newc-btns{ margin-top:0 }
@media(max-width:860px){
  .newc{ position:relative; left:auto; bottom:auto; width:auto; margin:18px 20px 0; padding:24px 20px 26px; text-align:center }
  .newc-btns{ justify-content:center; gap:8px }
  .newc-btns .btn{ flex:1 1 0; min-width:0; text-align:center; font-size:14.5px; padding:12px 6px }
  .close .newc-btns{ align-self:stretch }
}
