:root {
    color-scheme: light;
    --ink: #252c2b;
    --muted: #66716e;
    --soft: #87928e;
    --line: #dde3df;
    --paper: #f6f7f3;
    --card: #ffffff;
    --green: #47675b;
    --green-dark: #355246;
    --pale-green: #e5ede8;
    --clay: #d18d69;
    --warning-bg: #fbf1e8;
    --warning-ink: #69462f;
    --focus: #a75934;
    font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: radial-gradient(ellipse at 18% 8%, rgba(225, 234, 226, .8), transparent 34rem), var(--paper);
    font-size: 16px;
    line-height: 1.55;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
.site-frame {
    width: min(1120px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.wordmark {
    display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
    font-size: 18px; font-weight: 650; letter-spacing: -.03em;
}
.wordmark-mark, .panel-mark {
    width: 32px; height: 32px; display: inline-grid; place-items: center;
    border-radius: 11px 11px 11px 4px; background: var(--green); color: white;
    font-family: Georgia, serif; font-size: 21px; font-style: italic; line-height: 1;
}
.account-trigger {
    min-width: 84px; min-height: 44px; padding: 9px 16px; border: 1px solid rgba(71, 103, 91, .26);
    border-radius: 999px; background: rgba(255,255,255,.62); color: var(--green-dark);
    font-size: 14px; font-weight: 600; cursor: pointer; transition: background .16s ease, border-color .16s ease;
}
.account-trigger:hover { background: white; border-color: rgba(71,103,91,.48); }
main { flex: 1; padding: 52px 0 72px; }
.welcome { max-width: 850px; margin: 0 auto; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 {
    max-width: 720px; margin-bottom: 17px; font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 8vw, 82px); font-weight: 400; letter-spacing: -.062em; line-height: .98;
}
h1 span { color: var(--green); }
.welcome-copy { margin-bottom: 34px; color: var(--muted); font-size: 17px; }
.tip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tip-card {
    min-height: 184px; padding: 22px 23px; border: 1px solid rgba(49,74,64,.09);
    border-radius: 16px; background: rgba(255,255,255,.72); box-shadow: 0 10px 28px rgba(43,55,47,.025);
}
.tip-card-primary { background: var(--pale-green); }
.tip-number { color: var(--clay); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.tip-card h2 { margin: 20px 0 8px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; letter-spacing: -.025em; }
.tip-card p { max-width: 250px; margin: 0; color: var(--muted); font-size: 14px; }
.access-panel, .capture-panel {
    width: min(540px, 100%); margin: 46px auto 0; padding: 30px; border: 1px solid rgba(49,74,64,.12);
    border-radius: 20px; background: var(--card); box-shadow: 0 20px 55px rgba(31,44,37,.08);
}
.panel-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.panel-heading .eyebrow { margin-bottom: 2px; }
.panel-mark { width: 42px; height: 42px; border-radius: 14px 14px 14px 5px; font-size: 27px; }
.panel-heading h2, .capture-panel h2 { margin: 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; letter-spacing: -.035em; }
.panel-copy { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.button {
    min-height: 48px; padding: 11px 19px; border: 1px solid transparent; border-radius: 10px;
    font-size: 14px; font-weight: 650; cursor: pointer;
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover:not(:disabled) { background: var(--green-dark); }
.button-secondary { border-color: var(--line); background: white; color: var(--green-dark); }
.button-quiet { border-color: var(--line); background: transparent; color: var(--muted); }
.button-wide { width: 100%; }
.text-button {
    display: block; margin: 15px auto 0; padding: 7px 12px; border: 0; background: transparent;
    color: var(--green-dark); font-size: 13px; font-weight: 600; text-decoration: underline;
    text-decoration-color: rgba(53,82,70,.35); text-underline-offset: 3px; cursor: pointer;
}
.invite-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 13px; font-weight: 600; }
input[type="password"] {
    width: 100%; min-height: 48px; margin-bottom: 14px; padding: 10px 13px; border: 1px solid #cbd5d0;
    border-radius: 9px; outline: none; background: white; color: var(--ink);
}
input[type="password"]:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(71,103,91,.16); }
.capture-panel .eyebrow { margin-top: 21px; }
.capture-panel h2 { margin-bottom: 15px; }
.test-banner {
    padding: 10px 12px; border: 1px solid #ead4c3; border-radius: 9px; background: var(--warning-bg);
    color: var(--warning-ink); font-size: 11px; font-weight: 750; letter-spacing: .035em;
}
.policy-notice { margin: 0 0 16px; color: var(--ink); font-size: 14px; font-weight: 650; }
.policy-list { margin: 0 0 21px; padding-left: 20px; color: var(--muted); font-size: 13px; }
.policy-list li + li { margin-top: 7px; }
.check-row { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 17px; cursor: pointer; }
.check-row input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.check-row span { color: var(--ink); font-size: 14px; }
.editor-panel { width: min(780px, 100%); }
.editor-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 2px; }
.editor-heading .eyebrow { margin-top: 21px; }
.limit-label { color: var(--soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.editor-hint { margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.editor-wrap { position: relative; min-height: 270px; }
textarea {
    display: block; width: 100%; min-height: 270px; resize: vertical; padding: 18px;
    border: 1px solid #d4ddd8; border-radius: 12px; outline: none; background: #fcfdfb;
    color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.62;
}
.editor-veil { position: absolute; inset: 0; z-index: 2; border-radius: 12px; background: #f4f5f1; }
.editor-actions, .retry-actions { display: flex; gap: 10px; margin-top: 14px; }
.retry-panel { margin-top: 18px; padding: 16px; border: 1px solid #ebd7c5; border-radius: 11px; background: #fffaf5; }
.retry-panel > p:first-child { margin-bottom: 4px; color: var(--warning-ink); font-size: 15px; font-weight: 700; }
.retry-copy { margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.status-message { min-height: 24px; margin: 18px auto 0; color: var(--muted); text-align: center; font-size: 13px; }
.footer { display: flex; align-items: center; justify-content: center; gap: 11px; padding: 24px 0 28px; color: var(--soft); font-size: 12px; }
.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: #a5b1aa; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

@media (max-width: 700px) {
    .site-frame { width: min(100% - 36px, 560px); }
    .topbar { padding: 21px 0; }
    main { padding: 41px 0 48px; }
    .tip-grid { grid-template-columns: 1fr; gap: 10px; }
    .tip-card { min-height: auto; padding: 17px 19px; }
    .tip-card h2 { margin-top: 12px; }
    .tip-card p { max-width: none; }
    .access-panel, .capture-panel { margin-top: 32px; padding: 22px; border-radius: 16px; }
    .editor-wrap, textarea { min-height: 240px; }
    .editor-actions, .retry-actions { flex-direction: column; }
    .editor-actions .button, .retry-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
