/* ============================================================
   KEREM · בן יהודה 14·16
   Shared brand stylesheet
   ============================================================ */
:root {
  /* Colors */
  --forest: #1F3528;
  --forest-deep: #142319;
  --olive: #3A4A3A;
  --terracotta: #C87A4A;
  --terracotta-deep: #A45F30;
  --wheat: #E8D8B8;
  --linen: #F1EDE2;
  --linen-warm: #EBE4D2;
  --bone: #FBF8F1;
  --ink: #1A1410;
  --muted: #7A8A73;
  --rule: #DCD5C1;

  /* Type */
  --he: 'Frank Ruhl Libre', 'Heebo', serif;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Number bidi protection */
.he b, .he em, .ltr {
  unicode-bidi: isolate;
  direction: ltr;
}

/* ============================================================
   PRIMARY LOGO LOCKUP (composable component)
   Use anywhere on light or dark backgrounds.
   ============================================================ */
.kerem-mark {
  text-align: center;
  color: var(--forest);
  display: inline-block;
}
.kerem-mark .he {
  direction: rtl;
  font-family: var(--he);
  font-weight: 400;
  font-size: 96px;
  line-height: .88;
  letter-spacing: -.015em;
  color: inherit;
}
.kerem-mark .vine {
  margin: 14px auto 14px;
  display: block;
}
.kerem-mark .en {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: inherit;
  opacity: .9;
}
.kerem-mark .addr {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: inherit;
  opacity: .55;
  margin-top: 12px;
}

/* Dark-bg variant */
.on-dark { color: var(--linen); }
.on-dark .vine svg { color: var(--terracotta); }
.on-dark .addr { color: var(--wheat); opacity: .85; }
.on-dark .en { color: var(--wheat); }

/* Light-bg variant */
.on-light .vine svg { color: var(--terracotta); }

/* Compact stack (header) */
.kerem-stack {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--forest);
}
.kerem-stack .he {
  direction: rtl;
  font-family: var(--he);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
}
.kerem-stack .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* Horizontal lockup */
.kerem-horiz {
  display: inline-flex; align-items: center; gap: 16px;
  color: var(--forest);
}
.kerem-horiz .he {
  direction: rtl; font-family: var(--he); font-weight: 400;
  font-size: 44px; line-height: .9;
}
.kerem-horiz .pipe { width: 1px; height: 36px; background: currentColor; opacity: .35; }
.kerem-horiz .right { text-align: left; }
.kerem-horiz .en {
  font-family: var(--serif); font-style: italic;
  font-size: 16px; letter-spacing: .14em;
}
.kerem-horiz .addr {
  font-family: var(--sans); font-size: 9.5px;
  letter-spacing: .38em; text-transform: uppercase;
  opacity: .6; margin-top: 2px;
}

/* Wordmark Latin only */
.kerem-wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 72px;
  color: var(--forest);
  letter-spacing: -.005em;
  text-align: center;
}
.kerem-wordmark .ac { color: var(--terracotta); }

/* Monogram seal — for stamps, social avatars, favicons */
.kerem-seal {
  width: 160px; height: 160px;
  background: var(--forest);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  color: var(--linen);
  position: relative;
}
.kerem-seal svg.leaf { color: var(--terracotta); }
.kerem-seal .he {
  direction: rtl; font-family: var(--he); font-weight: 400;
  font-size: 36px; line-height: 1;
}
.kerem-seal .num {
  font-family: var(--serif); font-style: italic;
  font-size: 12px; letter-spacing: .28em; color: var(--wheat);
}

/* ============================================================
   TYPOGRAPHIC ROLES (use these classes everywhere)
   ============================================================ */
.t-display-he {
  font-family: var(--he); font-weight: 400; direction: rtl;
  font-size: 96px; line-height: .9;
}
.t-display-en {
  font-family: var(--serif); font-style: italic;
  font-size: 72px; line-height: 1;
}
.t-h1-he { font-family: var(--he); font-weight: 400; direction: rtl; font-size: 56px; line-height: 1; }
.t-h1-en { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; }
.t-h2-he { font-family: var(--he); font-weight: 400; direction: rtl; font-size: 36px; line-height: 1.1; }
.t-h2-en { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.15; }
.t-body-he {
  font-family: var(--he); font-weight: 400; direction: rtl;
  font-size: 17px; line-height: 1.65;
}
.t-body-en {
  font-family: var(--sans); font-weight: 400;
  font-size: 14px; line-height: 1.65;
}
.t-eyebrow {
  font-family: var(--sans); font-weight: 500;
  font-size: 10.5px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--muted);
}
.t-caption {
  font-family: var(--sans); font-weight: 400;
  font-size: 11px; letter-spacing: .12em; color: var(--olive);
}
.t-quote {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; line-height: 1.4;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.row { display: flex; gap: 24px; }
.col { display: flex; flex-direction: column; gap: 16px; }
.center { display: flex; align-items: center; justify-content: center; }
.muted { color: var(--muted); }

/* Standard horizontal divider */
.rule {
  border: 0; border-top: 1px solid var(--rule);
  margin: 32px 0;
}
.rule-thin {
  border: 0; border-top: 1px solid currentColor;
  opacity: .25; margin: 24px 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 500;
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  padding: 14px 28px;
  background: var(--forest); color: var(--linen);
  text-decoration: none;
  border: 1px solid var(--forest);
  transition: all .15s ease;
}
.btn:hover { background: var(--forest-deep); }
.btn.ghost {
  background: transparent; color: var(--forest);
}
.btn.ghost:hover { background: var(--forest); color: var(--linen); }
.btn.terracotta {
  background: var(--terracotta); border-color: var(--terracotta); color: var(--bone);
}
.btn.terracotta:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); }
.btn .arr { font-size: 14px; }

/* SVG vine helpers */
.vine-svg { display: inline-block; vertical-align: middle; color: var(--terracotta); }

/* Page wrappers */
.page-wrap {
  width: 100%;
  margin: 0 auto;
}
