.catalog { padding-block-end: 0; }
.coast-cover { margin-block-end: 0; }
.studio-intro {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.84fr);
  gap: clamp(1rem, 7vw, 8rem);
  align-items: start;
  padding-block: clamp(2.8rem, 6.5vw, 6.7rem);
}
.studio-credit, .entry-tag { font-size: .98rem; color: var(--muted); }
.studio-credit { text-decoration-color: var(--light-rule); }
.studio-intro h1 {
  font: 700 clamp(3.35rem,7.4vw,7.7rem)/.95 var(--display);
  letter-spacing: -.024em;
  margin-block-start: .25em;
}
.studio-words p { font-size: clamp(1.07rem,1.48vw,1.4rem); line-height: 1.55; max-width: 41ch; }
.studio-words p + p { margin-block-start: .72em; }
.studio-words nav { display: flex; align-items: center; gap: 1.3rem; margin-block-start: 1.25rem; }
.land-album {
  background: #e4ebee;
  color: var(--navy);
  padding-block: clamp(1.7rem,4.2vw,4.35rem);
  border-block: 1px solid var(--rule);
}
.album-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1.8rem; border-block-end: 1px solid var(--rule); padding-block-end: 1rem; }
.album-heading h2 { font: 400 clamp(2.2rem,4.3vw,4.55rem)/1.04 var(--display); letter-spacing: -.025em; }
.album-heading nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.album-heading a { display: inline-flex; align-items: center; min-height: 2.5rem; }
.album-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(1.3rem,6vw,6.6rem); }
.land-entry {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(21rem,59svh,35rem);
  scroll-margin-block-start: 1.2rem;
  border-block-end: 1px solid #acbbc5;
}
.land-entry:last-child { border: 0; }
.entry-print { display: none; }
.entry-copy { padding-block: 1.5rem; }
.entry-copy h3 { margin: .15em 0 .12em; font-size: clamp(3.25rem,7vw,7.1rem); line-height: 1.04; font-weight: var(--weight); }
.entry-copy > p:not(.entry-tag) { max-width: 38ch; line-height: 1.58; font-size: clamp(1rem,1.5vw,1.23rem); }
.entry-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; margin-block-start: 1.1rem; }
.entry-links a { display: inline-flex; align-items: center; min-height: 2.3rem; }
.entry-source { color: var(--muted); font-size: .875rem; }
.album-print { position: sticky; top: 6.1rem; margin: 1.2rem 0 0; align-self: start; }
.print-stack {
  position: relative;
  height: clamp(16rem, 57svh, 35rem);
  overflow: hidden;
  background: var(--navy);
}
.print-stack img { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.print-stack img[data-visible="true"] { opacity: 1; }
.album-print figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; border-block-end: 1px solid var(--rule); }
.print-progress { display: flex; gap: .25rem; }
.print-progress i { display: block; height: 2px; width: 1.35rem; background: #a5b5c3; }
.print-progress i[data-visible="true"] { background: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .print-stack img { transition: opacity .35s ease-in-out; }
}
.catalog #fonts { padding-block: clamp(2.5rem,6vw,6rem); }
.catalog-more { display: block; margin: 1rem auto 0; min-height: 2.8rem; padding: .5rem 1.15rem; border: 1px solid var(--rule); color: var(--navy); background: transparent; }
.catalog-more:hover, .catalog-more:focus-visible { background: #e6edf1; }
.studio-journal { padding-block: clamp(2.2rem,4.5vw,4.9rem); color: var(--paper); background: var(--navy); }
.studio-journal .album-heading { border-color: #8196ae; }
.studio-journal a:focus-visible { outline-color: var(--paper); }
.journal-notes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.2rem,2.5vw,2.4rem); }
.journal-note { display: grid; gap: .9rem; align-content: start; color: inherit; text-decoration: none; padding-block: 1.2rem .6rem; }
.journal-note:hover h3 { text-decoration: underline; }
.note-cover { width: 100%; height: auto; aspect-ratio: 1600 / 893; object-fit: cover; display: block; border: 1px solid rgba(244,239,226,.35); }
.journal-note:hover .note-cover { filter: brightness(1.05); }
.journal-note h3 { margin: 0 0 .35rem; font: 700 clamp(1.3rem,1.9vw,1.8rem)/1.15 var(--display); }
.journal-note p { color: #d9e2ed; line-height: 1.45; }
@media (max-height: 32rem) and (min-width: 43.01rem) {
  .album-print { top: 5.5rem; }
  .print-stack { height: 51vh; min-height: 0; }
}
@media (max-width: 43rem) {
  .studio-intro { grid-template-columns: minmax(0,1fr); gap: 1.2rem; }
  .studio-intro h1 br { display: none; }
  .studio-intro h1 { max-width: 9ch; line-height: 1; }
  .album-layout { display: block; }
  .album-print { display: none; }
  .album-heading { align-items: start; padding-block-end: .55rem; }
  .entry-print { display: block; width: 100%; max-height: 19rem; aspect-ratio: 1.65; object-fit: cover; margin-block-start: 1.3rem; }
  .land-entry { min-height: 0; }
  .entry-copy { padding-block: 1rem 1.3rem; }
  .entry-copy h3 { font-size: clamp(3.05rem,12vw,4.6rem); }
  .journal-notes { grid-template-columns: minmax(0,1fr); gap: 0; }
  .journal-note { padding-block: 1.4rem; }
  .journal-note + .journal-note { border-block-start: 1px solid #8196ae; }
}
@media (max-width: 43rem) and (prefers-reduced-motion: no-preference) {
  .album-motion .entry-print { opacity: .78; clip-path: inset(0 0 7% 0); transition: opacity .35s, clip-path .5s ease-out; }
  .album-motion .land-entry.is-read .entry-print { opacity: 1; clip-path: inset(0); }
}

.album-heading nav a[aria-current] { text-decoration-thickness: 2px; text-underline-offset: .35em; }
.land-album:not(.album-motion) .album-print { display: none; }
.land-album:not(.album-motion) .album-layout { display: block; }
.land-album:not(.album-motion) .land-entry { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem 3rem; align-items: center; padding-block: 1.2rem; }
.land-album:not(.album-motion) .entry-print { display: block; width: 100%; height: auto; }

/* Catalog filters: one row per group (style, language, weights, price), search beside them. */
.catalog-tools { align-items: start; }
.family-filters { display: grid; flex: 1; }
.filter-group { display: flex; align-items: stretch; border-block-end: 1px solid var(--light-rule); }
.filter-label { flex: 0 0 5.5rem; display: flex; align-items: center; padding-inline: .2rem .8rem; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.family-filters .filters button { min-height: 2.75rem; padding: .45rem 1rem; }
.family-filters .filters button small { font-size: .875rem; color: inherit; opacity: .6; }
.family-filters .filters button.is-empty { opacity: .45; }
@media (max-width: 56rem) {
  .filter-group { flex-direction: column; }
  .filter-label { flex-basis: auto; padding-block: .6rem .1rem; }
  .family-filters .filters { flex-wrap: nowrap; overflow-x: auto; }
}

/* Lital's letters are drawn small inside the em and Kibbutz Galuyot is very narrow: both get a bigger size so they
   read at the same scale as the other names. */
.card[data-family="lital"] .specimen { font-size: clamp(3.4rem, 40cqw, 12rem); line-height: .62; padding: 0; }
.card[data-family="kibbutz-galuyot"] .specimen { font-size: clamp(2.3rem, 20cqw, 7.6rem); }

/* all rows the height of the tallest, so the grid reads as one even sheet */
.font-grid { grid-auto-rows: 1fr; }

/* Catalog grouped by type: sans, display, serif / semi-serif */
.type-groups { display: grid; gap: clamp(2.2rem, 4vw, 3.6rem); margin-block-start: clamp(1.8rem, 3vw, 2.8rem); }
.type-group-title { display: flex; align-items: baseline; gap: .55rem; margin: 0 0 clamp(.7rem, 1.3vw, 1.1rem); font: 700 clamp(1.5rem, 2.6vw, 2.3rem)/1.05 var(--display); color: var(--navy); }
.type-group-title small { font: 500 1rem/1 var(--body); color: var(--muted); }

/* ---- after the story: the warehouse, the cards, the notice board, the way out ---- */
.warehouse { position: relative; overflow: hidden; margin-block-start: clamp(2rem, 5vw, 4rem); aspect-ratio: 3840 / 1646; max-height: 78svh; width: 100%; background: var(--paper); }
.wh-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 40%; will-change: transform; }
.warehouse-line { max-width: 44rem; margin: 0 0 clamp(1.4rem, 3vw, 2.4rem); font: 500 clamp(1.15rem, 1.7vw, 1.5rem)/1.55 var(--body); color: var(--ink); }
#fonts { margin-block-start: clamp(-4rem, -5vw, -2rem); position: relative; }

.after-js .card.will-arrive { opacity: 0; translate: 0 3rem; rotate: -1.4deg; transition: opacity .7s ease var(--wait, 0ms), translate .8s cubic-bezier(.2,.8,.2,1) var(--wait, 0ms), rotate .8s cubic-bezier(.2,.8,.2,1) var(--wait, 0ms); }
.after-js .card.will-arrive.is-in { opacity: 1; translate: 0 0; rotate: 0deg; }
.after-js #font-grid .card { perspective: 900px; }
.after-js #font-grid .card-link { transition: transform .25s ease, background-color .2s ease; transform-style: preserve-3d; will-change: transform; }
.after-js #font-grid .card-link .specimen { translate: var(--sx, 0) var(--sy, 0); transition: translate .25s ease; }
.card-dive { position: fixed; z-index: 1000; display: grid; place-items: center; overflow: hidden; transform-origin: 50% 50%; pointer-events: none; }
.card-dive .specimen { margin: 0; }

/* the studio notebook: printed sheets drying on an old clothesline, held by wooden clothespins */
.journal-notes { position: relative; align-items: start; padding-block-start: 3.6rem; margin-block-start: 1.4rem; }
.journal-notes::before { content: ""; position: absolute; inset: .6rem -4vw auto; height: 2.6rem; background: url(/assets/home/after/rope.svg) center / 100% 100% no-repeat; pointer-events: none; }
.journal-note { position: relative; background: var(--paper); color: var(--navy); padding: .9rem .9rem 1.1rem !important; box-shadow: .35rem .45rem 0 rgba(8, 16, 36, .55); transform-origin: 50% -1.6rem; transition: rotate .45s cubic-bezier(.3,1.6,.5,1), translate .35s ease; }
.journal-note:nth-child(1) { rotate: -1.8deg; translate: 0 -1.1rem; } .journal-note:nth-child(2) { rotate: 1.2deg; translate: 0 -.55rem; } .journal-note:nth-child(3) { rotate: -.8deg; translate: 0 -1.1rem; }
.journal-note:hover { rotate: 0deg; }
.journal-note::before { content: ""; position: absolute; top: -2.6rem; left: 50%; width: 2.1rem; height: 4.6rem; margin-left: -1.05rem; background: url(/assets/home/after/clothespin.svg) center / contain no-repeat; z-index: 1; filter: drop-shadow(.12rem .15rem 0 rgba(8,16,36,.5)); }
.journal-note p { color: var(--ink) !important; }
.journal-note .note-cover { border-color: var(--navy); }
@media (max-width: 56rem) { .journal-notes::before { display: none; } .journal-note:nth-child(n) { translate: 0 0; margin-block-start: 1.6rem; } }
@media (prefers-reduced-motion: no-preference) { .journal-note { animation: note-sway 6s ease-in-out infinite alternate; } .journal-note:nth-child(2) { animation-duration: 7.5s; animation-delay: -2s; } .journal-note:nth-child(3) { animation-delay: -4s; } .journal-note:hover { animation-play-state: paused; } }
@keyframes note-sway { from { transform: rotate(-.9deg); } to { transform: rotate(.9deg); } }

/* the way out: the opening dive in reverse */
.exit { position: relative; background: #101d3a; }
.exit-img { display: block; width: 100%; height: auto; }
.exit-line { margin: 0; padding: 2rem clamp(1.25rem, 5vw, 4rem); color: var(--paper); font: 700 clamp(1.6rem, 3.6vw, 3.2rem)/1.2 var(--display); text-align: center; }
.exit-line p { margin: 0; text-wrap: balance; }
.exit-cta { display: inline-block; margin-top: 1.1rem; padding: .7rem 1.5rem; background: #192d54; color: var(--paper); font: 700 1.0625rem/1 var(--body); text-decoration: none; text-shadow: none; box-shadow: .3rem .3rem 0 #4a86c5; }
.exit-cta:hover { translate: -.1rem -.1rem; box-shadow: .4rem .4rem 0 #4a86c5; }
.exit.is-live { height: 260svh; }
.exit.is-live .exit-pin { position: sticky; top: var(--hh, 0px); height: calc(100svh - var(--hh, 0px)); overflow: hidden; }
.exit.is-live .exit-img { position: absolute; max-width: none; will-change: transform; }
.exit.is-live .exit-line { position: absolute; inset: auto clamp(1rem, 4vw, 3.5rem) clamp(1.25rem, 6svh, 3.5rem) auto; z-index: 2; max-width: min(25rem, calc(100% - 2rem)); padding: 1.2rem 1.4rem 1.4rem; background: var(--paper); color: var(--navy); border: 1.5px solid #101d3a; box-shadow: .45rem .45rem 0 #4a86c5; text-align: start; font-size: clamp(1.25rem, 1.9vw, 1.7rem); opacity: 0; translate: 0 1.2rem; transition: opacity .8s ease, translate .8s ease; }
.exit.is-live .exit-line.is-on { opacity: 1; translate: 0 0; }
body:has(.exit) .site-footer { background: #101d3a; color: var(--paper); border-block-start: 1px solid rgba(244,239,226,.25); }
body:has(.exit) .site-footer a { color: var(--paper); }
