:root {
  color-scheme: light;
  --coffee: #33251f;
  --paper: #faf6ec;
  --gold: #b58749;
  --line: #d9cbb4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--coffee);
  background: var(--paper);
  font: 1rem/1.6 "Source Sans 3", system-ui, sans-serif;
}
a {
  color: #75451f;
  text-underline-offset: .22em;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #ad651a;
  outline-offset: 3px;
}
header,
footer {
  color: #fff7e3;
  background: var(--coffee);
  border-block: 2px solid var(--gold);
}
header nav,
footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem 1.4rem;
  padding: 1rem max(5vw, calc((100vw - 1100px) / 2));
}
header a,
footer a {
  color: inherit;
}
header a:first-child {
  margin-right: auto;
  font: 1.45rem Georgia, serif;
  text-decoration: none;
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 1rem clamp(1rem, 4vw, 3rem) 3rem;
}
.mast {
  margin: 1.5rem 0;
  padding: clamp(1.4rem, 4vw, 3.2rem) 0;
  border-bottom: 1px solid var(--gold);
}
.mast span {
  color: #846126;
  font-size: 1.4rem;
}
h1,
h2,
h3 {
  font-family: "Baskervville", Georgia, serif;
  font-weight: 500;
  text-wrap: balance;
}
h1 {
  margin: .12em 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}
h2 {
  line-height: 1.18;
  font-size: clamp(1.45rem, 4vw, 2.25rem);
}
.mast p {
  max-width: 62ch;
  color: #624f3d;
}
.jump,
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}
.jump a {
  padding-block: .4rem;
}
.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: .75rem;
  padding: 0;
}
.cards li {
  position: relative;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  background: #fffdf8;
  padding: 1rem 1.25rem;
}
.cards li:hover {
  border-color: #996f3a;
}
.cards a {
  font: 1.25rem/1.35 Georgia, serif;
  text-decoration: none;
}
.cards a::after {
  content: "";
  position: absolute;
  inset: 0;
}
small {
  display: block;
  margin-top: .4rem;
  color: #63564a;
}
.reader article {
  max-width: 780px;
  margin: 1rem auto;
  padding: clamp(1rem, 3vw, 2.7rem);
  background: #fffdf8;
  border: 1px solid var(--line);
  font: 1.17rem/1.75 "Spectral", Georgia, serif;
  overflow-wrap: anywhere;
}
.reader article p {
  margin: .7rem 0;
}
article h2,
.search {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1.25rem;
}
article img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  padding: .55rem;
  border: 1px solid var(--line);
  vertical-align: top;
}
[lang="he"] {
  font-family: Georgia, serif;
  line-height: 1.85;
}
.controls {
  position: sticky;
  top: .5rem;
  z-index: 2;
  width: fit-content;
  margin-left: auto;
}
button,
summary {
  cursor: pointer;
}
button {
  background: var(--coffee);
  color: white;
  border: 1px solid var(--gold);
  padding: .55rem 1rem;
  border-radius: .25rem;
}
input {
  padding: .55rem;
  max-width: 65%;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  background: white;
  padding: 1rem;
  z-index: 10;
}
[hidden],
.search:has(.gsc-control-cse) form:not(.gsc-search-box) {
  display: none;
}
@media print {
  header,
  footer,
  .jump,
  .controls,
  .search,
  details {
    display: none;
  }
  .reader article {
    border: 0;
    max-width: none;
  }
}
