:root {
  --bg: #11161d;
  --surface: #1a222d;
  --text: #e6edf3;
  --muted: #9fb0c0;
  --accent: #7cc4fa;
  --accent-hover: #bae3ff;
  --btn-text: #0b1522;
  --border: #2d3846;
  --max-width: 960px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.logo {
    display: block;
    height: 44px;
    width: 44px;
    object-fit: contain;
    border-radius: 6px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    line-height: 1;
}

nav a:hover, nav a.active {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}



.hero {
  background:
    linear-gradient(rgba(15, 28, 46, 0.72), rgba(15, 28, 46, 0.78)),
    url("assets/torah-scroll.jpg") center / cover no-repeat;
  color: #ffffff;
  padding: 5.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.hero blockquote {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.15rem;
  font-style: italic;
  opacity: 0.95;
}

main {
  max-width: var(--max-width);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

h2 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.15rem;
}

p { margin-bottom: 1rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
}

ul.file-list {
  list-style: none;
  margin-top: 0.75rem;
}

ul.file-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

ul.file-list li:last-child { border-bottom: none; }

a.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--btn-text);
  padding: 0.45rem 0.95rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

a.btn:hover {
  background: var(--accent-hover);
  color: var(--btn-text);
}

.embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-top: 1rem;
}

.embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

@media (max-width: 600px) {
  nav a { margin-left: 0; margin-right: 1rem; }
  .hero h1 { font-size: 1.9rem; }
}

.split-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.split-text {
    flex: 1;
}

.split-text p:last-child {
    margin-bottom: 0;
}

.split-qr {
    flex: 0 0 180px;
    text-align: center;
}

.split-qr img {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: contain;
    background: #ffffff;
    padding: 8px;
    border-radius: 8px;
}

.split-qr span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 650px) {
    .split-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .split-qr {
        flex: none;
        align-self: center;
    }
}
.calendar-embed {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    margin-top: 1rem;
}

.calendar-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    /* Shifts white (#fff) into a cool dark slate matching --surface/#1a222d */
    filter: invert(0.92) hue-rotate(180deg);
  //filter: invert(0.92) sepia(0.25) hue-rotate(175deg) saturate(1.4) contrast(0.95);
  color-scheme: dark;
}

@media (max-width: 600px) {
    .calendar-embed {
        height: 480px;
    }
}
