:root {
  --red: #b11226;
  --red-dark: #75101d;
  --red-soft: #fff1f3;
  --ink: #24191b;
  --muted: #735e62;
  --line: #ead7da;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(117, 16, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(177, 18, 38, 0.08) 0 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(180deg, #fff 0%, #fff7f8 58%, #fff 100%);
  font-family: "Heebo", Arial, "Noto Sans Hebrew", sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 110px,
      rgba(177, 18, 38, 0.035) 110px 112px,
      transparent 112px 220px
    );
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(177, 18, 38, 0.14);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--red-dark);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  background: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a,
.button,
.app-tabbar a,
.app-tabbar button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font: inherit;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: var(--red);
  background: var(--red-soft);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 72px) clamp(18px, 5vw, 76px);
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border: 10px solid var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--red-soft);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.hero-media img {
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center top;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.tag {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--red-dark);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--red-dark);
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--red-dark);
  font-size: 1.32rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: #4b3438;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  border: 1px solid var(--red);
}

.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.secondary {
  color: var(--red-dark);
  background: var(--white);
}

.install-button,
.share-button {
  cursor: pointer;
}

.install-button {
  color: var(--white);
  background: var(--red-dark);
}

.share-button {
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.86);
}

.install-card {
  width: min(1180px, calc(100% - 36px));
  margin: 32px auto 0;
  padding: clamp(20px, 3vw, 28px) clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, var(--red-soft) 100%);
  box-shadow: 0 14px 36px rgba(117, 16, 29, 0.08);
}

.install-card h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.install-card .install-hint {
  margin: 0 0 14px;
  color: #4b3438;
  font-size: 0.98rem;
  line-height: 1.55;
}

.install-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.install-dismiss {
  min-height: 38px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
}

.install-dismiss:hover {
  color: var(--red-dark);
  background: rgba(177, 18, 38, 0.08);
}

.instagram-link,
.story-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 9px 16px;
  border: 1px solid var(--red);
  border-radius: 999px;
  color: var(--red-dark);
  background: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.story-link {
  border-color: rgba(177, 18, 38, 0.3);
}

.home-panels,
.section,
.sources {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.home-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 0 76px;
}

.panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(117, 16, 29, 0.08);
}

.panel.prominent {
  grid-row: span 2;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  background: var(--red);
  color: var(--white);
}

.panel.prominent h2,
.panel.prominent .section-kicker {
  color: var(--white);
}

.section {
  padding: 80px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.story-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.story-item {
  overflow: hidden;
  position: relative;
  display: flex;
  min-height: 236px;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 241, 243, 0.78), rgba(255, 255, 255, 0.96) 42%),
    var(--white);
  box-shadow: 0 12px 36px rgba(117, 16, 29, 0.08);
}

.story-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
}

.story-thumb {
  position: relative;
  display: grid;
  width: 74px;
  height: 74px;
  min-width: 74px;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--red-soft);
  box-shadow: 0 10px 24px rgba(117, 16, 29, 0.18);
}

.story-thumb img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  transition: transform 180ms ease;
}

.story-item:hover .story-thumb img {
  transform: scale(1.035);
}

.video-thumb span {
  position: absolute;
  inset-inline-end: -2px;
  bottom: -2px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
}

.story-body {
  min-width: 0;
  padding: 0;
}

.story-body p:not(.tag) {
  max-width: 760px;
  margin-bottom: 12px;
  color: #4b3438;
  font-size: 0.98rem;
  line-height: 1.65;
}

.memory-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.privacy-section {
  min-height: calc(100vh - 190px);
}

.privacy-content {
  max-width: 820px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(117, 16, 29, 0.08);
}

.privacy-content h2 {
  font-size: 1.35rem;
}

.memory-copy {
  max-width: 700px;
}

.memory-details {
  display: grid;
  gap: 12px;
}

.memory-details div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.memory-details span {
  color: var(--muted);
  font-size: 0.95rem;
}

.memory-details strong {
  color: var(--red-dark);
  text-align: left;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 32px 0 72px;
  border-top: 1px solid var(--line);
}

.sources h2 {
  width: 100%;
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.sources a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--red-dark);
  background: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  padding: 34px 18px;
  color: var(--white);
  background: var(--red-dark);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  font-size: 1.6rem;
  font-weight: 900;
}

.app-tabbar {
  position: fixed;
  right: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 20;
  display: none;
  width: min(520px, calc(100% - 24px));
  transform: translateX(50%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(177, 18, 38, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(117, 16, 29, 0.18);
  backdrop-filter: blur(18px);
}

.app-tabbar a,
.app-tabbar button {
  min-height: 40px;
  padding: 7px 8px;
  border: 0;
  color: var(--red-dark);
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
}

.app-tabbar a:hover,
.app-tabbar button:hover {
  color: var(--white);
  background: var(--red);
}

@media (max-width: 880px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
    text-align: center;
  }

  .nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero,
  .home-panels,
  .memory-section {
    grid-template-columns: 1fr;
  }

  .story-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 360px;
  }

  .hero-media img {
    min-height: 360px;
  }

  .panel.prominent {
    grid-row: auto;
  }

  body {
    padding-bottom: 82px;
  }

  .app-tabbar {
    display: grid;
  }
}

@media (max-width: 560px) {
  .nav a {
    flex: 1 1 30%;
    padding-inline: 10px;
  }

  .hero {
    padding-top: 24px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .memory-details div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .story-item {
    min-height: auto;
    flex-direction: column;
    gap: 14px;
  }

  .story-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
  }
}
