/* Heli Akiva · direction C "שקיעה": a magazine. Her sunset photo is the cover and her name is the masthead; every
   piece is a numbered story told in her own caption. Warm paper, dusk ink, one terracotta. Frank Ruhl Libre for
   headings, Assistant for text, Old Standard italic for the few Latin words. */
:root {
  --bg: #F3E9DA;            /* warm paper */
  --card: #FBF5EA;
  --ink: #1C2730;           /* dusk */
  --soft: #515C66;
  --line: #D9C9B0;
  --clay: #A8492A;          /* terracotta, dark enough for white text */
  --gold: #86663A;
  --accent: var(--clay);
  --on-accent: #fff;
  --radius: 14px;
  --font-display: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --font-latin: "Old Standard TT", "Frank Ruhl Libre", Georgia, serif;
  --font-body: "Assistant", system-ui, sans-serif;
  --hdr-h: 60px;
  --hdr-bg: var(--bg);
  --hdr-over: var(--ink);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --m-ease: cubic-bezier(.16, 1, .3, 1);
  --m-dur: 1.25s;
  --m-y: clamp(30px, 4vw, 60px);
  --fly-toast-bg: var(--ink);
  --cart-title: 700 32px/1.1 var(--font-display);
}
body { font: 400 18px/1.65 var(--font-body); }
i { font-family: var(--font-latin); font-style: italic; }

.hdr__brand { font: 500 19px/1 var(--font-display); text-transform: uppercase; letter-spacing: .1em; transition: opacity .4s ease; }
.js .hdr:not(.is-solid) .hdr__brand { opacity: 0; pointer-events: none; }   /* on the cover the masthead is the name */
.hdr__nav a { font-size: 16px; font-weight: 600; }
.hdr__nav a:hover, .hdr__nav a:focus-visible { color: var(--clay); }

.btn {
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 36px; border: 0; border-radius: 99px; background: var(--clay); color: #fff;
  font: 700 18px/1 var(--font-body); text-decoration: none; transition: transform .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--paper { background: var(--bg); color: var(--ink); }
.btn--paper:hover, .btn--paper:focus-visible { color: #fff; }

/* ---------- the cover ---------- */
.cover { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: calc(100svh - var(--bd-switch-h, 0px)); overflow: hidden; background: var(--bg); }
.cover__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; animation: settle 2.6s var(--ease) both; }
.cover__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@keyframes settle { from { transform: scale(1.1); } }
.cover__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(243, 233, 218, .5) 0%, rgba(243, 233, 218, 0) 24%, rgba(20, 28, 36, 0) 52%, rgba(20, 28, 36, .58) 76%, rgba(20, 28, 36, .86) 100%); }
/* a sheet of the page's paper lifts off the photo (transform only; the photo is painted under it from the start) */
.cover__veil { position: absolute; inset: 0; z-index: 2; background: var(--bg); transform: translate3d(0, -101%, 0); animation: lift 1.25s cubic-bezier(.77, 0, .175, 1) .1s backwards; pointer-events: none; }
@keyframes lift { from { transform: none; } }
.cover__top { position: relative; z-index: 3; grid-row: 1; padding: 54px 16px 0; color: var(--ink); }
.mast { display: flex; justify-content: center; gap: .24em; font: 500 clamp(44px, 15.4vw, 200px)/.92 var(--font-display); letter-spacing: .03em; white-space: nowrap; }
.mast > span { display: inline-flex; overflow: hidden; padding-bottom: .06em; }
.mast b { font-weight: inherit; display: inline-block; animation: rise 1.1s var(--ease) both; }
.mast > span:nth-child(1) b:nth-child(1) { animation-delay: .75s; } .mast > span:nth-child(1) b:nth-child(2) { animation-delay: .8s; }
.mast > span:nth-child(1) b:nth-child(3) { animation-delay: .85s; } .mast > span:nth-child(1) b:nth-child(4) { animation-delay: .9s; }
.mast > span:nth-child(2) b:nth-child(1) { animation-delay: .97s; } .mast > span:nth-child(2) b:nth-child(2) { animation-delay: 1.02s; }
.mast > span:nth-child(2) b:nth-child(3) { animation-delay: 1.07s; } .mast > span:nth-child(2) b:nth-child(4) { animation-delay: 1.12s; }
.mast > span:nth-child(2) b:nth-child(5) { animation-delay: 1.17s; }
@keyframes rise { from { transform: translate3d(0, 108%, 0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
.dateline { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding: 6px 2px 5px; border-block: 1px solid rgba(28, 39, 48, .55); font-size: 14.5px; font-weight: 600; animation: fade 1.2s ease 1.3s both; }
.dateline i { font-size: 16px; font-weight: 400; }
.cover__copy { position: relative; z-index: 3; grid-row: 3; padding: 0 20px 28px; color: #fff; }
.cover__label i { font-size: 22px; color: #F6DDBD; }
.cover__label { animation: fade 1.2s ease 1.35s both; }
.cover h1 { margin: 6px 0 20px; font: 700 clamp(38px, 11vw, 58px)/1.04 var(--font-display); text-shadow: 0 2px 24px rgba(20, 28, 36, .5); }
.ln1 { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.ln1 > span { display: block; animation: rise 1.1s var(--ease) 1.4s both; }
.ln1:nth-child(2) > span { animation-delay: 1.5s; } .ln1:nth-child(3) > span { animation-delay: 1.6s; }
.cover .btn { animation: fade-up 1s var(--ease) 1.85s both; }
@media (max-height: 720px) { .cover__top { padding-top: 48px; } .cover h1 { font-size: clamp(32px, 9.4vw, 48px); margin-bottom: 14px; } .cover__copy { padding-bottom: 20px; } }
@media (min-width: 960px) {
  /* desktop: the masthead runs across the whole spread; the photo takes the left page, the words the right one */
  .cover { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cover__photo { inset: 0 auto 0 0; width: 46%; }
  .cover__veil { inset: 0 auto 0 0; width: 46%; }
  .cover__shade { inset: 0 auto 0 0; width: 46%; background: linear-gradient(180deg, rgba(243, 233, 218, .45) 0%, rgba(243, 233, 218, 0) 30%); }
  .cover__top { grid-column: 1 / -1; padding: calc(var(--hdr-h) + 10px) clamp(24px, 3vw, 48px) 0; }
  .mast { font-size: clamp(110px, 11.8vw, 230px); }
  .cover__photo img { transform: scale(1.16); transform-origin: 50% 0; }   /* the stand's bar sits under the masthead, not behind it */
  .dateline { margin-inline-end: 50%; font-size: 16px; }
  .cover__copy { grid-column: 1; grid-row: 3; padding: 0 clamp(24px, 3vw, 48px) 64px; color: var(--ink); }
  .cover__label i { color: var(--clay); font-size: 28px; }
  .cover h1 { font-size: clamp(54px, 5.4vw, 96px); text-shadow: none; }
}

/* ---------- ticker ---------- */
.ticker { direction: ltr; overflow: hidden; border-block: 1px solid var(--ink); padding: 11px 0 9px; }
.ticker__track { display: flex; align-items: baseline; width: max-content; animation: run 40s linear infinite; }
.ticker__track > * { margin-right: 26px; white-space: nowrap; }
.ticker span { direction: rtl; font: 500 21px/1 var(--font-display); }
.ticker span[dir="ltr"] { direction: ltr; }
.ticker i { font-size: 23px; }
.ticker b { font-size: 11px; color: var(--clay); font-weight: 400; }
@keyframes run { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- shared pieces of a story ---------- */
.num { font: 500 clamp(86px, 21vw, 190px)/.8 var(--font-display); color: transparent; -webkit-text-stroke: 1.2px var(--gold); letter-spacing: -.02em; user-select: none; }
.label { margin-top: 18px; color: var(--clay); font: 700 15px/1.2 var(--font-body); }
.label i { font-size: 21px; font-weight: 400; }
h2 { margin-top: 8px; font: 700 clamp(40px, 7.2vw, 88px)/1.05 var(--font-display); text-wrap: balance; }
.big { font: 500 clamp(26px, 3.4vw, 40px)/1.28 var(--font-display); text-wrap: balance; }
.big--s { margin-top: 20px; font-size: clamp(23px, 2.6vw, 30px); }
.txt { margin-top: 16px; max-width: 32em; color: var(--soft); }
.facts { margin-top: 22px; border-bottom: 1px solid var(--line); }
.facts li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; }
.facts li::before { content: "✦"; flex: none; font-size: 11px; color: var(--clay); }
.buy { margin-top: 26px; display: flex; align-items: center; gap: 22px; }
.price { color: var(--soft); font-size: 17px; }
.buy .price { font: 500 30px/1 var(--font-display); color: var(--ink); }

.lead { padding-block: clamp(46px, 7vw, 100px) clamp(20px, 4vw, 50px); }
.lead__grid { display: grid; gap: clamp(22px, 5vw, 90px); }
@media (min-width: 900px) { .lead__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; } }

.say { padding: clamp(60px, 10vw, 150px) 22px; }
.say__p { max-width: 14em; margin-inline: auto; font: 500 clamp(36px, 6.4vw, 84px)/1.14 var(--font-display); text-wrap: balance; }
.say__p em { font-style: normal; color: var(--clay); }

/* ---------- a story: a full photo and her caption ---------- */
.ch { margin-block: clamp(30px, 6vw, 90px); }
.ch__photo { aspect-ratio: 4 / 5; background: var(--line); }
.ch__text { padding: 30px 20px 0; }
@media (min-width: 900px) {
  .ch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .ch__photo { aspect-ratio: auto; height: min(92vh, 60vw); border-start-end-radius: var(--radius); border-end-end-radius: var(--radius); }
  .ch__text { padding: 0 clamp(36px, 6vw, 120px); }
  .ch--flip .ch__photo { order: 2; border-radius: 0; border-start-start-radius: var(--radius); border-end-start-radius: var(--radius); }
}

.band { margin-block: clamp(30px, 6vw, 90px); }
.band__photo { aspect-ratio: 4 / 5; }
@media (min-width: 760px) { .band__photo { aspect-ratio: 16 / 7; } }

.sec { padding-block: clamp(46px, 7vw, 110px); }
.more__head { margin-bottom: clamp(22px, 3.5vw, 44px); }
.more__head .label { margin-top: 0; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.card { flex: 0 0 min(68vw, 300px); scroll-snap-align: center; }
.card__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px 0; }
.card h3 { font: 700 20px/1.25 var(--font-display); }
.add { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; display: grid; place-items: center; transition: background-color .35s ease, color .35s ease, transform .45s var(--ease); }
.add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.add:hover, .add:focus-visible { background: var(--ink); color: var(--bg); transform: rotate(90deg); }
.add:active { transform: scale(.92); }
@media (min-width: 900px) {
  .rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; overflow: visible; width: min(100% - 40px, 1180px); margin-inline: auto; padding: 0; }
  .card { flex: none; }
  .card:hover .card__photo img { transform: scale(1.04); }
}

.custom { border-radius: 22px; background: var(--clay); color: #fff; padding: clamp(40px, 7vw, 100px) clamp(22px, 6vw, 90px); }
.custom .label { margin-top: 0; }
.custom .label i { color: #F6DDBD; }
.custom__p { margin: 14px 0 26px; max-width: 26em; font-size: clamp(18px, 2vw, 22px); }

.about .label { margin-top: 0; }
.about__big { max-width: 9.5em; font-weight: 800; font-size: clamp(50px, 9.6vw, 136px); line-height: 1; }
.about__p { margin-top: 24px; max-width: 28em; font-size: clamp(18px, 2vw, 21px); color: var(--soft); }
.tag { display: inline-block; margin-top: 16px; padding: 5px 14px; border: 1.5px dashed var(--clay); border-radius: 99px; color: #8A3B20; font-size: 14px; }

.ftr { margin-top: clamp(20px, 4vw, 60px); border-top: 1px solid var(--ink); overflow: hidden; }
.ftr__mark { padding-top: 22px; text-align: center; white-space: nowrap; font: 500 clamp(56px, 16.4vw, 290px)/.9 var(--font-display); letter-spacing: -.01em; }
.ftr__in { padding-block: 14px 46px; text-align: center; }
.ftr__sub i { font-size: 22px; color: var(--clay); }
.ftr__line { margin-top: 14px; font-size: 16px; }
.ftr__line a { text-underline-offset: 4px; }
.ftr__note { margin-top: 8px; font-size: 14px; color: var(--soft); }
@media (min-width: 900px) { .ftr__in { padding-bottom: 88px; } }
