@charset "UTF-8";

:root {
  --bg: #f6faf7;
  --bg-soft: #edf7f3;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-subtle: rgba(255, 255, 255, 0.52);
  --text: #182724;
  --text-soft: #4e655f;
  --text-muted: #7b918b;
  --line: rgba(38, 84, 75, 0.13);
  --accent: #8fbf2f;
  --accent-strong: #2db8c8;
  --accent-soft: #79dfbb;
  --accent-warm: #d9f36c;
  --shadow: 0 24px 70px rgba(54, 112, 101, 0.15);
  --shadow-soft: 0 14px 34px rgba(54, 112, 101, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0e1726;
  --bg-soft: #14263a;
  --surface: rgba(255, 255, 255, 0.085);
  --surface-strong: rgba(255, 255, 255, 0.13);
  --surface-subtle: rgba(255, 255, 255, 0.06);
  --text: #f5fbff;
  --text-soft: #bed0dc;
  --text-muted: #8397a6;
  --line: rgba(230, 246, 255, 0.14);
  --accent: #c8ef62;
  --accent-strong: #67ddf0;
  --accent-soft: #91efce;
  --accent-warm: #d8ff7c;
  --shadow: 0 24px 78px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.22);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(45, 184, 200, 0.26), transparent 27rem),
    radial-gradient(circle at 84% 10%, rgba(217, 243, 108, 0.36), transparent 29rem),
    radial-gradient(circle at 50% 94%, rgba(121, 223, 187, 0.34), transparent 35rem),
    linear-gradient(135deg, #ffffff 0%, var(--bg) 48%, var(--bg-soft) 100%);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 16% 8%, rgba(103, 221, 240, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 8%, rgba(185, 168, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 78% 80%, rgba(200, 239, 98, 0.12), transparent 35rem),
    linear-gradient(135deg, #091022 0%, var(--bg) 48%, var(--bg-soft) 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -5;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(38, 84, 75, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 84, 75, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 74%);
}

:root[data-theme="dark"] body::before {
  background:
    linear-gradient(rgba(230, 246, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 246, 255, 0.035) 1px, transparent 1px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg {
  display: block;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.06;
  background-image: repeating-radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}

.glow {
  position: fixed;
  z-index: -4;
  width: 36vw;
  height: 36vw;
  min-width: 310px;
  min-height: 310px;
  border-radius: 999px;
  filter: blur(68px);
  opacity: 0.42;
  animation: drift 18s ease-in-out infinite alternate;
}

.glow-a {
  top: -14vw;
  left: 18vw;
  background: rgba(45, 184, 200, 0.4);
}

.glow-b {
  top: 28vh;
  right: -15vw;
  background: rgba(217, 243, 108, 0.32);
  animation-delay: -5s;
}

.glow-c {
  left: -12vw;
  bottom: 6vh;
  background: rgba(121, 223, 187, 0.34);
  animation-delay: -10s;
}

:root[data-theme="dark"] .glow {
  opacity: 0.34;
}

.page-shell {
  width: min(calc(100% - 42px), 1120px);
  margin: 0 auto;
  padding: 24px 0 38px;
}

.masthead {
  position: relative;
  display: grid;
  min-height: 342px;
  padding: 32px 22px 44px;
  place-items: center;
  text-align: center;
}

.masthead::before {
  position: absolute;
  top: 20px;
  width: min(700px, 86vw);
  height: 270px;
  border-radius: 999px;
  content: "";
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.64), transparent 28%),
    radial-gradient(circle at 44% 48%, rgba(45, 184, 200, 0.16), transparent 52%),
    radial-gradient(circle at 62% 44%, rgba(217, 243, 108, 0.16), transparent 46%);
  filter: blur(24px);
  opacity: 0.9;
  pointer-events: none;
}

:root[data-theme="dark"] .masthead::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(103, 221, 240, 0.17), transparent 50%),
    radial-gradient(circle at 38% 48%, rgba(185, 168, 255, 0.14), transparent 44%),
    radial-gradient(circle at 66% 44%, rgba(200, 239, 98, 0.11), transparent 46%);
}

.theme-toggle {
  position: absolute;
  top: 18px;
  right: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  min-width: 88px;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  background: var(--surface-strong);
}

.toggle-dot {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-warm));
  box-shadow: 0 0 18px rgba(45, 184, 200, 0.26);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.24s ease;
}

.toggle-dot::after {
  position: absolute;
  top: 5px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  content: "";
  background: rgba(255, 255, 255, 0.78);
}

:root[data-theme="dark"] .toggle-dot {
  transform: translateX(45px) rotate(180deg);
  background: linear-gradient(135deg, #18283c, var(--accent-strong));
}

.toggle-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root[data-theme="dark"] .toggle-text {
  transform: translateX(-24px);
}

.avatar-stage {
  position: relative;
  z-index: 1;
  width: clamp(112px, 12vw, 140px);
  aspect-ratio: 1;
  margin-bottom: 24px;
  isolation: isolate;
}

.avatar-ring {
  position: absolute;
  inset: -16px;
  border-radius: 999px;
  background: conic-gradient(from 90deg, transparent 0 12%, var(--accent-strong) 20%, transparent 32% 44%, var(--accent-soft) 54%, transparent 64% 74%, var(--accent-warm) 86%, transparent 96% 100%);
  opacity: 0.74;
  animation: spin 8s linear infinite;
  mask: radial-gradient(circle, transparent 56%, black 58%);
}

.avatar-stage::after {
  position: absolute;
  right: -8px;
  bottom: 18px;
  width: 16px;
  height: 16px;
  border: 4px solid color-mix(in srgb, var(--surface-strong), transparent 10%);
  border-radius: 999px;
  content: "";
  background: var(--accent-warm);
}

.avatar-stage img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  object-fit: cover;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  display: none;
}

.masthead h1 {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0;
  font-size: clamp(46px, 8vw, 96px);
  font-weight: 880;
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  text-wrap: balance;
}

.masthead h1::before {
  display: block;
  width: fit-content;
  margin: 0 auto 12px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--surface);
  content: "Personal Portal";
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.masthead h1::after {
  display: block;
  width: min(300px, 44vw);
  height: 1px;
  margin: 18px auto 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(45, 184, 200, 0.42), rgba(217, 243, 108, 0.34), transparent);
}

.hero-title-main {
  color: var(--text);
}

.hero-title-highlight {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-warm) 28%, var(--accent-strong) 72%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slogan {
  position: relative;
  z-index: 1;
  margin: 16px 0 6px;
  color: var(--text-soft);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 680;
  letter-spacing: -0.03em;
}

.quote {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(290px, 350px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.left-column,
.right-column {
  display: grid;
  gap: 18px;
}

.left-column {
  position: sticky;
  top: 24px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, var(--surface-strong), var(--surface-subtle)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.panel::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.5), transparent 34%, rgba(45, 184, 200, 0.08));
  opacity: 0.7;
}

:root[data-theme="dark"] .panel::before {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.1), transparent 34%, rgba(103, 221, 240, 0.08));
}

.section-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title.large {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-title span {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.015em;
}

.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;
}

.info-list,
.tag-cloud {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
}

.info-list {
  gap: 10px;
  margin-bottom: 18px;
}

.info-list span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-subtle);
}

.info-list span {
  gap: 9px;
  padding: 9px 13px;
  color: var(--text-soft);
  font-size: 13px;
}

.info-list svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: var(--accent-strong);
}

.tag-cloud {
  gap: 8px;
}

.tag-cloud span {
  padding: 7px 11px;
  color: var(--text-soft);
  font-size: 12px;
}

.section-title a {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.memos-list,
.timeline,
.site-list {
  position: relative;
  z-index: 1;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.memos-list {
  gap: 9px;
}

.memos-list li,
.site-card {
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.memos-list li {
  border-radius: var(--radius-md);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.memos-list li:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-strong), transparent 68%);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.memos-list a,
.memos-loading {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
}

.memos-text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.58;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.memos-date {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.memos-loading {
  color: var(--text-muted);
  font-size: 12px;
}

.timeline {
  gap: 10px;
}

.right-column .timeline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline li {
  position: relative;
  display: grid;
  gap: 5px;
  padding-left: 19px;
}

.right-column .timeline li {
  min-height: 64px;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-subtle);
  transition: transform 0.26s ease, border-color 0.26s ease, background 0.26s ease, box-shadow 0.26s ease;
}

.right-column .timeline li:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-strong), transparent 62%);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.timeline li::before {
  position: absolute;
  top: 6px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  content: "";
  background: var(--accent-strong);
  box-shadow: 0 0 18px rgba(45, 184, 200, 0.42);
}

.right-column .timeline li::before {
  top: 50%;
  left: 18px;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  box-shadow: 0 0 16px rgba(45, 184, 200, 0.34);
}

.timeline time {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 12px;
}

.timeline span {
  color: var(--text-soft);
  font-size: 13px;
}

.site-list {
  gap: 14px;
}

.site-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border-radius: var(--radius-lg);
  transition: transform 0.26s ease, border-color 0.26s ease, background 0.26s ease, box-shadow 0.26s ease;
}

.site-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-strong), transparent 62%);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.site-card.featured {
  background: var(--surface-subtle);
}

:root[data-theme="dark"] .site-card.featured {
  background: var(--surface-subtle);
}

.site-icon {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  overflow: hidden;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent-strong), transparent 72%);
  border-radius: 16px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.95), transparent 28px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(45, 184, 200, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.site-icon::after {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  content: "";
  background: color-mix(in srgb, var(--accent-warm), transparent 32%);
}

:root[data-theme="dark"] .site-icon {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.12), transparent 28px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(103, 221, 240, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-icon img {
  position: absolute;
  inset: 5px;
  width: auto;
  height: auto;
  border-radius: 13px;
  opacity: 0.45;
}

.site-icon-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  color: var(--text);
  font-size: 12px;
  font-weight: 520;
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-text {
  display: grid;
  gap: 7px;
}

.site-card strong {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.site-card em {
  color: var(--text-soft);
  font-style: normal;
  font-size: 14px;
}

.site-arrow {
  display: none;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.footer p {
  margin: 0;
}

.footer a {
  transition: color 0.22s ease;
}

.footer a:hover {
  color: var(--accent-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.anti-copy,
.anti-copy * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(4vw, -3vh, 0) scale(1.12);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  .two-column {
    grid-template-columns: 1fr;
  }

  .left-column {
    position: static;
  }

  .info-panel,
  .timeline-panel {
    display: none;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(calc(100% - 28px), 1120px);
    padding-top: 18px;
  }

  .masthead {
    min-height: 0;
    padding: 28px 4px 34px;
  }

  .theme-toggle {
    top: 0;
    right: 0;
  }

  .avatar-stage {
    width: 108px;
    margin-top: 28px;
    margin-bottom: 22px;
  }

  .masthead h1 {
    font-size: clamp(36px, 11vw, 56px);
    letter-spacing: -0.065em;
  }

  .masthead h1::before {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .slogan {
    font-size: 18px;
  }

  .quote {
    max-width: 100%;
    font-size: 12px;
  }

  .panel {
    padding: 18px;
    border-radius: 24px;
  }

  .site-card {
    min-height: 88px;
    padding: 15px;
  }

  .right-column .timeline {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .masthead h1 {
    font-size: clamp(31px, 10.5vw, 42px);
  }

  .site-card strong {
    font-size: 17px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
