:root {
  --notes-shell: 920px;
}

.notes-index-page .skip-link:not(:focus) {
  top: -100px;
}

.notes-index-page .content-header--detail {
  width: min(var(--notes-shell), calc(100% - 64px));
}

.notes-index-page .detail-main.notes-main {
  width: min(var(--notes-shell), calc(100% - 64px));
  padding: 42px 0 96px;
}

.notes-index-page .notes-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 52px;
  min-height: 300px;
  align-items: center;
  padding: 34px 0 64px;
}

.notes-index-page .notes-hero .content-eyebrow {
  margin-bottom: 14px;
  color: var(--content-orange-text);
  font-family: var(--content-script);
  font-size: 20px;
  font-weight: 600;
}

.notes-index-page .notes-hero h1 {
  color: var(--content-ink);
  font-family: var(--content-serif);
  font-size: clamp(52px, 6vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
}

.notes-index-page .notes-hero__copy > p:last-child {
  max-width: 38rem;
  margin-top: 20px;
  color: var(--content-muted);
  font-size: 16px;
  line-height: 1.65;
}

.notes-index-page .notes-hero__art {
  height: 250px;
  opacity: .94;
}

.notes-index-page .notes-list {
  margin-top: 8px;
}

.notes-index-page .notes-year {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--content-line);
}

.notes-index-page .notes-year__label {
  margin: 0;
  color: var(--content-blue);
  font-family: var(--content-sans);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.notes-index-page .notes-year__count {
  margin: 0;
  color: var(--content-muted);
  font-size: 12px;
}

.notes-index-page .note-preview {
  position: relative;
  grid-template-columns: 112px minmax(0, 1fr) 132px;
  gap: 24px;
  align-items: start;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--content-line);
}

.notes-index-page .note-preview::before {
  position: absolute;
  z-index: -1;
  inset: 5px -14px;
  border-radius: 4px;
  background: rgba(255, 253, 248, 0);
  content: "";
  transition: background-color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .notes-index-page .note-preview:has(a:hover)::before {
    background: rgba(255, 253, 248, .72);
  }
}

.notes-index-page .note-preview__kind {
  padding-top: 4px;
  color: #817970;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .01em;
  text-transform: none;
}

.notes-index-page .note-preview h2 {
  font-size: 19px;
  font-weight: 560;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.notes-index-page .note-preview h2 a::after {
  display: inline-block;
  margin-left: 7px;
  color: var(--content-orange-text);
  content: "↗";
  font-size: .75em;
  opacity: 0;
  transform: translate(-3px, 2px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.notes-index-page .note-preview h2 a:hover::after,
.notes-index-page .note-preview h2 a:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}

.notes-index-page .note-preview__content > p {
  max-width: 58ch;
  margin: 9px 0 0;
  color: var(--content-muted);
  font-size: 13px;
  line-height: 1.65;
}

.notes-index-page .note-preview__details {
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
  color: #817970;
  font-size: 12px;
}

.notes-index-page > .content-footer {
  width: min(var(--notes-shell), calc(100% - 64px));
  padding: 34px 0 46px;
}

@media (max-width: 760px) {
  .notes-index-page .content-header--detail,
  .notes-index-page .detail-main.notes-main,
  .notes-index-page > .content-footer {
    width: calc(100% - 36px);
  }

  .notes-index-page .detail-main.notes-main {
    padding-top: 22px;
    padding-bottom: 64px;
  }

  .notes-index-page .notes-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding: 28px 0 46px;
  }

  .notes-index-page .notes-hero h1 {
    font-size: clamp(48px, 15vw, 62px);
  }

  .notes-index-page .notes-hero__copy > p:last-child {
    margin-top: 16px;
    font-size: 15px;
  }

  .notes-index-page .notes-hero__art {
    display: block;
    height: 150px;
    margin: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%);
    mask-image: linear-gradient(to right, transparent 0%, #000 10%);
  }

  .notes-index-page .notes-year {
    padding-bottom: 14px;
  }

  .notes-index-page .note-preview {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    padding: 22px 0 24px;
  }

  .notes-index-page .note-preview__content {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .notes-index-page .note-preview__kind {
    grid-column: 1;
    grid-row: 2;
    padding-top: 0;
  }

  .notes-index-page .note-preview__details {
    grid-column: 2;
    grid-row: 2;
    padding-top: 0;
  }

  .notes-index-page .note-preview h2 {
    font-size: 18px;
  }

  .notes-index-page .note-preview__content > p {
    margin-top: 8px;
    font-size: 13px;
  }
}

/* Final cascade lock: the former Notes sea strip is replaced by the shared Work hero. */
.notes-index-page .detail-main.notes-main::before {
  display: none;
  content: none;
}

.notes-index-page .note-preview h2 a:hover,
.notes-index-page .note-preview h2 a:focus-visible {
  color: var(--work-orange);
}

/* Notes shares the accepted Work page frame; only the reading list stays page-specific. */
.notes-index-page .content-header--detail {
  width: min(var(--work-shell), calc(100% - 64px));
}

.notes-index-page .detail-main.notes-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.notes-index-page .detail-main.notes-main::before {
  display: none;
}

.notes-index-page .detail-hero--works.notes-hero {
  display: block;
  min-height: 330px;
  margin: -72px 0 0;
  padding: 0;
}

.notes-index-page .detail-hero--works.notes-hero h1 {
  margin: 0;
  color: var(--work-blue);
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", sans-serif;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
}

.notes-index-page .detail-hero--works.notes-hero .detail-intro {
  max-width: 610px;
  margin-top: 18px;
  color: #355b7f;
  font-size: 16px;
  line-height: 1.58;
}

.notes-index-page .notes-list {
  width: min(var(--notes-shell), calc(100% - 64px));
  margin: 8px auto 0;
  padding: 10px 0 112px;
}

.notes-index-page .notes-year__label,
.notes-index-page .notes-year__month,
.notes-index-page .notes-year__count,
.notes-index-page .note-preview__kind,
.notes-index-page .note-preview h2 a,
.notes-index-page .note-preview__details {
  color: var(--work-blue);
}

.notes-index-page .notes-year__count,
.notes-index-page .note-preview__kind,
.notes-index-page .note-preview__details {
  opacity: .78;
}

@media (max-width: 820px) {
  .notes-index-page .content-header--detail {
    width: calc(100% - 36px);
  }

  .notes-index-page .detail-hero--works.notes-hero {
    min-height: 300px;
    margin-top: -96px;
    padding: 0;
  }

  .notes-index-page .detail-hero--works.notes-hero h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .notes-index-page .detail-hero--works.notes-hero .detail-intro {
    max-width: 34rem;
    margin-top: 18px;
    font-size: 15px;
  }

  .notes-index-page .notes-list {
    width: calc(100% - 36px);
    margin-top: 0;
    padding: 8px 0 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notes-index-page .note-preview::before,
  .notes-index-page .note-preview h2 a::after {
    transition: none;
  }
}

/* Shore composition: keep the list scalable while matching the visual reference. */
.notes-index-page .detail-main.notes-main {
  padding-top: 0;
}

.notes-index-page .detail-main.notes-main::before {
  display: block;
  width: 100vw;
  height: 112px;
  margin: 0 0 18px calc(50% - 50vw);
  background-image: url("home/shore-environment-watercolor-v4.png");
  background-position: center 57%;
  background-size: cover;
  content: "";
  opacity: .66;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 60%, transparent 100%);
}

.notes-index-page .notes-hero h1 {
  color: var(--content-blue);
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", sans-serif;
}

.notes-index-page .notes-list {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
}

.notes-index-page .notes-year {
  grid-column: 1;
  grid-row: 1;
  display: block;
  padding: 25px 24px 0 0;
  border-bottom: 0;
}

.notes-index-page .notes-year__month {
  margin: 8px 0 0;
  color: var(--content-blue);
  font-size: 13px;
}

.notes-index-page .notes-year__count {
  margin: 26px 0 0;
}

.notes-index-page .note-preview {
  grid-column: 2;
  grid-template-columns: 104px minmax(0, 1fr) 132px;
  padding: 24px 0 26px;
}

.notes-index-page .note-preview__content > p {
  display: none;
}

.notes-index-page > .content-footer.notes-footer {
  position: relative;
  display: block;
  width: 100%;
  min-height: 270px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--content-blue);
}

.notes-index-page .notes-footer__landscape {
  position: absolute;
  inset: 0;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 32%, #000 100%);
}

.notes-index-page .notes-footer__landscape img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(.78) brightness(1.06);
}

.notes-index-page .notes-footer__cats {
  position: absolute;
  right: calc(50% - 44px);
  bottom: 58px;
  width: 88px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(57, 47, 37, .1));
}

.notes-index-page .notes-footer__bottom {
  position: absolute;
  right: max(32px, calc((100% - var(--notes-shell)) / 2));
  bottom: 30px;
  left: max(32px, calc((100% - var(--notes-shell)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, .92);
}

.notes-index-page .notes-footer__bottom a {
  color: inherit;
  text-decoration: none;
}

.notes-index-page .notes-footer__bottom a:hover {
  color: var(--content-orange-text);
}

@media (max-width: 760px) {
  .notes-index-page .detail-main.notes-main {
    padding-top: 0;
  }

  .notes-index-page .detail-main.notes-main::before {
    height: 72px;
    margin-bottom: 16px;
    background-position: center 56%;
  }

  .notes-index-page .notes-list {
    grid-template-columns: 1fr;
  }

  .notes-index-page .notes-year {
    grid-column: 1;
    grid-row: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--content-line);
  }

  .notes-index-page .notes-year__month {
    grid-column: 1;
    margin-top: 4px;
  }

  .notes-index-page .notes-year__count {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
  }

  .notes-index-page .note-preview {
    grid-column: 1;
  }

  .notes-index-page .note-preview__content > p {
    display: none;
  }

  .notes-index-page > .content-footer.notes-footer {
    width: 100%;
    min-height: 230px;
  }

  .notes-index-page .notes-footer__landscape img {
    transform: scale(1.25);
    transform-origin: center bottom;
  }

  .notes-index-page .notes-footer__cats {
    right: calc(50% - 37px);
    bottom: 60px;
    width: 74px;
  }

  .notes-index-page .notes-footer__bottom {
    right: 18px;
    bottom: 22px;
    left: 18px;
  }
}

/* The shared Work hero owns the only shoreline band above the Notes content. */
.notes-index-page .detail-main.notes-main::before {
  display: none;
  content: none;
}

/* Keep the established blue at rest and the accepted orange feedback on interaction. */
.notes-index-page .note-preview h2 a:hover,
.notes-index-page .note-preview h2 a:focus-visible {
  color: var(--work-orange);
}

/* The year rail is independent, so it cannot make the first note row taller. */
@media (min-width: 761px) {
  .notes-index-page .notes-list {
    position: relative;
  }

  .notes-index-page .notes-year {
    position: absolute;
    top: 10px;
    left: 0;
    width: 136px;
  }
}

/* Hover feedback is typographic only. */
.notes-index-page .note-preview::before,
.notes-index-page .note-preview h2 a::after {
  display: none;
  content: none;
}

/* Keep the list open and unboxed on every viewport. */
.notes-index-page .note-preview,
.notes-index-page .notes-year {
  border-bottom: 0;
}

.notes-index-page .note-preview {
  padding: 20px 0;
}

.notes-index-page .note-preview h2 {
  font-size: 18px;
}

@media (max-width: 760px) {
  .notes-index-page .notes-year {
    display: none;
  }

  .notes-index-page .note-preview {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    row-gap: 4px;
    padding: 18px 0;
  }

  .notes-index-page .note-preview__content {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .notes-index-page .note-preview__kind {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    padding-top: 0;
  }

  .notes-index-page .note-preview__details {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    padding-top: 0;
  }
}
