/* BoxFolk website v2 — hand-drawn pencil + sage watercolor (static; motion comes later) */
@import url(../fonts/wenkai/lxgwwenkai-regular.css);
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Pinyon"; src: url(../fonts/pinyon-script-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Caveat"; src: url(../fonts/caveat-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(../fonts/caveat-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
:root { --paper: #F2EEE3; --paper2: #F8F5EC; --card: #FBF9F2; --sage: #A9B89A; --sage-l: #DCE3D2; --sage-d: #66765A; --river: #9FB9C6; --ink: #3D3A33; --pencil: #57534A; --muted: #8A8578; --line: #D9D3C2; --warm: #C49A63; --r: 22px;
  --hand: "Caveat", "LXGW WenKai", cursive; --zh: "LXGW WenKai", "Kaiti SC", "STKaiti", serif; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font: 16px/1.8 var(--zh); -webkit-font-smoothing: antialiased;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .33 0 0 0 0 .28 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }
.en { font-family: var(--hand); }
.eyebrow { font: 600 22px/1 var(--hand); color: var(--sage-d); letter-spacing: .02em; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 400; }
h2.sec { font-size: clamp(30px, 3.6vw, 44px); margin: 6px 0 4px; }
.sec-en { font: 600 clamp(22px, 2.4vw, 28px)/1.2 var(--hand); color: var(--pencil); margin: 0 0 14px; }
p.lead { color: var(--muted); font-size: 17px; max-width: 660px; margin: 0; }
section { padding: 96px 0; position: relative; }
.center { text-align: center; } .center p.lead { margin: 0 auto; }
.doodle-line { display: block; width: 180px; height: 14px; margin: 10px auto 0; color: var(--sage); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(242,238,227,.88); backdrop-filter: blur(8px); border-bottom: 1px dashed var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 30px/1 var(--hand); color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.links { display: flex; gap: 26px; font-size: 15px; } .links a { text-decoration: none; color: var(--muted); } .links a:hover, .links a.on { color: var(--ink); text-decoration: underline wavy var(--sage) 1px; text-underline-offset: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font: 16px/1.2 var(--zh); text-decoration: none; border: 1.5px solid var(--pencil); cursor: pointer; white-space: nowrap; background: var(--card); color: var(--ink); box-shadow: 2px 3px 0 var(--pencil); }
.btn:hover { transform: translate(1px, 1px); box-shadow: 1px 2px 0 var(--pencil); }
.btn.sage { background: var(--sage); color: #fff; border-color: var(--sage-d); box-shadow: 2px 3px 0 var(--sage-d); }
.btn.sm { padding: 8px 18px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .5; cursor: default; box-shadow: none; }

/* 0 · cover scene */
.cover { position: relative; height: 100vh; min-height: 640px; max-height: 960px; overflow: hidden; padding: 0; display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(180deg, #F4F1E8 0%, #EEF0E6 55%, #E3E9DA 100%); }
.cover { background: #F1E9DA; }
.cover .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.cover .hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; }
.cover .title { position: absolute; top: clamp(56px, 9vh, 96px); left: 50%; transform: translateX(-50%); text-align: center; width: min(900px, 92%); }
.cover .title .logo { font: 600 clamp(64px, 10vw, 128px)/.9 var(--hand); color: var(--ink); letter-spacing: .01em; text-shadow: 0 2px 0 #F2EEE3; }
.cover .title .hi { font: 400 clamp(22px, 2.6vw, 30px)/1.4 var(--hand); color: var(--pencil); margin-top: 8px; }
.cover .title .zh { font-size: clamp(16px, 1.8vw, 20px); color: var(--muted); margin-top: 4px; }
.cover .enter { position: absolute; z-index: 3; left: 0; right: 0; margin: 0 auto; width: max-content; top: clamp(250px, 32vh, 300px); display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.cover .enter .bubble { background: var(--card); border: 1.5px solid var(--pencil); border-radius: 18px; padding: 10px 22px; box-shadow: 2px 3px 0 var(--pencil); font: 600 22px/1.2 var(--hand); }
.cover .enter small { color: var(--muted); font-size: 14px; }
.cover .enter svg { width: 26px; height: 26px; color: var(--pencil); }
.cover .peek { position: absolute; bottom: 0; z-index: 2; width: clamp(90px, 10vw, 140px); filter: sepia(.25) saturate(.8); }

/* 1 · hero */
.hero { padding: 80px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font: 600 clamp(42px, 5.2vw, 68px)/1.05 var(--hand); }
.hero .zh-h { font-size: clamp(24px, 2.6vw, 32px); margin: 14px 0 12px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.pill { font-size: 13.5px; padding: 4px 12px; border-radius: 999px; border: 1px dashed var(--sage-d); color: var(--sage-d); background: #ffffff66; }
.sketchframe { position: relative; padding: 14px; background: var(--card); border: 1.5px solid var(--pencil); border-radius: 26px 22px 28px 20px; box-shadow: 4px 5px 0 var(--sage-l); }
.sketchframe img.shot { border-radius: 14px; border: 1px solid var(--line); }
.sketchframe .pet { position: absolute; right: -26px; bottom: -30px; width: 34%; filter: drop-shadow(0 8px 10px #0002); }
.sketchframe .note { position: absolute; left: -18px; top: -22px; background: #FFF9E6; border: 1px solid var(--line); padding: 6px 14px; transform: rotate(-4deg); font: 600 20px/1.2 var(--hand); box-shadow: 1px 2px 0 var(--line); }

/* 2 · moments timeline */
.moments { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 44px; position: relative; }
.moments::before { content: ""; position: absolute; left: 4%; right: 4%; top: 34px; border-top: 2px dashed var(--sage); }
.moment { position: relative; text-align: center; }
.moment .dot { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--pencil); display: grid; place-items: center; font: 600 20px/1 var(--hand); box-shadow: 2px 3px 0 var(--sage-l); }
.moment b { display: block; font-weight: 400; font-size: 17px; } .moment .en { display: block; color: var(--sage-d); font-size: 19px; line-height: 1.2; margin: 2px 0 6px; } .moment p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* 3 · roles */
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 44px; }
.role { background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 22px 18px; text-align: center; }
.role svg { width: 54px; height: 54px; margin: 0 auto 10px; color: var(--pencil); }
.role .en { display: block; font-size: 22px; color: var(--ink); line-height: 1.15; } .role b { display: block; font-weight: 400; margin: 4px 0 6px; } .role p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* 4 · chat demo */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.chat { background: var(--card); border: 1.5px solid var(--pencil); border-radius: 24px; padding: 22px; box-shadow: 3px 4px 0 var(--sage-l); }
.chat .tag { display: inline-block; font: 600 18px/1 var(--hand); color: var(--sage-d); margin-bottom: 12px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; margin: 8px 0; font-size: 15px; line-height: 1.6; }
.msg.me { margin-left: auto; background: var(--sage-l); border-bottom-right-radius: 4px; }
.msg.it { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.it small { display: block; font: 600 16px/1.2 var(--hand); color: var(--sage-d); margin-top: 6px; }
.msg.it small:first-child { margin-top: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; } .chips span { font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted); background: #fff; }
.example-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }

/* 5 · pains */
.pains { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 40px; }
.pain { display: grid; grid-template-columns: 1fr 26px 1fr; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.pain .q { color: var(--muted); font-size: 15px; } .pain .a { font-size: 15px; } .pain svg { width: 26px; color: var(--sage-d); }

/* 6 · office mode band */
.band { background: var(--sage-l); border-top: 1.5px dashed var(--sage); border-bottom: 1.5px dashed var(--sage); }
.band .wrap.center { display: block; }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; } .ticks li { padding-left: 28px; position: relative; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 11px; height: 6px; border-left: 2px solid var(--sage-d); border-bottom: 2px solid var(--sage-d); transform: rotate(-45deg); }

/* 7 · folk */
.folk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.fcard { background: var(--card); border: 1.5px solid var(--line); border-radius: 24px 20px 26px 22px; padding: 18px 16px 22px; text-align: center; }
.fcard .art { height: 180px; display: grid; place-items: end center; margin-bottom: 10px; background: radial-gradient(ellipse at 50% 94%, var(--sage-l) 0 36%, transparent 37%); }
.fcard .art img { height: 176px; width: auto; }
.fcard h3 { font-size: 20px; } .fcard .mbti { font: 600 20px/1 var(--hand); color: var(--sage-d); margin: 4px 0 8px; } .fcard p { margin: 0; color: var(--muted); font-size: 14px; }

/* 8 · features */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.feat { background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; overflow: hidden; }
.feat img { aspect-ratio: 1000 / 712; object-fit: cover; border-bottom: 1px dashed var(--line); }
.feat div { padding: 16px 18px 20px; } .feat .en { display: block; font-size: 21px; color: var(--sage-d); line-height: 1.1; } .feat b { display: block; font-weight: 400; font-size: 18px; margin: 2px 0 4px; } .feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.mini { border: 1px dashed var(--sage-d); border-radius: 16px; padding: 14px 16px; background: #ffffff55; } .mini b { font-weight: 400; } .mini span { display: block; color: var(--muted); font-size: 14px; }

/* 9 · mystery card + 10 · mystery postcard */
.mystery { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mcard { position: relative; width: min(420px, 100%); margin: 0 auto; aspect-ratio: 1.42; border-radius: 18px; padding: 18px 20px; color: #EADBB8;
  background: radial-gradient(120% 90% at 85% 0%, #3B4A3A 0%, #24301F 60%, #19221A 100%); box-shadow: 0 18px 40px #3d3a3340, inset 0 0 0 1px #C9A35A55; transform: rotate(-3deg); overflow: hidden; }
.mcard::after { content: ""; position: absolute; inset: 8px; border: 1px solid #C9A35A55; border-radius: 12px; pointer-events: none; }
.mcard .top { display: flex; justify-content: space-between; font: 600 12px/1 "Cormorant", serif; letter-spacing: .3em; color: #D9BC7A; }
.mcard .row { display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.mcard .av { width: 78px; height: 78px; border-radius: 50%; border: 1.5px dashed #D9BC7A; display: grid; place-items: center; font: 600 40px/1 var(--hand); color: #D9BC7A; }
.mcard .nm { font: 600 34px/1 "Cormorant", serif; color: #FFF4DC; } .mcard .tier { font: 600 12px/1 "Cormorant", serif; letter-spacing: .25em; color: #D9BC7A; margin-top: 8px; }
.mcard .sig { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font: 26px/1 "Pinyon", cursive; color: #D9BC7A; }
.mcard .q { position: absolute; right: 22px; top: 52px; font: 600 120px/1 var(--hand); color: #D9BC7A22; }
.mcard .ltd { position: absolute; left: 20px; bottom: 58px; font-size: 12px; color: #CDBF9E; letter-spacing: .1em; }
.postcard { position: relative; width: min(460px, 100%); margin: 0 auto; aspect-ratio: 1.5; background: #FBF7EC; border: 1px solid var(--line); box-shadow: 0 16px 34px #3d3a3330; transform: rotate(2.5deg); padding: 22px; }
.postcard::before { content: ""; position: absolute; top: 22px; bottom: 22px; left: 54%; border-left: 1px solid var(--line); }
.postcard .lines { position: absolute; left: calc(54% + 18px); right: 22px; top: 46%; } .postcard .lines i { display: block; border-bottom: 1px solid var(--line); height: 26px; }
.postcard .stamp { position: absolute; right: 22px; top: 20px; width: 70px; height: 84px; background: var(--sage-l); border: 2px dashed var(--sage-d); display: grid; place-items: center; font: 600 46px/1 var(--hand); color: var(--sage-d); }
.postcard .from { position: absolute; left: 22px; top: 22px; width: 48%; font: 600 30px/1.15 var(--hand); color: var(--pencil); }
.postcard .from small { display: block; font: 15px/1.6 var(--zh); color: var(--muted); margin-top: 10px; }
.postcard .pm { position: absolute; right: 100px; top: 28px; width: 86px; height: 86px; border: 1.5px solid #8A857888; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1.2 var(--hand); color: #8A8578aa; transform: rotate(-12deg); text-align: center; }

/* 11 · privacy */
.priv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.priv div { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 24px; } .priv .en { display: block; font-size: 22px; color: var(--sage-d); line-height: 1.1; } .priv h3 { font-size: 19px; margin: 2px 0 8px; } .priv p { color: var(--muted); font-size: 15px; margin: 0; }

/* 12 · season teaser */
.season { background: #2F3A33; color: #EFE9DA; }
.season .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; } .season .eyebrow { color: #C9D6BC; } .season .sec-en { color: #DCE3D2; } .season p.lead { color: #C3C9BC; }
.season .snowbox { aspect-ratio: 1.3; border: 1.5px dashed #C9D6BC88; border-radius: 26px; display: grid; place-items: center; text-align: center; font: 600 30px/1.3 var(--hand); color: #DCE3D2; }
.season .snowbox span { display: block; font: 600 96px/1 var(--hand); color: #DCE3D244; }

/* 13 · join */
.join .card { background: var(--card); border: 1.5px solid var(--pencil); border-radius: 30px; padding: 54px 30px; box-shadow: 4px 5px 0 var(--sage-l); text-align: center; }
.join img.ic { width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 14px; }

footer { padding: 40px 0 54px; color: var(--muted); font-size: 14px; border-top: 1px dashed var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; } footer nav { display: flex; gap: 20px; } footer a { text-decoration: none; }

/* sub pages */
.page-head { padding: 64px 0 20px; } .page-head h1 { font: 600 clamp(44px, 5vw, 64px)/1.05 var(--hand); } .page-head .zh { font-size: 24px; margin-top: 6px; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.dlc, .box { background: var(--card); border: 1.5px solid var(--line); border-radius: 24px; padding: 28px 30px; }
.box { margin-top: 24px; } .box h3, .dlc h2 { font-size: 22px; margin-bottom: 6px; } .dlc h2 { font: 600 34px/1 var(--hand); } .dlc .os { color: var(--muted); font-size: 14px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-size: 14px; margin: 18px 0 22px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.steps { counter-reset: s; list-style: none; padding: 0; } .steps li { counter-increment: s; position: relative; padding-left: 40px; margin: 12px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--pencil); display: grid; place-items: center; font: 600 16px/1 var(--hand); }
.faq details { background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 22px; margin: 12px 0; } .faq summary { cursor: pointer; font-size: 17px; } .faq details p { color: var(--muted); margin: 10px 0 0; }
.prose { max-width: 760px; } .prose h2 { font-size: 23px; margin: 32px 0 8px; } .prose p, .prose li { color: #514c43; }

@media (max-width: 920px) {
  .links { display: none; }
  .hero .wrap, .band .wrap, .mystery, .season .wrap, .demo, .dl, .pains { grid-template-columns: 1fr; gap: 32px; }
  .moments, .roles { grid-template-columns: 1fr 1fr; } .moments::before { display: none; }
  .folk { grid-template-columns: 1fr 1fr; } .feats, .priv, .minis { grid-template-columns: 1fr; }
  section { padding: 68px 0; } .sketchframe .pet { right: -8px; }
}
