@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
}

:root {
  --nbk-paper: #f3ecdc;
  --nbk-paper-2: #fffaf1;
  --nbk-ink: #1a2230;
  --nbk-indigo: #243e6b;
  --nbk-margin: #b4332a;
  --nbk-stamp: #1d6b45;
  --nbk-rule: #c9b896;
  --nbk-muted: #4d463c;
}

.nbk {
  margin: 0;
  color: var(--nbk-ink);
  background-color: var(--nbk-paper);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 31px,
    rgba(36, 62, 107, 0.05) 31px 32px
  );
  box-shadow: inset 12px 0 0 var(--nbk-margin);
  font-family: "Figtree", "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: clip;
  padding-left: 14px;
}

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

.nbk :focus-visible {
  outline: 3px solid var(--nbk-indigo);
  outline-offset: 2px;
}

.nbk-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--nbk-paper-2);
  padding: 10px 14px;
  z-index: 5;
}

.nbk-skip:focus { top: 12px; }

.nbk-wrap {
  width: min(760px, calc(100% - 24px));
  margin-inline: auto;
}

.nbk-top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(243, 236, 220, 0.95);
  border-bottom: 1px solid rgba(36, 62, 107, 0.16);
}

.nbk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}

.nbk-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
}

.nbk-mark { width: 36px; height: 36px; }

.nbk-word {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nbk-word small {
  font-family: "Figtree", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nbk-margin);
}

.nbk-guide {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--nbk-indigo);
}

.nbk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--nbk-indigo);
  color: #fffaf6;
  font: 700 0.92rem/1.2 "Figtree", sans-serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.nbk-doc { padding: 28px 0 40px; }

.nbk-doc h1,
.nbk-doc h2 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.2;
}

.nbk-doc h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 8px 0 16px;
}

.nbk-pill {
  margin: 0;
  color: var(--nbk-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.nbk-doc p,
.nbk-doc li { font-size: 1.05rem; }

.nbk-doc ol { padding-left: 1.2rem; }

.nbk-doc li + li { margin-top: 0.35rem; }

.nbk-note {
  border-left: 4px solid var(--nbk-margin);
  background: rgba(180, 51, 42, 0.07);
  padding: 12px 14px;
}

.nbk-foot {
  border-top: 1px solid var(--nbk-rule);
  padding: 24px 0 36px;
  color: var(--nbk-muted);
  font-size: 0.95rem;
}

.nbk-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: 8px;
  border: 2px solid var(--nbk-stamp);
  color: var(--nbk-stamp);
  border-radius: 50%;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  transform: rotate(-8deg);
}

.nbk-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.nbk-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--nbk-indigo);
}

.nbk-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  margin: 0 0 12px;
}

.nbk-field input,
.nbk-field textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--nbk-indigo);
  border-radius: 10px;
  background: var(--nbk-paper-2);
  font: 400 1rem/1.4 "Figtree", sans-serif;
  padding: 10px 12px;
  color: var(--nbk-ink);
}

.nbk-field textarea { min-height: 140px; resize: vertical; }

.nbk-form {
  background: var(--nbk-paper-2);
  border: 1px solid var(--nbk-rule);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .nbk *,
  .nbk *::before,
  .nbk *::after {
    animation: none !important;
    transition: none !important;
  }
}
