.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.header-search, .hero-search { gap: .48rem; }
.search-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 .76rem;
  width: .76rem;
  height: .76rem;
  margin-right: .12rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.search-icon::after {
  position: absolute;
  right: -.34rem;
  bottom: -.18rem;
  width: .4rem;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
  content: '';
}
.footer-search {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.blog-hero-figure { overflow: hidden; }
.blog-hero-figure img {
  transform: translate(var(--cover-x, 0px), var(--cover-y, 0px)) scale(1.055);
  transition: transform 250ms var(--out);
}

.journal-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(16rem, .93fr);
  align-items: stretch;
  gap: clamp(.85rem, 2.2vw, 2rem);
  margin-top: clamp(1.65rem, 4vw, 3.25rem);
}

.timeline-panel {
  --paper: var(--dark);
  --ink: var(--dark-ink);
  --surface: var(--dark-surface);
  --soft: var(--dark-raised);
  --muted: var(--dark-muted);
  --line: var(--dark-rule);
  --rule: #b7b7b7;
  --hover-surface: #383838;
  --focus-ring: #a7c2ff;
  --plot-height: clamp(6.9rem, 10.5vw, 10rem);
  min-width: 0;
  padding: clamp(.95rem, 2.2vw, 1.65rem);
  border: 1px solid var(--dark-rule);
  border-top: 4px solid var(--signal);
  background: var(--dark);
  color: var(--dark-ink);
}
.timeline-head, .shelf-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem .9rem;
}
.timeline-head h2, .shelf-head h2 { font-size: clamp(1.35rem, 2.7vw, 2.08rem); }
.timeline-head p { margin-top: .36rem; color: var(--muted); font-size: .91rem; }
.timeline-head .action { flex-shrink: 0; min-height: 2.65rem; }
.timeline-scroll {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  margin-top: 1.2rem;
}
.timeline-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  height: var(--plot-height);
  padding-right: .55rem;
  color: var(--muted);
  font: .76rem/1 var(--font-mono);
  text-align: right;
}
.timeline-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(2.6rem, 1fr);
  gap: .22rem;
  padding-right: .3rem;
  border-left: 1px solid var(--line);
  background: repeating-linear-gradient(0deg, transparent 0 calc(25% - 1px), #ffffff21 calc(25% - 1px) 25%)
    top left / 100% var(--plot-height) no-repeat;
  overflow-x: auto;
  scrollbar-color: var(--line) var(--dark);
  scrollbar-width: thin;
}
.timeline-point {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: var(--plot-height) 1.95rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: center;
}
.timeline-point:focus-visible { outline-offset: -2px; }
.timeline-well {
  position: relative;
  display: block;
  height: var(--plot-height);
  min-height: 0;
  border-bottom: 1px solid var(--line);
}
.timeline-bar {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(58%, 3.6rem);
  height: max(3px, calc((var(--plot-height) - 1px) * var(--level)));
  border: 1px solid #747474;
  border-bottom: 0;
  background: repeating-linear-gradient(136deg, #d8d8d81c 0 1px, transparent 1px 7px), #4b4b4b;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  transform: translateX(-50%);
  transform-origin: bottom;
  transition: background-color var(--hover-time) var(--out), border-color var(--hover-time), transform var(--focus-time) var(--out);
}
.timeline-bar::after {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: #ffffff6b;
  content: '';
}
.timeline-point[aria-pressed='true'] .timeline-bar {
  border-color: var(--signal);
  background: repeating-linear-gradient(136deg, #17171744 0 1px, transparent 1px 8px), var(--signal);
}
.timeline-date {
  display: grid;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: -.025em;
  white-space: nowrap;
  transition: border-color var(--hover-time), color var(--hover-time);
}
.timeline-point[aria-pressed='true'] .timeline-date { border-color: var(--signal); color: var(--dark-ink); }
.timeline-point:active .timeline-bar { transform: translateX(-50%) scaleX(.9); }
.timeline-no-entries { grid-column: 1 / -1; margin: 1rem; color: var(--muted); }
.timeline-scroll-hint { margin-top: .35rem; color: var(--muted); font-size: .82rem; }
.timeline-current {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem 1rem;
  border-top: 1px solid var(--line);
  margin-top: .7rem;
  padding-top: .85rem;
}
.timeline-inspect-copy { min-width: 0; min-height: 3.15rem; }
.timeline-inspect-copy p { margin-bottom: .26rem; color: var(--signal-on-dark); font-size: .77rem; }
.timeline-inspect-copy h3 { overflow-wrap: anywhere; font-size: clamp(1.05rem, 1.75vw, 1.38rem); line-height: 1.3; }
.timeline-current .action { min-height: 2.5rem; padding-inline: .66rem; }

.reading-shelf {
  display: flex;
  flex-direction: column;
  gap: .88rem;
  min-width: 0;
  padding: clamp(.95rem, 2.2vw, 1.65rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--rule);
  background: var(--surface);
}
.shelf-head { align-items: baseline; }
.shelf-head .micro { color: var(--orange-ink); }
.shelf-resume, .shelf-suggestion {
  display: grid;
  justify-items: start;
  gap: .45rem;
  padding: .73rem .8rem .82rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  background: var(--paper);
}
.shelf-resume p, .shelf-suggestion .micro { color: var(--orange-ink); }
.shelf-resume h3, .shelf-suggestion h3 { overflow-wrap: anywhere; font-size: 1.1rem; }
.shelf-suggestion > p:not(.micro) { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.shelf-resume progress {
  width: 100%;
  height: .38rem;
  margin: .1rem 0 .3rem;
  border: 0;
  border-radius: 0;
  background: var(--soft);
  accent-color: var(--signal);
}
.shelf-resume progress::-webkit-progress-bar { background: var(--soft); }
.shelf-resume progress::-webkit-progress-value { background: var(--signal); }
.shelf-resume progress::-moz-progress-bar { background: var(--signal); }
.shelf-resume .action, .shelf-suggestion .action { min-height: 2.55rem; }
.shelf-prompt {
  max-width: 28rem;
  padding: .85rem .82rem .92rem;
  border: 1px dashed var(--line);
  background: var(--paper);
  color: var(--muted);
}
.shelf-list {
  display: grid;
  gap: 0;
  max-height: 13rem;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) var(--surface);
}
.shelf-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .45rem .55rem;
  padding: .57rem .35rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .9rem;
  text-decoration: none;
  transition: padding-left var(--hover-time) var(--out), background-color var(--hover-time) var(--out);
}
.shelf-link .micro { flex-shrink: 0; color: var(--muted); font-size: .73rem; }
.shelf-index-link {
  width: fit-content;
  margin-top: auto;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 680;
  text-underline-offset: .25em;
}
.archive-peek-content .archive-peek-actions { gap: .42rem; margin: .78rem .72rem .72rem; }
.archive-peek-content .archive-peek-actions .action { margin: 0; }
.archive-peek-actions #archive-bookmark {
  --paper: var(--dark);
  --surface: var(--dark-surface);
  --line: var(--dark-rule);
  --rule: #b7b7b7;
  --ink: var(--dark-ink);
  --hover-surface: #383838;
}
.entry-date .entry-reading-state { color: var(--orange-ink); font-size: .78rem; font-weight: 700; }

.project-section { margin-top: clamp(3rem, 7vw, 6rem); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.project-record {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 3px solid var(--rule);
  background: var(--surface);
}
.project-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.36;
  background: var(--soft);
}
.project-art::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 33%;
  height: 3px;
  background: var(--signal);
  transform-origin: left;
  transition: transform var(--hover-time) var(--out);
  content: '';
}
.project-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.035);
  transition: transform 270ms var(--out);
}
.project-record-content { display: flex; flex: 1; flex-direction: column; gap: .55rem; padding: .95rem 1rem 1.2rem; }
.project-record-content h3 { font-size: clamp(1.25rem, 2.4vw, 1.82rem); }
.project-record-content p { margin-bottom: .25rem; color: var(--muted); font-size: .94rem; }
.project-record-content .cluster { margin-top: auto; }
.project-note { color: var(--muted); padding: .3rem .15rem; font-size: .85rem; text-underline-offset: .2em; }
.project-note, .shelf-index-link {
  transition: color var(--focus-time), text-underline-offset var(--hover-time) var(--out);
}
.project-note:focus-visible, .shelf-index-link:focus-visible {
  color: var(--orange-ink);
  text-underline-offset: .4em;
}
.reader-neighbors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: .6rem;
  margin: clamp(1.9rem, 5vw, 3.5rem) 0 -.6rem;
}
.reader-neighbor {
  position: relative;
  display: grid;
  gap: .37rem;
  padding: .76rem .85rem .9rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color var(--hover-time), padding-left var(--hover-time) var(--out), background-color var(--hover-time) var(--out);
}
.reader-neighbor .micro { color: var(--muted); }

.quick-search {
  --search-padding: clamp(.8rem, 3vw, 1.42rem);
  --focus-ring: var(--ink);
  width: min(44rem, calc(100vw - 1.6rem));
  max-width: none;
  max-height: calc(100dvh - 1rem);
  padding: var(--search-padding);
  background: var(--surface);
}
.quick-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .72rem;
}
.quick-search-head h2 { margin: 0; }
.quick-search-head .action { min-height: 2.52rem; }
.quick-search #quick-search-input { margin-bottom: .6rem; outline-offset: 2px; }
#quick-search-input::-webkit-search-cancel-button { filter: grayscale(1); }
[data-theme='dark'] #quick-search-input::-webkit-search-cancel-button { filter: grayscale(1) brightness(2); }
.quick-results { display: grid; gap: .35rem; max-height: min(44vh, 23rem); overflow: auto; scrollbar-width: thin; }
.quick-result {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .3rem .65rem;
  min-height: 3.2rem;
  padding: .45rem .62rem .45rem .73rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  transition: background-color var(--hover-time) var(--out), border-color var(--hover-time), padding-left var(--hover-time) var(--out);
}
.quick-result[aria-selected='true'] { border-color: var(--signal); background: var(--hover-surface); padding-left: .94rem; }
.quick-result:active { background: var(--soft); }
.quick-result strong, .quick-result small { display: block; overflow-wrap: anywhere; }
.quick-result strong { line-height: 1.32; }
.quick-result small { color: var(--muted); }
.quick-result-kind { color: var(--muted); }
.quick-result[aria-selected='true'] .quick-result-kind { color: var(--orange-ink); }
.quick-empty { margin: 0; padding: .6rem 0; color: var(--muted); }
.quick-search-foot { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin-top: .74rem; color: var(--muted); font-size: .86rem; }
.quick-search-foot kbd { padding: .08rem .25rem; }

@media (hover: hover) and (pointer: fine) {
  .project-note:hover, .shelf-index-link:hover {
    color: var(--orange-ink);
    text-underline-offset: .4em;
  }
  .timeline-point:hover .timeline-bar { transform: translateX(-50%) scaleX(1.08); border-color: var(--signal); }
  .shelf-link:hover { padding-left: .57rem; background-color: var(--hover-surface); }
  .project-record:hover .project-art img { transform: scale(1.08); }
  .project-record:hover .project-art::after { transform: scaleX(1.46); }
  .reader-neighbor:hover { border-color: var(--signal); padding-left: 1.06rem; background-color: var(--hover-surface); }
}
.shelf-link:focus-visible, .shelf-link[data-pressure='down'] { background-color: var(--hover-surface); }
.reader-neighbor:focus-visible, .reader-neighbor[data-pressure='down'] {
  border-color: var(--signal);
  background-color: var(--hover-surface);
}
@media (max-width: 68rem) {
  .timeline-current { grid-template-columns: 1fr; }
}
@media (max-width: 54rem) {
  .journal-overview { grid-template-columns: 1fr; }
  .reading-shelf { min-height: 0; }
}
@media (max-width: 36rem) {
  .blog-header-action .header-search { display: none; }
  .timeline-scroll { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .timeline-scale { padding-right: .3rem; }
  .timeline-scroll .timeline-track { grid-auto-columns: minmax(2.15rem, 1fr); gap: .14rem; }
  .timeline-current .cluster { gap: .32rem; }
  .timeline-current .action { min-height: 2.7rem; }
}
