/* The article uses the navy and mint palette of the supplied artwork. */
:root {
  color-scheme: dark;
  --bg: #100e27;
  --panel: #1b1736;
  --line: #53416d;
  --ink: #faf5ff;
  --muted: #ddd0ec;
  --mint: #9cf7c6;
  --accent: #d7a9ff;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.125rem/1.75 Arial, "Noto Sans Hebrew", sans-serif;
}
a { color: var(--mint); text-underline-offset: .2em; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.frame { width: min(100% - 2.5rem, 67rem); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 2;
  inset-block-start: .5rem;
  inset-inline-start: 1rem;
  padding: .4rem .9rem;
  background: var(--bg);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.masthead { border-block-end: 1px solid var(--line); background: #17132f; }
.masthead-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1.75rem;
  padding-block: .8rem;
}
.brand, nav a { text-decoration: none; }
.brand {
  display: inline-block;
  padding: .25rem .55rem;
  border-radius: .5rem;
  background: #faf5ff;
}
.brand img { display: block; width: clamp(8.25rem, 15vw, 11rem); height: auto; }
nav { display: flex; flex-wrap: wrap; gap: .2rem 1.25rem; }
nav a { font-size: .95rem; font-weight: 700; padding-block: .35rem; }
nav a:hover { text-decoration: underline; }
section { scroll-margin-block-start: 1.25rem; }
.hero { padding-block-start: clamp(.9rem, 3vw, 2rem); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
h1, h2, h3 { line-height: 1.12; margin: 0; }
h2 { font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -.035em; }
h3 { font-size: 1.65rem; }
.deck {
  color: var(--mint);
  margin: .45rem 0 0;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.65rem);
}
.art { display: block; width: 100%; height: auto; border-radius: .8rem; }
.reading { max-width: 43rem; margin-inline: auto; }
.reading > p { margin: 1.4em 0; }
.source {
  display: inline-block;
  color: var(--accent);
  font-size: .86rem;
  font-weight: 700;
}
.chapter {
  margin-block-start: clamp(3rem, 7vw, 5.5rem);
  padding-block-start: clamp(1.5rem, 4vw, 3rem);
  border-block-start: 1px solid var(--line);
}
.chapter-head { margin-block-end: 1.35rem; }
.button {
  display: inline-block;
  background: var(--mint);
  color: #121127;
  padding: .54rem 1.1rem;
  min-height: 44px;
  border: 0;
  border-radius: .5rem;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.button:hover { background: #c6ffde; color: #121127; }
.button:disabled { opacity: .6; cursor: default; }
.form-card {
  margin-block: 1.5rem 3rem;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(1rem, 4vw, 2rem);
  border-radius: .8rem;
}
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
label { display: block; font-weight: 700; margin-block: .75rem .2rem; }
label span, #form-status { color: var(--muted); font-size: 1rem; }
input, textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--bg);
  color: var(--ink);
  padding: .6rem .75rem;
  font: inherit;
}
textarea { resize: vertical; }
fieldset .button { margin-block-start: 1.15rem; }
#form-status[data-error] { color: #ffc3d0; }
footer { border-block-start: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
@media (max-width: 36rem) {
  .frame { width: calc(100% - 1.5rem); }
  .masthead-inner { gap: .2rem; }
  nav { width: 100%; gap: .2rem .8rem; }
  nav a { padding-block: .48rem; }
  .nav-detail { display: none; }
  .art { border-radius: .5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
