:root {
  --ivory: #f3efe6;
  --ink: #1a1916;
  --olive: #3e4c3a;
  --bronze: #8e7349;
  --muted: #4e4942;
  --line: rgba(26, 25, 22, 0.14);
  --pad: clamp(1.35rem, 4.4vw, 4.75rem);
  --serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "Noto Sans Hebrew", "Arial Hebrew", "Arial", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

::selection {
  background: #e4d3bc;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  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(--ink);
  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);
}

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

.wordmark {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

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

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

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

.hero {
  padding: clamp(2.6rem, 8vh, 5.5rem) var(--pad) clamp(1.6rem, 4vh, 2.4rem);
}

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

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

.hero h1 {
  margin-top: 0.8rem;
  max-width: 11em;
  font-size: clamp(2.8rem, 6.6vw, 6.4rem);
  line-height: 1.08;
}

.line {
  display: block;
}

.line-rule {
  width: fit-content;
  max-width: 100%;
  background-image: linear-gradient(var(--bronze), var(--bronze));
  background-repeat: no-repeat;
  background-position: 100% 96%;
  background-size: 3.2em 3px;
}

.frame {
  margin: 0;
  background: #ddd4c6;
  overflow: hidden;
}

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

.intro,
.areas,
.note,
.contact {
  padding-inline: var(--pad);
}

.intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-top: clamp(2rem, 5vh, 3.2rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}

.intro p,
.areas-copy p,
.note p,
.contact-copy p,
.index p {
  margin: 0;
  color: var(--muted);
}

.intro p {
  max-width: 38rem;
  font-size: 1.16rem;
  line-height: 1.8;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 3.4rem;
  padding: 0.85rem 1.35rem;
  background: var(--ink);
  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: var(--olive);
  transform: translateY(-1px);
}

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

.areas {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
  padding-top: clamp(1rem, 3vh, 2rem);
  padding-bottom: clamp(3.5rem, 8vh, 5.5rem);
}

.areas h2,
.note h2,
.contact h2 {
  margin-top: 0.65rem;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
}

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

.index {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.index li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.8rem 1.2rem;
  align-items: start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.num {
  color: var(--olive);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
}

.index h3 {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.25;
}

.note {
  padding-top: clamp(2.5rem, 6vh, 4rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
  border-top: 3px solid var(--bronze);
}

.note p {
  max-width: 38rem;
  margin-top: 0.9rem;
  font-size: 1.125rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  padding-top: clamp(4rem, 10vh, 6.5rem);
  padding-bottom: clamp(4rem, 10vh, 6.5rem);
  border-top: 1px solid var(--line);
}

.mails {
  display: flex;
  flex-direction: column;
}

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

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

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

.mail-addr {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
  border-bottom: 2px solid var(--bronze);
  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) {
  .areas,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

  .intro {
    align-items: stretch;
  }
}

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

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

  .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 .kicker,
  .hero h1 .line {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

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

  .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);
  }
}
