/* Reading-first homepage. All rules are isolated from article and gallery pages. */
.index-page .site-header { position: relative; background: var(--paper); backdrop-filter: none; border-bottom: 0; }
.index-page .header-inner { max-width: 1120px; min-height: 92px; padding: 0 40px; }
.index-page .brand-mark { background: none; color: var(--cinnabar); border: 1px solid currentColor; }
.index-page .quiet-home { max-width: 1120px; padding: 0 40px; }
.index-page .reading-intro { position: relative; padding: 36px 0 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-ink); }
.index-page .reading-kicker { margin: 0 0 13px; font: 11px/1.8 var(--font-sans); letter-spacing: .18em; color: var(--muted); }
.index-page .reading-intro h1 { font: 400 clamp(30px,3.2vw,40px)/1.5 var(--font-title); letter-spacing: .05em; }
.index-page .reading-description { margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.index-page .reading-shortcuts { display: flex; gap: 25px; margin-top: 17px; font: 12px/1.8 var(--font-sans); color: var(--moss); }
.index-page .reading-shortcuts a { padding: 4px 0; }
.index-page .reading-shortcuts span { margin-left: 9px; }
.index-page .reading-columns { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 56px; padding: 32px 0 38px; scroll-margin-top: 24px; }
.index-page .reading-columns:focus { outline: none; }
.index-page .reading-columns:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 8px; }
.index-page .quiet-section-head { margin: 0; padding-bottom: 17px; border-bottom: 1px solid var(--line); gap: 14px; }
.index-page .quiet-section-head h2 { font-size: 25px; letter-spacing: .07em; }
.index-page .quiet-section-head h2::before { content: none; }
.index-page .quiet-section-head > a { white-space: nowrap; font-size: 11px; }
.index-page .quiet-story { display: block; padding: 23px 22px 24px 0; }
.index-page .quiet-story-meta { flex-direction: row; gap: 15px; font-size: 11px; margin-bottom: 8px; }
.index-page .quiet-story h3 { font-size: 25px; line-height: 1.65; text-wrap: initial; }
.index-page .quiet-story p { margin-top: 7px; font-size: 13px; line-height: 1.9; }
.index-page .quiet-story:last-child { border-bottom: 0; }
.index-page .quiet-note-grid { display: block; padding: 0; }
.index-page .quiet-note-grid article { padding: 23px 0 24px; border-bottom: 1px solid var(--line); }
.index-page .quiet-note-grid article:last-child { border-bottom: 0; }
.index-page .quiet-note-grid time { font-size: 11px; }
.index-page .quiet-note-grid h3 { font-size: 22px; line-height: 1.7; margin: 8px 0 7px; }
.index-page .quiet-note-grid p { font-size: 13px; line-height: 1.9; }
.index-page .quiet-music { border-top: 1px solid var(--line-ink); padding-top: 23px; }
.index-page .quiet-music .quiet-section-head { border-bottom: 0; padding-bottom: 12px; }
.index-page .home-life { max-width: none; margin: 28px 0 0; border-bottom: 0; padding: 22px 0; background: transparent; }
.index-page .home-clock { font-size: 27px; }
.index-page .home-time { justify-content: flex-start; padding-left: 0; }
.index-page .quiet-signoff { padding: 23px 0 28px; }
.index-page .footer-inner { max-width: 1040px; }
@media (min-width: 1000px) {
  .index-page .reading-shortcuts { position: absolute; right: 0; bottom: 35px; margin: 0; }
}
@media (max-width: 900px) {
  .index-page .reading-columns { gap: 32px; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
  .index-page .quiet-story h3 { font-size: 23px; }
  .index-page .quiet-note-grid h3 { font-size: 21px; }
}
@media (max-width: 700px) {
  .index-page .header-inner { min-height: 82px; padding: 17px 24px; flex-wrap: wrap; gap: 16px; }
  .index-page .site-header .nav { gap: 19px; }
  .index-page .quiet-home { padding: 0 24px; }
  .index-page .reading-intro { padding: 27px 0 24px; }
  .index-page .reading-intro h1 { font-size: clamp(22px,6.5vw,34px); letter-spacing: .02em; }
  .index-page .reading-kicker { font-size: 10px; margin-bottom: 12px; }
  .index-page .reading-description { font-size: 13px; margin-top: 11px; max-width: 30em; }
  .index-page .reading-shortcuts { margin-top: 13px; }
  .index-page .reading-columns { display: block; padding: 25px 0 26px; }
  .index-page .quiet-section-head { padding-bottom: 13px; }
  .index-page .quiet-section-head h2 { font-size: 25px; }
  .index-page .quiet-notes { margin-top: 24px; }
  .index-page .quiet-story { padding-top: 20px; padding-bottom: 22px; }
  .index-page .quiet-note-grid article { padding: 20px 0 22px; }
  .index-page .quiet-note-grid h3 { font-size: 23px; }
  .index-page .quiet-story p, .index-page .quiet-note-grid p { font-size: 13px; }
  .index-page .home-life { padding: 20px 0; margin-top: 20px; }
}
@media (max-width: 480px) {
  .index-page .header-inner { gap: 14px; padding-bottom: 12px; }
  .index-page .site-header .nav { width: 100%; justify-content: space-between; gap: 12px; }
  .index-page .site-header .nav a { font-size: 13px; }
  .index-page .theme-toggle { width: 34px; height: 34px; }
}

/* Ink in the margins: decoration has no layout size and never intercepts input. */
.index-page .site-shell { position: relative; isolation: isolate; }
.index-page .site-shell::before,
.index-page .site-shell::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: clamp(120px, calc((100vw - 1040px) / 2 - 22px), 360px);
  height: 660px; background-repeat: no-repeat; background-size: 100% auto;
}
.index-page .site-shell::before {
  top: 180px; left: 0; opacity: .64;
  background-image: url('/ink-lotus-20260919.svg');
}
.index-page .site-shell::after {
  top: 190px; right: 0; opacity: .76;
  background-image: url('/ink-pavilion-20260919.svg');
}
.index-page .reading-intro::after {
  content: ""; position: absolute; top: 13px; right: 31px;
  width: 216px; height: 108px; pointer-events: none; opacity: .75;
  background: url('/ink-cranes-20260919.svg') center / contain no-repeat;
}
:root[data-theme=dark] .index-page .site-shell::before,
:root[data-theme=dark] .index-page .site-shell::after,
:root[data-theme=dark] .index-page .reading-intro::after {
  filter: grayscale(.4) brightness(1.7); opacity: .4;
}
@media (max-width: 1199px) {
  .index-page .site-shell::before, .index-page .site-shell::after { content: none; }
  .index-page .reading-intro::after { width: 175px; height: 88px; right: 0; top: 7px; opacity: .58; }
}
@media (max-width: 700px) {
  .index-page .reading-intro::after { width: 105px; height: 53px; top: 1px; right: 0; opacity: .56; }
}
