:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #503b32;
    background: #faf6f0;
    --ink: #503b32;
    --muted: #80695c;
    --rose: #ad654d;
    --leaf: #637d54;
    --line: #dfcfc2;
    --paper: #fffbf6;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--leaf); outline-offset: 5px; }
.landing {
    background: radial-gradient(ellipse at 87% 23%, #f3ddc8 0, transparent 45%),
                radial-gradient(ellipse at 4% 90%, #f3e4d9 0, transparent 42%),
                #faf6f0;
}
.landing-first-screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.site-header {
    width: min(calc(100% - 96px), 1200px);
    margin: 0 auto;
    padding: 30px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; font: 700 23px/1.2 Georgia, serif; letter-spacing: -.035em; }
.wordmark-dot { color: var(--rose); margin-left: -8px; }
.leaf { display: inline-block; width: 15px; height: 22px; border-radius: 90% 0 90% 0; background: var(--leaf); transform: rotate(-18deg); }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--muted); }
.site-header nav a { padding: 7px 0; white-space: nowrap; }
.site-header nav a[aria-current] { color: var(--ink); border-bottom: 2px solid var(--rose); }
.site-header nav a:hover, .back-link:hover { color: var(--rose); }
.hero {
    width: min(calc(100% - 96px), 1200px);
    margin: 0 auto;
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(170px, 24vw, 345px);
    align-items: center;
    gap: clamp(24px, 6vw, 90px);
    padding: clamp(28px, 5vh, 64px) 0;
}
.hero-content { max-width: 680px; min-width: 0; }
.eyebrow {
    display: flex; align-items: center; gap: 10px; margin: 0 0 20px;
    color: var(--leaf); font-size: 11px; font-weight: 700; letter-spacing: .19em; line-height: 1.5;
}
.eyebrow span { width: 28px; height: 1px; background: var(--leaf); }
h1 { margin: 0; font-family: "Songti SC", "Noto Serif CJK SC", SimSun, Georgia, serif; font-weight: 700; font-size: clamp(42px, 5.1vw, 78px); line-height: 1.22; letter-spacing: -.055em; }
.accent { color: var(--rose); }
.heading-period { color: var(--leaf); font-size: .72em; }
.intro { color: var(--muted); font-size: clamp(16px, 1.7vw, 21px); line-height: 1.9; margin: 24px 0 30px; }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 26px;
    background: #a85f49; color: #fff; border-radius: 999px;
    padding: 15px 25px; font-size: 15px; font-weight: 600;
    box-shadow: 0 10px 22px #9c584128; transition: transform .2s, background .2s;
}
.button:hover { background: #874735; transform: translateY(-2px); }
.hero-note { color: var(--muted); font-size: 13px; letter-spacing: .06em; margin: 20px 0 0; }
.portrait-stage { margin: 0; position: relative; width: 100%; isolation: isolate; align-self: center; }
.portrait-orbit {
    position: absolute; z-index: -1; inset: 10% -4% 6%; border-radius: 48% 48% 28% 28%;
    background: linear-gradient(155deg, #f4d9c2a0, #e7c1aa82);
    border: 1px solid #d9b49c; 
}
.portrait-stage:after {
    content: ""; position: absolute; inset: 8% -9% 4%; z-index: -2;
    border-radius: 49% 49% 29% 29%; border: 1px dashed #bf9c84;
}
.portrait-stage img { width: 100%; height: auto; max-height: 66vh; display: block; object-fit: contain; object-position: center bottom; }
.portrait-stage figcaption { margin-top: 13px; color: #8e6a59; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-align: center; }
.spark { position: absolute; z-index: 2; color: #8a9b72; font-size: 31px; pointer-events: none; }
.spark-one { top: 14%; left: -9%; }
.spark-two { top: 65%; right: -9%; font-size: 19px; color: #b77759; }
.app-list { display: grid; gap: 12px; max-width: 515px; }
.app-card {
    background: #fffaf4; border: 1px solid #e4cbb9; border-radius: 20px;
    display: flex; align-items: center; gap: 16px; padding: 18px;
    box-shadow: 0 8px 24px #9e705313; transition: transform .2s, border-color .2s;
}
.app-card:hover { border-color: var(--rose); transform: translateY(-3px); }
.puzzle-icon { flex: 0 0 53px; display: grid; grid-template: repeat(2, 25px) / repeat(2, 25px); gap: 3px; transform: rotate(-4deg); }
.puzzle-icon i { display: grid; place-items: center; background: #ecd2bc; color: #65483a; border-radius: 4px; font-size: 15px; font-style: normal; font-weight: 700; }
.puzzle-icon i:nth-child(2), .puzzle-icon i:nth-child(3) { background: #78906a; }
.app-card-text { min-width: 0; flex: 1; display: grid; gap: 6px; }
.app-card-text strong { font-size: 18px; font-weight: 700; }
.app-card-text small { font-size: 13px; color: var(--muted); line-height: 1.5; }
.card-arrow { color: var(--rose); font-size: 24px; flex: none; }
.back-link { display: inline-block; color: var(--leaf); margin-top: 25px; font-size: 14px; font-weight: 600; }
.site-footer {
    width: min(calc(100% - 96px), 1200px); margin: 0 auto; padding: 16px 0 23px;
    border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 7px;
    color: #80695c; font-size: 12px; text-align: center; line-height: 1.5;
}
.footer-brand { color: #746155; letter-spacing: .04em; }
.site-footer a { color: #80695c; }
.site-footer a:hover { text-decoration: underline; color: var(--ink); }
@media (max-width: 760px) {
    .site-header, .hero, .site-footer { width: calc(100% - 36px); }
    .site-header { padding: 20px 0 15px; }
    .site-header nav { gap: 16px; font-size: 13px; }
    .wordmark { font-size: 19px; }
    .hero { grid-template-columns: minmax(0, 1fr) clamp(84px, 23vw, 160px); gap: 14px; padding: 45px 0; }
    h1 { font-size: clamp(29px, 6.5vw, 43px); letter-spacing: -.045em; }
    .intro { font-size: 15px; margin-block: 15px 24px; }
    .eyebrow { font-size: 9px; letter-spacing: .1em; margin-bottom: 14px; }
    .eyebrow span { width: 15px; }
    .button { padding: 12px 16px; gap: 10px; font-size: 13px; }
    .spark { font-size: 18px; }
    .portrait-stage figcaption { font-size: 7px; letter-spacing: .08em; }
    .app-card { gap: 9px; padding: 11px; border-radius: 13px; }
    .puzzle-icon { flex-basis: 35px; grid-template: repeat(2, 16px) / repeat(2, 16px); }
    .puzzle-icon i { font-size: 11px; }
    .app-card-text strong { font-size: 14px; }
    .app-card-text small { font-size: 11px; }
    .card-arrow { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { transition: none !important; } }
