:root {
  --ink: #17212b;
  --muted: #607080;
  --surface: #ffffff;
  --surface-soft: #f4f7f8;
  --line: #dbe3e7;
  --brand: #087f8c;
  --brand-dark: #075e68;
  --accent: #d96c2f;
  --shadow: 0 16px 40px rgba(24, 43, 56, 0.09);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(8,127,140,.35); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
}

button, input, select, textarea { font-family: var(--font-sans); }

.shekel-subscribe {
  border: 1px solid #ccc;
  padding: 3px;
  text-align: center;
}
.shekel-subscribe input[type="email"] {
  box-sizing: border-box;
  max-width: 100%;
  width: 400px;
}

h2 { margin-top: 2.5rem; }
h3 { margin-top: 1.8rem; }

.skip-link {
  background: var(--ink);
  color: white;
  left: 1rem;
  padding: .65rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 1100;
}
.skip-link:focus { color: white; top: 1rem; }

.navbar {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(219,227,231,.85);
  box-shadow: 0 3px 18px rgba(24,43,56,.05);
  min-height: 76px;
  padding: .55rem 1rem;
}
.navbar-brand img { height: 44px; object-fit: contain; width: auto; }
.navbar .nav-link, .inner-page .navbar .nav-link {
  color: #344451 !important;
  font-size: .91rem;
  font-weight: 600;
  padding: .7rem .7rem !important;
}
.navbar .nav-link:hover, .inner-page .navbar .nav-link:hover { color: var(--brand) !important; }
.navbar-toggler { color: var(--ink); padding: .55rem .7rem; }
.navbar .nav-contact {
  background: var(--brand);
  border-radius: .4rem;
  color: white;
  margin-left: .35rem;
  padding-left: .9rem !important;
  padding-right: .9rem !important;
}
.navbar .nav-contact, .inner-page .navbar .nav-contact { color: white !important; }
.navbar .nav-contact:hover, .inner-page .navbar .nav-contact:hover { background: var(--brand-dark); color: white !important; }

.inner-page-header {
  background: linear-gradient(135deg, #12333b 0%, #087f8c 100%) !important;
  overflow: hidden;
  padding: 8.25rem 0 3.6rem !important;
  position: relative;
}
.inner-page-header::after {
  background: radial-gradient(circle, rgba(255,255,255,.15) 0 1px, transparent 1.5px);
  background-size: 22px 22px;
  content: "";
  inset: 0;
  opacity: .35;
  position: absolute;
}
.inner-page-header .container { position: relative; z-index: 1; }
.inner-page-header h1 { color: white; font-size: clamp(2.1rem, 5vw, 3.75rem); }
.inner-page-header .h6 { color: rgba(255,255,255,.8); letter-spacing: .08em; }

.wt-section { padding: 3.5rem 0; }
.content-column { max-width: 1080px; }

.btn { border-radius: .45rem; font-weight: 650; padding: .68rem 1.05rem; }
.btn-primary { background-color: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background-color: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline-primary { border-color: var(--brand); color: var(--brand-dark); }
.btn-outline-primary:hover { background-color: var(--brand); border-color: var(--brand); }

.blog-card {
  border: 1px solid var(--line);
  border-radius: .8rem;
  box-shadow: 0 5px 18px rgba(24,43,56,.045);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-image-title { align-items: center; display: flex; gap: 1.5rem; padding: 1.5rem; }
.blog-image-title > a { flex: 0 0 300px; height: auto; }
.blog-image-title > a > img { border-radius: .5rem; display: block; height: auto; max-height: none; max-width: none; width: 100%; }
.blog-image-title h2 { font-size: 1.45rem; margin: 0 0 .5rem; }
.blog-image-title h2 a { color: var(--ink); }
.blog-image-title .description { color: var(--muted); line-height: 1.55; margin: 0; }
.blog-card .card-footer { background: var(--surface-soft); border-top: 1px solid var(--line); font-size: .85rem; padding: .7rem 1.5rem; }

#blog-body { --prose-measure: 52rem; font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.75; }
#blog-body h1, #blog-body h2, #blog-body h3, #blog-body h4,
#blog-body table, #blog-body figcaption, #blog-body time,
#blog-body .share-bar-wrapper, #blog-body .blog-email, #blog-body .edit-note {
  font-family: var(--font-sans);
}
#blog-body > p, #blog-body > ul, #blog-body > ol,
#blog-body > h2, #blog-body > h3, #blog-body > h4,
#blog-body > blockquote {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--prose-measure);
}
#blog-body img { border-radius: .45rem; height: auto; margin: 1.25rem auto; }
#blog-body iframe, #blog-body video, #blog-body embed {
  display: block;
  max-width: 100%;
}
#blog-body iframe { margin-left: auto; margin-right: auto; }
#blog-body blockquote { background: var(--surface-soft); border-left: 4px solid var(--brand); color: #3e4b54; margin: 1.6rem auto; padding: 1rem 1.3rem; }
#blog-body pre { border: 1px solid var(--line); border-radius: .55rem; font-size: .86rem; line-height: 1.55; padding: 1.15rem; }
#blog-body pre, #blog-body code, #blog-body kbd, #blog-body samp { font-family: var(--font-mono); }
#blog-body code { border-radius: .25rem; }
#blog-body table { display: block; max-width: 100%; overflow-x: auto; }

.torah-guide { max-width: 52rem; margin: 0 auto; }
.torah-guide dl { display: grid; gap: .6rem 1.25rem; grid-template-columns: minmax(8rem, auto) 1fr; }
.torah-guide dt { color: var(--brand-dark); font-weight: 700; }
.torah-guide dd { margin: 0 0 .8rem; }
.torah-notes { background: var(--surface-soft); border-left: 4px solid var(--brand); border-radius: .4rem; padding: 1.2rem 1.4rem 1.2rem 2.5rem; }
.torah-notes li, .torah-procedure > li { margin-bottom: .8rem; }
.torah-procedure > li { padding-left: .35rem; }
.torah-guide .bracha, .torah-guide .statement { border-radius: .4rem; font-weight: 650; margin: .75rem 0; padding: .85rem 1rem; }
.torah-guide .bracha { background: #edf7f2; border-right: 4px solid #2d7a58; color: #1f6246; font-family: var(--font-serif); font-size: 1.2rem; text-align: right; }
.torah-guide .statement { background: #fff4ed; border-left: 4px solid var(--accent); color: #873f1f; }

.edit-note { color: var(--muted); font-size: .88rem; }
.share-bar-wrapper, .blog-email { border-color: var(--line); border-radius: .6rem; }
.share-bar-inner a { text-decoration: none; }
.x-mark { font-family: Arial, sans-serif; font-size: 1.05em; font-weight: 700; line-height: 1; }
.blog-email { background: var(--surface-soft); }
.blog-email input[type=email] { border: 1px solid #becbd1; border-radius: .35rem; min-height: 42px; padding: .45rem .7rem; }

.blog-nav { color: var(--muted); font-size: .92rem; gap: 1rem; }
.blog-nav span { margin-left: 0 !important; margin-right: 0 !important; }
.blog-nav a { align-items: center; border: 1px solid var(--line); border-radius: .35rem; display: inline-flex; justify-content: center; min-height: 38px; min-width: 38px; text-decoration: none; }

.site-footer { background: #12232b; color: #bdc9ce; margin-top: 2rem; padding: 2.5rem 0; }
.footer-inner { align-items: flex-start; display: flex; gap: 3rem; justify-content: space-between; }
.footer-title { color: white; font-weight: 700; margin: 0; }
.footer-heading { color: #bdc9ce; font-size: .76rem; font-weight: 700; letter-spacing: .09em; margin: 0 0 .2rem; text-transform: uppercase; }
.footer-social { margin-top: .25rem; }
.site-footer .list-inline-item { margin: 0 1rem 0 0; }
.site-footer a { color: #dbe8eb; font-size: .9rem; }

@media (max-width: 991px) {
  .navbar-collapse { background: white; border-top: 1px solid var(--line); margin: .5rem -1rem -.55rem; padding: .7rem 1rem 1rem; }
  .navbar .nav-contact { display: inline-block; margin-left: 0; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .wt-section { padding: 2.5rem 0; }
  .inner-page-header { padding: 7rem 0 2.7rem !important; }
  .blog-image-title { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .blog-image-title > a, .blog-image-title > a > img { width: 100%; }
  .blog-image-title > a { flex-basis: auto; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 1.4rem; }
  .site-footer .list-inline-item { margin: 0 1rem .4rem 0 !important; }
  .torah-guide dl { display: block; }
  .torah-guide dt { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
