/* Only the transparent content layer scrolls and rubber-bands. The root,
   sky, header and footer remain outside that scrolling surface. */
html { height: 100%; overflow: hidden; scrollbar-width: none; overscroll-behavior: none; }
html::-webkit-scrollbar { display: none; }
body { position: fixed; inset: 0; min-height: 0; overflow: hidden; overscroll-behavior: none; display: block; padding: 0; color: #f2eee7; }
.reading-scroll {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flow-root;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: transparent;
}
.reading-scroll::-webkit-scrollbar { display: none; }
.reading-scroll:focus-visible { outline: 1px solid var(--heading-ink); outline-offset: -2px; }
#sky, #stars, #sky-top-edge, #sky-bottom-edge { z-index: 0; }
.site-header h1, footer { z-index: 2; }
.site-header h1 { color: var(--heading-ink); mix-blend-mode: normal; }
.site-header a { color: inherit; text-decoration: none; }
footer { color: var(--footer-ink); }
#clock-button { margin-left: auto; flex: none; }
#time-panel { z-index: 3; }
.reading-shell {
  --smooth-radius: 19px;
  --smooth-border: #ffffff26;
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin: max(140px, calc(env(safe-area-inset-top) + 100px)) auto max(120px, calc(env(safe-area-inset-bottom) + 80px));
  padding: clamp(26px, 5vw, 64px);
  /* Apply the shared note material directly to every content panel. */
  background: var(--note-material-fill);
  backdrop-filter: var(--note-material-filter);
  -webkit-backdrop-filter: var(--note-material-filter);
  border: 1px solid var(--smooth-border);
  border-radius: 19px;
  box-shadow: var(--note-material-shadow);
  color: #f2eee7;
}
.reading-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 54px; font: 13px/1.3 "NB International", sans-serif; color: #bebfc7; }
.reading-nav a { color: inherit; text-decoration: none; padding-block: 6px; }
.reading-nav a:hover { color: #f2eee7; }
.reading-nav svg { width: 12px; height: 12px; margin-right: 7px; vertical-align: -1px; }
.reading-shell h1 { position: static; color: inherit; mix-blend-mode: normal; font: 400 clamp(28px, 4vw, 40px)/1.1 "NB International", sans-serif; letter-spacing: -.035em; margin: 0 0 32px; overflow-wrap: break-word; }
.reading-shell h2 { font: 400 23px/1.2 "NB International", sans-serif; letter-spacing: -.02em; margin: 44px 0 20px; }
.reading-shell p, .reading-shell li, .reading-shell blockquote { font-size: 17px; line-height: 1.6; letter-spacing: -.01em; }
.reading-shell p { margin: 0 0 24px; }
.reading-shell .eyebrow { font: 13px/1.4 "NB International", sans-serif; color: #b1b3be; margin: 0 0 12px; }
.reading-shell a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: #ffffff60; }
.reading-shell a:hover { text-decoration-color: currentColor; }
.reading-shell blockquote { margin: 32px 0; padding-left: 20px; border-left: 1px solid #ffffff40; color: #c1c5cf; }
.reading-shell article img { display: block; max-width: 100%; height: auto; margin: 28px auto; border-radius: 8px; }
.reading-shell pre { padding: 20px; overflow-x: auto; border-radius: 10px; background: #141518; color: #dcdcdc; border: 1px solid #ffffff14; margin: 28px 0; color-scheme: dark; }
.reading-shell code { font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.reading-shell pre > code { display: block; white-space: pre; tab-size: 4; letter-spacing: normal; font-variant-ligatures: none; }
/* Christian's Xcode palette, mapped to Highlight.js's lexical token scopes.
   Project/SDK symbol resolution is only available in Xcode. */
.reading-shell pre > code.hljs { background: transparent; color: #dcdcdc; }
.reading-shell pre::selection, .reading-shell pre *::selection { background: #646f83; color: #dcdcdc; }
.reading-shell .hljs-comment, .reading-shell .hljs-quote, .reading-shell .hljs-doctag { color: #7f8c98; }
.reading-shell .hljs-keyword, .reading-shell .hljs-literal { color: #ff7ab2; }
.reading-shell .hljs-string, .reading-shell .hljs-regexp { color: #ff8170; }
.reading-shell .hljs-number, .reading-shell .hljs-symbol { color: #d9c97c; }
.reading-shell .hljs-link { color: #6699ff; }
.reading-shell .hljs-meta { color: #ffa14f; }
.reading-shell .hljs-title.class_ { color: #6bdfff; }
.reading-shell .hljs-title.function_ { color: #4eb0cc; }
.reading-shell .hljs-type, .reading-shell .hljs-title.class_.inherited__ { color: #dabaff; }
.reading-shell .hljs-built_in { color: #b281eb; }
.reading-shell .hljs-variable, .reading-shell .hljs-property, .reading-shell .hljs-attr { color: #78c2b3; }
.reading-shell .hljs-subst, .reading-shell .hljs-params { color: #dcdcdc; }
.reading-shell .hljs-emphasis { font-style: italic; }
.reading-shell .hljs-strong { font-weight: 700; }
.reading-shell :not(pre) > code { background: #ffffff10; padding: 2px 4px; border-radius: 3px; overflow-wrap: anywhere; }
.reading-shell ul { padding-left: 22px; }
.reading-shell li { margin-bottom: 18px; }
.reading-shell iframe { display: block; max-width: 100%; margin-top: 40px; border: 0; border-radius: 12px; }
.thoughts .reading-shell { --smooth-radius: 18px; width: min(620px, calc(100% - 40px)); padding: clamp(26px, 5vw, 42px); border-radius: 18px; }
.thoughts .reading-shell h1 { font: 400 18px/1.4 "NB Akademie Pro", sans-serif; letter-spacing: -.01em; margin-bottom: 28px; }
.thoughts .reading-nav { margin-bottom: 32px; }
.thoughts .reading-shell p, .thoughts .reading-shell blockquote { font-size: 16px; }
.thoughts .reading-shell blockquote { padding: 0; border: 0; }
.article-entry { display: block; padding: 28px 0; border-top: 1px solid #ffffff25; border-bottom: 1px solid #ffffff25; text-decoration: none; }
.article-entry h2 { margin: 0 0 12px; }
.article-entry p { margin: 0; color: #b1b3be; font-size: 15px; }
.article-entry:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.reading-end { display: inline-block; margin-top: 32px; font: 13px/1.4 "NB International", sans-serif; color: #b1b3be !important; }
@media (max-width: 520px) {
  .reading-shell { --smooth-radius: 16px; width: calc(100% - 24px); padding: 24px; border-radius: 16px; }
  .reading-nav { margin-bottom: 40px; font-size: 12px; }
  .reading-shell p, .reading-shell li, .reading-shell blockquote { font-size: 16px; }
  .album-entry strong { font-size: 16px; }
}

/* The music index is just a few links in the sky. */
.thoughts-index .reading-shell { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border: 0; border-radius: 0; color: var(--thoughts-ink, #ffffff); }
.thoughts-index .reading-shell h1 { font-size: 16px; margin-bottom: 22px; }
.thought-links { display: grid; gap: 12px; justify-items: start; font-size: 16px; line-height: 1.5; }
.thought-links a { text-decoration-color: currentColor; }

.content-status { color: #c1c5cf; }
.content-status button { border: 0; padding: 0; background: none; text-decoration: underline; text-underline-offset: 3px; }
