:root {
  --ivory: #f6f1e7;
  --sand: #e4d2b8;
  --olive: #3c4a30;
  --olive-soft: #5c6848;
  --charcoal: #1c1b18;
  --muted: #4e4a42;
  --line: rgba(28, 27, 24, 0.14);
  --pad: clamp(1.35rem, 4.4vw, 4.75rem);
  --serif: "Noto Serif Hebrew", "Times New Roman", serif;
  --sans: "Assistant", "Arial Hebrew", "Arial", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: #efe0c4;
  color: var(--charcoal);
}

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  z-index: 30;
  inset-inline-start: var(--pad);
  top: 0.8rem;
  transform: translateY(-160%);
  padding: 0.65rem 1rem;
  background: var(--olive);
  color: var(--ivory);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

main:focus {
  outline: none;
}

.top,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-inline: var(--pad);
  background: var(--ivory);
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: calc(1.05rem + env(safe-area-inset-top));
  padding-bottom: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  color: var(--olive);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a,
.foot a {
  color: var(--charcoal);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.foot a:hover {
  color: var(--olive);
}

.frame {
  margin: 0;
  background: var(--sand);
  overflow: hidden;
}

.frame img {
  display: block;
  width: 100%;
  height: min(74vh, 780px);
  object-fit: cover;
  object-position: center 58%;
}

.hero-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(46rem, calc(100% - 2 * var(--pad)));
  margin-top: clamp(-4.5rem, -8vh, -2.5rem);
  margin-inline-start: var(--pad);
  margin-bottom: clamp(2rem, 5vh, 3rem);
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.3rem, 3vw, 2.4rem) clamp(1.6rem, 3vw, 2.4rem);
  background: var(--ivory);
}

.kicker,
.eyebrow {
  margin: 0;
  color: var(--olive);
  font-size: 0.98rem;
  font-weight: 600;
}

.hero h1,
.journey h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero h1 {
  margin-top: 0.55rem;
  font-size: clamp(2.35rem, 4.6vw, 4.15rem);
  line-height: 1.18;
}

.line {
  display: block;
}

.lede,
.journey-copy p,
.contact-copy p,
.ways p {
  margin: 0;
  color: var(--muted);
}

.lede {
  max-width: 36rem;
  margin-top: 1rem;
  font-size: 1.12rem;
  line-height: 1.8;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  margin-top: 1.4rem;
  padding: 0.85rem 1.3rem;
  background: var(--olive);
  color: var(--ivory);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  background: #4d5d3e;
  transform: translateY(-1px);
}

#journey,
#contact {
  scroll-margin-top: 5rem;
}

.journey,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(3.5rem, 9vh, 6.5rem) var(--pad);
}

.journey {
  border-top: 1px solid var(--line);
}

.journey h2,
.contact h2 {
  margin-top: 0.6rem;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.22;
}

.journey-copy p,
.contact-copy p {
  margin-top: 1rem;
  max-width: 32rem;
  font-size: 1.125rem;
}

.ways {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ways li {
  padding: 1.15rem 0 1.25rem;
  border-top: 1px solid var(--line);
}

.ways li:last-child {
  border-bottom: 1px solid var(--line);
}

.ways h3 {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.25;
}

.contact {
  align-items: end;
  background: var(--sand);
}

.mails {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(28, 27, 24, 0.16);
  color: inherit;
  text-decoration: none;
}

.mail:last-child {
  border-bottom: 1px solid rgba(28, 27, 24, 0.16);
}

.mail-label {
  color: var(--olive);
  font-size: 0.95rem;
  font-weight: 600;
}

.mail-addr {
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
  border-bottom: 2px solid var(--olive);
  unicode-bidi: isolate;
}

.mail:hover .mail-addr {
  color: var(--olive);
}

.foot {
  padding-top: 1.15rem;
  padding-bottom: calc(1.3rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.foot-mails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
}

.foot a[href^="mailto"] {
  unicode-bidi: isolate;
}

@media (max-width: 900px) {
  .journey,
  .contact {
    grid-template-columns: 1fr;
  }

  .frame img {
    height: min(52vh, 420px);
  }

  .hero-card {
    margin-top: -2rem;
  }
}

@media (max-width: 640px) {
  .cta {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .nav {
    gap: 0.8rem;
  }

  .wordmark {
    letter-spacing: 0.08em;
    font-size: 0.78rem;
  }

  .nav a {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta,
  .frame img {
    transition: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-card .kicker,
  .hero h1 .line,
  .lede,
  .hero .cta {
    animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero h1 .line:nth-child(2) {
    animation-delay: 0.08s;
  }

  .lede {
    animation-delay: 0.14s;
  }

  .hero .cta {
    animation-delay: 0.2s;
  }

  .frame img {
    animation: settle 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes settle {
  from {
    transform: scale(1.04);
  }

  to {
    transform: scale(1);
  }
}
