/* Text pages (guide, privacy, 404): one paper sheet */
.nd { max-width: 880px; margin: 48px auto 0; padding: 0 32px; }
.nd-sheet { padding: 48px 64px 52px; border-radius: 4px; border: 1px solid rgba(214, 182, 120, .38); background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px rgba(0, 0, 0, .45); font-family: "Alegreya", var(--serif); font-size: 17.5px; line-height: 1.75; }
.nd-sheet h1 { margin: 0 0 8px; font-family: var(--display); font-size: 46px; font-weight: 500; letter-spacing: .02em; line-height: 1.1; text-align: center; }
.nd-sheet .nd-sub { margin: 0 0 36px; text-align: center; font-family: var(--sans); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.nd-sheet h2 { margin: 44px 0 10px; font-family: var(--display); font-size: 32px; font-weight: 500; }
.nd-sheet h3 { margin: 40px 0 10px; font-family: var(--display); font-size: 27px; font-weight: 600; letter-spacing: .01em; scroll-margin-top: calc(var(--top-h) + 16px); }
.nd-sheet a { color: var(--rose); text-underline-offset: 3px; }
.nd-sheet ul, .nd-sheet ol { padding-left: 24px; }
.nd-sheet li { margin: 4px 0; }
.nd-sheet hr { margin: 44px 0; border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(176, 141, 87, .45), transparent); }
.nd-sheet img { display: block; margin: 18px auto 0; border-radius: 6px; border: 1px solid rgba(110, 104, 95, .2); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.nd-sheet .cap { margin: 8px 0 22px; text-align: center; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.nd-sheet .toc { padding: 14px 20px; border-left: 2px solid rgba(176, 141, 87, .5); background: rgba(214, 182, 120, .1); font-family: var(--sans); font-size: 15px; }
.nd-sheet .tip { margin: 18px 0; padding: 14px 20px; border-radius: 4px; background: rgba(142, 77, 104, .07); border-left: 2px solid var(--rose); font-family: var(--sans); font-size: 15.5px; }
.nd-sheet .duo { display: flex; gap: 24px; justify-content: center; }
.nd-sheet figure { margin: 0; }
.nd-sheet ol.n { font-family: var(--sans); font-size: 16px; }
.nd-404 { text-align: center; }
.nd-404 p { margin: 0 0 22px; }

/* light (paper): the sheet sits on paper, so it gets a lighter edge */
html[data-theme="light"] .nd-sheet { background: #fffaf2; border-color: #e3d9c6; box-shadow: 0 14px 40px rgba(60, 40, 10, .1); }

@media (max-width: 700px) {
  .nd { margin-top: 20px; padding: 0 12px; }
  .nd-sheet { padding: 30px 20px 34px; font-size: 16.5px; }
  .nd-sheet h1 { font-size: 34px; }
  .nd-sheet .duo { flex-direction: column; align-items: center; }
}
