:root {
    --indigo: #1E3A5F;
    --deep: #122847;
    --paper: #F4E8C8;
    --cream: #fff8e7;
    --gold: #C8A24A;
    --gold2: #8B6D2B;
    --ink: #253044;
    --muted: #6d634f;
    --line: rgba(139, 109, 43, .32);
    --display: "EB Garamond", Georgia, serif;
    --body: "Libre Baskerville", Georgia, serif;
    --heb: "Noto Serif Hebrew", serif
}

@font-face {
  font-family: "Shlomo Stam";
  src: url("./fonts/ShlomoStam.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.7;
    background: radial-gradient(circle at 20% 8%, rgba(200, 162, 74, .16), transparent 24rem), radial-gradient(circle at 80% 20%, rgba(30, 58, 95, .1), transparent 30rem), var(--paper)
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    opacity: .25;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(60, 42, 20, .10) 0 .7px, transparent .9px);
    background-size: 7px 7px
}

html[lang="he"] {
  --display: "Noto Serif Hebrew", serif;
  --body: "Noto Serif Hebrew", serif;
  --heb: "Noto Serif Hebrew", serif;
}

html[lang="he"] .hebrew-verse {
  font-family: "Shlomo Stam", "Noto Serif Hebrew", serif;
  font-weight: normal;
}

main {
    width: min(100% - 2rem, 980px);
    margin: auto
}

.site-header {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 5
}

.language-switch {
    display: flex;
    gap: .25rem;
    padding: .3rem;
    border: 1px solid var(--line);
    background: rgba(255, 248, 231, .86);
    backdrop-filter: blur(8px)
}

.language-switch button {
    border: 0;
    padding: .45rem .68rem;
    background: transparent;
    color: var(--indigo);
    font-weight: 700;
    cursor: pointer
}

.language-switch .active {
    background: var(--indigo);
    color: var(--cream)
}

.hero {
    min-height: 92svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 5rem 0
}

.hero:before,
.hero:after {
    content: "";
    position: absolute;
    top: 20%;
    width: min(20vw, 135px);
    height: 60%;
    opacity: .22;
    background: linear-gradient(var(--indigo), var(--indigo)) center/2px 100% no-repeat
}

.hero:before {
    left: 3rem
}

.hero:after {
    right: 3rem
}

.jasmine,
.section-title:before {
    display: block;
    width: 88px;
    height: 42px;
    margin: 0 auto 1rem;
    background: radial-gradient(ellipse at 50% 25%, #fffdf1 0 18%, transparent 19%), radial-gradient(ellipse at 30% 50%, #fffdf1 0 16%, transparent 17%), radial-gradient(ellipse at 70% 50%, #fffdf1 0 16%, transparent 17%), linear-gradient(90deg, transparent, var(--gold2), transparent);
    background-repeat: no-repeat
}

.verse {
    font-family: "Shlomo Stam";
    color: var(--indigo);
    font-size: clamp(1.15rem, 3vw, 1.75rem);
    font-weight: 700;
    margin: .2rem 0 .6rem
}

h1,
h2,
h3,
.date {
    font-family: var(--display)
}

h1 {
    font-size: clamp(3.3rem, 9vw, 6.2rem);
    font-weight: 600;
    line-height: .94;
    letter-spacing: -.035em;
    color: var(--deep);
    margin: 0
}

h1 span,
h1 em {
    display: block
}

h1 em {
    font-size: .42em;
    color: var(--gold2);
    font-style: italic
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--muted);
    font-size: .95rem
}

.date-block {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.4rem;
    margin: 1rem 0 1.2rem;
    min-width: min(100%, 340px)
}

.date-block p {
    margin: .05rem
}

.date {
    font-size: 1.15rem;
    color: var(--indigo);
    font-weight: 700
}

.hebrew-date {
    font-family: var(--heb);
    color: var(--gold2);
    font-weight: 700
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .72rem 1.55rem;
    border: 1px solid var(--gold);
    background: var(--indigo);
    color: var(--cream);
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer
}

html[lang="he"] .button {
    letter-spacing: .06em
}


.section {
    max-width: 820px;
    margin: 0 auto 4rem;
    padding: clamp(2rem, 5vw, 3.25rem);
    border: 1px solid var(--line);
    background: rgba(255, 248, 231, .45);
    box-shadow: 0 24px 70px rgba(30, 58, 95, .1);
    position: relative
}

.section:before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(30, 58, 95, .14);
    pointer-events: none
}

.section>* {
    position: relative
}

.section-title {
    text-align: center;
    margin-bottom: 1.6rem
}

.section-title p {
    font-family: var(--display);
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold2);
    font-weight: 700;
    margin: 0
}

h2 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 600;
    line-height: 1;
    margin: .25rem 0;
    color: var(--deep)
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem
}

.card,
article {
    padding: 1.15rem;
    border: 1px solid rgba(139, 109, 43, .26);
    background: rgba(255, 248, 231, .55)
}

h3 {
    color: var(--indigo);
    margin: 0 0 .55rem;
    font-size: 1.18rem
}

.card p,
article p {
    color: var(--muted);
    font-size: .94rem
}

.map {
    height: 220px;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 95, .16)
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0
}

.note {
    text-align: center;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    color: var(--muted);
    font-style: italic
}

.form {
    display: grid;
    gap: .65rem;
    max-width: 660px;
    margin: auto
}

label,
legend {
    font-weight: 700;
    color: var(--deep)
}

input,
select,
textarea {
    width: 100%;
    padding: .82rem .9rem;
    border: 1px solid rgba(30, 58, 95, .24);
    border-radius: 0;
    background: rgba(255, 248, 231, .75);
    font: inherit
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}

.hint,
.error {
    margin: 0;
    font-size: .82rem
}

.hint {
    color: var(--muted)
}

.error {
    color: #8F2E24;
    min-height: 1em
}

.status {
    font-weight: 700;
    color: var(--indigo)
}

footer {
    text-align: center;
    color: var(--muted);
    padding: 0 1rem 2.5rem
}

.admin-page {
    width: min(100% - 2rem, 1120px);
    padding: 5rem 0
}

.admin-header {
    display: flex;
    justify-content: space-between
}

.summary {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}

.summary-card {
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 248, 231, .55)
}

.summary-card strong {
    display: block;
    font-size: 1.8rem;
    font-family: var(--display)
}

.table-wrap {
    overflow: auto
}

table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: rgba(255, 248, 231, .55)
}

th,
td {
    padding: .75rem;
    border-bottom: 1px solid rgba(30, 58, 95, .12);
    text-align: left
}

.hidden {
    display: none !important
}

html[dir=rtl] .site-header {
    right: auto;
    left: 1rem
}

html[dir=rtl] .section,
html[dir=rtl] .form {
    text-align: right
}

@media(max-width:780px) {
    main {
        width: min(100% - 1.25rem, 980px)
    }

    .hero {
        min-height: auto;
        padding-top: 6rem
    }

    .hero:before,
    .hero:after {
        display: none
    }

    .grid {
        grid-template-columns: 1fr
    }

    .section {
        padding: 2rem 1.25rem
    }

    .site-header {
        top: .75rem;
        right: .75rem
    }

    html[dir=rtl] .site-header {
        left: .75rem
    }
}