@font-face {
  font-family: "Blog Raleway";
  src: url('./raleway-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.blog-feed,
.blog-search-page {
  --blog-highlight: #ff7fe8;
  --blog-rule: rgb(25 25 25 / 75%);
  --blog-title-font: "Blog Raleway", "PingFang HK", "Noto Sans TC", sans-serif;
  font-family: "Avenir Next", Avenir, "PingFang HK", "Noto Sans TC", sans-serif;
  color: #fff;
  background: #000;
}

.blog-list-wrap,
.blog-search-wrap {
  width: min(calc(100% - 40px), 940px);
}

.blog-list-wrap {
  padding-block-end: 32px;
}

.blog-feed-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 80px;
  font-size: 14px;
  text-decoration: none;
}

.blog-feed-nav a[aria-current="page"],
.blog-feed-nav a:hover {
  color: var(--blog-highlight);
}

.blog-nav-mobile,
.blog-feed-search-mobile {
  display: none;
}

.blog-feed-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  min-height: 153px;
  padding: 38px 40px 36px 20px;
}

.blog-feed-heading h1,
.blog-search-page h1 {
  margin: 0;
  font: 400 36px / 1.2 var(--blog-title-font);
}

.blog-search-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 60%);
  background: #000;
  font-size: 20px;
}

.blog-search-form input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px 8px 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
}

.blog-search-form input::placeholder {
  color: rgb(255 255 255 / 65%);
}

.blog-search-form button {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}

.blog-search-form button:hover {
  color: var(--blog-highlight);
}

.blog-search-form:focus-within {
  outline: 1px solid var(--blog-highlight);
  outline-offset: 3px;
}

.blog-search-compact {
  width: min(100%, 305px);
  min-height: 43px;
  border: 0;
  border-radius: 4px;
  background: #2b2b2b;
  font: 14px / 1.4 Georgia, serif;
}

.blog-search-compact input::placeholder {
  color: #fff;
}

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

.blog-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.blog-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 32px;
}

.blog-feed-card {
  min-width: 0;
  border: 1px solid var(--blog-rule);
  overflow-wrap: anywhere;
}

.blog-card-cover {
  display: block;
  overflow: hidden;
  background: #151515;
}

.blog-card-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card-cover-brand img { object-fit: contain; padding: 1.25rem; }

.blog-card-content {
  display: flex;
  flex-direction: column;
  min-height: 349px;
  padding: 30px 30px 24px;
}

.blog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 25px;
  margin-block-end: 18px;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 6px;
  color: #ddd;
  font-size: 12px;
  line-height: 1.4;
}

.blog-card-meta time + span::before {
  margin-inline-end: 6px;
  content: '·';
}

.blog-card-actions {
  position: relative;
  flex: none;
}

.blog-card-actions summary {
  display: grid;
  place-items: center;
  width: 24px;
  height: 25px;
  list-style: none;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

.blog-card-actions summary::-webkit-details-marker {
  display: none;
}

.blog-card-actions summary:hover {
  color: var(--blog-highlight);
}

.blog-card-actions-menu {
  position: absolute;
  z-index: 2;
  inset-block-start: 100%;
  inset-inline-end: 0;
  width: 162px;
  padding: 6px;
  border: 1px solid #434347;
  background: #191919;
}

.blog-card-actions-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  background: transparent;
  text-align: start;
  font-size: 14px;
}

.blog-card-actions-menu button:hover {
  color: var(--blog-highlight);
}

.blog-card-actions-menu input {
  width: 100%;
  min-width: 0;
  margin-block-start: 4px;
  padding: 4px;
  font: inherit;
}

.blog-feed-card h2,
.blog-card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.blog-feed-card h2 {
  margin: 0 0 9px;
  font: 400 26px / 1.4 var(--blog-title-font);
}

.blog-feed-card h2 a {
  text-decoration: none;
}

.blog-feed-card h2 a:hover {
  color: var(--blog-highlight);
}

.blog-feed-card h2 a:focus-visible {
  outline-offset: -2px;
}

.blog-feed-card:has(h2 a:focus-visible) {
  outline: 2px solid var(--blog-highlight);
  outline-offset: 3px;
}

.blog-card-excerpt {
  margin: 0 0 16px;
  color: #e0e0e0;
  font-size: 16px;
  line-height: 1.4;
}

.blog-card-excerpt a {
  text-decoration: none;
}

.blog-card-excerpt a:hover {
  color: var(--blog-highlight);
}

.blog-card-cover { position: relative; }

.blog-card-cover::after {
  content: "閱讀文章 →";
  position: absolute;
  inset: auto .65rem .65rem auto;
  padding: .35rem .65rem;
  border: 1px solid #f095f8;
  border-radius: .25rem;
  background: #171019;
  color: #ffe3fb;
  font-size: .75rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
}

.blog-feed-card:has(h2 a:focus-visible) .blog-card-cover::after { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .blog-card-cover:hover::after { opacity: 1; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .blog-card-cover::after { transition: opacity 160ms ease-out, translate 220ms ease-out; translate: 0 .35rem; }
  .blog-card-cover img { transition: scale 260ms ease-out; }
  .blog-card-cover:hover img { scale: 1.04; }
  .blog-card-cover:hover::after,
  .blog-feed-card:has(h2 a:focus-visible) .blog-card-cover::after { translate: 0 0; }
}

.blog-card-rule {
  margin-block: auto 32px;
  border-block-start: 1px solid #303030;
}

.blog-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-block-start: 25px;
  color: #fff;
  font: 400 16px / 1 system-ui, sans-serif;
}

.blog-pages[hidden] {
  display: none;
}

.blog-page-control {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 44px;
  padding: 0 4px;
  text-decoration: none;
}

a.blog-page-control:hover,
.blog-page-current {
  color: var(--blog-highlight);
}

.blog-page-arrow {
  font-size: 24px;
}

.blog-page-disabled {
  opacity: .35;
}

.blog-search-wrap {
  padding-block: 52px 48px;
}

.blog-search-page h1 {
  margin-block-end: 43px;
  font-size: 32px;
  text-align: center;
}

.blog-search-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block: 18px 24px;
}

.blog-search-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}

.blog-search-toolbar p {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.blog-search-toolbar label {
  flex: none;
  font-size: 14px;
}

.blog-search-toolbar select {
  min-height: 38px;
  margin-inline-start: 6px;
  padding: 4px 8px;
  border: 1px solid #656565;
  background: #000;
  color: inherit;
  font: inherit;
}

.blog-search-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-search-result {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-block-end: 32px;
}

.blog-search-result:last-child {
  margin-block-end: 0;
}

.blog-search-result-cover {
  flex: none;
  width: 176px;
  height: 124px;
  object-fit: cover;
}

.blog-search-result-content {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.blog-search-result h2 {
  margin: 0;
  font: 400 20px / 1.4 var(--blog-title-font);
}

.blog-search-result h2 a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: underline;
  text-underline-offset: .14em;
  white-space: nowrap;
}

.blog-search-result h2 a:hover {
  text-decoration: none;
}

.blog-search-result h2 a:focus-visible {
  outline-offset: -2px;
}

.blog-search-result p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.blog-search-result mark {
  background: var(--blog-highlight);
  color: #000;
}

.blog-search-page .blog-pages {
  gap: 4px;
  margin-block-start: 38px;
}

.blog-search-page .blog-page-direction {
  padding-inline: 8px;
  font-size: 14px;
}

@media (max-width: 850px) {
  .blog-feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .blog-feed-heading {
    padding-inline: 8px;
  }
}

@media (max-width: 600px) {
  .blog-list-wrap {
    width: 100%;
    padding-block-end: 12px;
  }

  .blog-feed-nav {
    background: var(--blog-highlight);
    color: #151015;
  }

  .blog-feed-nav a,
  .blog-feed-nav a[aria-current="page"],
  .blog-feed-nav a:hover {
    min-height: 50px;
    padding-inline: 18px;
    color: inherit;
  }

  .blog-feed-nav a span:first-child,
  .blog-feed-heading .blog-search-form {
    display: none;
  }

  .blog-nav-mobile,
  .blog-feed-search-mobile {
    display: block;
  }

  .blog-feed-heading {
    min-height: 0;
    padding: 0;
  }

  .blog-feed-heading h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .blog-feed-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .blog-card-content {
    min-height: 0;
    padding: 25px 18px 20px;
  }

  .blog-card-header {
    margin-block-end: 13px;
  }

  .blog-feed-card h2 {
    font-size: 22px;
  }

  .blog-card-excerpt {
    font-size: 14px;
  }

  .blog-card-rule {
    margin-block: 10px 15px;
  }

  .blog-feed-search-mobile {
    padding: 0 10px;
  }

  .blog-feed-search-mobile .blog-search-form {
    width: min(100%, 300px);
    min-height: 44px;
    margin-inline: auto;
    font-size: 15px;
  }

  .blog-feed .blog-pages {
    min-height: 68px;
    margin-block-start: 0;
  }

  .blog-pages .blog-pages-extra {
    display: none;
  }

  .blog-search-wrap {
    padding-block: 20px 32px;
  }

  .blog-search-page h1 {
    margin-block-end: 36px;
    font-size: 29px;
  }

  .blog-search-page .blog-search-form {
    min-height: 40px;
    font-size: 14px;
  }

  .blog-search-toolbar {
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-block: 12px 18px;
  }

  .blog-search-toolbar p {
    font-size: 14px;
  }

  .blog-search-result {
    margin-block-end: 20px;
  }

  .blog-search-result-cover {
    display: none;
  }

  .blog-search-result h2 {
    font-size: 16px;
  }

  .blog-search-result h2 a {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .blog-search-result p {
    margin-block-start: 5px;
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
}

.blog-quick-search { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.blog-quick-search a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .8rem;
  border: 1px solid #47737c;
  border-radius: .65rem;
  color: inherit;
  font-size: .875rem;
  text-underline-offset: .2em;
}
.blog-quick-search a:hover, .blog-quick-search a:focus-visible { border-color: var(--blog-highlight); }
@media (max-width: 600px) {
  .blog-feed-search-mobile { padding: .75rem 10px .4rem; }
  .blog-quick-search { justify-content: center; padding-inline: 10px; }
}
