:root {
    color-scheme: light;
    --canvas: #f4f1e9;
    --surface: #fffdf8;
    --surface-soft: #ece9df;
    --ink: #1f2c25;
    --muted: #657168;
    --line: #dcded4;
    --green: #254d3a;
    --green-strong: #173a2a;
    --lime: #d8f078;
    --warm: #e7b86c;
    --focus: #9d781e;
    --shadow: 0 14px 34px rgb(31 44 37 / 6%);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --canvas: #141b17;
    --surface: #1d2721;
    --surface-soft: #26332b;
    --ink: #edf2e9;
    --muted: #b0bdb2;
    --line: #3b4940;
    --green: #b7d68b;
    --green-strong: #cce5a5;
    --lime: #d8f078;
    --warm: #edc982;
    --focus: #edc982;
    --shadow: 0 14px 34px rgb(0 0 0 / 20%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.6 "DM Sans", system-ui, sans-serif; transition: background-color .18s ease, color .18s ease; }
body, button, input, textarea { font-family: "DM Sans", system-ui, sans-serif; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
.topbar { position: sticky; z-index: 5; top: 0; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 max(calc((100vw - 1180px) / 2), 30px); background: var(--canvas); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 190px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 700; letter-spacing: -.55px; }
.brand-mark { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 13px 13px 13px 4px; background: var(--green); color: var(--lime); font-size: 14px; font-weight: 700; letter-spacing: -1px; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1.5px; }
.topbar nav { display: flex; align-self: stretch; align-items: center; gap: 28px; }
.topbar nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; transition: color .15s ease; }
.topbar nav a:hover, .topbar nav a.nav-active { color: var(--ink); }
.topbar nav a.nav-active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); content: ""; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.theme-toggle:hover { border-color: var(--green); transform: translateY(-1px); }
.theme-toggle [data-theme-icon] { color: var(--green); font-size: 16px; }
.sign-in { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--green); color: var(--canvas); font-size: 11px; font-weight: 700; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.sign-in:hover, .send:hover { transform: translateY(-1px); background: var(--green-strong); }
:root[data-theme="dark"] .sign-in { color: #111b14; }
.sign-in span { color: var(--lime); }
.account { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.account-name { max-width: 120px; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account form { margin: 0; }
.avatar { display: grid; width: 35px; height: 35px; flex: none; place-items: center; border-radius: 50%; background: var(--green); color: var(--lime); font-size: 13px; font-weight: 700; }
.text-button { padding: 6px; border: 0; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.eyebrow { margin-bottom: 9px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: 1.75px; }
.public-layout { width: min(1120px, calc(100% - 56px)); margin: 0 auto; }
.public-intro { position: relative; display: flex; min-height: 345px; align-items: center; justify-content: space-between; overflow: hidden; padding: 54px 62px; border-bottom: 1px solid var(--line); }
.public-intro::before { position: absolute; top: 18px; right: 205px; width: 1px; height: 285px; background: var(--line); content: ""; transform: rotate(18deg); }
.public-intro h1, .welcome h1 { margin: 0 0 16px; font: 400 clamp(37px, 5.5vw, 63px)/1.06 "DM Serif Display", Georgia, serif; letter-spacing: -1.4px; }
.public-intro h1 em, .welcome h1 em { color: var(--green); font-weight: 400; }
.public-intro>div:first-child>p:not(.eyebrow) { max-width: 460px; margin-bottom: 17px; color: var(--muted); font-size: 13px; }
.hero-link { display: inline-flex; align-items: center; gap: 9px; padding-bottom: 4px; border-bottom: 1px solid var(--green); color: var(--green); font-size: 11px; font-weight: 700; text-decoration: none; }
.hero-stamp { position: relative; display: flex; width: 176px; height: 176px; flex: none; flex-direction: column; justify-content: center; margin-right: 34px; padding: 23px; border: 1px solid var(--green); border-radius: 50%; color: var(--green); transform: rotate(7deg); }
.hero-stamp::before { position: absolute; inset: 7px; border: 1px dashed var(--green); border-radius: 50%; content: ""; opacity: .5; }
.hero-stamp span { z-index: 1; font-size: 9px; letter-spacing: .5px; }
.hero-stamp strong { z-index: 1; font: 400 27px/.97 "DM Serif Display", Georgia, serif; }
.hero-stamp i { position: absolute; right: 24px; bottom: 25px; color: var(--warm); font-size: 22px; font-style: normal; }
.publish-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 0; }
.publish-card { display: flex; flex-direction: column; gap: 11px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.publish-card .eyebrow { margin: 0; }
.publish-card h2 { margin: -4px 0 0; font: 400 21px "DM Serif Display", Georgia, serif; }
.publish-card input:not([type=file]), .publish-card textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); color: var(--ink); font-size: 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.photo-picker { display: flex; min-height: 42px; align-items: center; gap: 13px; padding: 9px 12px; border: 1px dashed var(--line); border-radius: 7px; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }
.photo-picker small { color: var(--muted); font-size: 9px; font-weight: 400; }
.send { display: inline-flex; width: fit-content; min-height: 38px; align-items: center; justify-content: center; gap: 11px; margin: 0; padding: 0 14px; border: 0; border-radius: 999px; background: var(--green); color: var(--canvas); font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
:root[data-theme="dark"] .send { color: #111b14; }
.member-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 20px 0 0; padding: 17px 20px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.member-callout strong { font-size: 13px; }
.member-callout p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.public-section { padding-top: 42px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.section-title .eyebrow { margin-bottom: 3px; }
.section-title h2 { margin: 0; font: 400 27px "DM Serif Display", Georgia, serif; letter-spacing: -.35px; }
.section-title>span { padding-bottom: 4px; color: var(--muted); font-size: 10px; }
.blog-card { position: relative; max-width: 770px; padding: 18px 24px 18px 20px; margin-bottom: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: transform .15s ease, border-color .15s ease; }
.blog-card:hover { border-color: color-mix(in srgb, var(--green), var(--line) 55%); transform: translateX(3px); }
.blog-meta { display: flex; gap: 11px; color: var(--muted); font-size: 10px; }
.blog-meta span { color: var(--green); font-weight: 700; }
.blog-card h3 { max-width: 650px; margin: 8px 0 6px; font: 400 20px "DM Serif Display", Georgia, serif; }
.blog-card>p { max-width: 690px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.read-mark { position: absolute; top: 20px; right: 20px; color: var(--warm); }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.activity-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.activity-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--surface-soft); }
.activity-copy { padding: 13px 14px 15px; }
.activity-copy .eyebrow { margin: 0 0 4px; font-size: 8px; }
.activity-copy h3 { margin: 0 0 5px; font-size: 13px; line-height: 1.35; }
.activity-copy p:not(.eyebrow) { margin: 0 0 8px; color: var(--muted); font-size: 10px; line-height: 1.65; white-space: pre-line; }
.activity-copy small { color: var(--muted); font-size: 9px; }
.public-empty { padding: 26px 18px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface); text-align: center; }
.empty-mark { color: var(--warm); font-size: 21px; }
.public-empty h3 { margin: 5px 0; font: 400 18px "DM Serif Display", Georgia, serif; }
.public-empty p { margin: 0; color: var(--muted); font-size: 11px; }
.pagination { display: flex; justify-content: center; margin: 18px 0; color: var(--green); font-size: 11px; }
.pagination nav { display: flex; gap: 11px; }
.pagination a { color: var(--green); text-decoration: none; }
.public-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 42px; padding: 17px 0 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.public-footer::after { color: var(--green); content: "GPI · TUMBUH BARENG"; font-size: 8px; font-weight: 700; letter-spacing: 1.25px; }
.notice { padding: 10px 13px; margin: 14px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--green); font-size: 11px; }
.notice.error { color: #a8493c; }
.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; }

/* Members-only conversation */
.layout { display: grid; width: min(1160px, calc(100% - 56px)); grid-template-columns: 225px minmax(0, 1fr) 208px; align-items: start; gap: 25px; margin: 36px auto 54px; }
.welcome { position: sticky; top: 105px; padding-top: 14px; }
.welcome .eyebrow { margin-bottom: 12px; }
.welcome h1 { font-size: 34px; letter-spacing: -.65px; }
.welcome .intro { color: var(--muted); font-size: 12px; }
.welcome-foot { display: flex; align-items: center; gap: 11px; padding-top: 17px; margin-top: 31px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.cross { color: var(--warm); font-size: 24px; }
.feed { min-width: 0; }
.composer, .join-note, .post, .about-card, .empty { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.composer { padding: 17px; box-shadow: var(--shadow); }
.composer-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; color: var(--muted); font-size: 11px; font-weight: 600; }
.composer input:not([type=file]), .composer textarea { display: block; width: 100%; padding: 9px 1px; border: 0; border-bottom: 1px solid var(--line); outline: 0; background: transparent; color: var(--ink); font-size: 12px; resize: vertical; }
.composer textarea { min-height: 65px; }
.composer input:focus-visible, .composer textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.composer-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.attach { color: var(--green); font-size: 14px; font-weight: 700; cursor: pointer; }
.attach span { font-size: 10px; }
.image-note { color: var(--muted); font-size: 8px; }
.composer-actions .send { margin-left: auto; }
.join-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; background: var(--surface-soft); }
.join-note strong { font-size: 12px; }
.join-note p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.join-note>a { flex: none; color: var(--green); font-size: 10px; font-weight: 700; text-decoration: none; }
.feed-heading { display: flex; align-items: center; justify-content: space-between; margin: 26px 1px 11px; }
.feed-heading h2 { margin: 0; font: 400 21px "DM Serif Display", Georgia, serif; }
.feed-heading span { color: var(--muted); font-size: 9px; }
.post { padding: 16px 17px; margin-bottom: 11px; }
.post-head { display: flex; align-items: center; gap: 9px; }
.avatar-soft { background: var(--surface-soft); color: var(--green); }
.post-head strong, .reply strong { display: block; font-size: 10px; }
.post-head time, .reply time { display: block; color: var(--muted); font-size: 8px; }
.post h3 { margin: 13px 0 5px; font-size: 13px; }
.post-body { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.post-image { display: block; max-width: 100%; max-height: 390px; margin-top: 12px; border-radius: 7px; object-fit: cover; }
.reply-count { padding-top: 9px; margin-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.reply { display: flex; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.avatar-small { width: 25px; height: 25px; background: var(--surface-soft); color: var(--green); font-size: 9px; }
.reply p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.reply-form { display: flex; align-items: center; gap: 8px; padding: 4px 5px 4px 11px; margin-top: 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); }
.reply-form input { min-width: 0; flex: 1; padding: 5px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.reply-form button { width: 27px; height: 27px; border: 0; border-radius: 50%; background: var(--green); color: var(--canvas); cursor: pointer; }
.sidebar { padding-top: 2px; }
.about-card { padding: 17px; }
.about-icon { color: var(--warm); font-size: 19px; }
.about-card .eyebrow { margin: 8px 0 5px; font-size: 8px; }
.about-card h2 { margin: 0 0 7px; font: 400 19px "DM Serif Display", Georgia, serif; }
.about-card>p:not(.eyebrow) { color: var(--muted); font-size: 10px; line-height: 1.75; }
.about-card hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.about-card .community-rule { font-size: 9px !important; }
.community-rule strong { color: var(--ink); }
.footer-note { margin-top: 15px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.empty { padding: 29px 18px; text-align: center; }
.empty h3 { margin: 7px 0 4px; font: 400 18px "DM Serif Display", Georgia, serif; }
.empty p { margin: 0; color: var(--muted); font-size: 10px; }
.mobile-foot { display: none; }

@media (max-width: 980px) {
    .topbar { padding-inline: 22px; gap: 12px; }
    .brand { min-width: 158px; }
    .topbar nav { gap: 17px; }
    .layout { grid-template-columns: 190px minmax(0, 1fr); gap: 21px; }
    .sidebar { display: none; }
    .public-intro { padding-inline: 38px; }
}
@media (max-width: 700px) {
    .topbar { min-height: 65px; padding-inline: 15px; gap: 8px; }
    .brand { min-width: 0; gap: 8px; font-size: 14px; }
    .brand-mark { width: 34px; height: 34px; }
    .brand small { font-size: 7px; letter-spacing: 1.1px; }
    .topbar nav { display: none; }
    .theme-toggle { width: 38px; min-width: 38px; height: 38px; min-height: 38px; padding: 0; }
    .theme-toggle [data-theme-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .sign-in { padding: 9px 11px; font-size: 10px; }
    .account { gap: 6px; }
    .account-name { display: none; }
    .public-layout { width: calc(100% - 30px); }
    .public-intro { min-height: 310px; padding: 38px 8px 33px; }
    .public-intro::before { right: 95px; height: 240px; }
    .public-intro h1 { max-width: 450px; font-size: clamp(39px, 11vw, 55px); }
    .public-intro>div:first-child>p:not(.eyebrow) { max-width: 310px; font-size: 12px; }
    .hero-stamp { position: absolute; right: -25px; bottom: 9px; width: 96px; height: 96px; padding: 14px; opacity: .24; }
    .hero-stamp span { font-size: 6px; }
    .hero-stamp strong { font-size: 17px; }
    .hero-stamp i { right: 14px; bottom: 13px; font-size: 13px; }
    .publish-grid { grid-template-columns: 1fr; }
    .public-section { padding-top: 33px; }
    .section-title h2 { font-size: 23px; }
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .activity-copy { padding: 10px; }
    .activity-copy h3 { font-size: 11px; }
    .activity-copy p:not(.eyebrow) { font-size: 9px; }
    .member-callout { align-items: flex-start; flex-direction: column; }
    .layout { display: block; width: calc(100% - 30px); margin: 20px auto 38px; }
    .welcome { position: static; padding: 6px 2px 19px; }
    .welcome .eyebrow { margin-bottom: 7px; }
    .welcome h1 { max-width: 430px; margin-bottom: 7px; font-size: 31px; }
    .welcome h1 br { display: none; }
    .welcome .intro { max-width: 430px; margin: 0; font-size: 11px; }
    .welcome-foot { display: none; }
    .composer, .post { padding: 14px; }
    .mobile-foot { display: block; padding: 8px 0 20px; color: var(--muted); font-size: 9px; text-align: center; }
}
@media (max-width: 390px) {
    .brand { font-size: 13px; }
    .brand small { font-size: 6px; }
    .sign-in { padding: 8px; font-size: 9px; }
    .photo-grid { grid-template-columns: 1fr 1fr; }
    .section-title>span { max-width: 85px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
