/* 郝亮 / 闪光日常 — a playful, responsive, dependency-free blog */
:root {
  color-scheme: dark;
  --bg: #0a0a18;
  --bg-soft: #111124;
  --panel: #161629;
  --panel-2: #1c1b33;
  --text: #f8f7ff;
  --muted: #a6a4bd;
  --soft: #79788f;
  --line: rgba(244, 239, 255, .13);
  --pink: #fa80c5;
  --lime: #c4ff88;
  --yellow: #ffe77d;
  --violet: #ab91ff;
  --aqua: #8cece6;
  --card-shadow: 0 28px 70px rgba(1, 2, 12, .24);
  --font: 'DM Sans', 'Noto Sans SC', system-ui, sans-serif;
  --display: 'Outfit', 'Noto Sans SC', system-ui, sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.7; overflow-x: hidden; transition: background .35s, color .35s; }
body.dialog-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--pink); color: #141023; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 4px; }
.container { width: min(1200px, calc(100% - 92px)); margin-inline: auto; }
.page-grid { pointer-events: none; position: fixed; inset: 0; z-index: -1; opacity: .16; background-image: linear-gradient(to right, rgba(183, 170, 232, .13) 1px, transparent 1px),linear-gradient(to bottom, rgba(183, 170, 232, .13) 1px, transparent 1px); background-size: 66px 66px; mask-image: linear-gradient(#000, transparent 93%); }
.cursor-glow { position: fixed; z-index: -1; width: 490px; height: 490px; border-radius: 50%; background: radial-gradient(circle, rgba(148, 105, 240, .10), transparent 70%); pointer-events: none; transform: translate(-50%, -50%); left: 55%; top: 300px; transition: left .14s, top .14s; }
.reading-progress { position: fixed; inset: 0 auto auto 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--aqua), var(--violet), var(--pink)); z-index: 50; transition: width .06s linear; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 24, .76); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--line); }
.nav-shell { display: flex; align-items: center; gap: 38px; min-height: 86px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 26px; font-weight: 900; letter-spacing: -.07em; white-space: nowrap; line-height: 1; }
.logo-symbol { display: inline-block; font-size: 30px; color: var(--lime); animation: logo-spin 18s linear infinite; }
.logo-dot { color: var(--pink); }
.logo small { margin-left: 7px; padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); font-family: var(--display); font-size: 9px; font-weight: 800; letter-spacing: .14em; line-height: 1.5; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-link { position: relative; padding: 6px 0; color: var(--muted); font-weight: 700; font-size: 13px; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { content: ''; position: absolute; bottom: -5px; left: 40%; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--text); }
.theme-toggle { font-size: 24px; transition: transform .2s, border-color .2s; }
.theme-toggle:hover { transform: rotate(25deg); border-color: var(--aqua); }
.nav-cta { display: inline-flex; gap: 17px; align-items: center; justify-content: center; padding: 11px 19px; background: var(--lime); color: #141525; border-radius: 100px; font-size: 12px; font-weight: 800; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 9px 25px rgba(196, 255, 136, .22); }
.nav-cta span { font-size: 17px; line-height: 1; }
.mobile-menu-toggle { display: none; color: var(--text); border: 1px solid var(--line); border-radius: 50%; background: var(--panel); font-size: 22px; width: 41px; height: 41px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 2%; min-height: 692px; padding-block: 62px 80px; }
.hero-copy { position: relative; z-index: 2; }
.hero-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; color: var(--aqua); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.pulse-dot { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 6px rgba(196, 255, 136, .09); animation: pulse 2.5s infinite; }
.eyebrow-slash { color: var(--soft); }
.hero h1 { margin: 24px 0 28px; font-family: var(--display); font-size: clamp(58px, 6vw, 94px); line-height: 1.12; font-weight: 900; letter-spacing: -.085em; }
.gradient-text { background: linear-gradient(110deg, #f7a5e3 0%, #bd9cff 38%, #84e8e8 75%, #b3f8ad 100%); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradient-shift 8s ease-in-out infinite alternate; }
.hero-period { color: var(--lime); }
.hero-intro { max-width: 435px; margin: 0; color: var(--muted); font-size: 16px; line-height: 2.05; }
.hero-intro strong { color: var(--text); }
.intro-sparkle { margin-left: 5px; color: var(--yellow); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 13px 26px; border-radius: 100px; font-size: 13px; font-weight: 900; border: 1px solid transparent; transition: transform .22s, box-shadow .22s, background .22s; line-height: 1.5; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--pink); color: #1b1224; box-shadow: 0 14px 28px rgba(250, 128, 197, .15); }
.button-primary:hover { box-shadow: 0 16px 35px rgba(250, 128, 197, .29); }
.button-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button-secondary:hover { background: var(--panel-2); }
.button-arrow { font-size: 18px; line-height: 1; }
.hero-bottom { display: flex; align-items: center; margin-top: 66px; gap: 17px; }
.hero-avatar-stack { display: flex; padding-left: 5px; }
.hero-avatar-stack span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #d4c2ff; border: 3px solid var(--bg); margin-left: -6px; font-size: 22px; }
.hero-avatar-stack span:nth-child(2) { background: #ffe08d; }
.hero-avatar-stack span:nth-child(3) { background: #b6edd1; }
.hero-small-copy { color: var(--muted); font-size: 11px; line-height: 1.7; }
.hero-small-copy b { font-size: 12px; color: var(--text); }
.hero-scroll { display: flex; align-items: center; gap: 13px; margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 700; }
.scroll-line { display: grid; place-items: center; width: 28px; height: 44px; border: 1px solid var(--line); border-radius: 40px; color: var(--lime); font-size: 20px; animation: bob 2s ease-in-out infinite; }
.hero-art { position: relative; min-height: 570px; isolation: isolate; }
.hero-art-halo { position: absolute; inset: 2% -7% -2% -8%; border-radius: 50%; background: radial-gradient(circle, rgba(151, 97, 255, .34) 0%, rgba(252, 99, 180, .13) 33%, transparent 69%); filter: blur(20px); }
.orbit { position: absolute; left: 50%; top: 49%; translate: -50% -50%; height: 430px; width: 560px; border: 1px solid rgba(219, 191, 255, .17); border-radius: 50%; transform: rotate(-22deg); z-index: 2; pointer-events: none; }
.orbit-two { width: 530px; height: 500px; border-color: rgba(139, 230, 228, .10); transform: rotate(45deg); }
.big-planet { position: absolute; top: 50%; left: 50%; width: min(435px, 85%); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; display: flex; align-items: center; flex-direction: column; justify-content: center; overflow: hidden; background: radial-gradient(circle at 26% 20%, #f8dc9e -10%, #e7a2ec 28%, #a88bfa 51%, #6854cf 80%, #343396 110%); box-shadow: inset -27px -39px 45px rgba(53, 15, 125, .27), 0 40px 110px rgba(108, 73, 223, .3); transform: rotate(-11deg); animation: planet-float 7s ease-in-out infinite; }
.big-planet::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-linear-gradient(165deg, transparent 0 22px, rgba(255, 255, 255, .085) 26px 41px, transparent 45px 83px); mix-blend-mode: overlay; transform: rotate(14deg); }
.big-planet::after { content: ''; position: absolute; width: 175px; height: 80px; left: -15%; top: 24%; background: rgba(255, 255, 255, .3); border-radius: 50%; filter: blur(24px); transform: rotate(-24deg); }
.planet-shine { position: absolute; width: 60%; height: 28%; border-radius: 50%; top: 7%; right: 12%; background: rgba(255, 238, 229, .4); filter: blur(37px); }
.planet-title { position: relative; z-index: 2; color: #2a2154; font-family: var(--display); font-size: clamp(65px, 6vw, 100px); font-weight: 900; text-align: center; letter-spacing: -.09em; line-height: .83; text-shadow: 0 1px 0 rgba(255, 255, 255, .17); }
.planet-title span { font-size: .38em; vertical-align: top; display: inline-block; margin-left: 4px; color: #fff6c9; }
.planet-bottom { position: relative; z-index: 2; font-family: var(--display); font-size: 9px; color: #352466; font-weight: 900; letter-spacing: .15em; margin-top: 22px; }
.floating-star { position: absolute; z-index: 4; font-size: 76px; line-height: 1; filter: drop-shadow(0 0 14px rgba(255,255,255,.15)); }
.star-one { color: var(--lime); left: 2%; top: 14%; font-size: 80px; animation: bob 4s infinite; }
.star-two { color: var(--yellow); right: 2%; bottom: 13%; font-size: 84px; animation: logo-spin 23s linear infinite; }
.star-three { color: var(--pink); right: 8%; top: 5%; font-size: 44px; animation: bob 3s 1s infinite; }
.hero-sticker { position: absolute; z-index: 5; display: flex; align-items: center; box-shadow: 0 19px 42px rgba(12, 5, 40, .21); }
.sticker-top { top: 10%; right: -3%; gap: 10px; padding: 11px 16px 11px 12px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(246, 243, 255, .94); color: #31294d; border-radius: 14px; transform: rotate(8deg); font-size: 10px; line-height: 1.7; animation: sticker-float 5s ease-in-out infinite; }
.sticker-emoji { font-size: 27px; }
.sticker-top b { font-family: var(--display); font-size: 10px; letter-spacing: .04em; }
.equalizer { display: flex; align-items: center; gap: 3px; margin-left: 5px; height: 20px; }
.equalizer i { display: block; height: 10px; width: 3px; border-radius: 3px; background: #7158cc; animation: equalize 1s infinite alternate; }
.equalizer i:nth-child(2) { animation-delay: .3s; height: 17px; }
.equalizer i:nth-child(3) { animation-delay: .7s; height: 8px; }
.equalizer i:nth-child(4) { animation-delay: .45s; height: 13px; }
.sticker-bottom { left: -5%; bottom: 12%; flex-direction: column; align-items: start; gap: 2px; border-radius: 12px; background: #d4fc9d; padding: 13px 21px; color: #293622; transform: rotate(-8deg); animation: sticker-float 5s 1s ease-in-out infinite; }
.sticker-label { font-family: var(--display); letter-spacing: .09em; font-size: 9px; font-weight: 900; }
.sticker-bottom strong { font-size: 17px; white-space: nowrap; }
.sticker-bottom strong span { font-size: 21px; }
.sticker-decoration { position: absolute; right: -12px; top: -25px; font-size: 45px; color: #fce67a; }
.side-note { position: absolute; right: -4%; bottom: 25%; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .22em; font-weight: 900; color: var(--muted); }
.side-note span { color: var(--pink); font-size: 18px; }

/* Marquee */
.marquee-wrap { overflow: hidden; padding: 14px 0; color: #231734; background: var(--lime); transform: rotate(-1.2deg) scale(1.02); position: relative; z-index: 1; }
.marquee-track { display: flex; width: max-content; gap: 40px; white-space: nowrap; animation: marquee 26s linear infinite; font-family: var(--display); font-size: 15px; font-weight: 900; letter-spacing: .12em; }
.marquee-track span { padding-right: 5px; }

/* Sections and blog cards */
.section-space { padding-block: 132px 125px; }
.section-kicker { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; color: var(--muted); font-family: var(--display); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.section-kicker span { color: var(--pink); font-size: 14px; }
.section-title { margin: 0; font-size: clamp(36px, 4vw, 62px); font-weight: 900; line-height: 1.25; letter-spacing: -.055em; }
.title-marker { position: relative; z-index: 0; white-space: nowrap; }
.title-marker::after { content: ''; position: absolute; z-index: -1; height: .31em; border-radius: 10px; width: 101%; bottom: .09em; left: 0; background: #8e5fff; opacity: .7; transform: rotate(-2deg); }
.title-spark { position: relative; color: var(--lime); font-size: .55em; top: -.48em; left: 8px; }
.section-subtitle { color: var(--muted); font-size: 14px; margin: 13px 0 0; }
.section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.heading-doodle { color: var(--lime); font-family: var(--display); font-size: 17px; line-height: 1.05; font-weight: 900; letter-spacing: .08em; transform: rotate(12deg); text-align: right; }
.heading-doodle span { display: block; font-size: 37px; line-height: 1; }
.story-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 43px 0 29px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-button { padding: 9px 17px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 100px; font-size: 12px; font-weight: 700; transition: background .2s, color .2s, transform .2s; }
.filter-button:hover { transform: translateY(-2px); color: var(--text); }
.filter-button.selected { background: var(--lime); border-color: var(--lime); color: #232925; }
.searchbox { display: flex; align-items: center; height: 43px; padding-inline: 13px; gap: 9px; background: var(--panel); border: 1px solid var(--line); border-radius: 100px; color: var(--muted); flex: 0 0 220px; }
.searchbox > span { font-size: 24px; line-height: 1; }
.searchbox input { min-width: 0; flex: 1; width: 100%; background: transparent; color: var(--text); outline: 0; border: 0; font-size: 12px; }
.searchbox input::placeholder { color: var(--soft); }
.searchbox:focus-within { border-color: var(--aqua); }
.searchbox kbd { font-family: var(--display); font-size: 11px; color: var(--soft); border: 1px solid var(--line); width: 19px; height: 19px; border-radius: 5px; text-align: center; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.post-card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; animation: fade-up .5s both; }
.post-card:hover { transform: translateY(-7px); box-shadow: var(--card-shadow); border-color: rgba(219, 192, 255, .38); }
.post-card.featured { grid-column: span 2; display: grid; grid-template-columns: 1.03fr 1fr; }
.post-cover { position: relative; min-height: 203px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: 21px; }
.post-card.featured .post-cover { min-height: 100%; }
.post-cover::before { content: ''; position: absolute; inset: -15%; border-radius: 45%; z-index: -1; opacity: .9; transform: rotate(-19deg); background: radial-gradient(ellipse at 66% 33%, rgba(255,255,255,.72), transparent 34%), conic-gradient(from 90deg, rgba(255,255,255,.1), transparent, rgba(255,255,255,.6), transparent, rgba(255,255,255,.1)); animation: artwork-spin 21s linear infinite; }
.cover-cosmos { background: linear-gradient(128deg, #ffadd9, #b390f9 55%, #6b62f3); color: #2c2165; }
.cover-city { background: linear-gradient(145deg, #9ef5ea, #55cfe9 49%, #3d86e6); color: #134153; }
.cover-desktop { background: linear-gradient(125deg, #ffe7a8, #ffb780 60%, #fa888a); color: #693b36; }
.cover-code { background: linear-gradient(128deg, #a5f3b5, #a5dfb9 49%, #3bc09b); color: #1a5141; }
.cover-music { background: linear-gradient(125deg, #e7a7ff, #cc7de5 58%, #f87fae); color: #6a2b6b; }
.cover-future { background: linear-gradient(125deg, #c8b6fa, #c4a0fa 46%, #8ea5ff); color: #373673; }
.cover-cafe { background: linear-gradient(125deg, #f7d89b, #dca76f, #b97467); color: #51352e; }
.cover-garden { background: linear-gradient(125deg, #cafa9e, #98d89d 55%, #7dc2bb); color: #2d5f4a; }
.cover-symbol { display: block; font-family: var(--display); font-size: 43px; font-weight: 700; line-height: 1; }
.cover-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.cover-art-text { white-space: pre-line; font-family: var(--display); font-size: clamp(33px, 3.8vw, 62px); font-weight: 900; letter-spacing: -.095em; line-height: .86; transform: rotate(-7deg); }
.post-card:not(.featured) .cover-art-text { font-size: clamp(34px, 3.2vw, 48px); }
.cover-decoration { font-size: 46px; align-self: flex-end; filter: opacity(.7); transform: rotate(-10deg); }
.cover-tag { position: absolute; top: 17px; right: 17px; padding: 6px 10px; border: 1px solid rgba(37, 28, 72, .24); border-radius: 100px; background: rgba(255,255,255,.48); backdrop-filter: blur(5px); color: #342957; font-family: var(--display); font-size: 9px; letter-spacing: .07em; font-weight: 900; }
.post-body { display: flex; flex-direction: column; padding: 24px; min-height: 224px; }
.post-card.featured .post-body { justify-content: center; padding: 31px; }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--display); font-size: 10px; color: var(--muted); font-weight: 800; letter-spacing: .025em; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--pink); }
.post-category { color: var(--pink); }
.post-title { margin: 13px 0 11px; font-size: 19px; font-weight: 900; line-height: 1.55; letter-spacing: -.025em; }
.post-card.featured .post-title { font-size: 26px; }
.post-excerpt { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.95; }
.post-open { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 21px 0 0; gap: 8px; background: none; border: 0; color: var(--text); font-size: 12px; font-weight: 900; text-align: left; }
.post-card.featured .post-open { padding-top: 30px; }
.post-open .post-arrow { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--lime); font-size: 18px; transition: background .2s, transform .2s; }
.post-open:hover .post-arrow { background: var(--lime); color: #141525; transform: rotate(45deg); }
.post-empty { text-align: center; padding: 80px 20px; border: 1px dashed var(--line); border-radius: 18px; }
.post-empty > div { font-size: 70px; }
.post-empty h3 { font-size: 23px; margin: 6px 0; }
.post-empty p { color: var(--muted); }
.post-empty button { margin-top: 12px; }

/* Editorial quote */
.quote-banner { position: relative; min-height: 265px; display: flex; align-items: center; justify-content: space-between; padding: 36px 8%; overflow: hidden; background: #ffdf83; color: #281e42; border-radius: 20px; }
.quote-banner::before { content: ''; position: absolute; width: 390px; height: 390px; border: 2px solid rgba(49, 25, 74, .13); border-radius: 50%; right: -70px; top: -250px; box-shadow: 0 0 0 45px rgba(255,255,255,.12), 0 0 0 92px rgba(255,255,255,.09); }
.quote-small { font-family: var(--display); font-weight: 900; letter-spacing: .16em; font-size: 11px; }
.quote-banner h2 { font-size: clamp(30px, 3.3vw, 49px); letter-spacing: -.065em; line-height: 1.35; margin: 14px 0 0; }
.quote-banner h2 span { text-decoration: line-through; opacity: .55; }
.quote-banner h2 em { color: #e557ac; font-style: normal; text-decoration: underline wavy #e557ac; text-underline-offset: 7px; }
.quote-sun { font-size: 67px; position: absolute; left: 20px; top: 8px; color: #ee7d79; animation: logo-spin 25s linear infinite; }
.quote-smile { position: relative; font-family: var(--display); font-size: clamp(110px, 14vw, 185px); font-weight: 900; transform: rotate(90deg); line-height: 1; margin-right: 5%; }
.quote-corner { position: absolute; bottom: 19px; right: 25px; font-size: 9px; font-weight: 900; letter-spacing: .15em; }

/* About */
.about-section { padding-top: 145px; }
.about-layout { display: grid; grid-template-columns: .96fr 1fr; gap: 11%; align-items: center; margin-top: 40px; }
.about-visual { min-height: 480px; background: #a2ecf2; border-radius: 17px; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.about-visual::before { content: ''; position: absolute; width: 420px; height: 420px; left: -110px; bottom: -240px; background: #c7b2ff; border-radius: 50%; }
.about-visual::after { content: ''; position: absolute; height: 270px; width: 270px; right: -90px; top: -180px; background: #ed9dcb; border-radius: 50%; }
.about-visual-caption { position: absolute; top: 25px; left: 25px; z-index: 2; color: #284b61; font-family: var(--display); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.about-art-face { position: relative; width: 270px; height: 300px; background: #ffc2d8; border: 5px solid #372c55; border-radius: 47% 48% 44% 49%; transform: rotate(-8deg); box-shadow: inset -23px -15px 0 rgba(245, 126, 172, .35), 17px 18px 0 #60467e; z-index: 1; animation: bob 5s ease-in-out infinite; }
.face-eye { width: 19px; height: 27px; background: #392c50; border-radius: 50%; position: absolute; top: 40%; }
.face-eye-left { left: 29%; } .face-eye-right { right: 29%; }
.face-mouth { position: absolute; width: 75px; height: 39px; border-bottom: 6px solid #392c50; border-radius: 50%; top: 49%; left: calc(50% - 38px); transform: rotate(5deg); }
.face-blush { position: absolute; width: 47px; height: 19px; background: #ec84ad; filter: blur(3px); border-radius: 50%; top: 54%; }
.face-blush-left { left: 14%; } .face-blush-right { right: 14%; }
.about-badge { position: absolute; z-index: 2; padding: 12px 16px; font-family: var(--display); font-weight: 900; line-height: 1.1; font-size: 16px; box-shadow: 0 10px 30px rgba(20, 27, 74, .15); }
.badge-one { right: 8%; top: 13%; background: #fff4ad; color: #544326; border-radius: 8px; transform: rotate(15deg); }
.badge-one small { font-size: 10px; }
.badge-two { left: 5%; bottom: 12%; background: #aaf4ad; color: #1b523d; border-radius: 8px; transform: rotate(-12deg); }
.about-decoration { position: absolute; bottom: 5%; right: 5%; z-index: 2; color: #6846a1; font-size: 75px; }
.about-copy { position: relative; }
.about-floating-caption { margin-bottom: 12px; font-family: var(--display); font-size: 13px; color: var(--aqua); font-weight: 900; letter-spacing: .14em; }
.about-copy .section-title { margin-bottom: 18px; }
.underline-wave { text-decoration: underline wavy var(--pink) 4px; text-underline-offset: 9px; }
.about-copy p { color: var(--muted); font-size: 14px; line-height: 2.1; margin: 0 0 13px; }
.about-copy p.about-lede { color: var(--text); font-size: 19px; font-weight: 900; }
.about-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.about-tags span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; font-size: 11px; font-weight: 700; color: var(--text); background: var(--panel); }
.about-link { display: inline-flex; align-items: center; gap: 22px; margin-top: 32px; color: var(--lime); font-size: 13px; font-weight: 900; padding-bottom: 5px; border-bottom: 1px solid var(--lime); }
.about-link span { font-size: 19px; }

/* Guestbook */
.guestbook-section { padding-block: 125px 142px; position: relative; background: linear-gradient(140deg, rgba(111, 76, 203, .18), rgba(245, 107, 182, .07) 70%, rgba(76, 195, 188, .07)); border-top: 1px solid var(--line); }
.guestbook-section::before { content: ''; position: absolute; height: 360px; width: 360px; border-radius: 50%; background: rgba(162, 96, 225, .16); filter: blur(100px); left: -150px; top: 35%; pointer-events: none; }
.guestbook-container { position: relative; }
.guestbook-heading { display: flex; align-items: center; justify-content: space-between; }
.guestbook-heart { color: var(--pink); font-size: 40px; vertical-align: top; margin-left: 7px; }
.guestbook-bubble { font-family: var(--display); color: #25213f; background: #fcb3df; border-radius: 48% 48% 44% 54%; padding: 25px 30px; font-size: 16px; font-weight: 900; line-height: 1; transform: rotate(13deg); }
.guestbook-bubble span { color: #7864d7; font-size: 28px; }
.guestbook-layout { margin-top: 42px; display: grid; grid-template-columns: .91fr 1.09fr; align-items: start; gap: 26px; }
.message-form, .message-panel { min-width: 0; border: 1px solid var(--line); background: var(--panel); border-radius: 20px; padding: 30px; box-shadow: 0 12px 48px rgba(5, 5, 26, .11); }
.form-topline { display: flex; justify-content: space-between; align-items: center; padding-bottom: 26px; margin-bottom: 20px; border-bottom: 1px dashed var(--line); color: var(--lime); font-size: 16px; font-weight: 900; }
.form-topline span:last-child { color: var(--soft); font-family: var(--display); font-size: 10px; letter-spacing: .08em; }
.form-label { display: block; font-size: 13px; font-weight: 900; margin: 18px 0 10px; }
.field { width: 100%; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; color: var(--text); outline: 0; font-size: 13px; transition: border-color .2s, box-shadow .2s; }
.field:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(171,145,255,.14); }
.field::placeholder { color: var(--soft); }
.textarea { resize: vertical; min-height: 145px; line-height: 1.75; }
.char-counter { display: flex; justify-content: space-between; align-items: center; color: var(--soft); gap: 10px; font-size: 10px; margin-top: 4px; }
.mood-label { margin: 18px 0 12px; }
.mood-options { display: flex; gap: 10px; flex-wrap: wrap; }
.mood-chip { display: grid; place-items: center; height: 41px; width: 48px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-soft); font-size: 23px; transition: border-color .2s, transform .2s, background .2s; }
.mood-chip:hover { transform: translateY(-3px); }
.mood-chip.selected { border-color: var(--pink); background: rgba(250,128,197,.15); transform: translateY(-3px); }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.send-button { margin-top: 24px; width: 100%; justify-content: space-between; padding-inline: 21px; }
.send-button:disabled { opacity: .65; cursor: progress; transform: none; }
.form-note { display: flex; align-items: flex-start; gap: 9px; margin: 15px 0 0; color: var(--soft); font-size: 10px; line-height: 1.7; }
.status-dot { flex: 0 0 auto; display: inline-block; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--yellow); }
.status-dot.online { background: var(--lime); }
.message-panel { padding: 0; overflow: hidden; }
.message-panel-header { padding: 25px 27px 19px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.message-panel-header > div { display: flex; align-items: center; gap: 12px; }
.panel-star { color: var(--pink); font-size: 31px; }
.message-panel h3 { font-size: 19px; margin: 0; font-weight: 900; }
.message-panel h3 span { color: var(--pink); font-family: var(--display); font-size: 14px; margin-left: 5px; }
.refresh-button { background: var(--bg-soft); border: 1px solid var(--line); color: var(--aqua); border-radius: 50%; width: 32px; height: 32px; font-size: 24px; line-height: 1; display: grid; place-items: center; transition: transform .3s; }
.refresh-button:hover { transform: rotate(85deg); }
.messages-list { padding: 8px 26px 10px; min-height: 395px; max-height: 610px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--violet) transparent; }
.message-item { padding: 21px 0; border-bottom: 1px dashed var(--line); animation: fade-up .3s both; }
.message-item:last-child { border-bottom: 0; }
.message-item-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.message-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.message-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: var(--avatar-color, #dfb2fc); font-size: 24px; }
.message-person strong { max-width: 170px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.message-date { white-space: nowrap; color: var(--soft); font-family: var(--display); font-size: 10px; }
.message-body { margin: 10px 0 0 50px; color: var(--muted); font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-placeholder { padding: 75px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.message-placeholder > div { font-size: 48px; margin-bottom: 8px; }
.message-panel-footer { display: flex; align-items: center; justify-content: center; gap: 15px; color: var(--soft); padding: 20px 15px; font-family: var(--display); font-size: 9px; letter-spacing: .09em; font-weight: 800; border-top: 1px solid var(--line); text-align: center; }
.message-panel-footer span { color: var(--pink); }

/* Footer */
.footer { background: #f2add5; color: #302041; padding-top: 65px; }
.footer-top { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 65px; gap: 25px; }
.footer-title { font-family: var(--display); font-size: clamp(64px, 9vw, 143px); line-height: .86; letter-spacing: -.09em; font-weight: 900; }
.footer-title > span:first-child { color: #fff5d3; }
.footer-star { color: #eefc9e; display: inline-block; margin-left: 10px; font-size: .8em; line-height: 0; }
.footer-right { min-width: 205px; padding-bottom: 5px; }
.footer-label { font-family: var(--display); font-size: 11px; letter-spacing: .12em; font-weight: 900; }
.footer-right p { margin: 12px 0 21px; line-height: 1.95; font-weight: 800; font-size: 13px; }
.footer-copy { padding: 11px 15px; color: #2e2141; border: 1px solid rgba(45, 27, 70, .5); border-radius: 100px; background: transparent; font-weight: 800; font-size: 11px; }
.footer-copy:hover { background: #f7d3e8; }
.footer-bottom { border-top: 1px solid rgba(51, 35, 71, .24); display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 23px 0; font-size: 11px; font-weight: 700; }
.footer-logo { font-family: var(--display); font-size: 23px; font-weight: 900; letter-spacing: -.06em; }
.back-to-top { font-size: 12px; }

/* Dialog / reading page */
.article-dialog { position: fixed; padding: 0; margin: auto; width: min(780px, calc(100% - 28px)); max-height: min(89vh, 950px); border: 1px solid var(--line); border-radius: 22px; color: var(--text); background: var(--panel); box-shadow: 0 22px 95px rgba(0,0,0,.65); overflow: auto; scrollbar-color: var(--violet) transparent; }
.article-dialog::backdrop { background: rgba(4, 4, 14, .8); backdrop-filter: blur(9px); }
.article-dialog-inner { position: relative; }
.dialog-close { position: sticky; top: 19px; margin: 19px 20px -59px auto; display: grid; place-items: center; width: 41px; height: 41px; z-index: 4; color: #241639; background: #fff8fc; border: none; border-radius: 50%; font-size: 16px; box-shadow: 0 5px 21px rgba(4,4,14,.12); }
.article-cover { min-height: 230px; display: grid; place-items: center; padding: 55px 30px; position: relative; overflow: hidden; text-align: center; }
.article-cover::before { content: '✳'; position: absolute; top: -100px; left: -25px; font-size: 340px; opacity: .15; transform: rotate(-25deg); }
.article-cover .article-cover-name { position: relative; font-family: var(--display); color: #352149; font-size: clamp(42px, 9vw, 90px); font-weight: 900; letter-spacing: -.08em; line-height: 1; white-space: pre-line; }
.article-content-body { padding: 38px clamp(24px, 7vw, 67px) 54px; }
.article-content-body .post-meta { margin-bottom: 16px; }
.article-content-body h2 { font-size: clamp(28px, 4vw, 43px); line-height: 1.4; margin: 0 0 12px; letter-spacing: -.04em; }
.article-content-body .article-subhead { font-size: 14px; color: var(--muted); margin: 0 0 31px; }
.article-content-body .article-text p { color: var(--muted); font-size: 15px; line-height: 2.22; margin: 0 0 20px; }
.article-content-body .article-text h3 { margin: 27px 0 12px; font-size: 21px; }
.article-content-body blockquote { margin: 28px 0; padding: 17px 22px; border-left: 3px solid var(--pink); border-radius: 0 7px 7px 0; background: var(--bg-soft); color: var(--text); font-size: 17px; font-weight: 800; line-height: 1.9; }
.article-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 25px; margin-top: 36px; }
.article-action { border: 1px solid var(--line); border-radius: 30px; background: var(--bg-soft); color: var(--text); padding: 10px 15px; font-weight: 800; font-size: 12px; }
.article-action:hover { border-color: var(--pink); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 27px; transform: translate(-50%, 20px); background: #f9edff; color: #2c2149; padding: 10px 19px; border-radius: 100px; box-shadow: 0 18px 40px rgba(0,0,0,.22); border: 1px solid rgba(83,58,136,.17); font-size: 12px; font-weight: 900; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; text-align: center; max-width: calc(100% - 28px); }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Light mode (persistent) */
:root[data-theme='light'] { color-scheme: light; --bg: #fbf8ff; --bg-soft: #f3ecfb; --panel: #ffffff; --panel-2: #f5ecff; --text: #242039; --muted: #625d79; --soft: #827e95; --line: rgba(65, 46, 94, .15); --card-shadow: 0 27px 70px rgba(64, 31, 88, .14); --pink: #dc4d9d; --lime: #b9eb6c; --aqua: #249f9f; --violet: #9264e2; }
:root[data-theme='light'] .site-header { background: rgba(251, 248, 255, .8); }
:root[data-theme='light'] .gradient-text { background-image: linear-gradient(110deg, #cb429f, #8965dc, #259b9e); }
:root[data-theme='light'] .hero-avatar-stack span { border-color: var(--bg); }
:root[data-theme='light'] .footer { background: #f2add5; }
:root[data-theme='light'] .footer * { color: #302041; }
:root[data-theme='light'] .footer-title > span:first-child { color: #fff5d3; }
:root[data-theme='light'] .footer-star { color: #eefc9e; }
:root[data-theme='light'] .quote-banner { background: #ffe08b; }
:root[data-theme='light'] .guestbook-section { background: linear-gradient(140deg, rgba(209, 192, 255, .43), rgba(255, 215, 236, .25), rgba(193, 247, 240, .24)); }

/* Animations */
@keyframes logo-spin { to { transform: rotate(360deg); } }
@keyframes gradient-shift { 0% { background-position: 0 50%; } 100% { background-position: 100% 50%; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(196,255,136,0); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes planet-float { 0%, 100% { transform: rotate(-11deg) translateY(0); } 50% { transform: rotate(-8deg) translateY(-12px); } }
@keyframes sticker-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes equalize { to { height: 4px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes artwork-spin { to { transform: rotate(341deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 1120px) {
  .container { width: min(1100px, calc(100% - 60px)); }
  .nav-shell { gap: 20px; }
  .logo small { display: none; }
  .hero { min-height: 600px; }
  .hero h1 { font-size: clamp(55px, 6.4vw, 80px); }
  .hero-art { min-height: 490px; }
  .big-planet { width: min(390px, 84%); }
  .orbit { width: 480px; height: 400px; }
  .orbit-two { width: 470px; height: 440px; }
  .planet-title { font-size: 75px; }
  .sticker-top { right: -1%; }
  .sticker-bottom { left: -2%; }
  .post-card.featured .post-title { font-size: 21px; }
}
@media (max-width: 820px) {
  .container { width: min(720px, calc(100% - 40px)); }
  .nav-shell { min-height: 72px; }
  .nav-links { gap: 15px; }
  .nav-link { font-size: 12px; }
  .nav-cta { padding-inline: 14px; }
  .hero { grid-template-columns: 1fr; padding-block: 76px 44px; gap: 22px; }
  .hero h1 { font-size: clamp(60px, 11vw, 96px); }
  .hero-intro { max-width: 570px; }
  .hero-bottom { margin-top: 38px; }
  .hero-art { min-height: 515px; max-width: 570px; width: 100%; margin-inline: auto; }
  .big-planet { width: 405px; }
  .planet-title { font-size: 84px; }
  .star-one { left: 0; }
  .star-two { right: 0; }
  .section-space { padding-block: 98px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .post-card.featured { grid-column: span 2; }
  .post-card.featured .post-cover { min-height: 280px; }
  .post-card.featured .post-body { padding: 26px; }
  .post-card.featured .post-title { font-size: 25px; }
  .about-layout { gap: 35px; }
  .about-visual { min-height: 410px; }
  .about-art-face { scale: .78; }
  .guestbook-layout { grid-template-columns: 1fr; }
  .guestbook-section { padding-block: 95px 110px; }
  .message-panel { width: 100%; }
  .messages-list { min-height: 230px; }
  .footer-title { font-size: clamp(75px, 11vw, 105px); }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 73px; }
  .container { width: calc(100% - 36px); }
  .nav-shell { justify-content: space-between; gap: 10px; }
  .logo { font-size: 24px; }
  .nav-links { display: none; position: absolute; inset: calc(100% + 1px) 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 18px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 35px rgba(0,0,0,.2); }
  .nav-links.open { display: flex; }
  .nav-link { padding: 13px 8px; font-size: 14px; }
  .nav-link.active::after { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-cta { display: none; }
  .mobile-menu-toggle { display: grid; place-items: center; }
  .hero { padding-top: 61px; padding-bottom: 36px; }
  .hero-eyebrow { font-size: 10px; gap: 7px; }
  .hero h1 { margin: 20px 0 18px; font-size: clamp(54px, 14vw, 81px); }
  .hero-intro { font-size: 14px; }
  .hero-buttons { gap: 10px; }
  .button { padding: 12px 19px; gap: 15px; }
  .hero-bottom { margin-top: 34px; }
  .hero-scroll { display: none; }
  .hero-art { min-height: 365px; }
  .big-planet { width: min(315px, 80%); }
  .planet-title { font-size: clamp(48px, 13vw, 68px); }
  .planet-bottom { font-size: 6px; letter-spacing: .07em; }
  .orbit { width: 100%; height: 290px; }
  .orbit-two { width: 90%; height: 330px; }
  .floating-star.star-one { font-size: 49px; left: 0; top: 9%; }
  .floating-star.star-two { font-size: 51px; right: 0; bottom: 8%; }
  .floating-star.star-three { font-size: 33px; right: 4%; top: 4%; }
  .sticker-top { right: -1%; top: 3%; padding: 8px 10px; gap: 6px; font-size: 9px; }
  .sticker-top .sticker-emoji { font-size: 22px; }
  .equalizer { display: none; }
  .sticker-bottom { left: -1%; bottom: 7%; padding: 9px 11px; }
  .sticker-label { font-size: 7px; }
  .sticker-bottom strong { font-size: 12px; }
  .sticker-decoration { font-size: 30px; right: -9px; top: -16px; }
  .side-note { display: none; }
  .marquee-wrap { padding: 11px 0; }
  .marquee-track { font-size: 12px; gap: 25px; }
  .section-space { padding-block: 78px 85px; }
  .section-heading-row { align-items: flex-start; }
  .heading-doodle { display: none; }
  .section-title { font-size: clamp(34px, 9vw, 47px); }
  .section-subtitle { font-size: 12px; line-height: 1.9; }
  .story-tools { flex-direction: column-reverse; align-items: stretch; margin-top: 26px; }
  .filters { gap: 7px; }
  .filter-button { padding: 8px 12px; font-size: 11px; }
  .searchbox { flex: auto; width: 100%; }
  .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .post-card.featured { grid-column: span 1; display: block; }
  .post-card.featured .post-cover { min-height: 236px; }
  .post-card.featured .post-body { padding: 24px; }
  .post-card.featured .post-title { font-size: 21px; }
  .post-card.featured .post-open { padding-top: 18px; }
  .post-body { min-height: 210px; }
  .post-cover { min-height: 214px; }
  .post-card:not(.featured) .cover-art-text { font-size: 49px; }
  .quote-banner { min-height: 230px; padding: 30px 22px; }
  .quote-banner h2 { font-size: clamp(29px, 7vw, 42px); }
  .quote-smile { display: none; }
  .quote-sun { font-size: 40px; left: auto; right: 7px; top: 5px; }
  .quote-corner { font-size: 7px; right: 16px; bottom: 14px; }
  .about-section { padding-top: 84px; }
  .about-layout { display: flex; flex-direction: column; gap: 34px; }
  .about-visual { min-height: 355px; width: 100%; }
  .about-art-face { scale: .77; }
  .about-copy p { font-size: 13px; }
  .about-copy p.about-lede { font-size: 18px; }
  .guestbook-section { padding-block: 80px 88px; }
  .guestbook-bubble { display: none; }
  .guestbook-layout { margin-top: 24px; gap: 18px; }
  .message-form { padding: 22px; }
  .message-panel-header { padding: 20px; }
  .messages-list { padding: 5px 20px 10px; }
  .message-body { margin-left: 0; }
  .footer { padding-top: 60px; }
  .footer-top { flex-direction: column; align-items: start; gap: 42px; padding-bottom: 50px; }
  .footer-title { font-size: clamp(67px, 18vw, 113px); }
  .footer-bottom { flex-wrap: wrap; }
  .footer-bottom > span { order: 3; flex: 0 0 100%; }
  .article-cover { min-height: 180px; }
  .article-content-body { padding: 32px 23px 40px; }
  .article-content-body .article-text p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
