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

.blog-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, rgba(255, 250, 248, .99) 0%, rgba(255, 250, 248, .94) 31%, rgba(255, 250, 248, .55) 58%, rgba(255, 250, 248, .08) 84%),
    linear-gradient(0deg, rgba(212, 119, 131, .055), rgba(113, 135, 115, .04)),
    url("../assets/home-workspace.png");
  background-position: center, center, center 52%;
  background-size: cover;
}

.blog-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 1px;
  background: rgba(212, 119, 131, .2);
}

.hero-inner {
  width: min(calc(100% - 40px), var(--page-width));
  min-height: 430px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 44px 0 46px;
}

.hero-kicker,
.archive-kicker {
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
}

.hero-kicker span {
  width: 20px;
  height: 2px;
  background: var(--accent);
}

.blog-hero h1 {
  max-width: 600px;
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-thesis {
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
}

.hero-description {
  max-width: 460px;
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.hero-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent-dark);
  padding-bottom: 3px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}

.hero-jump:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.hero-jump svg {
  width: 16px;
  height: 16px;
  transition: transform .18s ease;
}

.hero-jump:hover svg {
  transform: translateY(3px);
}

.archive {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding: 74px 0 100px;
}

.archive-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.archive-header h2 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 700;
  line-height: 1.2;
}

.post-summary {
  color: var(--muted);
  font-size: 14px;
}

.explore-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 252, .82);
  box-shadow: 0 9px 26px rgba(91, 63, 70, .045);
}

.search-box,
.sort-control {
  position: relative;
  display: flex;
  min-width: 0;
  height: 54px;
  align-items: center;
}

.search-box {
  gap: 11px;
  padding: 0 16px;
}

.search-box > svg,
.sort-control > svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--muted);
  stroke-width: 1.8;
}

.search-box input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.search-box input::placeholder {
  color: #9b8f92;
}

.search-box:focus-within {
  background: var(--surface);
  box-shadow: inset 0 -2px var(--accent);
}

.clear-search {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}

.clear-search:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

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

.sort-control {
  border-left: 1px solid var(--line);
  padding: 0 13px 0 15px;
}

.sort-control select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  padding: 0 28px 0 9px;
  font-size: 14px;
}

.sort-control > svg:last-child {
  position: absolute;
  right: 13px;
  pointer-events: none;
}

.sort-control:focus-within {
  background: var(--surface);
  box-shadow: inset 0 -2px var(--accent);
}

.tag-bar {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin: 11px 0 20px;
  scrollbar-width: none;
}

.tag-bar::-webkit-scrollbar {
  display: none;
}

.tag-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  flex: none;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  padding: 5px 11px;
  font-size: 13px;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.tag-chip:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--accent-dark);
}

.tag-chip.on {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.tag-chip b {
  min-width: 16px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  opacity: .72;
}

.post-list {
  position: relative;
  display: grid;
  gap: 14px;
}

.post-list::before {
  display: none;
}

.post {
  position: relative;
}

.post-link {
  display: grid;
  min-height: 184px;
  grid-template-columns: minmax(0, 1fr) 164px;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 252, .76);
  color: var(--ink);
  padding: 28px 30px;
  text-decoration: none;
  box-shadow: 0 9px 26px rgba(91, 63, 70, .045);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.post-index {
  display: none;
}

.post-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: 0 15px 34px rgba(91, 63, 70, .08);
}

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

.post-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
}

.post-category {
  color: var(--pine-dark);
  font-size: 12px;
  font-weight: 700;
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  transition: color .18s ease;
}

.post-link:hover .post-content h3 {
  color: var(--accent-dark);
}

.post-content > p {
  display: -webkit-box;
  max-width: 68ch;
  margin-top: 8px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 14px;
}

.post-tags .tag {
  position: relative;
  color: var(--muted);
  font-size: 12px;
}

.post-tags .tag::before {
  content: "#";
  margin-right: 2px;
  color: var(--accent);
}

.post-side {
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.post-arrow {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 19px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.post-arrow svg {
  width: 16px;
  height: 16px;
}

.post-link:hover .post-arrow {
  transform: translate(2px, -2px);
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.post-skeleton {
  display: grid;
  min-height: 176px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 252, .72);
  padding: 28px 30px;
}

.post-skeleton > span {
  display: none;
}

.post-skeleton div {
  display: grid;
  gap: 12px;
}

.post-skeleton b,
.post-skeleton i {
  height: 13px;
  display: block;
  border-radius: 3px;
  background: linear-gradient(90deg, #efe5e6 20%, #fbf6f5 45%, #efe5e6 70%);
  background-size: 240% 100%;
  animation: skeleton 1.3s ease infinite;
}

.post-skeleton b {
  width: min(58%, 420px);
  height: 23px;
}

.post-skeleton i {
  width: min(82%, 620px);
}

.post-skeleton i:last-child {
  width: min(48%, 320px);
}

.empty {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 252, .7);
  padding: 54px 24px;
  text-align: center;
}

.empty::before {
  content: "";
  width: 42px;
  height: 1px;
  margin-bottom: 22px;
  background: var(--accent);
}

.empty h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.empty p {
  max-width: 42ch;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.empty-action {
  min-height: 38px;
  margin-top: 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.empty-action:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

@keyframes skeleton {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (max-width: 760px) {
  .blog-hero {
    min-height: 400px;
    background-image:
      linear-gradient(90deg, rgba(255, 250, 248, .98) 0%, rgba(255, 250, 248, .9) 57%, rgba(255, 250, 248, .43) 100%),
      linear-gradient(0deg, rgba(212, 119, 131, .06), rgba(113, 135, 115, .04)),
      url("../assets/home-workspace.png");
    background-position: center, center, 60% center;
  }

  .hero-inner {
    width: min(calc(100% - 36px), var(--page-width));
    min-height: 400px;
    padding: 40px 0;
  }

  .blog-hero h1 {
    font-size: 43px;
  }

  .hero-thesis {
    font-size: 22px;
  }

  .hero-description {
    max-width: 360px;
  }

  .archive {
    width: min(calc(100% - 28px), var(--page-width));
    padding: 58px 0 72px;
  }

  .archive-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }

  .archive-header h2 {
    font-size: 34px;
  }

  .explore-bar {
    grid-template-columns: minmax(0, 1fr) 50px;
  }

  .sort-control {
    padding: 0;
    justify-content: center;
  }

  .sort-control > svg:first-child {
    display: block;
  }

  .sort-control select {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
  }

  .sort-control > svg:last-child {
    display: none;
  }

  .tag-bar {
    min-height: 58px;
  }

  .post-link {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 24px 20px;
  }

  .post-content h3 {
    font-size: 21px;
  }

  .post-side {
    grid-column: 1;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 8px;
    margin-top: -4px;
    text-align: left;
  }

  .post-side span:not(.post-arrow)::before {
    content: "·";
    margin-right: 8px;
  }

  .post-arrow {
    display: none;
  }

  .post-skeleton {
    min-height: 170px;
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px;
  }
}

@media (max-width: 420px) {
  .blog-hero {
    min-height: 380px;
  }

  .hero-inner {
    min-height: 380px;
  }

  .blog-hero h1 {
    font-size: 38px;
  }

  .hero-thesis {
    font-size: 20px;
  }

  .hero-description {
    font-size: 14px;
  }

  .search-box {
    gap: 9px;
    padding: 0 12px;
  }

  .search-box input {
    min-width: 0;
    font-size: 14px;
  }
}
