/* atlit.co.il home: chaptered editorial. Tokens feed the scrollcraft engine. */
:root {
  --sc-canvas: #F4F0E8; --sc-surface: #ffffff;
  --sc-ink: #123047; --sc-ink-soft: #3d5568;
  --sc-accent: #0E716F; --sc-accent-ink: #ffffff;
  --sc-font-display: Heebo, "Arial Hebrew", Arial, sans-serif;
  --sc-font-text: Heebo, "Arial Hebrew", Arial, sans-serif;
  --sh-navy: #123047; --sh-teal: #0E716F; --sh-sand: #F4F0E8; --sh-line: rgba(18,48,71,.16);
  --sh-ease: cubic-bezier(0.23, 1, 0.32, 1);
}
.sh { position: relative; color: var(--sh-navy); background: var(--sh-sand); }
.sh-wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.sh p { margin: 0 0 1rem; line-height: 1.7; max-width: 38rem; }
.sh-kicker { font-size: .95rem; font-weight: 500; color: var(--sh-teal); margin-bottom: .5rem !important; }
.sh-h1 { font-size: clamp(4.5rem, 17vw, 13rem); line-height: .9; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 .25em; }
.sh-h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.15; font-weight: 700; margin: 0 0 1rem; letter-spacing: -0.01em; max-width: 18ch; }
.sh-textlink { color: var(--sh-teal); font-weight: 500; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.sh-textlink:hover { text-decoration-thickness: 2px; }
.sh-btn { display: inline-flex; align-items: center; min-height: 48px; padding: .7rem 1.4rem; border-radius: 10px; background: var(--sh-teal); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(14,113,111,.6); transition: transform 140ms var(--sh-ease), background-color 160ms var(--sh-ease); }
.sh-btn:hover { background: #0b5f5d; }
.sh-btn:active { transform: translateY(1px) scale(.98); }
.sh-btn--lg { font-size: 1.15rem; min-height: 56px; padding-inline: 2rem; }
.sh :focus-visible { outline: 3px solid var(--sh-teal); outline-offset: 3px; border-radius: 4px; }

/* Folio: the margin nav. Chapter name. */
.folio { position: fixed; inset-inline-end: clamp(.75rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); z-index: 15; display: grid; gap: .5rem; justify-items: end; max-width: 11rem; pointer-events: none; }
.folio > * { pointer-events: auto; }
.folio-chapter { writing-mode: vertical-rl; font-size: .9rem; font-weight: 500; color: var(--sh-navy); text-decoration: none; padding: .6rem .35rem; border-inline-start: 1px solid var(--sh-line); }
.folio-chapter.is-turn { animation: sh-turn 420ms var(--sh-ease); }
@keyframes sh-turn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sh-stamp { from { opacity: 0; transform: scale(.95) translateX(8px); } to { opacity: 1; transform: none; } }

/* Title page: type on paper, a far plane of the name behind it. */
.sh-title { position: relative; overflow: hidden; min-height: min(88svh, 820px); display: grid; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); border-bottom: 1px solid var(--sh-line); }
.sh-title__ghost { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; pointer-events: none; padding-inline-start: 2vw; }
.sh-title__ghost span { display: block; font-size: 34vw; line-height: .78; font-weight: 700; color: rgba(14,113,111,.07); transform-origin: bottom; }
.sh-title__inner { position: relative; }
.sh-title__line { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 500; color: var(--sh-teal); margin-bottom: 1.25rem !important; }
.sh-title__lede { font-size: 1.15rem; color: #2a4357; }
.sh-title__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.75rem !important; }

/* Chapters: hard grounds, captioned media in its own column. */
.sh-chapter { padding-block: clamp(4rem, 9vw, 8rem); }
.sh-spread { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.sh-spread--rev { grid-template-columns: 6fr 6fr; }
.sh-figure { margin: 0; }
.sh-figure img { width: 100%; height: auto; border-radius: 6px; }
.sh-figure figcaption, .sh-credit { font-size: .85rem; color: #4b6172; margin-top: .6rem; }
.sh-frame { position: relative; overflow: hidden; border-radius: 6px; box-shadow: 0 18px 40px -24px rgba(18,48,71,.55); }
.sh-par { position: absolute; inset: -9% 0; }
.sh-par img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 0; }
.sh-figure--tall .sh-frame { aspect-ratio: 4 / 5; }
.sh-homes { background: #fff; border-block: 1px solid var(--sh-line); }
.sh-homes__head { margin-bottom: 2.5rem; }
.sh-figure--wide img { aspect-ratio: 16 / 7; object-fit: cover; }
.sh-hoods { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.sh-hood { display: flex; }
.sh-hood__card { display: flex; flex-direction: column; gap: .4rem; width: 100%; padding: 1.1rem 1.2rem; border: 1px solid var(--sh-line); border-radius: 12px; background: #fff; color: #3d5568; text-decoration: none; transition: border-color 150ms var(--sh-ease), transform 150ms var(--sh-ease), box-shadow 150ms var(--sh-ease); }
.sh-hood__card:hover { border-color: var(--sh-teal); transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(18,48,71,.5); }
.sh-hood__card:focus-visible { outline: 3px solid var(--sh-teal); outline-offset: 2px; }
.sh-hood__name { font-size: 1.25rem; font-weight: 700; color: var(--sh-navy); }
.sh-hood__text { font-size: .95rem; line-height: 1.5; flex: 1; }
.sh-hood__more { font-size: .9rem; font-weight: 700; color: #0b5f5d; }
.sh-homes__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 !important; }
.sh-btn--ghost { background: #fff; color: #0b5f5d; border: 2px solid var(--sh-teal); box-shadow: none; }
.sh-btn--ghost:hover { background: rgba(14,113,111,.08); }
@media (max-width: 860px) {
  .sh-hoods { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .75rem; margin-inline: -1.25rem; padding: .25rem 1.25rem 1rem; overscroll-behavior-x: contain; }
  .sh-hood { flex: 0 0 78%; scroll-snap-align: start; }
  .sh-btn { white-space: normal; }
}

/* Authored silence before the peak. */
.sh-pause { background: var(--sh-navy); color: #fff; min-height: 62svh; display: grid; place-items: center; }
.sh-pause__line { font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 700; margin: 0 !important; color: #F4F0E8; }

/* Peak: the fortress opens edge to edge. */
.sh-sea { background: var(--sh-navy); }
.sh-sea__stage { display: grid; grid-template-rows: 1fr auto; background: var(--sh-navy); color: #F4F0E8; }
.sh-sea__fig { margin: 0; overflow: hidden; min-height: 0; }
.sh-sea__fig img { width: 100%; height: 100%; object-fit: cover; }
.sh-sea__cap { padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 1.75rem; display: grid; grid-template-columns: auto 1fr; gap: .5rem 3rem; align-items: baseline; }
.sh-sea__cap .sh-h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 3vw, 2.4rem); }
.sh-sea__cap p { color: #e7e1d4; margin: 0 !important; }
.sh-sea__cap .sh-credit { color: #c9c2b4; }

/* Memory. */
.sh-memory { background: var(--sh-sand); }
.sh-stack { display: grid; gap: 1.5rem; }
.sh-map .sh-frame { aspect-ratio: 4 / 3; }
.sh-camp { width: 72%; margin-inline-start: auto; margin-top: -4rem; position: relative; }
.sh-camp img { box-shadow: 0 18px 36px -20px rgba(18,48,71,.6); border: 6px solid #fff; }

/* Colophon close. */
.sh-colophon { background: #fff; border-top: 1px solid var(--sh-line); padding-block: clamp(4rem, 9vw, 7rem); }
.sh-colophon__inner { text-align: start; }
.sh-close__line { font-size: 1.2rem; }
.sh-close__alt { color: #3d5568; }
.sh-credits { margin-top: 2.5rem; font-size: .85rem; color: #3d5568; max-width: 46rem; }
.sh-credits summary { cursor: pointer; min-height: 32px; }
.sh-credits ul { padding-inline-start: 1.1rem; }
.sh-credits a { color: var(--sh-teal); }

@media (max-width: 860px) {
  .sh-spread, .sh-spread--rev { grid-template-columns: 1fr; }
  .sh-figure--tall .sh-frame { aspect-ratio: 4 / 3; }
  .sh-camp { width: 80%; margin-top: -2.5rem; }
  .folio { top: auto; bottom: calc(var(--bar-h, 64px) + env(safe-area-inset-bottom, 0px) + .75rem); transform: none; inset-inline-end: .75rem; }
  .folio-chapter { display: none; }
  .sh-sea__cap { grid-template-columns: 1fr; }
  .sh-figure--wide img { aspect-ratio: 4 / 3; }
  .sh-title { min-height: 78svh; }
}
@media (prefers-reduced-motion: reduce) {
  .folio-chapter.is-turn,   .sh-par { inset: 0; transform: none !important; }
  .sh-title__ghost span { transform: none !important; }
}
.sh-colophon .sh-h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 14ch; }
.sh-title__ghost span::before { content: "עתלית"; }

/* Hero far plane: the bay, behind the name. */
.sh-title__photo { position: absolute; inset-block: 0; inset-inline-end: 0; width: 52%; margin: 0; overflow: hidden; }
.sh-title__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(244,240,232,0) 55%, #F4F0E8 100%); }
.sh-title__photo .sh-par img { object-position: center; }
.sh-title__ghost { z-index: 1; }
.sh-title__inner { z-index: 2; }
.sh .sh-title__inner > * { max-width: min(30rem, 36vw); }
.sh-title__photo { z-index: 0; }
@media (max-width: 860px) { .sh .sh-title__inner > * { max-width: none; } }
.sh-title__credit { position: absolute; inset-block-end: .75rem; inset-inline-end: 1rem; z-index: 2; font-size: .75rem !important; color: #fff; background: rgba(18,48,71,.92); padding: .15rem .5rem; border-radius: 4px; margin: 0 !important; }
@media (max-width: 860px) {
  .sh-title { align-items: end; padding-top: 0; }
  .sh-title__photo { position: relative; width: 100%; height: 42svh; grid-row: 1; }
  .sh-title__photo::after { background: linear-gradient(to bottom, rgba(244,240,232,0) 60%, #F4F0E8 100%); }
  .sh-title__credit { position: static; display: inline-block; margin-bottom: 1rem !important; }
}
