:root {
  color-scheme: light;
  --paper: #f9fbfd;
  --ink: #172033;
  --muted: #68748a;
  --line: #d9e1eb;
  --avatar-bg: #e9eff5;
  --button-hover: #e9f0f5;
  --accent: #167982;
  --accent-warm: #db7058;
  --quote: #304d7d;
  --quote-surface: rgb(249 251 253 / 0.48);
  --veil: rgb(249 251 253 / 0.48);
}
* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
}
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  transition: background-color 220ms ease, color 220ms ease;
}
body[data-theme="tech"] {
  --paper: #f5f8ff;
  --ink: #14233f;
  --muted: #66789a;
  --line: #d7e0f2;
  --avatar-bg: #e4ecfb;
  --button-hover: #e4ecfb;
  --accent: #2563eb;
  --accent-warm: #e36b55;
  --quote: #254a93;
  --quote-surface: rgb(245 248 255 / 0.48);
  --veil: rgb(245 248 255 / 0.48);
}
button {
  font: inherit;
}
.wallpaper-stage,
.wallpaper-layer {
  position: fixed;
  inset: 0;
}
.wallpaper-stage {
  z-index: 0;
  overflow: hidden;
  background: var(--paper);
}
.wallpaper-layer {
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 700ms ease;
  will-change: opacity;
}
.wallpaper-layer.is-visible {
  opacity: 1;
}
.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 28px 34px 25px;
  background: var(--veil);
  backdrop-filter: blur(1px);
}
.site-header,
.site-footer {
  display: flex;
  align-items: center;
}
.site-header {
  justify-content: flex-end;
  min-height: 31px;
}
.theme-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 32px);
  border: 1px solid var(--line);
}
.theme-option {
  width: 32px;
  height: 30px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
}
.theme-option:last-child {
  border-right: 0;
}
.theme-option:hover {
  background: var(--button-hover);
}
.theme-option:focus-visible {
  position: relative;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.theme-option.is-active {
  background: var(--accent);
  color: #ffffff;
}
.profile {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 0 62px;
  text-align: center;
}
.avatar-wrap {
  position: relative;
  z-index: 0;
  width: min(21vw, 160px);
  min-width: 112px;
  aspect-ratio: 1;
  overflow: visible;
  margin-bottom: 32px;
  border-radius: 50%;
  background: var(--avatar-bg);
}
.avatar-wrap::before,
.avatar-wrap::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
}
.avatar-wrap::before {
  inset: -8px 8px 8px -8px;
  border: 2px solid var(--accent);
}
.avatar-wrap::after {
  inset: 8px -8px -8px 8px;
  border: 2px solid var(--accent-warm);
}
.avatar-placeholder,
.avatar-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.avatar-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  border-radius: 50%;
}
.avatar-wrap img {
  display: none;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-wrap.is-loaded img {
  display: block;
}
.status,
.site-footer {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}
h1 {
  max-width: min(88vw, 760px);
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
}
.status {
  min-height: 12px;
  margin: 17px 0 0;
}
.hitokoto {
  width: min(88vw, 500px);
  margin: 27px 0 0;
  padding: 17px 26px 15px;
  border: 1px solid rgb(255 255 255 / 0.38);
  border-radius: 4px;
  background: var(--quote-surface);
  box-shadow: 0 8px 24px rgb(29 49 78 / 0.1);
  backdrop-filter: blur(7px);
}
.hitokoto blockquote {
  margin: 0;
  color: var(--quote);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 400;
  line-height: 1.65;
}
.hitokoto figcaption {
  margin-top: 11px;
  color: var(--accent-warm);
  font-size: 10px;
  line-height: 1.4;
}
.hitokoto figcaption::before {
  content: "- ";
}
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  font-size: 9px;
  color: var(--accent);
}
.site-footer > :last-child {
  justify-self: end;
}
.icp-link {
  color: inherit;
  text-decoration: none;
}
.icp-link:hover {
  color: var(--accent-warm);
}
.icp-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.wallpaper-meta {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
#wallpaper-title {
  color: var(--accent-warm);
}
@media (max-width: 480px) {
  .page-shell {
    padding: 22px 20px 19px;
  }
  .profile {
    padding-bottom: 34px;
  }
  .avatar-wrap {
    margin-bottom: 27px;
  }
  .hitokoto {
    padding: 15px 18px 13px;
  }
  .site-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .wallpaper-meta {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .site-footer > :first-child,
  .site-footer > :last-child {
    grid-row: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wallpaper-layer {
    transition: none;
  }
}
