:root {
  --charcoal: #171915;
  --ivory: #f6f1e8;
  --forest: #1e4638;
  --coral: #d48978;
  --muted: #4c4842;
  --muted-light: #d5d0c8;
  --line: rgba(23, 25, 21, 0.14);
  --line-light: rgba(246, 241, 232, 0.16);
  --pad: clamp(1.35rem, 4.4vw, 4.75rem);
  --display: "Miriam Libre", "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: #f0d4ce;
  color: var(--charcoal);
}

:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--ivory);
}

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

.skip:focus {
  transform: none;
}

main:focus {
  outline: none;
}

.top,
.foot,
.hero,
.contact {
  background: var(--charcoal);
  color: var(--ivory);
}

.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;
  border-bottom: 1px solid var(--line-light);
}

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

.wordmark span:last-child {
  color: var(--coral);
}

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

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

.nav a:hover,
.foot a:hover {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  align-items: end;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: calc(100svh - 4.5rem);
  padding: clamp(2.4rem, 7vh, 4.5rem) var(--pad) clamp(2.6rem, 8vh, 4.8rem);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 42rem;
}

.kicker,
.eyebrow {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.kicker {
  color: var(--muted-light);
}

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

.hero h1 {
  margin-top: 0.75rem;
  font-size: clamp(2.45rem, 4.7vw, 4.55rem);
  line-height: 1.18;
}

.line {
  display: block;
}

.lede,
.hub-copy p,
.contact p,
.points p {
  margin: 0;
}

.lede {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--muted-light);
  font-size: 1.14rem;
  line-height: 1.8;
}

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

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

.hub {
  align-self: center;
  width: min(100%, 380px);
}

.hub svg {
  display: block;
  width: 100%;
  height: auto;
}

.spoke {
  fill: none;
  stroke: var(--ivory);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
}

.spoke-forest {
  stroke: #8eaea0;
}

.node {
  fill: var(--ivory);
}

.node-forest {
  fill: #8eaea0;
}

.core {
  fill: var(--coral);
}

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

.hub-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(4.5rem, 11vh, 7.5rem) var(--pad);
  background: var(--ivory);
  color: var(--charcoal);
}

.eyebrow {
  color: var(--forest);
}

.hub-section h2,
.contact h2 {
  margin-top: 0.6rem;
  font-size: clamp(2.05rem, 3.8vw, 3.35rem);
  line-height: 1.22;
}

.hub-copy p,
.points p {
  color: var(--muted);
}

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

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

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

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

.points h3 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(4.5rem, 11vh, 7.5rem) var(--pad);
  box-shadow: inset 0 3px 0 var(--coral);
}

.contact .eyebrow {
  color: var(--coral);
}

.contact p {
  max-width: 32rem;
  margin-top: 1rem;
  color: var(--muted-light);
  font-size: 1.125rem;
}

.mail {
  margin-top: 1.25rem;
  color: var(--ivory);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 2px solid var(--forest);
  unicode-bidi: isolate;
}

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

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

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

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

  .hero {
    min-height: 0;
    align-items: start;
  }

  .hub {
    order: -1;
    width: min(220px, 64vw);
    justify-self: end;
  }
}

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

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

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

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

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

  .cta,
  .spoke {
    transition: none;
    animation: none;
  }

  .spoke {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy .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;
  }

  .spoke {
    animation: draw 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }

  .spoke:nth-of-type(2) {
    animation-delay: 0.12s;
  }

  .spoke:nth-of-type(3) {
    animation-delay: 0.24s;
  }
}

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

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

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
