:root {
  --ink: #20261e;
  --muted: #697064;
  --paper: #fbf9f3;
  --cream: #f0ecdf;
  --line: #ddd8ca;
  --forest: #254d3e;
  --moss: #6f8763;
  --gold: #c98e3d;
  --plum: #563b50;
  --danger: #9c3e38;
  --shadow: 0 20px 55px rgba(31, 38, 28, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
.shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.hidden { display: none !important; }
.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; }

.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.04em; font-size: 1.2rem; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; color: white; border-radius: 9px 9px 9px 2px; background: var(--forest); font-size: 1.15rem; letter-spacing: -.12em; }
.eyebrow { color: var(--forest); font-size: .7rem; font-weight: 800; letter-spacing: .13em; margin: 0 0 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--forest); border-radius: 8px; padding: 13px 19px; background: var(--forest); color: white; font-weight: 750; font-size: .92rem; transition: transform .18s ease, background .18s ease; }
.button:hover { background: #183c2d; transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-quiet { border-color: var(--line); background: rgba(255,255,255,.65); color: var(--ink); padding: 10px 14px; }
.button-quiet:hover { background: white; }
.button-small { padding: 9px 12px; border-radius: 7px; font-size: .8rem; }
.button-link, .text-link { color: var(--forest); padding: 0; border: 0; background: transparent; font-weight: 750; }
.text-link { display: inline-flex; gap: 7px; align-items: center; }

.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.site-header nav { display: flex; align-items: center; gap: 25px; color: var(--muted); font-size: .9rem; }
.site-header nav a:first-child:hover { color: var(--forest); }
.hero { display: grid; min-height: 600px; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 75px; padding: 64px 0 90px; }
.hero h1, .section-heading h2, .split-access h2, .signin-section h2, .admin-heading h1, .setup-card h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.hero h1 { max-width: 650px; margin: 0; font-size: clamp(3.25rem, 6vw, 5.7rem); }
.lede { max-width: 580px; color: var(--muted); font-size: 1.12rem; line-height: 1.65; margin: 26px 0; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin: 32px 0 16px; }
.microcopy { color: var(--muted); font-size: .78rem; }
.hero-card { overflow: hidden; border: 1px solid #d3ccba; border-radius: 18px; background: #fffefb; box-shadow: var(--shadow); transform: rotate(2deg); }
.window-bar { height: 45px; display: flex; align-items: center; gap: 6px; padding: 0 15px; border-bottom: 1px solid var(--line); background: #f5f1e6; }
.window-bar span { width: 8px; height: 8px; border-radius: 50%; background: #d8c5a2; }
.window-bar span:nth-child(2) { background: #b9c9aa; }.window-bar span:nth-child(3) { background: #e7a697; }
.window-bar b { margin-left: auto; margin-right: 44%; color: var(--muted); font-size: .72rem; font-weight: 700; }
.address-row { display: flex; align-items: center; gap: 9px; padding: 19px 20px; border-bottom: 1px solid var(--line); font-size: .72rem; }
.address-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.address-row button { margin-left: auto; border: 0; background: transparent; color: var(--forest); font-size: 1rem; }
.address-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.mail-preview { display: flex; align-items: center; gap: 11px; padding: 16px 20px; border-bottom: 1px solid #efecdf; color: var(--muted); font-size: .72rem; }.mail-preview.unread { background: #f8faf3; color: var(--ink); }.mail-preview div { min-width: 0; flex: 1; }.mail-preview p { margin: 3px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.mail-preview time { color: #92978e; font-size: .65rem; }.avatar { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border-radius: 50%; background: #ded5e4; color: var(--plum); font-weight: 800; }.avatar.moss { background: #dce6d8; color: var(--forest); }.avatar.gold { background: #f0dfbe; color: #9a651d; }

.steps { padding: 90px 0 110px; }.section-heading { display: flex; justify-content: space-between; gap: 48px; align-items: end; }.section-heading h2, .split-access h2, .signin-section h2 { margin: 0; font-size: clamp(2.5rem, 4vw, 4rem); }.section-heading p { max-width: 360px; color: var(--muted); line-height: 1.55; margin: 0 0 5px; }.steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; list-style: none; padding: 50px 0 0; margin: 0; }.steps li { border-top: 1px solid var(--line); padding-top: 21px; }.steps li > span { color: var(--gold); font-size: .74rem; font-weight: 800; }.steps h3 { margin: 29px 0 10px; font-size: 1.08rem; }.steps li p { color: var(--muted); font-size: .92rem; line-height: 1.6; max-width: 275px; }

.access-section { background: var(--forest); color: white; padding: 95px 0; }.split-access { display: grid; grid-template-columns: .8fr 1fr; align-items: start; gap: 110px; }.split-access .eyebrow { color: #d3dfbf; }.split-access h2 { max-width: 430px; }.split-access > div > p:not(.eyebrow) { color: #d6e0d4; line-height: 1.65; max-width: 400px; margin: 24px 0; }.check-list { padding: 0; margin: 26px 0 0; list-style: none; color: #e0e9dc; font-size: .9rem; }.check-list li { margin: 12px 0; }.check-list li::before { content: '✓'; margin-right: 10px; color: #d7b16e; }
.card-form { display: grid; gap: 14px; padding: 31px; border-radius: 14px; background: #fffefb; box-shadow: 0 14px 34px rgba(0,0,0,.16); color: var(--ink); }.card-form h3 { margin: 0 0 8px; font-size: 1.25rem; }.card-form label, .inline-form label { display: grid; gap: 7px; color: var(--ink); font-size: .78rem; font-weight: 750; }.card-form input, .inline-form input { width: 100%; border: 1px solid #d8d5cd; border-radius: 7px; padding: 11px 12px; background: white; color: var(--ink); outline: 0; }.card-form input:focus, .inline-form input:focus, select:focus { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(111,135,99,.14); }.card-form small { color: var(--muted); font-size: .7rem; font-weight: 500; }.form-message { min-height: 18px; margin: 0; font-size: .78rem; line-height: 1.35; color: var(--danger); }.form-message.success { color: var(--forest); }.card-form .button { margin-top: 4px; }
.signin-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 80px; padding: 100px 0; }.signin-section > div > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }.inline-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; }.inline-form .form-message { grid-column: 1 / -1; order: 4; }.inline-form .button { height: 43px; padding: 0 18px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; min-height: 96px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }.site-footer .brand { color: var(--ink); }

.app-page { min-height: 100vh; background: #f6f4ed; }.app-header { position: sticky; top: 0; z-index: 5; height: 65px; padding: 0 28px; display: flex; align-items: center; gap: 22px; background: rgba(255,254,251,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }.app-header .brand { min-width: 170px; font-size: 1rem; }.app-header .brand-mark { width: 24px; height: 24px; border-radius: 7px 7px 7px 2px; font-size: 1rem; }.address-controls { display: flex; align-items: center; gap: 7px; flex: 1; }.address-controls select { width: min(475px, 48vw); border: 1px solid var(--line); border-radius: 7px; background: white; padding: 9px 34px 9px 10px; color: var(--ink); font-size: .82rem; font-weight: 650; }.icon-button { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--forest); }.account-menu { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .8rem; white-space: nowrap; }.account-menu a { color: var(--forest); font-weight: 750; }
.app-layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); min-height: calc(100vh - 65px); }.app-sidebar { padding: 30px 22px; border-right: 1px solid var(--line); background: #eeece3; }.alias-list { display: grid; gap: 6px; }.alias-item { width: 100%; display: flex; gap: 9px; align-items: center; border: 1px solid transparent; border-radius: 8px; padding: 9px; color: var(--muted); background: transparent; text-align: left; font-size: .78rem; overflow: hidden; }.alias-item:hover, .alias-item.active { border-color: #dadbcf; background: #fffefb; color: var(--ink); }.alias-item .address-dot { width: 7px; height: 7px; }.alias-item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.sidebar-note { margin: 28px 8px 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }.inbox-panel { padding: 36px; min-width: 0; }.inbox-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 26px; }.inbox-heading h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.04em; }.status-chip { border-radius: 99px; padding: 6px 9px; background: #e3eadc; color: var(--forest); font-size: .69rem; font-weight: 800; }.status-chip.warning { background: #faecd5; color: #9a651d; }.inbox-grid { min-height: 570px; display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fffefb; box-shadow: 0 10px 28px rgba(32,38,30,.05); }.message-list { border-right: 1px solid var(--line); }.message-item { width: 100%; display: block; border: 0; border-bottom: 1px solid #eeece4; padding: 18px; background: white; text-align: left; color: var(--ink); }.message-item:hover, .message-item.active { background: #f4f7ef; }.message-item-header { display: flex; justify-content: space-between; gap: 10px; font-size: .77rem; }.message-item-header b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.message-item time { color: var(--muted); font-size: .65rem; white-space: nowrap; }.message-item p { margin: 7px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: .76rem; }.empty-list, .empty-state { display: grid; place-content: center; min-height: 200px; padding: 34px; text-align: center; color: var(--muted); font-size: .86rem; line-height: 1.55; }.message-view { min-width: 0; }.message-content { padding: 31px; }.message-meta { padding-bottom: 22px; border-bottom: 1px solid var(--line); }.message-meta h2 { margin: 0 0 19px; font-size: 1.4rem; letter-spacing: -.035em; }.message-meta p { margin: 6px 0; color: var(--muted); font-size: .8rem; }.message-body { padding-top: 26px; color: #343a32; font-size: .9rem; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }.empty-icon { color: var(--gold); font-size: 1.5rem; }.empty-state h2 { color: var(--ink); margin: 12px 0 0; font-size: 1.05rem; }.empty-state p { margin: 5px 0 0; max-width: 270px; }.toast { position: fixed; right: 24px; bottom: 24px; transform: translateY(100px); opacity: 0; pointer-events: none; border-radius: 9px; padding: 12px 15px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: .8rem; transition: transform .22s ease, opacity .22s ease; }.toast.show { transform: translateY(0); opacity: 1; }

.admin-shell { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 78px 0; }.admin-heading { max-width: 640px; }.admin-heading h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 4.8rem); }.admin-heading > p:last-child { max-width: 590px; color: var(--muted); line-height: 1.62; }.request-list { display: grid; gap: 12px; margin-top: 48px; }.request-card { display: grid; grid-template-columns: auto 1fr auto; gap: 17px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: white; }.request-card .avatar { width: 38px; height: 38px; }.request-card h2 { margin: 0; font-size: 1rem; }.request-card p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }.request-card time { font-size: .7rem; color: var(--muted); }.request-actions { display: flex; gap: 7px; }.button-reject { border-color: #e4c3bd; background: white; color: var(--danger); }.button-reject:hover { background: #fff5f3; }.empty-admin { padding: 45px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }

.setup-page { display: grid; min-height: 100vh; place-items: center; padding: 28px; background: var(--forest); }.setup-card { width: min(500px, 100%); padding: 40px; border-radius: 15px; background: #fffefb; box-shadow: var(--shadow); }.setup-card .brand { margin-bottom: 46px; }.setup-card .eyebrow { margin-bottom: 10px; }.setup-card h1 { margin: 0; font-size: 3rem; }.setup-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }.setup-card .card-form { padding: 0; margin-top: 26px; box-shadow: none; }

@media (max-width: 800px) { .shell { width: min(100% - 32px, 1120px); }.site-header { height: 72px; }.site-header nav { gap: 12px; }.site-header nav > a:first-child { display: none; }.hero { grid-template-columns: 1fr; gap: 48px; padding: 48px 0 70px; }.hero-card { width: min(450px, 95%); justify-self: center; }.section-heading, .split-access, .signin-section { grid-template-columns: 1fr; gap: 28px; }.section-heading { align-items: start; }.steps { padding: 72px 0; }.steps ol { grid-template-columns: 1fr; gap: 17px; padding-top: 34px; }.steps h3 { margin: 13px 0 5px; }.access-section { padding: 70px 0; }.inline-form { grid-template-columns: 1fr; }.inline-form .button { height: auto; padding: 13px 19px; }.app-header { height: auto; min-height: 65px; padding: 10px 15px; flex-wrap: wrap; gap: 10px; }.app-header .brand { min-width: 0; }.address-controls { order: 3; width: 100%; }.address-controls select { flex: 1; width: 0; }.account-menu { margin-left: auto; }.app-layout { display: block; min-height: auto; }.app-sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 17px; }.alias-list { display: flex; overflow-x: auto; }.alias-item { min-width: 205px; }.sidebar-note { display: none; }.inbox-panel { padding: 23px 16px; }.inbox-grid { grid-template-columns: 1fr; min-height: 0; }.message-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 310px; overflow-y: auto; }.message-view { min-height: 350px; }.admin-shell { width: min(100% - 32px, 900px); padding: 55px 0; }.request-card { grid-template-columns: auto 1fr; }.request-actions { grid-column: 1 / -1; }.site-footer { min-height: 76px; }.site-footer span:last-child { display: none; } }
@media (max-width: 430px) { .hero h1 { font-size: 3.25rem; }.hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }.address-row { padding: 16px 13px; }.mail-preview { padding: 14px; }.app-header .account-menu > span { display: none; }.button-small { padding: 9px; }.setup-card { padding: 28px 23px; }.setup-card h1 { font-size: 2.5rem; } }
