.index-main {
  padding: 56px 0 120px;
}

.index-column {
  width: clamp(680px, 58vw, 1040px);
  margin-inline: auto;
}

.index-head {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}

.index-eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1;
}

.index-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.index-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.archive-layout {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}

.archive-nav {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
}

.archive-nav a {
  width: fit-content;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--motion-fast) var(--ease), text-decoration-color var(--motion-fast) var(--ease);
}

.archive-nav a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-underline);
}

.archive-groups {
  min-width: 0;
}

.archive-group {
  padding: 28px 0 14px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 32px;
}

.archive-group:first-child {
  padding-top: 26px;
}

.archive-year {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.archive-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.archive-item {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 9px 0;
}

.archive-date {
  flex: none;
  width: 64px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.archive-link {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--motion-fast) var(--ease), text-decoration-color var(--motion-fast) var(--ease);
}

.archive-link:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-underline);
}

.term-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.term-item {
  border-bottom: 1px solid var(--line);
}

.term-link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 0;
}

.term-name {
  color: var(--text-soft);
  font-size: 22px;
  line-height: 1.45;
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--motion-fast) var(--ease), text-decoration-color var(--motion-fast) var(--ease);
}

.term-link:hover .term-name {
  color: var(--link-hover);
  text-decoration-color: var(--link-underline);
}

.term-count {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.term-arrow {
  flex: none;
  color: var(--muted);
  font-size: 14px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: color var(--motion-fast) var(--ease), opacity var(--motion-fast) var(--ease),
    transform var(--motion-fast) var(--ease);
}

.term-link:hover .term-arrow {
  color: var(--link-hover);
  opacity: 1;
  transform: translate(0, 0);
}

.tag-list .term-name {
  font-size: 18px;
}

.tag-list .term-link {
  padding: 16px 0;
}

.author-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px 0 36px;
  border-bottom: 1px solid var(--line-strong);
}

.author-avatar-frame {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
}

.author-avatar {
  display: block;
  width: 56px;
  height: 56px;
  flex: none;
  object-fit: cover;
  border-radius: 50%;
}

.author-avatar-frame .author-avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.author-info {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.author-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--text-soft);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.author-name .verified-badge {
  width: 16px;
  height: 16px;
}

.author-bio {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.author-signature-row {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.author-signature-field {
  min-width: 0;
  flex: 1;
  margin-top: 0;
}

.author-count {
  flex: none;
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  align-self: center;
}

.author-posts {
  margin-top: 18px;
}

.moments-index {
  width: clamp(680px, 54vw, 920px);
  margin-inline: auto;
}

.moments-head-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.moments-head-line .index-eyebrow {
  margin-bottom: 10px;
}

.moment-search-toggle {
  display: grid;
  width: 30px;
  height: 30px;
  margin-top: -2px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease);
}

.moment-search-toggle:hover,
.moment-search-toggle[aria-expanded="true"] {
  color: var(--link-hover);
  background: var(--bg-soft);
}

.moment-search-toggle svg {
  width: 17px;
  height: 17px;
}

.moment-search-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.moment-search-row[hidden] {
  display: none;
}

.moment-search-input {
  flex: 1;
  min-width: 0;
  padding: 7px 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  font-family: var(--font-reading);
  font-size: 14px;
  transition: border-color var(--motion-fast) var(--ease);
}

.moment-search-input:focus {
  border-color: var(--muted);
}

.moment-search-input::placeholder {
  color: var(--muted);
}

.moment-search-clear {
  display: grid;
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease);
}

.moment-search-clear svg {
  width: 14px;
  height: 14px;
}

.moment-search-clear:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-underline);
}

.moment-search-empty {
  padding: 30px 0;
  color: var(--muted);
  font-size: 12px;
}

.moment-search-results[hidden] {
  display: none;
}

.moment-timeline {
  padding: 0;
  margin: 0;
  list-style: none;
}

.moment-entry {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}

.moment-date {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.moment-date time {
  display: block;
}

.moment-content {
  min-width: 0;
}

.moment-entry-link {
  display: block;
  color: inherit;
}

.moment-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.8;
}

.moment-text p {
  margin: 0 0 0.8em;
}

.moment-text p:last-child {
  margin-bottom: 0;
}

.moment-entry-link:hover .moment-text {
  color: var(--link-hover);
}

.moment-media {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.moment-media img,
.moment-media video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.moment-media.moment-media--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.moment-media.moment-media--many {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.moment-media.moment-media--two img,
.moment-media.moment-media--many img {
  height: auto;
  max-height: none;
  aspect-ratio: 1;
  object-fit: cover;
}

.moment-media.moment-media--two video,
.moment-media.moment-media--many video,
.moment-media.moment-media--two audio,
.moment-media.moment-media--many audio {
  grid-column: 1 / -1;
}

.moment-media video {
  background: var(--bg-soft);
}

.moment-media audio {
  width: 100%;
}

.moment-owner {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.not-found {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 160px;
  text-align: center;
}

.not-found-code {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
}

.not-found-title {
  margin: 18px 0 12px;
  color: var(--text-soft);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.35;
}

.not-found-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.not-found-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.not-found-links a {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--motion-fast) var(--ease), text-decoration-color var(--motion-fast) var(--ease);
}

.not-found-links a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-underline);
}

@media (max-width: 900px) {
  .archive-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .archive-nav {
    display: none;
  }

  .archive-group:first-child {
    padding-top: 28px;
  }
}

@media (max-width: 760px) {
  .index-main {
    padding: 36px 0 80px;
  }

  .index-column,
  .moments-index {
    width: calc(100% - 40px);
  }

  .index-head {
    padding-bottom: 22px;
  }

  .index-title {
    font-size: 28px;
  }

  .archive-year {
    font-size: 24px;
  }

  .archive-item {
    gap: 14px;
  }

  .archive-date {
    width: 56px;
  }

  .archive-link {
    font-size: 15px;
  }

  .term-name {
    font-size: 19px;
  }

  .tag-list .term-name {
    font-size: 16px;
  }

  .author-head {
    gap: 14px;
    padding-bottom: 30px;
  }

  .author-avatar-frame {
    width: 48px;
    height: 48px;
  }

  .author-avatar {
    width: 48px;
    height: 48px;
  }

  .author-info {
    gap: 9px;
  }

  .author-name {
    font-size: 21px;
  }

  .author-count {
    align-self: center;
  }

  .author-posts {
    margin-top: 14px;
  }

  .moment-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 24px 0 28px;
  }

  .moment-date {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 10px;
  }

  .moment-date time {
    display: inline;
  }

  .moment-text {
    font-size: 15px;
  }

  .moment-media.moment-media--many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .not-found {
    padding: 80px 0 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .archive-nav a,
  .archive-link,
  .term-name,
  .term-arrow,
  .moment-entry-link .moment-text,
  .not-found-links a {
    transition-duration: 0.01ms !important;
  }
}

.moment-text .moment-footnote {
  display: none;
}
