:root {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #fffaf1;
  background: #30271f;
  font-synthesis: none;
  --notes-gutter: var(--site-edge, 65px);
  --notes-gold: #f4d35e;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; }
/* Keep the same content width as works while allowing normal scrolling. */
html, body { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--notes-gold); outline-offset: 5px; }
::selection { color: #282017; background: #eed18b; }

.notes-scene {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: #30271f url("assets/notes-ambient-bg-v3.webp") center top / cover no-repeat;
}

.notes-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 15, 13, .66), rgba(17, 15, 13, .29) 42%, rgba(17, 15, 13, .16)), linear-gradient(0deg, rgba(11, 10, 9, .42), rgba(11, 10, 9, .06) 46%, rgba(11, 10, 9, .14)), linear-gradient(180deg, rgba(20, 16, 11, .1), rgba(20, 16, 11, .1));
}

.notes-page { display: flex; flex-direction: column; min-height: 100svh; }
.notes-page .site-header { right: auto; width: calc(100vw - var(--site-edge) - var(--site-edge)); }
.notes-main,
.notes-footer {
  width: calc(100% - var(--notes-gutter) - var(--notes-gutter));
  max-width: 1640px;
  margin-inline: auto;
}

.notes-main { flex: 1; padding-top: 78px; }
.notes-intro { min-height: 157px; padding-bottom: 10px; color: #fff; text-shadow: 0 2px 22px rgba(0, 0, 0, .36); }
.notes-eyebrow { margin: 0 0 14px; color: var(--notes-gold); font-size: 12px; font-weight: 400; line-height: normal; letter-spacing: .2em; }
.notes-eyebrow::after { content: ""; display: block; width: 54px; height: 1px; margin-top: 10px; background: var(--notes-gold); box-shadow: 0 0 12px rgba(244, 211, 94, .32); }
.notes-intro h1 { margin: 0; font-size: 56px; font-weight: 400; line-height: 1; letter-spacing: -.065em; }
.notes-lede { max-width: 390px; margin: 18px 0 0; color: rgba(255, 255, 255, .84); font-size: 18px; line-height: 1.65; }

.notes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 0 12px;
  border: 1px solid rgba(255, 249, 225, .16);
  border-radius: 12px;
  background: radial-gradient(70% 150% at 50% 0%, rgba(255, 255, 255, .12), transparent 58%), radial-gradient(120% 170% at 88% 120%, rgba(238, 225, 150, .08), transparent 58%), linear-gradient(132deg, rgba(28, 24, 20, .28), rgba(112, 93, 70, .18) 48%, rgba(16, 14, 12, .32));
  background-color: rgba(153, 133, 108, .24);
  box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 3px 10px rgba(48, 35, 21, .05);
  -webkit-backdrop-filter: blur(24px) saturate(1.16);
  backdrop-filter: blur(24px) saturate(1.16);
}

.notes-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.notes-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.notes-filter {
  flex: none;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: rgba(255, 251, 239, .82);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: .08em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.notes-filter:hover { color: #fffaf1; border-color: rgba(255, 249, 225, .2); background: rgba(255, 251, 239, .07); }
.notes-filter[aria-pressed="true"] { color: var(--notes-gold); border-color: rgba(238, 225, 150, .12); background: rgba(238, 225, 150, .09); box-shadow: inset 0 1px rgba(255, 255, 255, .18), 0 4px 12px rgba(238, 225, 150, .07); }
.notes-filter:focus-visible { outline: 2px solid var(--notes-gold); outline-offset: 3px; }
.notes-library-note { flex: none; margin: 0; color: rgba(255, 251, 239, .67); font-size: 11px; line-height: 1.6; letter-spacing: .08em; white-space: nowrap; }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 27px; align-items: stretch; }
.notes-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 296px;
  aspect-ratio: 16 / 9;
  padding: 28px;
  border: 1px dashed rgba(255, 249, 227, .23);
  border-radius: 12px;
  color: rgba(255, 251, 239, .86);
  background: rgba(62, 50, 33, .26);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-align: center;
  text-shadow: 0 1px 10px rgba(30, 22, 12, .16);
}
.notes-empty[hidden], [data-note-software][hidden] { display: none; }
.notes-empty-symbol { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border: 1px solid rgba(255, 249, 227, .22); border-radius: 50%; }
.notes-empty-symbol svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.notes-empty h3 { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: .05em; }
.notes-empty p { margin: 9px 0 0; font-size: 12px; line-height: 1.7; letter-spacing: .03em; }
.notes-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 36px 28px; color: rgba(255, 251, 239, .72); font-size: 10px; line-height: 1.7; letter-spacing: .16em; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.notes-footer a { flex: none; color: var(--notes-gold); }
.notes-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Follow the works page's desktop canvas and mobile breakpoint. */
@media (min-width: 621px) {
  html, body { min-width: 1776px; }
  body { overflow-x: auto; }
  .notes-main, .notes-footer { width: 1640px; }
  .notes-toolbar { height: 68px; }
}

@media (max-width: 620px) {
  .notes-scene { background-position: 58% top; }
  .notes-scene::after { background: linear-gradient(90deg, rgba(17, 15, 13, .64), rgba(17, 15, 13, .3)), linear-gradient(0deg, rgba(11, 10, 9, .38), rgba(11, 10, 9, .06) 65%), linear-gradient(180deg, rgba(20, 16, 11, .12), rgba(20, 16, 11, .12)); }
  .notes-main { padding-top: 86px; }
  .notes-intro { min-height: 134px; padding-bottom: 0; }
  .notes-intro h1 { font-size: clamp(36px, 6.4vw, 52px); }
  .notes-lede { margin-top: 13px; font-size: 14px; }
  .notes-toolbar { flex-direction: column; align-items: stretch; min-height: 62px; gap: 12px; padding: 14px 17px; border-radius: 10px; }
  .notes-filter { padding-inline: 11px; }
  .notes-library-note { align-self: flex-end; font-size: 10px; text-align: right; }
  .notes-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
  .notes-empty { min-height: 180px; padding: 24px; aspect-ratio: auto; }
  .notes-empty-symbol { width: 36px; height: 36px; margin-bottom: 12px; }
  .notes-empty h3 { font-size: 15px; }
  .notes-footer { gap: 12px; padding-block: 32px 24px; font-size: 9px; letter-spacing: .1em; }
}

@media (max-width: 390px) {
  .notes-toolbar { padding-inline: 14px; }
  .notes-library-note { letter-spacing: .02em; }
  .notes-footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .notes-filter { transition: none; }
}
