/* בינאנס קוין בגובה העיניים: stylesheet */

:root {
  --paper: #fcfbf8;
  --surface: #ffffff;
  --band: #fbf3e2;
  --ink: #26272b;
  --ink-soft: #55565e;
  --rule: #e7e2d8;
  --amber: #e0a526;
  --amber-text: #7a4a00;
  --amber-tint: #fdf6e6;

  --font: system-ui, -apple-system, "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew", Arial, sans-serif;

  --prose: 47rem;
  --wide: 72rem;
  --gutter: clamp(1.1rem, 4vw, 2.25rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

[id] {
  scroll-margin-top: 1.25rem;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.3;
  text-wrap: balance;
}

p {
  margin: 0 0 1.25em;
}

a {
  color: var(--amber-text);
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--ink);
  text-decoration-color: var(--amber);
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose > * ,
.prose section > * {
  max-width: var(--prose);
}

/* Header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand__name {
  font-size: 1.1rem;
  font-weight: 800;
}

.brand__sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.35rem;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.45rem;
  font-size: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.45em;
}

/* Hero */

.hero {
  background: var(--band);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2rem, 5vw, 3.25rem);
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--amber-text);
}

.hero h1 {
  margin: 0 0 0.9rem;
  max-width: 22ch;
  font-size: clamp(1.95rem, 1.3rem + 2.8vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.hero__desc {
  max-width: 44rem;
  margin-bottom: 1.5rem;
  font-size: 1.18rem;
  color: var(--ink-soft);
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid var(--ink);
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: #3a3b41;
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--surface);
  color: var(--ink);
}

/* Homepage article */

.home-article {
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.prose h2,
.block > h2 {
  margin: 2.4em 0 0.6em;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.block > h2 {
  margin-top: 0;
}

.block {
  margin-top: clamp(3rem, 7vw, 4.5rem);
}

.block--flush {
  margin-top: 1.5rem;
}

.block__intro {
  max-width: var(--prose);
  color: var(--ink-soft);
}

/* Cards */

.cards {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.4rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--amber);
  border-radius: 6px;
}

.card:hover {
  border-color: #d6ccb8;
  border-top-color: var(--amber);
}

.card:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
}

.card__excerpt {
  flex: 1;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.card__link {
  align-self: flex-start;
  font-size: 0.98rem;
  font-weight: 700;
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card__link:focus-visible {
  outline: none;
}

/* FAQ */

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  padding: 1.05rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.faq__item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.faq__item p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.about {
  padding-top: 0.5rem;
}

/* Page heads, breadcrumbs */

.page-head {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.page-head h1 {
  margin: 0 0 1rem;
  max-width: 24ch;
  font-size: clamp(1.85rem, 1.25rem + 2.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-head__intro {
  max-width: var(--prose);
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.breadcrumb ol {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline: 0.5rem;
  color: #a39f96;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--ink);
}

/* Guide pages */

.guide__intro p:first-child {
  font-size: 1.2rem;
  line-height: 1.75;
}

.toc {
  max-width: var(--prose);
  margin: 1.5rem 0 0.5rem;
  padding: 1.1rem 1.35rem 0.9rem;
  background: var(--amber-tint);
  border-inline-start: 4px solid var(--amber);
  border-radius: 2px;
}

.toc__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
}

.toc__list {
  margin: 0;
  padding-inline-start: 1.4rem;
}

.toc__list li {
  padding-block: 0.15rem;
  font-size: 1rem;
  line-height: 1.6;
}

.toc__list li::marker {
  color: var(--amber-text);
  font-weight: 700;
}

.toc__list a {
  color: var(--ink);
  text-decoration-color: var(--amber);
}

.guide__nav {
  max-width: var(--prose);
  margin: 2.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-weight: 700;
}

.not-found {
  padding-bottom: 2rem;
}

/* Footer */

.site-footer {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  background: var(--ink);
  color: #e9e6df;
}

.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.25rem var(--gutter) 2.5rem;
  display: grid;
  gap: 1.25rem 3rem;
}

.site-footer p {
  margin: 0 0 0.4rem;
  font-size: 0.96rem;
  line-height: 1.65;
}

.site-footer__name {
  font-weight: 800;
  font-size: 1.05rem !important;
  color: #fff;
}

.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-footer a {
  color: #f3c865;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer :focus-visible {
  outline-color: #f3c865;
}

.site-footer__notes {
  color: #cfccc4;
}

@media (min-width: 52rem) {
  .site-footer__inner {
    grid-template-columns: 1.2fr auto 1.4fr;
    align-items: start;
  }
}

/* Small screens */

@media (max-width: 30rem) {
  body {
    font-size: 1.0625rem;
  }

  .site-nav ul {
    gap: 0 1rem;
  }

  .site-nav a {
    font-size: 0.97rem;
  }

  .hero__desc,
  .page-head__intro,
  .guide__intro p:first-child {
    font-size: 1.1rem;
  }
}

@media print {
  .skip-link,
  .site-nav,
  .toc,
  .hero__links,
  .guide__nav {
    display: none;
  }

  body,
  .hero {
    background: #fff;
  }
}

.home-article > section:first-child > h2 {
  margin-top: 1em;
}

.nw {
  white-space: nowrap;
}
