:root {
  --zp-bg: #08141b;
  --zp-bg-soft: #0c1a21;
  --zp-line: rgba(174, 207, 214, 0.12);
  --zp-line-strong: rgba(174, 207, 214, 0.18);
  --zp-text: #e8f0f2;
  --zp-text-soft: #b6c5ca;
  --zp-text-faint: #8fa3ab;
  --zp-accent: #d88900;
  --zp-accent-deep: #003844;
  --zp-max: 1120px;
  --zp-content-max: 45rem;
  --zp-serif: "Fraunces", "Iowan Old Style", "Noto Serif TC", "Source Han Serif TC", "Songti TC", Georgia, serif;
  --zp-sans: "Noto Sans", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --zp-ui-size: 0.84rem;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body.zp-theme {
  background: var(--zp-bg);
  color: var(--zp-text);
  letter-spacing: -0.01em;
  font-family: var(--zp-serif);
  font-size: 17px;
}

body.zp-theme .viewport {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.zp-theme a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.zp-theme .site-content,
body.zp-theme .zp-head,
body.zp-theme .zp-footer {
  width: min(var(--zp-max), calc(100vw - 64px));
  margin-left: auto;
  margin-right: auto;
}

.zp-head-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 20, 27, 0.84);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(174, 207, 214, 0.06);
}

.zp-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.zp-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.zp-brand-bar,
.zp-brand-title,
.zp-nav-links a,
.zp-search,
.zp-utility-link,
.zp-footer,
.zp-footer-copy,
.zp-footer-nav a {
  font-family: var(--zp-sans);
}

.zp-brand-bar {
  width: 4px;
  height: 14px;
  display: inline-block;
  border-radius: 1px;
  background: var(--zp-accent);
  flex-shrink: 0;
  transform: translateY(1px);
}

.zp-brand-title {
  color: #eef6f8;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.zp-nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
}

.zp-nav-links,
.zp-utility-nav {
  display: flex;
  align-items: center;
}

.zp-nav-links {
  gap: 15px;
}

.zp-utility-nav {
  gap: 14px;
}

.zp-nav-links a,
.zp-search,
.zp-utility-link,
.zp-footer-copy,
.zp-footer-nav a {
  color: var(--zp-text-soft);
  font-size: var(--zp-ui-size);
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
}

.zp-nav-links a,
.zp-utility-link,
.zp-footer-nav a {
  position: relative;
}

.zp-nav-links a::after,
.zp-utility-link::after,
.zp-footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: rgba(216, 137, 0, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.zp-nav-links a:hover,
.zp-nav-links a:focus-visible,
.zp-search:hover,
.zp-search:focus-visible,
.zp-utility-link:hover,
.zp-utility-link:focus-visible,
.zp-footer-nav a:hover,
.zp-footer-nav a:focus-visible {
  color: #eef6f8;
}

.zp-nav-links a:hover::after,
.zp-nav-links a:focus-visible::after,
.zp-utility-link:hover::after,
.zp-utility-link:focus-visible::after,
.zp-footer-nav a:hover::after,
.zp-footer-nav a:focus-visible::after {
  transform: scaleX(1);
}

.zp-search {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.zp-utility-link-accent {
  color: #dcebec;
}

.zp-utility-link-accent::after {
  background: rgba(220, 235, 236, 0.5);
}

.site-content {
  flex: 1;
}

.zp-footer {
  margin-top: 84px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(174, 207, 214, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--zp-text-faint);
  line-height: 1.4;
}

.zp-footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .zp-head {
    min-height: auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .zp-nav-shell {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .zp-nav-links,
  .zp-utility-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  body.zp-theme {
    font-size: 16px;
  }

  body.zp-theme .site-content,
  body.zp-theme .zp-head,
  body.zp-theme .zp-footer {
    width: min(var(--zp-max), calc(100vw - 32px));
  }

  .zp-nav-shell {
    gap: 10px;
  }

  .zp-utility-nav {
    width: 100%;
    gap: 12px;
  }

  .zp-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
