/* Torus Solutions — stone, basalt and sand. One bold element: the wireframe torus. */
:root {
  --stone: #E3E0D8;
  --stone-deep: #CFC9BB;
  --basalt: #1E2B2F;
  --moss: #4A5650;
  --sand: #A8894F;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --text: "IBM Plex Sans", system-ui, sans-serif;
  --h1-weight: 300;
  color-scheme: light;
}
:lang(ar) { --display: "IBM Plex Sans Arabic", system-ui, sans-serif; --text: "IBM Plex Sans Arabic", system-ui, sans-serif; }
:lang(he) { --display: "IBM Plex Sans Hebrew", system-ui, sans-serif; --text: "IBM Plex Sans Hebrew", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--basalt);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
:lang(ar) body, body:lang(ar) { line-height: 1.85; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.12; }
p, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem;
  background: var(--basalt); color: var(--stone); padding: .6rem 1rem; z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header */
.top {
  max-width: var(--max); margin-inline: auto; padding: 1.5rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font-family: "Cormorant Garamond", serif; font-size: 1.5rem; font-weight: 500; letter-spacing: .01em;
}
.mark { width: 2.25rem; height: 2.25rem; fill: none; stroke: var(--basalt); stroke-width: 1.1; }
.nav { margin-inline-start: auto; }
.nav ul, .langs ul { list-style: none; padding: 0; margin: 0; }
.nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.nav a { text-decoration: none; font-size: .95rem; }
.nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
/* Language dropdown */
.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; font-size: .9rem; padding: .35rem .8rem;
  border: 1px solid var(--stone-deep); border-radius: 999px; display: inline-flex; align-items: center; gap: .4rem;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after {
  content: ""; width: .4rem; height: .4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-.15rem) rotate(45deg); transition: transform .15s;
}
.langs[open] summary::after { transform: translateY(.1rem) rotate(-135deg); }
.langs summary:hover { border-color: var(--basalt); }
.langs ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); z-index: 5; min-width: 9.5rem;
  display: grid; gap: 0; padding: .4rem; background: #EFEDE7; border: 1px solid var(--stone-deep); border-radius: .75rem;
  box-shadow: 0 10px 24px -12px rgba(30, 43, 47, .35);
}
.langs a { display: block; padding: .45rem .7rem; border-radius: .45rem; text-decoration: none; font-size: .95rem; color: var(--basalt); }
.langs a:hover { background: var(--stone); }
.langs a[aria-current="page"] { font-weight: 500; text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: .35em; text-decoration-thickness: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shared section frame */
main > section {
  max-width: var(--max); margin-inline: auto; padding: clamp(4rem, 9vw, 7rem) var(--gutter) 0;
}

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center; gap: 2rem; min-height: min(78vh, 46rem);
  padding-top: clamp(2rem, 5vw, 4rem) !important;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: var(--h1-weight);
  line-height: 1.04; letter-spacing: -.01em; max-width: 14ch;
}
/* Headline only: Fraunces with its soft, wonky 1970s forms (vintage, but modern). Latin pages only. */
.hero h1 {
  font-family: "Fraunces", var(--display);
  font-weight: 360; letter-spacing: -.02em; line-height: 1.02;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
:lang(ar) .hero h1, :lang(he) .hero h1 { font-family: var(--display); font-variation-settings: normal; letter-spacing: 0; }
:lang(ar) .hero h1, :lang(he) .hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.2; max-width: 18ch; }
.lede { margin-top: 1.75rem; max-width: 46ch; font-size: 1.15rem; color: var(--moss); }
.note { margin-top: .9rem; font-size: .9rem; color: var(--moss); }
.actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

.btn {
  display: inline-block; background: var(--basalt); color: var(--stone);
  padding: .9rem 1.6rem; border-radius: 999px; text-decoration: none; font-weight: 500;
}
.btn:hover { background: #2C3D42; }
.link { text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--sand); text-decoration-thickness: 1.5px; font-weight: 500; }
.link:hover { text-decoration-thickness: 2.5px; }

/* The torus */
.torus { width: 100%; max-width: 38rem; justify-self: center; fill: none; stroke: var(--sand); stroke-width: 1; }
.torus .m { stroke-opacity: .5; }
.torus .p { stroke-opacity: .95; stroke: var(--basalt); stroke-width: .8; }
@media (prefers-reduced-motion: no-preference) {
  .torus path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.5, 0, .2, 1) forwards; }
  .torus .m { animation-delay: calc(var(--i) * 45ms); }
  .torus .p { animation-delay: calc(900ms + var(--i) * 90ms); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* About + shop: heading beside text */
.about, .shop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem 3rem; }
.about h2, .shop h2, .offerings > h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.about-text { display: grid; gap: 1.25rem; max-width: 62ch; }
.about-text p:first-child { font-size: 1.15rem; }
.shop > p { grid-column: 2; max-width: 62ch; }
.shop > p + p { margin-top: .5rem; }

/* Offerings */
.offerings > h2 { margin-bottom: 2.5rem; }
.group + .group { margin-top: 4rem; }
.group h3 {
  font-size: 1.15rem; font-family: var(--text); font-weight: 500; color: var(--moss);
  padding-bottom: .75rem; border-bottom: 2px solid var(--basalt);
}
.offer {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .75rem 3rem;
  padding-block: 2rem; border-bottom: 1px solid var(--stone-deep);
}
.offer h4 { font-size: 1.65rem; font-weight: 500; }
:lang(ar) .offer h4, :lang(he) .offer h4 { font-size: 1.3rem; }
.offer-body { max-width: 62ch; }
.offer-body h5 { margin: 1.25rem 0 .5rem; font-size: .9rem; font-weight: 500; color: var(--moss); }
.offer-body ul { padding-inline-start: 1.25rem; display: grid; gap: .3rem; }
.offer-body li::marker { color: var(--sand); }
.outcome { margin-top: 1.25rem; padding-inline-start: 1rem; border-inline-start: 2px solid var(--sand); color: var(--moss); }

/* Contact band (full bleed) */
main > section.contact {
  max-width: none; margin-top: clamp(4rem, 9vw, 7rem);
  padding-block: clamp(4rem, 8vw, 6rem);
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: var(--basalt); color: var(--stone);
}
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 300; max-width: 18ch; }
:lang(ar) .contact h2, :lang(he) .contact h2 { font-weight: 400; }
.contact p { margin-top: 1.25rem; max-width: 52ch; color: #C9CCC4; }
.contact .contact-actions { margin-top: 2rem; }
.contact .note { margin-top: .9rem; font-size: .9rem; color: #AEB3AA; }
.btn-light { background: var(--stone); color: var(--basalt); }
.btn-light:hover { background: #F0EEE8; }
.contact :focus-visible { outline-color: var(--stone); }

/* Footer */
.foot {
  max-width: var(--max); margin-inline: auto; padding: 2rem var(--gutter) 3rem;
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-size: .9rem; color: var(--moss);
}
.foot-brand { font-family: "Cormorant Garamond", serif; font-size: 1.15rem; color: var(--basalt); }
.foot p:last-child { margin-inline-start: auto; }

/* Small screens */
@media (max-width: 52rem) {
  .nav { margin-inline-start: 0; order: 3; flex-basis: 100%; }
  .langs { margin-inline-start: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .torus { max-width: 20rem; grid-row: 1; justify-self: start; }
  .about, .shop, .offer { grid-template-columns: 1fr; }
  .shop > p { grid-column: auto; }
  .foot p:last-child { margin-inline-start: 0; }
}
