@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08090d;
  --ink: #f6f3ec;
  --muted: rgba(246, 243, 236, 0.62);
  --accent: #e4d2b0;
  --line: rgba(255, 255, 255, 0.1);
  --hover: rgba(255, 255, 255, 0.06);
  --panel: rgba(12, 14, 20, 0.78);
  --orb-a: rgba(92, 118, 214, 0.5);
  --orb-b: rgba(206, 148, 92, 0.34);
  --vignette: rgba(0, 0, 0, 0.5);
  --on-accent: #1a140c;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3eee6;
  --ink: #1c1915;
  --muted: rgba(28, 25, 21, 0.58);
  --accent: #8d5a2b;
  --line: rgba(40, 28, 16, 0.12);
  --hover: rgba(40, 28, 16, 0.06);
  --panel: rgba(255, 251, 245, 0.82);
  --orb-a: rgba(255, 186, 138, 0.7);
  --orb-b: rgba(150, 182, 230, 0.62);
  --vignette: rgba(92, 68, 40, 0.14);
  --on-accent: #fffaf3;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Outfit", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.45s ease, color 0.45s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 46%, var(--vignette) 100%);
}

button { font: inherit; color: inherit; cursor: pointer; }

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

.orb-a {
  width: 46vw;
  height: 46vw;
  min-width: 280px;
  min-height: 280px;
  background: var(--orb-a);
  top: -14vw;
  left: -8vw;
  animation: drift-a 22s ease-in-out infinite alternate;
}

.orb-b {
  width: 38vw;
  height: 38vw;
  min-width: 240px;
  min-height: 240px;
  background: var(--orb-b);
  right: -10vw;
  bottom: -14vw;
  animation: drift-b 27s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8vw, 5vh, 0) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-6vw, -4vh, 0) scale(0.92); }
}

.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(28px, env(safe-area-inset-top)) clamp(20px, 5vw, 72px) 48px;
  animation: enter 0.9s cubic-bezier(0.16, 0.84, 0.32, 1) both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.28em;
}

.theme-pills {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.pill {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
}

.pill[aria-checked="true"] {
  background: var(--hover);
  color: var(--ink);
}

.home-main {
  flex: 1;
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.dock {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dock-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.dock-item.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.dock-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.dock-item.is-reserved {
  border-style: dashed;
  color: var(--muted);
  background: transparent;
}

.dock-item.is-reserved .dock-mark {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}

.dock-plus {
  font-size: 18px;
  line-height: 1;
}

.panels { min-height: 280px; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  transition: transform 0.45s cubic-bezier(0.16, 0.84, 0.32, 1), border-color 0.3s ease;
}

.hero:hover { transform: translateY(-4px); border-color: var(--accent); }

.hero-kicker {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.22em;
  font-size: 13px;
}

.hero-time {
  margin: 18px 0 0;
  font-size: clamp(72px, 12vw, 132px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.88;
  font-variant-numeric: tabular-nums;
}

.hero-sec {
  display: inline-block;
  margin-left: 0.12em;
  font-size: 0.38em;
  letter-spacing: 0;
  color: var(--accent);
  vertical-align: 0.55em;
}

.hero-sec.tick { animation: secpop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }

@keyframes secpop {
  from { opacity: 0.15; transform: translateY(0.35em); }
  to { opacity: 1; transform: none; }
}

.hero-date {
  margin: 22px 0 0;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.08em;
}

.hero-meta {
  margin: 10px 0 0;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.hero-go {
  margin-top: 36px;
  color: var(--accent);
  letter-spacing: 0.16em;
  font-size: 14px;
}

.hero-go::after { content: "  →"; }

[data-panel][hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .hero { min-height: 300px; border-radius: 24px; }
  .brand { letter-spacing: 0.16em; }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .shell,
  .hero-sec.tick { animation: none; }
  .hero { transition: none; }
}
