/* Shared by the public site and the admin panel. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
/* Everything is measured in rem, so this one rule sizes the whole site:
   normal on phones, growing with the screen on computers. */
html {
  font-size: calc(clamp(100%, 70% + 0.42vw, 125%) * var(--size, 1));
}
body {
  margin: 0;
  background-color: var(--paper);
  /* the same tile twice, at two sizes, so the repeat is hard to notice */
  background-image: var(--texture), var(--texture);
  background-size: 620px auto, 1040px auto;
  background-position: 0 0, 230px 140px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.075rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
:lang(he) :is(h1, h2, h3) {
  font-weight: 300;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.9rem;
  padding: 0.55em 1.7em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -14px rgb(0 0 0 / 0.55);
}
.button:disabled {
  opacity: 0.45;
  cursor: default;
}
.button.ghost {
  background: transparent;
  color: var(--ink);
}
.button.small {
  min-height: 2.35rem;
  padding: 0.25em 1.1em;
  font-size: 0.92rem;
}
input,
select,
textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.5em 0.9em;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
input:focus {
  border-color: var(--ink);
}
input[type='checkbox'] {
  width: 20px;
  height: 20px;
  min-height: 0;
  accent-color: var(--ink);
}
label.field {
  display: grid;
  gap: 0.3em;
  font-weight: 600;
  font-size: 1em;
}
.error {
  color: var(--danger);
  font-weight: 600;
}
