/* kelsyra.com — 夜空、昴星团金色星点 */
/* 字体自己托管（SIL OFL，授权档在 /fonts/），不依赖 Google Fonts */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); 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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/manrope-latin-400-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/manrope-latin-500-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/manrope-latin-600-normal.woff2") format("woff2"); 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; }
:root {
  --bg: #0a0e1c;
  --bg-2: #10162b;
  --card: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #ece9f4;
  --muted: #a8a6bd;
  --faint: #76758d;
  --gold: #f0d496;
  --gold-2: #d9b56b;
  --serif: "Cormorant Garamond", "Noto Serif TC", "Noto Serif SC", "Noto Serif CJK TC", "Noto Serif CJK SC", "Songti TC", "Songti SC", "STSong", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "PingFang SC", "Noto Sans TC", "Noto Sans SC", "Noto Sans CJK TC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, rgba(120, 96, 220, 0.22), transparent 60%),
    radial-gradient(50rem 36rem at -10% 30%, rgba(60, 150, 170, 0.14), transparent 60%),
    radial-gradient(40rem 30rem at 50% 110%, rgba(214, 170, 90, 0.10), transparent 60%),
    url("/stars.svg");
  background-size: auto, auto, auto, 1200px 900px;
  background-attachment: fixed, fixed, fixed, scroll;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html:lang(zh-Hans) body, html:lang(zh-Hant) body { line-height: 1.8; letter-spacing: 0.02em; }
/* 中文页：中文字体放第一，行高才一致；破折号「——」也不会被英文字体拆开 */
html:lang(zh-Hans) { --sans: "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif; --serif: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "Cormorant Garamond", serif; }
html:lang(zh-Hant) { --sans: "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", -apple-system, "Segoe UI", sans-serif; --serif: "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", "Cormorant Garamond", serif; }

a { color: inherit; }
img, svg { display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ── 顶栏 ── */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(10, 14, 28, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand.small { gap: 10px; color: var(--faint); font-size: 14px; }
.wordmark { font-family: "Cormorant Garamond", serif; font-size: 26px; font-weight: 600; letter-spacing: 0.01em; line-height: 1; display: flex; flex-direction: column; }
.wordmark small { font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); margin-top: 3px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; }
.lang a, .lang span { min-width: 32px; padding: 3px 9px; border-radius: 999px; text-align: center; text-decoration: none; color: var(--muted); }
.lang a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.lang .on { background: var(--gold); color: #1a1406; }

/* ── 首屏 ── */
.hero { padding: 96px 0 72px; text-align: center; }
.hero-mark { display: flex; justify-content: center; margin-bottom: 28px; }
.hero-mark .mark circle:nth-of-type(even) { animation: twinkle 4.8s ease-in-out infinite; }
.hero-mark .mark circle:nth-of-type(4n) { animation-delay: 1.6s; }
.hero-mark .mark circle:nth-of-type(6n) { animation-delay: 3.1s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.005em; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.06; max-width: 15ch; margin-inline: auto; text-wrap: balance; }
:lang(zh-Hans) h1, :lang(zh-Hant) h1 { max-width: 17em; font-size: clamp(32px, 4.8vw, 56px); line-height: 1.3; letter-spacing: .02em; }
h1 em { font-style: italic; font-weight: 500; color: var(--gold); display: block; }
:lang(zh-Hans) h1 em, :lang(zh-Hant) h1 em { font-style: normal; }
.sub { max-width: 40em; margin: 24px auto 0; color: var(--muted); font-size: 18px; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s, background .2s, border-color .2s; }
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(180deg, #f6dfa8, #dcb66a); color: #1b1407; box-shadow: 0 8px 28px -10px rgba(240, 200, 120, .6); }
.btn.ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: var(--gold-2); background: rgba(240, 212, 150, .06); }

/* ── 区块 ── */
.section { padding: 72px 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.15; }
:lang(zh-Hans) h2, :lang(zh-Hant) h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.35; }
.lead { color: var(--muted); max-width: 40em; margin: 12px 0 0; }

/* 作品卡 */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.app {
  position: relative; display: flex; flex-direction: column;
  padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .25s, transform .25s;
}
.app::before { content: ""; position: absolute; inset: -1px -1px auto; height: 140px; background: radial-gradient(22rem 9rem at 20% -30%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); pointer-events: none; }
.app:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-2px); }
.app-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.app-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.app-icon svg { width: 24px; height: 24px; }
.status { font-size: 12px; font-weight: 600; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line-2); }
.status.live { color: #9be3b5; border-color: rgba(120, 220, 160, .35); }
.status.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #7ee2a4; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 8px #7ee2a4; }
.app h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 22px 0 2px; line-height: 1.2; }
.tagline { margin: 0; color: var(--accent); font-weight: 500; }
.desc { color: var(--muted); font-size: 15.5px; margin: 14px 0 18px; }
.tags { list-style: none; padding: 0; margin: auto 0 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); }
.app-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--accent); }
.app-cta svg { width: 16px; height: 16px; transition: transform .2s; }
.app-cta:hover svg { transform: translateX(3px); }

.app-cta.soon { color: var(--faint); font-weight: 500; }

/* 实验室：简单列表 */
.lab { list-style: none; padding: 0; margin: 28px 0 0; max-width: 860px; border-top: 1px solid var(--line); }
.lab li { display: grid; grid-template-columns: 220px 120px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lab b { font-weight: 600; }
.lab .kind { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--gold-2); }
.lab .d { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) {
  .lab li { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .lab .d { grid-column: 1 / -1; }
}

/* 理念 + 名字由来 */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.principles { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 26px; }
.principles li { display: flex; gap: 20px; }
.num { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 22px; color: var(--gold-2); min-width: 32px; line-height: 1.4; }
.principles h3 { margin: 0; font-size: 19px; }
.principles p { margin: 4px 0 0; color: var(--muted); }
.namecard { padding: 32px; border-radius: 22px; border: 1px solid rgba(240, 212, 150, .22); background: linear-gradient(160deg, rgba(240, 212, 150, .07), rgba(120, 96, 220, .06)); }
.namecard h2 { font-size: 30px; margin: 18px 0 8px; }
:lang(zh-Hans) .namecard h2, :lang(zh-Hant) .namecard h2 { font-size: 24px; }
.namecard p { color: var(--muted); margin: 10px 0 0; font-size: 15.5px; }
.namecard b { color: var(--gold); font-weight: 600; }

/* 联络 */
.contact { text-align: center; }
.contact .lead { margin-inline: auto; }
.email { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 14px 24px; border-radius: 999px; border: 1px solid rgba(240, 212, 150, .35); color: var(--gold); font-weight: 600; font-size: 17px; text-decoration: none; word-break: break-all; }
.email svg { width: 20px; height: 20px; flex: none; }
.email:hover { background: rgba(240, 212, 150, .08); }
.contact h3 { margin: 44px 0 14px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.socials a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; color: var(--muted); }
.socials a span { color: var(--faint); }
.socials a b { color: var(--text); font-weight: 600; }
.socials a:hover { border-color: var(--line-2); }

/* 页脚 */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* 404 */
.nf { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 16px; }
.nf h1 { margin-top: 28px; font-size: clamp(36px, 6vw, 60px); }
.nf p { color: var(--muted); }

/* ── 手机 ── */
@media (max-width: 900px) {
  .apps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .top-in { height: 58px; }
  .wordmark { font-size: 23px; }
  .hero { padding: 64px 0 52px; }
  .hero-mark .mark { width: 104px; height: 64px; }
  .sub { font-size: 16.5px; }
  .section { padding: 56px 0; }
  .app { padding: 22px; }
  .namecard { padding: 24px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
