:root {
  --paper: #E9F0EC;
  --paper-2: #DCE7E0;
  --card: #F6FAF7;
  --ink: #14213D;
  --ink-2: #45516A;
  --rule: #BACDC2;
  --guil: #8FAE9F;
  --accent: #5B3FA6;
  --accent-soft: #E7E1F5;
  --warn: #8A4B00;
  --l1: #C4E6C9;
  --l2: #8DC9AE;
  --l3: #4F9C96;
  --l4: #2F6486;
  --l5: #252B5C;
  --serif: "FRL","Frank Ruhl Libre","David",Georgia,serif;
  --sans: "Assistant","Segoe UI","Arial Hebrew",Arial,sans-serif;
  --wrap: 1180px;
  --pad: clamp(16px,4vw,40px);
  color-scheme: light;
}

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

[hidden] {
  display: none!important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,input,select {
  font: inherit;
  color: inherit;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}

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

.num {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  top: 10px;
}

/* level tokens */
[data-l="1"] {
  --lc: var(--l1);
  --lt: var(--ink);
}

[data-l="2"] {
  --lc: var(--l2);
  --lt: var(--ink);
}

[data-l="3"] {
  --lc: var(--l3);
  --lt: var(--ink);
}

[data-l="4"] {
  --lc: var(--l4);
  --lt: #fff;
}

[data-l="5"] {
  --lc: var(--l5);
  --lt: #fff;
}

.st {
  --sz: 34px;
  width: var(--sz);
  height: var(--sz);
  flex: none;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--lc);
  color: var(--lt);
  font: 900 calc(var(--sz)*.46)/1 var(--serif);
  border: 1.5px solid color-mix(in srgb,var(--lc) 55%,var(--ink));
  box-shadow: inset 0 0 0 2px var(--card),inset 0 0 0 3px color-mix(in srgb,var(--lc) 70%,var(--ink));
}

/* nav */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb,var(--paper) 90%,transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 19px/1 var(--serif);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline-start: auto;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}
