:root {
    --ink: #12231d; --ink-soft: #5d6d66; --forest: #123e31; --forest-bright: #1b5a46; --forest-deep: #081d17;
    --lime: #c7ee9a; --cream: #f4f1e9; --paper: #fbfaf6; --white: #fff; --gold: #d6b16c; --coral: #e98261;
    --line: rgba(18,35,29,.12); --serif: "Iowan Old Style", Baskerville, Georgia, serif; --sans: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; }
.site-header { width: min(1240px, calc(100% - 48px)); min-height: 98px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--forest-deep); text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(214,177,108,.8); border-radius: 14px; color: var(--gold); background: rgba(255,255,255,.04); font: 700 1.35rem/1 var(--serif); }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 1.12rem/1.05 var(--serif); }
.brand small { margin-top: 5px; color: var(--ink-soft); font-size: .61rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.brand-light { color: var(--white); }
.brand-light small { color: rgba(255,255,255,.53); }
.site-nav { display: flex; align-items: center; gap: 30px; color: rgba(255,255,255,.72); font-size: .82rem; }
.site-nav > a:not(.button) { position: relative; text-decoration: none; }
.site-nav > a:not(.button)::after { content: ""; width: 0; height: 1px; position: absolute; left: 0; bottom: -6px; background: var(--lime); transition: width .2s ease; }
.site-nav > a:not(.button):hover { color: var(--white); }
.site-nav > a:not(.button):hover::after { width: 100%; }
.button { min-height: 50px; padding: 12px 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; font-size: .82rem; font-weight: 750; text-decoration: none; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 9px 17px; }
.button-glass { color: var(--white); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.button-glass:hover { border-color: rgba(199,238,154,.62); background: rgba(255,255,255,.12); }
.button-light { color: var(--forest-deep); background: var(--lime); box-shadow: 0 14px 38px rgba(113,164,88,.2); }
.button-light:hover { background: #d7f7b2; }
.button-primary { color: var(--white); background: var(--forest-bright); }
.button-full { width: 100%; }

.welcome-hero { min-height: 780px; position: relative; color: var(--white); overflow: hidden; background: var(--forest-deep); }
.welcome-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 780px; pointer-events: none; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000, transparent 88%); }
.hero-modern { width: min(1240px, calc(100% - 48px)); min-height: 682px; margin: 0 auto; padding: 62px 0 100px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(400px,.85fr); align-items: center; gap: clamp(55px,8vw,120px); position: relative; }
.hero-content { position: relative; z-index: 2; }
.launch-pill { width: max-content; max-width: 100%; margin-bottom: 28px; padding: 8px 13px 8px 10px; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.055); font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.launch-pill span { width: 8px; height: 8px; display: block; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 5px rgba(199,238,154,.1); }
.hero-modern h1 { max-width: 790px; margin: 0; font: 500 clamp(4rem,7.4vw,7.65rem)/.92 var(--serif); letter-spacing: -.06em; }
.hero-modern h1 em { color: var(--lime); font-weight: 400; }
.hero-content > p { max-width: 650px; margin: 30px 0 0; color: rgba(255,255,255,.65); font-size: clamp(1rem,1.45vw,1.17rem); line-height: 1.75; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.privacy-note { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.58); font-size: .75rem; }
.lock-icon { width: 17px; height: 14px; position: relative; display: inline-block; border: 1.5px solid rgba(199,238,154,.75); border-radius: 4px; }
.lock-icon::before { content: ""; width: 8px; height: 7px; position: absolute; left: 3px; top: -7px; border: 1.5px solid rgba(199,238,154,.75); border-bottom: 0; border-radius: 7px 7px 0 0; }
.hero-aurora { position: absolute; pointer-events: none; border-radius: 50%; }
.hero-aurora-one { width: 480px; height: 480px; right: -220px; top: -100px; background: radial-gradient(circle, rgba(63,164,123,.24), transparent 68%); }
.hero-aurora-two { width: 420px; height: 420px; left: 28%; bottom: -280px; background: radial-gradient(circle, rgba(199,238,154,.13), transparent 68%); }

.portal-preview { min-height: 450px; position: relative; z-index: 2; overflow: hidden; color: var(--ink); border: 1px solid rgba(255,255,255,.16); border-radius: 28px; background: rgba(245,248,243,.96); box-shadow: 0 45px 90px rgba(0,0,0,.35); transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.portal-preview::before { content: ""; width: 180px; height: 180px; position: absolute; right: -50px; bottom: -50px; background: radial-gradient(circle, rgba(199,238,154,.7), transparent 68%); }
.preview-topbar { height: 64px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.78); }
.preview-brand { display: flex; align-items: center; gap: 9px; color: var(--forest); font-size: .72rem; font-weight: 800; }
.preview-brand > span { width: 27px; height: 27px; display: grid; place-items: center; color: var(--white); background: var(--forest); border-radius: 8px; font: 700 .8rem var(--serif); }
.preview-avatar { width: 30px; height: 30px; display: grid; place-items: center; color: var(--forest-deep); background: #d7e3db; border-radius: 50%; font-size: .56rem; font-weight: 800; }
.preview-body { padding: 25px; }
.preview-greeting span, .preview-greeting strong { display: block; }
.preview-greeting span { color: var(--ink-soft); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.preview-greeting strong { margin-top: 3px; font: 500 1.25rem var(--serif); }
.preview-grid { margin-top: 21px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.preview-card { position: relative; overflow: hidden; border: 1px solid rgba(18,35,29,.09); border-radius: 17px; background: var(--white); box-shadow: 0 10px 30px rgba(16,48,37,.06); }
.tree-card { min-height: 225px; padding: 17px; }
.preview-label { display: flex; align-items: center; gap: 8px; font-size: .67rem; font-weight: 800; }
.mini-icon { width: 21px; height: 21px; display: block; border-radius: 7px; background: #e5f1d6; }
.tree-nodes { height: 140px; position: relative; }
.node { width: 38px; height: 38px; position: absolute; z-index: 2; display: grid; place-items: center; color: var(--forest); background: #e2ece5; border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 5px 14px rgba(16,48,37,.12); font-size: .55rem; font-weight: 800; }
.node-one { left: calc(50% - 19px); top: 20px; color: #3d2b1f; background: #eadbc8; }
.node-two { left: 19%; bottom: 15px; }
.node-three { right: 19%; bottom: 15px; color: #713f30; background: #f3d5ca; }
.tree-line { height: 1px; position: absolute; display: block; background: #b7c9bd; transform-origin: left; }
.line-one { width: 80px; left: 50%; top: 58px; transform: rotate(58deg); }
.line-two { width: 80px; left: 50%; top: 58px; transform: rotate(122deg); }
.line-three { width: 48%; left: 26%; bottom: 33px; }
.tree-card > small { color: var(--ink-soft); font-size: .6rem; }
.preview-stack { display: grid; gap: 12px; }
.event-card, .archive-card { min-height: 106px; padding: 15px; display: flex; align-items: center; gap: 12px; }
.event-card { background: #e9f1de; }
.event-date { width: 46px; height: 54px; display: grid; place-items: center; align-content: center; color: var(--forest); background: var(--white); border-radius: 12px; font-size: .5rem; font-weight: 800; letter-spacing: .08em; }
.event-date b { font-size: 1.15rem; line-height: 1.1; }
.event-card small, .event-card strong, .archive-card small, .archive-card strong { display: block; }
.event-card small, .archive-card small { color: var(--ink-soft); font-size: .52rem; }
.event-card strong, .archive-card strong { margin-top: 3px; font: 600 .75rem var(--serif); }
.archive-card { background: #f1e8dd; }
.photo-stack { width: 50px; height: 52px; position: relative; flex: 0 0 50px; }
.photo-stack i { width: 34px; height: 42px; position: absolute; display: block; border: 3px solid var(--white); border-radius: 7px; background: linear-gradient(145deg,#b6c9b1,#6e957f); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.photo-stack i:nth-child(1) { left: 0; top: 7px; transform: rotate(-10deg); }
.photo-stack i:nth-child(2) { left: 9px; top: 4px; transform: rotate(3deg); background: linear-gradient(145deg,#edc99a,#b77754); }
.photo-stack i:nth-child(3) { left: 16px; top: 8px; transform: rotate(11deg); background: linear-gradient(145deg,#d9cbd1,#87717e); }
.preview-members { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); }
.member-dots { display: flex; }
.member-dots i { width: 28px; height: 28px; margin-left: -6px; display: grid; place-items: center; color: var(--forest); background: #dbe8df; border: 2px solid var(--paper); border-radius: 50%; font-size: .45rem; font-style: normal; font-weight: 800; }
.member-dots i:first-child { margin-left: 0; }
.member-dots i:nth-child(2) { background: #ead8c5; }
.member-dots i:nth-child(3) { background: #f0d5cd; }
.member-dots i:last-child { color: var(--white); background: var(--forest); }
.preview-members small { font-size: .55rem; }

.trust-bar { min-height: 90px; padding: 20px max(24px, calc((100vw - 1080px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--ink-soft); border-bottom: 1px solid var(--line); background: var(--white); font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.trust-bar span { display: flex; align-items: center; gap: 12px; }
.trust-dot { width: 6px; height: 6px; display: block; background: var(--coral); border-radius: 50%; }
.eyebrow { margin: 0; color: var(--forest-bright); font-size: .69rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.story-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 135px 0 145px; display: grid; grid-template-columns: .62fr 1.38fr; gap: 80px; }
.story-kicker { display: flex; align-items: flex-start; gap: 18px; }
.section-number { color: var(--coral); font: italic 1rem var(--serif); }
.story-copy h2, .portal-heading h2, .closing-section h2 { margin: 0; font: 500 clamp(3rem,5.5vw,5.8rem)/.98 var(--serif); letter-spacing: -.055em; }
.story-copy > p { max-width: 710px; margin: 30px 0 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.8; }
.portal-section { padding: 120px max(24px, calc((100vw - 1180px)/2)) 135px; background: #eef0e9; }
.portal-heading { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 80px; }
.portal-heading .eyebrow { margin-bottom: 18px; }
.portal-heading h2 { max-width: 800px; }
.portal-heading > p { margin: 0 0 8px; color: var(--ink-soft); }
.bento-grid { margin-top: 68px; display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: repeat(3,minmax(300px,auto)); gap: 18px; }
.bento-card { min-height: 300px; padding: 34px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(18,35,29,.08); border-radius: 24px; background: var(--white); box-shadow: 0 18px 50px rgba(13,45,34,.055); }
.bento-index { position: absolute; right: 26px; top: 22px; color: rgba(18,35,29,.28); font: italic .85rem var(--serif); }
.bento-card h3 { margin: 0 0 8px; font: 500 1.75rem var(--serif); }
.bento-card p { max-width: 520px; margin: 0; color: var(--ink-soft); font-size: .9rem; }
.bento-tree { grid-row: span 2; min-height: 618px; color: var(--white); background: var(--forest); }
.bento-tree .bento-index, .bento-tree p { color: rgba(255,255,255,.58); }
.family-tree-icon { width: min(380px,82%); height: 300px; margin: 15px auto 0; position: relative; }
.family-tree-icon::before, .family-tree-icon::after { content: ""; position: absolute; background: rgba(199,238,154,.36); }
.family-tree-icon::before { width: 1px; height: 150px; left: 50%; top: 62px; }
.family-tree-icon::after { width: 64%; height: 1px; left: 18%; top: 155px; }
.family-tree-icon i { width: 76px; height: 76px; position: absolute; z-index: 2; display: block; border: 6px solid var(--forest); border-radius: 50%; background: #dce9dd; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.family-tree-icon i:nth-child(1) { left: calc(50% - 38px); top: 25px; background: #e8d6bd; }
.family-tree-icon i:nth-child(2) { left: calc(18% - 38px); top: 120px; }
.family-tree-icon i:nth-child(3) { left: calc(50% - 38px); top: 120px; background: #ecd2c8; }
.family-tree-icon i:nth-child(4) { right: calc(18% - 38px); top: 120px; background: #ceddc4; }
.bento-events { background: #e7f0d9; }
.event-chip { width: 88px; height: 96px; display: grid; place-items: center; align-content: center; color: var(--white); background: var(--forest); border-radius: 20px; box-shadow: 0 14px 30px rgba(12,58,42,.2); transform: rotate(-3deg); }
.event-chip span { font-size: .58rem; font-weight: 800; letter-spacing: .16em; }
.event-chip strong { font: 500 2.35rem/1 var(--serif); }
.bento-archive { background: #f1e5d9; }
.document-visual { width: 170px; height: 112px; position: relative; }
.document-visual i { width: 76px; height: 96px; position: absolute; bottom: 0; display: block; border: 5px solid var(--white); border-radius: 10px; box-shadow: 0 12px 30px rgba(78,48,32,.13); }
.document-visual i:nth-child(1) { left: 5px; background: linear-gradient(145deg,#9cb39a,#466e5b); transform: rotate(-9deg); }
.document-visual i:nth-child(2) { left: 50px; background: linear-gradient(145deg,#e8c38f,#aa6749); transform: rotate(2deg); }
.document-visual i:nth-child(3) { left: 94px; background: linear-gradient(145deg,#c7b9c3,#756574); transform: rotate(10deg); }
.directory-people { height: 80px; display: flex; align-items: center; }
.bento-directory { grid-column: 1 / -1; min-height: 290px; }
.directory-people i { width: 68px; height: 68px; margin-left: -13px; display: grid; place-items: center; color: var(--forest); border: 5px solid var(--white); border-radius: 50%; background: #dce8de; box-shadow: 0 8px 22px rgba(12,58,42,.12); font-size: .7rem; font-style: normal; font-weight: 800; }
.directory-people i:first-child { margin-left: 0; background: #ead9c4; }
.directory-people i:last-child { background: #efd4cc; }
.closing-section { min-height: 520px; padding: 110px 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--white); text-align: center; background: var(--forest-deep); }
.closing-section::before { content: ""; width: 620px; height: 620px; position: absolute; border: 1px solid rgba(199,238,154,.12); border-radius: 50%; }
.closing-mark { position: absolute; color: rgba(255,255,255,.025); font: 700 34rem/1 var(--serif); }
.closing-section > *:not(.closing-mark) { position: relative; z-index: 1; }
.eyebrow-light { color: var(--lime); }
.closing-section h2 { margin-top: 14px; }
.closing-section > p:not(.eyebrow) { max-width: 660px; margin: 24px 0; color: rgba(255,255,255,.62); }
.coming-soon { margin-top: 10px; padding: 10px 16px; display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.coming-soon i { width: 7px; height: 7px; display: block; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 5px rgba(199,238,154,.1); }
.site-footer { width: min(1180px, calc(100% - 48px)); min-height: 130px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; color: var(--ink-soft); font-size: .72rem; }
.footer-admin { font-weight: 700; text-decoration: none; }

/* Membership and account forms */
.button-outline { color: var(--forest); border-color: var(--line); background: transparent; }
.button-outline:hover { border-color: var(--forest-bright); background: #f1f5ef; }
.button-danger { color: #8b352e; border-color: rgba(139,53,46,.22); background: #fff5f2; }
.button-danger:hover { border-color: #b24f43; background: #fce9e4; }
.closing-actions { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 2; }
.account-page { min-height: 100vh; background: #eff1eb; }
.account-header { width: min(1180px, calc(100% - 48px)); min-height: 92px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.account-header-link { color: var(--ink-soft); font-size: .8rem; text-decoration: none; }
.account-header-link strong { color: var(--forest); }
.account-layout { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 110px; display: grid; grid-template-columns: .78fr 1.22fr; align-items: start; gap: clamp(55px, 8vw, 110px); }
.account-intro { padding-top: 48px; position: sticky; top: 20px; }
.account-intro h1 { max-width: 520px; margin: 17px 0 24px; font: 500 clamp(3.2rem, 5.5vw, 5.45rem)/.98 var(--serif); letter-spacing: -.055em; }
.account-intro > p:not(.eyebrow) { max-width: 510px; color: var(--ink-soft); }
.account-promise { margin-top: 38px; padding-top: 24px; display: flex; align-items: flex-start; gap: 14px; border-top: 1px solid var(--line); }
.account-promise strong, .account-promise small { display: block; }
.account-promise strong { font-size: .8rem; }
.account-promise small { max-width: 390px; margin-top: 3px; color: var(--ink-soft); font-size: .7rem; }
.lock-icon-dark { border-color: var(--forest-bright); }
.lock-icon-dark::before { border-color: var(--forest-bright); border-bottom: 0; }
.form-card { padding: clamp(30px, 5vw, 52px); background: var(--white); border: 1px solid rgba(18,35,29,.08); border-radius: 28px; box-shadow: 0 28px 80px rgba(12,48,35,.09); }
.form-heading { margin-bottom: 28px; }
.form-heading > span { color: var(--forest-bright); font-size: .65rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.form-heading h2 { margin: 6px 0 0; font: 500 2.35rem/1.08 var(--serif); }
.form-card form, .signin-form { display: grid; gap: 19px; }
.form-card label, .signin-form label, .review-form label { display: grid; gap: 7px; color: var(--ink); font-size: .76rem; font-weight: 750; }
.form-card label small, .review-form label span { color: var(--ink-soft); font-size: .65rem; font-weight: 400; }
.form-card input, .form-card textarea, .signin-form input, .review-form textarea { width: 100%; padding: 13px 14px; color: var(--ink); border: 1px solid rgba(18,35,29,.18); border-radius: 11px; outline: 0; background: #fcfcf9; font: 400 .92rem/1.5 var(--sans); transition: border-color .2s, box-shadow .2s, background .2s; }
.form-card textarea, .review-form textarea { resize: vertical; }
.form-card input:focus, .form-card textarea:focus, .signin-form input:focus, .review-form textarea:focus { border-color: var(--forest-bright); background: var(--white); box-shadow: 0 0 0 4px rgba(27,90,70,.09); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.check-label { grid-template-columns: 20px 1fr !important; align-items: start; gap: 10px !important; font-weight: 500 !important; line-height: 1.45; }
.check-label input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--forest); }
.form-honeypot { width: 1px; height: 1px; position: absolute; left: -10000px; overflow: hidden; }
.form-alert, .form-success { margin: 0 0 20px; padding: 13px 15px; border-radius: 10px; font-size: .76rem; }
.form-alert { color: #7e3029; border: 1px solid rgba(139,53,46,.18); background: #fff2ef; }
.form-success { color: #175a42; border: 1px solid rgba(23,90,66,.18); background: #edf8f1; }
.form-footnote { margin: 20px 0 0; color: var(--ink-soft); font-size: .68rem; text-align: center; }
.auth-shell-wide { width: min(500px, calc(100% - 36px)); }
.signin-form { margin-top: 25px; }
.auth-divider { margin: 25px 0 18px; display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: .65rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.success-card { text-align: center; }
.success-mark { width: 62px; height: 62px; margin: 0 auto 24px; display: grid; place-items: center; color: var(--forest); background: #e6f3da; border-radius: 50%; font-size: 1.5rem; }

/* Member portal foundation */
.member-page { min-height: 100vh; background: #eef0e9; }
.member-header { min-height: 88px; padding: 16px max(24px, calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--white); background: var(--forest-deep); }
.member-header-account { display: flex; align-items: center; gap: 24px; }
.member-header-account > span small, .member-header-account > span strong { display: block; }
.member-header-account > span small { color: rgba(255,255,255,.55); font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; }
.member-header-account > span strong { font-size: .78rem; }
.member-header-account button { padding: 8px 13px; color: var(--white); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: transparent; cursor: pointer; font: 700 .7rem var(--sans); }
.member-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 95px 0 120px; }
.member-welcome { max-width: 840px; }
.member-welcome h1 { margin: 14px 0 20px; font: 500 clamp(3.4rem, 6vw, 6rem)/.95 var(--serif); letter-spacing: -.055em; }
.member-welcome > p:last-child { max-width: 720px; color: var(--ink-soft); }
.member-coming-grid { margin-top: 68px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.member-coming-grid article { min-height: 270px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.member-coming-grid article:nth-child(2) { background: #e5efd9; }
.member-coming-grid article:nth-child(3) { background: #f1e4d8; }
.member-coming-grid span { margin-bottom: auto; color: var(--coral); font: italic .8rem var(--serif); }
.member-coming-grid h2 { margin: 0 0 9px; font: 500 1.55rem var(--serif); }
.member-coming-grid p { margin: 0; color: var(--ink-soft); font-size: .8rem; }

/* Membership administration */
.admin-module-link { display: block; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.admin-module-link:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(25,45,37,.1); }
.admin-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.admin-page-heading h1 { margin: 10px 0 8px; font: 500 clamp(3rem,5vw,5rem)/1 var(--serif); letter-spacing: -.05em; }
.admin-page-heading p:last-child { margin: 0; color: var(--ink-soft); }
.admin-security-note { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .7rem; }
.request-list { margin-top: 45px; display: grid; gap: 16px; }
.request-card { padding: 28px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px 36px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 12px 38px rgba(20,50,39,.055); }
.request-person { display: flex; align-items: flex-start; gap: 14px; }
.request-avatar { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; color: var(--forest); background: #e3ecdf; border-radius: 50%; font-size: .7rem; font-weight: 800; }
.request-person h2 { margin: 2px 0 4px; font: 500 1.35rem var(--serif); }
.request-person a, .request-person small { display: block; color: var(--ink-soft); font-size: .68rem; }
.request-person small { margin-top: 5px; }
.request-connection > span { color: var(--forest-bright); font-size: .62rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.request-connection p { margin: 7px 0 0; color: var(--ink-soft); font-size: .8rem; white-space: pre-line; }
.review-form { grid-column: 1 / -1; padding-top: 20px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px; border-top: 1px solid var(--line); }
.review-actions { display: flex; gap: 9px; }
.empty-state { padding: 80px 24px; color: var(--ink-soft); border: 1px dashed rgba(18,35,29,.18); border-radius: 20px; text-align: center; background: rgba(255,255,255,.45); }
.empty-state > span { width: 50px; height: 50px; margin: 0 auto 16px; display: grid; place-items: center; color: var(--forest); background: #e3efdc; border-radius: 50%; }
.empty-state h2 { margin: 0; color: var(--ink); font: 500 1.65rem var(--serif); }
.empty-state p { margin: 8px 0 0; font-size: .8rem; }

.auth-page { min-height: 100vh; background: linear-gradient(145deg,var(--forest-deep),#234f40); }
.auth-shell { width: min(460px,calc(100% - 36px)); min-height: 100vh; margin: 0 auto; padding: 56px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.auth-brand { margin-bottom: 30px; color: var(--white); }
.auth-brand small { color: rgba(255,255,255,.65); }
.auth-card { width: 100%; padding: clamp(32px,7vw,52px); background: var(--paper); border-top: 4px solid var(--lime); border-radius: 20px; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.auth-card h1, .admin-welcome h1 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -.035em; }
.auth-card h1 { font-size: 2.65rem; }
.auth-card > p:not(.eyebrow) { margin: 20px 0 28px; color: var(--ink-soft); }
.auth-card .auth-help { margin: 22px 0 0 !important; font-size: .77rem; text-align: center; }
.back-link { margin-top: 28px; color: rgba(255,255,255,.74); font-size: .82rem; text-decoration: none; }
.admin-page { min-height: 100vh; background: #f2f0e9; }
.admin-header { min-height: 82px; padding: 16px max(24px,calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--white); background: var(--forest-deep); }
.admin-identity { display: flex; gap: 24px; align-items: center; font-size: .8rem; }
.admin-identity a { color: var(--lime); }
.admin-main { width: min(1180px,calc(100% - 48px)); margin: 0 auto; padding: 76px 0 100px; }
.admin-welcome { max-width: 760px; }
.admin-welcome h1 { font-size: clamp(2.8rem,5vw,4.8rem); }
.admin-welcome > p:last-child { color: var(--ink-soft); }
.admin-grid { margin: 52px 0 38px; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.admin-module, .admin-account { padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 35px rgba(25,45,37,.05); }
.admin-module.active-module { border-top: 4px solid var(--lime); }
.admin-module span { color: var(--forest-bright); font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.admin-module h2, .admin-account h2 { margin: 28px 0 8px; font: 500 1.45rem var(--serif); }
.admin-module p, .admin-account p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.admin-account { box-shadow: none; }
.admin-account h2 { margin-top: 0; }
.admin-account dl { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.admin-account dl div { padding: 14px 0; border-top: 1px solid var(--line); }
.admin-account dt { color: var(--ink-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.admin-account dd { margin: 5px 0 0; font-weight: 600; }

@media (max-width: 1000px) {
    .hero-modern { grid-template-columns: 1fr; padding-top: 55px; }
    .hero-content { max-width: 800px; }
    .portal-preview { width: min(620px,100%); margin: 15px auto 0; transform: none; }
    .welcome-hero { min-height: auto; }
    .story-section, .portal-heading { grid-template-columns: 1fr; gap: 42px; }
    .bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .bento-tree { grid-row: auto; grid-column: span 2; min-height: 560px; }
    .admin-grid { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; gap: 30px; }
    .account-intro { padding-top: 15px; position: static; }
    .account-intro h1 { max-width: 780px; }
    .member-coming-grid { grid-template-columns: 1fr; }
    .member-coming-grid article { min-height: 220px; }
}
@media (max-width: 700px) {
    .site-header { width: min(100% - 30px,1240px); min-height: 82px; }
    .site-nav { gap: 10px; }
    .site-nav > a:not(.button) { display: none; }
    .hero-modern { width: min(100% - 30px,1240px); padding: 48px 0 72px; }
    .hero-modern h1 { font-size: clamp(3.45rem,17vw,5.6rem); }
    .hero-content > p { font-size: .98rem; }
    .portal-preview { min-height: 420px; border-radius: 21px; }
    .preview-body { padding: 18px; }
    .preview-grid { grid-template-columns: 1fr; }
    .tree-card { min-height: 195px; }
    .preview-stack { grid-template-columns: 1fr 1fr; }
    .event-card, .archive-card { min-height: 100px; padding: 12px; }
    .preview-members { display: none; }
    .trust-bar { justify-content: center; flex-wrap: wrap; gap: 16px 30px; }
    .story-section { width: min(100% - 32px,1180px); padding: 95px 0; }
    .story-kicker { flex-direction: column; gap: 8px; }
    .story-copy h2, .portal-heading h2, .closing-section h2 { font-size: clamp(2.8rem,13vw,4.4rem); }
    .portal-section { padding-top: 90px; padding-bottom: 95px; }
    .bento-grid { grid-template-columns: 1fr; margin-top: 45px; }
    .bento-tree { grid-column: auto; min-height: 500px; }
    .bento-card { min-height: 310px; }
    .family-tree-icon { transform: scale(.86); }
    .site-footer, .admin-header, .admin-identity { align-items: flex-start; flex-direction: column; }
    .site-footer { padding: 30px 0; }
    .admin-header { padding-top: 22px; padding-bottom: 22px; }
    .admin-main { width: min(100% - 32px,1180px); }
    .admin-account dl { grid-template-columns: 1fr; }
    .account-header { width: min(100% - 30px,1180px); }
    .account-header-link { max-width: 145px; text-align: right; }
    .account-layout { width: min(100% - 30px,1180px); padding-top: 28px; }
    .account-intro h1 { font-size: clamp(3rem,14vw,4.5rem); }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 28px 20px; border-radius: 20px; }
    .member-header { align-items: flex-start; flex-direction: column; padding-top: 22px; padding-bottom: 22px; }
    .member-header-account { width: 100%; justify-content: space-between; }
    .member-main { width: min(100% - 32px,1180px); padding-top: 72px; }
    .member-welcome h1 { font-size: clamp(3rem,14vw,4.8rem); }
    .admin-page-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
    .request-card { grid-template-columns: 1fr; padding: 22px; }
    .review-form { grid-template-columns: 1fr; }
    .review-actions { justify-content: stretch; }
    .review-actions .button { flex: 1; }
}
@media (max-width: 450px) {
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .preview-stack { grid-template-columns: 1fr; }
    .portal-preview { min-height: 520px; }
    .launch-pill { font-size: .57rem; }
    .review-actions { flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button, .site-nav > a::after { transition: none; } }
