@font-face {
    font-family: "OldStandardTT";
    src: url("/static/fonts/oldstandard-regular.ttf") format("truetype");
    unicode-range: U+0000-058F, U+0600-FB1C, U+FB50-FFFF;
}
@font-face {
    font-family: "OldStandardTT";
    font-style: italic;
    src: url("/static/fonts/oldstandard-italic.ttf") format("truetype");
    unicode-range: U+0000-058F, U+0600-FB1C, U+FB50-FFFF;
}
@font-face {
    font-family: "OldStandardTT";
    font-weight: bold;
    src: url("/static/fonts/oldstandard-bold.ttf") format("truetype");
    unicode-range: U+0000-058F, U+0600-FB1C, U+FB50-FFFF;
}
@font-face {
    font-family: "OldStandardTT";
    font-weight: bold;
    font-style: italic;
    src: url("/static/fonts/unifrakturmaguntia19.ttf") format("truetype");
}
@font-face {
    font-family: "TaameyFrankCLM";
    src: url("/static/fonts/taameyfrank-regular.ttf") format("truetype");
    unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
    font-family: "TaameyFrankCLM";
    font-style: italic;
    src: url("/static/fonts/taameyfrank-oblique.ttf") format("truetype");
    unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
    font-family: "TaameyFrankCLM";
    font-weight: bold;
    src: url("/static/fonts/taameyfrank-bold.ttf") format("truetype");
    unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
    font-family: "TaameyFrankCLM";
    font-weight: bold;
    font-style: italic;
    src: url("/static/fonts/taameyfrank-bold-oblique.ttf") format("truetype");
    unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
    font-family: "UnifrakturM19";
    src: url("/static/fonts/unifrakturmaguntia19.ttf") format("truetype");
}
@font-face {
    font-family: "UnifrakturM19";
    font-style: italic;
    src: url("/static/fonts/unifrakturmaguntia19.ttf") format("truetype");
}
@font-face {
    font-family: "UnifrakturM19";
    font-weight: bold;
    src: url("/static/fonts/unifrakturmaguntia19.ttf") format("truetype");
}
@font-face {
    font-family: "UnifrakturM19";
    font-weight: bold;
    font-style: italic;
    src: url("/static/fonts/oldstandard-bold.ttf") format("truetype");
}

:root {
    --key: #111;
    --spot: #37b;
    --red: #d10;
    --bg: #fff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --key: #bbb;
        --spot: #8af;
        --red: #f55;
        --bg: #000;
    }
}

@media print {
    :root {
        --key: #000;
        --spot: #000;
        --bg: #fff;
    }
}

html {
    color: var(--key);
    background: var(--bg);
    font-family: "OldStandardTT", "TaameyFrankCLM";
    font-size: 20px;
    line-height: 28px;
    overflow-x: hidden;
    overflow-y: scroll;
    max-width: 1080px;
    margin: 0 auto;
}

body {
    position: relative;
}

p, h1, h2, h3, ul, ol, dl, table, figure {
    margin: 0.5rem 0;
}

hr {
    border-top: 1px solid var(--key);
    border-bottom: none;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100vw;
    position: relative;
    left: calc(50% - 50vw);
}

hr+hr {
    display: none;
    margin-top: calc(-0.5rem + 1px);
}

[lang=he] {
    display: inline-block;
    direction: rtl;
    text-align: right;
    font-size: 22px;
    line-height: 28px;
}

/* b i, i b, em strong, strong em {
    font-family: "UnifrakturM19";
    font-weight: normal;
    font-style: normal;
} */

h1 {
    font-family: "UnifrakturM19";
    font-size: 36px;
    line-height: 36px;
    margin-top: 1rem;
}

h1>a, h1>a:visited, h1>a:hover, h1>a:active {
    color: var(--key) !important;
    text-decoration: none !important;
}

h1>i, h1>em {
    line-height: 34px;
}

nav {
    position: absolute;
    left: 0px;
    top: -2rem;
}

nav+h1 {
    margin-top: 2rem;
}

nav>p>span::after {
    content: ' » ';
}

h2 {
    font-size: 24px;
    line-height: 28px;
    margin-top: 0.75rem;
}

table {
    border-collapse: collapse;
}

tr, th, td {
    padding: 0;
    text-align: left;
}

td:empty::after, th:empty::after {
    content: '—';
}

td.l, th.l {
    text-align: left;
}

td.c, th.c {
    text-align: center;
}

td.r, th.r {
    text-align: right;
}

thead tr:last-child th, thead tr:last-child td {
    border-bottom: 1px solid var(--key);
}

td, th {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

td:first-child, th:first-child {
    padding-left: 0.25rem;
}

td:last-child, th:last-child {
    padding-right: 0.25rem;
}

td:not(:first-child), th:not(:first-child) {
    border-left: 1px solid var(--key);
}

figure {
    margin: 0.5rem 0;
}

figcaption {
    font-style: italic;
    text-align: center;
}

img {
    border: 3px double var(--key);
    width: calc(100% - 6px);
    height: auto;
}

.thumb {
    display: inline-block;
    margin: 1em;
}

.thumb img {
    width: 200px;
    height: 160px;
    object-fit: contain;
    object-fit: cover;
}

a, a:visited {
    color: var(--spot);
    text-decoration: none;
    /* text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 1px; */
}

a:hover, a:active {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    /* text-decoration: underline;
    text-decoration-style: double;
    text-decoration-thickness: 1px; */
}

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

.grid>* {
    justify-self: center;
    align-self: center;
}

@media (min-width: 480px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 960px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

ul ul {
    margin: 0 0;
}

