:root {
    --ink: #202c2a;
    --muted: #667572;
    --paper: #f3f0e8;
    --mint: #cde5d7;
    --coral: #f08d6e;
    --line: rgba(32, 44, 42, .16);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", sans-serif; }
a { color: inherit; }
.site-shell { min-height: 100vh; max-width: 1180px; margin: 0 auto; padding: 0 42px; display: flex; flex-direction: column; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 7px; border-radius: 50%; color: var(--paper); background: var(--ink); font-size: 21px; line-height: 1; }
.user-nav { display: flex; align-items: center; gap: 20px; }
.main-nav { display: flex; gap: 18px; }
.main-nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
.main-nav a:hover { color: var(--ink); }
.header-profile { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.header-profile img, .header-profile > span:first-child { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--paper); background: var(--ink); font: 700 13px "Space Grotesk", sans-serif; object-fit: cover; }
.user-name { font-size: 14px; font-weight: 700; }
.button { border: 0; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 18px; font: 700 14px "Manrope", sans-serif; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { padding: 17px 20px 17px 24px; color: var(--paper); background: var(--ink); border-radius: 3px; }
.button-primary span { font-size: 18px; }
.button-link { padding: 17px 0; background: transparent; color: var(--ink); }
.button-ghost { padding: 9px 14px; border: 1px solid var(--line); background: transparent; border-radius: 3px; }
.button-small { font-size: 12px; }
.button-wide { width: 100%; }
.hero { min-height: 640px; display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 50px; }
.eyebrow { margin: 0 0 22px; color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(60px, 8vw, 104px); line-height: .9; letter-spacing: -.08em; }
h1 em { color: var(--coral); font-style: normal; }
.hero-text { max-width: 370px; margin: 31px 0 34px; color: var(--muted); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.hero-art { position: relative; min-height: 430px; display: grid; place-items: center; overflow: hidden; background: var(--mint); border-radius: 50% 50% 43% 47%; transform: rotate(-7deg); }
.sun { width: 220px; height: 220px; border-radius: 50%; background: var(--coral); }
.orbit { position: absolute; width: 360px; height: 145px; border: 1px solid rgba(32,44,42,.38); border-radius: 50%; transform: rotate(24deg); }
.orbit-two { width: 430px; height: 190px; transform: rotate(-34deg); }
.art-note { position: absolute; bottom: 65px; right: 22%; transform: rotate(7deg); font-size: 14px; line-height: 1.05; text-align: right; }
.art-note strong { font: 700 28px "Space Grotesk", sans-serif; }
.footer { margin-top: auto; padding: 28px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.flash-stack { position: fixed; z-index: 2; top: 108px; right: 42px; max-width: 340px; }
.flash { padding: 14px 17px; margin-bottom: 8px; border-left: 4px solid var(--coral); color: var(--ink); background: #fffaf0; box-shadow: 0 5px 25px rgba(32,44,42,.08); font-size: 13px; }
.flash-success { border-color: #6eaf83; }
.auth-layout { min-height: 610px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; max-width: 900px; margin: 0 auto; }
.auth-intro p:last-child { max-width: 250px; margin-top: 28px; color: var(--muted); line-height: 1.6; }
.auth-intro h1 { font-size: clamp(58px, 8vw, 90px); }
.auth-card { padding: 34px; background: #fffaf0; border: 1px solid var(--line); box-shadow: 12px 12px 0 var(--mint); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.field input { width: 100%; padding: 15px 14px; color: var(--ink); background: transparent; border: 1px solid var(--line); outline: none; font: 14px "Manrope", sans-serif; }
.field input:focus { border-color: var(--coral); }
.form-foot { margin: 22px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.form-foot a { color: var(--ink); font-weight: 800; }
.dashboard { padding: 120px 0; max-width: 800px; }
.dashboard h1 { font-size: clamp(54px, 8vw, 92px); }
.dashboard-panel { display: flex; gap: 60px; margin-top: 65px; padding: 28px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.dashboard-panel > div { display: grid; gap: 8px; }
.profile-summary { display: flex; align-items: center; gap: 14px; }
.profile-avatar, .large-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.profile-avatar-fallback { color: var(--paper); background: var(--ink); font: 700 22px "Space Grotesk", sans-serif; }
.panel-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.dashboard-panel strong { font-size: 15px; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #6eaf83; }
.dashboard-links { display: flex; gap: 14px; margin-top: 34px; }
.section-page { padding: 90px 0 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 60px; }
.section-heading h1 { font-size: clamp(58px, 8vw, 92px); }
.section-lead { max-width: 250px; margin: 0 0 8px; color: var(--muted); line-height: 1.6; }
.blog-layout { display: grid; grid-template-columns: 330px 1fr; gap: 60px; align-items: start; }
.post-form { padding: 25px; background: var(--mint); }
.post-form h2 { margin: 0 0 25px; font: 700 24px "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.post-form textarea { resize: vertical; min-height: 130px; }
.field textarea { width: 100%; padding: 15px 14px; color: var(--ink); background: transparent; border: 1px solid var(--line); outline: none; font: 14px "Manrope", sans-serif; }
.field textarea:focus { border-color: var(--coral); }
.post-card { padding: 25px 0; border-top: 1px solid var(--line); }
.post-card:first-child { padding-top: 0; border-top: 0; }
.post-meta { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--coral); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.post-meta time { color: var(--muted); font-weight: 600; }
.author-line { display: flex; align-items: center; gap: 8px; }
.author-line img, .mini-avatar { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--paper); background: var(--ink); font-size: 10px; object-fit: cover; }
.author-line small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.post-card h2 { margin: 0 0 10px; font: 700 27px "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.post-card p { margin: 0; color: var(--muted); line-height: 1.7; white-space: pre-line; }
.empty-state { padding: 35px; color: var(--muted); background: rgba(205,229,215,.45); text-align: center; }
.search-form { display: flex; gap: 12px; max-width: 650px; margin-bottom: 45px; }
.search-form input { flex: 1; min-width: 0; padding: 16px; color: var(--ink); background: transparent; border: 1px solid var(--line); outline: none; font: 14px "Manrope", sans-serif; }
.search-form input:focus { border-color: var(--coral); }
.user-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.user-card { display: flex; align-items: center; gap: 16px; padding: 18px; background: #fffaf0; border: 1px solid var(--line); }
.user-card-info { min-width: 0; flex: 1; }
.chat-link { flex: 0 0 auto; padding: 8px 11px; color: var(--ink); border: 1px solid var(--line); font-size: 11px; font-weight: 800; text-decoration: none; }
.chat-link:hover { color: var(--paper); background: var(--ink); }
.avatar { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; color: var(--paper); background: var(--ink); border-radius: 50%; font: 700 19px "Space Grotesk", sans-serif; object-fit: cover; }
.user-card h2 { margin: 0 0 4px; font: 700 17px "Space Grotesk", sans-serif; }
.user-card p { margin: 0; color: var(--muted); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.settings-avatar { display: flex; align-items: center; gap: 15px; margin-bottom: 28px; }
.large-avatar { width: 68px; height: 68px; }
.settings-avatar strong { display: block; margin-bottom: 7px; font: 700 16px "Space Grotesk", sans-serif; }
.upload-label { color: var(--coral); cursor: pointer; font-size: 12px; font-weight: 800; }
.settings-avatar input[type="file"] { display: none; }
.conversation-list { max-width: 760px; }
.conversation-card { display: flex; align-items: center; gap: 16px; padding: 19px 0; border-top: 1px solid var(--line); text-decoration: none; }
.conversation-card:last-child { border-bottom: 1px solid var(--line); }
.conversation-info { min-width: 0; flex: 1; }
.conversation-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.conversation-heading h2 { margin: 0; font: 700 19px "Space Grotesk", sans-serif; }
.conversation-heading time { color: var(--muted); font-size: 11px; }
.conversation-info p { overflow: hidden; margin: 7px 0 0; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.chat-page { max-width: 760px; margin: 0 auto; padding: 55px 0 85px; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: 12px; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.chat-person { display: flex; align-items: center; gap: 14px; padding-bottom: 26px; border-bottom: 1px solid var(--ink); }
.chat-person h1 { font-size: 34px; letter-spacing: -.05em; }
.chat-person p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.message-list { min-height: 300px; padding: 25px 0; }
.message-row { display: flex; margin: 8px 0; }
.message-own { justify-content: flex-end; }
.message-bubble { max-width: min(75%, 500px); padding: 12px 15px; background: #fffaf0; border: 1px solid var(--line); }
.message-own .message-bubble { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.message-bubble p { margin: 0; line-height: 1.5; white-space: pre-line; }
.message-bubble time { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; text-align: right; }
.message-own .message-bubble time { color: rgba(243,240,232,.65); }
.message-form { display: flex; gap: 12px; align-items: end; padding-top: 20px; border-top: 1px solid var(--line); }
.message-form textarea { flex: 1; resize: none; padding: 14px; color: var(--ink); background: #fffaf0; border: 1px solid var(--line); outline: none; font: 14px "Manrope", sans-serif; }
.message-form textarea:focus { border-color: var(--coral); }
@media (max-width: 700px) { .site-shell { padding: 0 20px; } .topbar { height: 76px; } .user-name { display: none; } .hero, .auth-layout { grid-template-columns: 1fr; gap: 35px; min-height: auto; padding: 75px 0; } .hero-art { min-height: 280px; order: -1; } .hero-copy h1 { font-size: 72px; } .hero-text { margin: 24px 0; } .hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; } .auth-card { margin: 15px 0 30px; padding: 25px; } .auth-intro h1 { font-size: 70px; } .dashboard { padding: 85px 0; } .dashboard-panel { flex-direction: column; gap: 24px; margin-top: 45px; } .flash-stack { top: 85px; right: 20px; left: 20px; max-width: none; } }
@media (max-width: 700px) { .main-nav { gap: 10px; } .main-nav a { font-size: 12px; } .section-page { padding: 65px 0 80px; } .section-heading { display: block; margin-bottom: 40px; } .section-lead { margin-top: 25px; } .blog-layout { grid-template-columns: 1fr; gap: 45px; } .user-list { grid-template-columns: 1fr; } .search-form { align-items: stretch; flex-direction: column; } .dashboard-links { align-items: flex-start; flex-direction: column; } .chat-link { padding: 7px; font-size: 10px; } .chat-page { padding: 40px 0 65px; } .message-form { align-items: stretch; flex-direction: column; } .message-form .button { width: 100%; } .message-bubble { max-width: 88%; } }
