:root {
    color-scheme: light;
    --ink: #20231f;
    --muted: #666b62;
    --paper: #f6f4ee;
    --white: #fffefa;
    --tomato: #d9573b;
    --green: #315448;
    --line: rgba(32, 35, 31, .15);
    --shadow: 0 16px 48px rgba(28, 37, 30, .08);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--green); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
    min-height: 78px;
    padding: 0 max(30px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}
.wordmark {
    color: var(--ink);
    font: 700 28px/1 Georgia, serif;
    letter-spacing: -.8px;
    text-decoration: none;
    white-space: nowrap;
}
.wordmark span { color: var(--tomato); }
.topbar nav { display: flex; align-items: center; gap: 24px; }
.topbar nav > a, .account-menu summary {
    color: #434940;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.topbar nav > a:hover, .footer a:hover { color: var(--tomato); }
.nav-cta { color: var(--green) !important; }
.account-menu { position: relative; cursor: pointer; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after { content: "⌄"; padding-left: 6px; }
.account-menu-items {
    position: absolute;
    z-index: 5;
    top: 28px;
    right: 0;
    width: 190px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.account-menu-items a, .account-menu-items button {
    display: block;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 7px;
    color: var(--ink);
    background: transparent;
    font-size: 12px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.account-menu-items a:hover, .account-menu-items button:hover { background: var(--paper); }

.hero {
    width: min(1180px, calc(100% - 60px));
    min-height: 595px;
    margin: 0 auto;
    padding: 58px 0;
    display: grid;
    grid-template-columns: 1fr .92fr;
    align-items: center;
    gap: 52px;
}
.hero-copy { padding: 24px 0; }
.eyebrow {
    margin: 0 0 16px;
    color: var(--tomato);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; background: var(--tomato); border-radius: 50%; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 500; }
.hero h1 { max-width: 690px; margin: 0; font-size: clamp(50px, 6.4vw, 84px); letter-spacing: -3px; line-height: .99; }
.lead { max-width: 530px; color: #596056; font-size: 16px; line-height: 1.8; }
.hero .lead { max-width: 470px; margin: 22px 0 26px; }
.button {
    min-height: 46px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 1px solid var(--green);
    border-radius: 4px;
    color: white;
    background: var(--green);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); background: #263f36; }
.button-quiet { color: var(--green); background: transparent; }
.button-quiet:hover { color: white; }
.button-light { color: var(--ink); border-color: var(--white); background: var(--white); }
.button-light:hover { color: var(--ink); background: #f1eee5; }
.button-danger { border-color: #953d30; background: #953d30; }
.fine-print, .field-hint { color: var(--muted); font-size: 11px; line-height: 1.7; }
.hero .fine-print { margin-top: 16px; }
.hero-image { position: relative; height: 475px; overflow: hidden; border-radius: 48% 48% 8px 8px; background: #d6d2c5; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.image-caption {
    position: absolute;
    bottom: 22px;
    left: 22px;
    padding: 13px 16px;
    border-radius: 4px;
    color: var(--ink);
    background: rgba(255, 254, 250, .92);
    font: 500 15px/1.4 Georgia, serif;
}
.belief { padding: 23px 20px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.belief p { margin: 0; font: 500 clamp(19px, 3vw, 30px)/1.35 Georgia, serif; }
.belief strong { color: var(--green); font-weight: 500; }
.home-sections { width: min(1120px, calc(100% - 60px)); margin: auto; padding: 95px 0 105px; }
.home-sections h2, .home-join h2 { max-width: 630px; margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; }
.value-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value-grid article { padding-top: 20px; border-top: 1px solid var(--line); }
.value-grid article > span { color: var(--tomato); font-size: 11px; font-weight: 700; }
.value-grid h3 { margin: 18px 0 9px; font-size: 23px; }
.value-grid p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.home-join { padding: 72px 24px; color: white; background: var(--green); text-align: center; }
.home-join .eyebrow { color: #e6b9a7; }
.home-join h2 { margin: 0 auto; }
.home-join p:not(.eyebrow) { color: #e5ebe6; font-size: 14px; }
.home-join .button { margin-top: 14px; }

.footer {
    min-height: 92px;
    padding: 24px max(30px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}
.footer .wordmark { font-size: 22px; }
.footer a { color: inherit; text-decoration: none; }
.flash-stack { position: fixed; z-index: 10; top: 90px; right: 20px; width: min(390px, calc(100% - 40px)); }
.flash { margin-bottom: 8px; padding: 13px 15px; border: 1px solid #a5b7a5; border-radius: 5px; color: #223e2d; background: #f0f7ed; box-shadow: var(--shadow); font-size: 13px; }
.flash.error { border-color: #ddb8ae; color: #772e23; background: #fff2ec; }

.narrow-page { width: min(560px, calc(100% - 36px)); min-height: 65vh; margin: 0 auto; padding: 72px 0 90px; }
.narrow-page h1, .content-page > h1, .welcome-panel h1, .member-heading h1 { margin: 0 0 14px; font-size: clamp(42px, 6vw, 64px); line-height: 1.03; letter-spacing: -1.8px; }
.narrow-page > p:not(.eyebrow), .page-intro { color: var(--muted); font-size: 14px; line-height: 1.8; }
.form-card { margin-top: 28px; padding: 25px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); box-shadow: 0 8px 30px rgba(28, 37, 30, .035); }
.field { margin: 0 0 19px; }
.field label, .invitation-result > label { display: block; margin-bottom: 7px; color: #333a33; font-size: 12px; font-weight: 700; }
.field input:not([type=checkbox]):not([type=hidden]), .field select, .field textarea, .invitation-result input, .message-form textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #c8cbc2;
    border-radius: 4px;
    color: var(--ink);
    background: #fff;
    outline: none;
}
.field textarea, .message-form textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .message-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(49, 84, 72, .12); }
.field input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--green); }
.field ul { margin: 6px 0; padding-left: 18px; color: #8a382d; font-size: 12px; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.check-field { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; line-height: 1.6; }
.check-field input { flex: 0 0 auto; margin: 2px 0 0; }
.form-errors, .field-error { color: #8b3328; font-size: 12px; line-height: 1.6; }
.form-errors { margin: 14px 0; padding: 11px 13px; border: 1px solid #e2bbb3; border-radius: 4px; background: #fff1ec; }
.form-note { margin-top: 17px; color: var(--muted); font-size: 12px; }
.form-note a { color: var(--green); font-weight: 700; }
.content-page { width: min(1120px, calc(100% - 48px)); min-height: 65vh; margin: 0 auto; padding: 58px 0 90px; }
.profile-page { max-width: 820px; }
.profile-form { padding: 30px; }
.profile-form .form-section { padding: 0 0 27px; margin: 0 0 27px; border-bottom: 1px solid var(--line); }
.form-section h2, .section-block h2, .safety-note h2 { margin: 0 0 10px; font-size: 28px; }
.form-section > p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.form-section .field ul { list-style: none; padding: 0; }
.form-section .field ul li { margin: 7px 0; }
.profile-form .button { min-width: 200px; }
.location-section { padding-top: 4px !important; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 18px 0; }
.media-choice { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: white; }
.media-choice img, .public-media img, .public-media video { width: 100%; height: 190px; object-fit: cover; }
.media-choice > span { display: flex; align-items: center; gap: 7px; padding: 8px; font-size: 11px; }
.media-choice input { accent-color: var(--tomato); }
.video-placeholder { display: grid; min-height: 120px; place-items: center; color: var(--muted); background: #e6e4db; }
.profile-form input[type=file] { width: 100%; color: var(--muted); font-size: 12px; }
.welcome-panel { min-height: 310px; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 8px; background: #e8e8dc; }
.welcome-panel h1 { font-size: clamp(45px, 5vw, 66px); }
.welcome-panel .page-intro { max-width: 540px; }
.welcome-mark { color: var(--green); font: 700 190px/.7 Georgia, serif; opacity: .2; }
.welcome-mark span { color: var(--tomato); }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.section-block { margin-top: 65px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > a { margin-bottom: 8px; color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.person-photo { position: relative; display: grid; height: 260px; overflow: hidden; place-items: center; background: #e4e1d7; text-decoration: none; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.person-photo:hover img { transform: scale(1.03); }
.photo-placeholder { color: var(--green); font: 500 86px/1 "Fraunces", Georgia, serif; }
.distance-chip { position: absolute; right: 10px; bottom: 10px; padding: 6px 9px; border-radius: 30px; color: var(--ink); background: rgba(255,254,250,.93); font-size: 10px; }
.person-copy { padding: 15px; }
.person-copy h3 { margin: 0; font-size: 21px; }
.person-copy h3 a { color: var(--ink); text-decoration: none; }
.person-copy p { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-row span, .member-facts span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 30px; color: #435047; background: #f7f6f1; font-size: 10px; }
.safety-note { margin-top: 62px; padding: 26px; border-left: 3px solid var(--tomato); background: #eeeae1; }
.safety-note p { color: #545c52; font-size: 13px; line-height: 1.75; }
.safety-note a { font-size: 12px; font-weight: 700; }
.empty-state { margin: 30px 0; padding: 34px; border: 1px dashed #b7b9af; border-radius: 6px; background: rgba(255,254,250,.5); }
.empty-state h2 { margin: 0; font-size: 28px; }
.empty-state p { max-width: 600px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }
.member-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.member-heading .lead { max-width: 670px; }
.action-stack { min-width: 150px; display: grid; gap: 9px; }
.action-stack .button { width: 100%; }
.text-button, .link-button { padding: 7px 0; border: 0; color: #874037; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.member-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.public-media { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 30px; }
.public-media img, .public-media video { height: 280px; border-radius: 5px; background: #e4e1d7; }
.conversation-list { margin-top: 28px; border-top: 1px solid var(--line); }
.conversation-item { padding: 17px 7px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.avatar { width: 45px; height: 45px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #e4e6dc; font: 500 21px Georgia, serif; }
.conversation-copy { min-width: 0; flex: 1; display: grid; gap: 4px; }
.conversation-copy strong { font-size: 13px; }
.conversation-copy span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.chat-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.chat-heading h1 { font-size: 46px; }
.message-thread { min-height: 280px; max-height: 58vh; overflow-y: auto; margin: 22px 0; padding: 22px; display: grid; align-content: start; gap: 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,254,250,.7); }
.message-bubble { max-width: min(76%, 600px); padding: 12px 14px; border-radius: 9px 9px 9px 2px; background: #e9e8df; }
.message-bubble.mine { justify-self: end; border-radius: 9px 9px 2px 9px; color: white; background: var(--green); }
.message-bubble p { margin: 0; font-size: 13px; line-height: 1.65; }
.message-bubble time { display: block; margin-top: 7px; opacity: .7; font-size: 9px; }
.message-form { display: flex; align-items: end; gap: 12px; }
.message-form textarea { flex: 1; }
.report-card { margin: 15px 0; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.report-card > p:not(.eyebrow) { font-size: 13px; line-height: 1.65; }
.invitation-result { overflow-wrap: anywhere; }
.invitation-result input { font-size: 11px; }
.legal-page { width: min(760px, calc(100% - 40px)); min-height: 70vh; margin: 0 auto; padding: 62px 0 90px; }
.legal-page h1 { margin: 0 0 14px; font-size: clamp(45px, 6vw, 66px); }
.legal-page .lead { margin-bottom: 38px; }
.legal-page section { padding: 23px 0; border-top: 1px solid var(--line); }
.legal-page h2 { margin: 0 0 9px; font-size: 23px; }
.legal-page section p { margin: 0 0 11px; color: #50564e; font-size: 13px; line-height: 1.8; }
.legal-page section p:last-child { margin-bottom: 0; }
.legal-page section ul { margin: 0 0 11px; padding-left: 20px; color: #50564e; font-size: 13px; line-height: 1.8; }
.legal-page section li { margin-bottom: 5px; }
.legal-page strong { color: #853b2b; }
.legal-footer { margin-top: 35px; 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; }

@media (max-width: 800px) {
    .topbar { min-height: 70px; padding: 0 22px; }
    .topbar nav { gap: 14px; }
    .topbar nav > a { font-size: 11px; }
    .hero { min-height: unset; padding: 45px 0; grid-template-columns: 1fr .82fr; gap: 25px; }
    .hero-image { height: 380px; }
    .profile-grid { grid-template-columns: repeat(2, 1fr); }
    .welcome-mark { font-size: 145px; }
}
@media (max-width: 580px) {
    .topbar { padding: 12px 18px; align-items: flex-start; flex-direction: column; gap: 11px; }
    .topbar nav { width: 100%; justify-content: space-between; gap: 9px; }
    .topbar nav > a, .account-menu summary { font-size: 10px; }
    .topbar .nav-cta { display: none; }
    .hero { width: min(100% - 36px, 440px); padding: 35px 0 42px; grid-template-columns: 1fr; gap: 25px; }
    .hero h1 { font-size: clamp(48px, 12vw, 66px); letter-spacing: -2px; }
    .hero-image { height: 340px; border-radius: 46% 46% 6px 6px; }
    .home-sections { width: calc(100% - 40px); padding: 65px 0; }
    .value-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
    .value-grid article { padding-top: 15px; }
    .footer { padding: 20px; flex-wrap: wrap; }
    .footer > span:nth-child(2) { display: none; }
    .narrow-page { padding-top: 48px; }
    .form-card { padding: 18px; }
    .content-page { width: calc(100% - 34px); padding-top: 38px; }
    .profile-form { padding: 18px; }
    .profile-grid { grid-template-columns: 1fr; }
    .person-photo { height: 300px; }
    .welcome-panel { padding: 25px 22px; }
    .welcome-mark { display: none; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .member-heading { align-items: flex-start; flex-direction: column; }
    .action-stack { width: 100%; grid-template-columns: 1fr 1fr; }
    .action-stack > form:first-child { grid-column: 1/-1; }
    .chat-heading { align-items: flex-start; flex-direction: column; }
    .message-form { align-items: stretch; flex-direction: column; }
    .message-form .button { align-self: flex-end; }
    .report-card .action-row { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
