:root {
    --ink: #3e2c27;
    --ink-soft: #725f57;
    --cream: #fffaf0;
    --paper: #fff4d8;
    --paper-deep: #f9e7b8;
    --white: #fffef9;
    --coral: #e8674f;
    --coral-dark: #c84e3b;
    --peach: #f49a78;
    --apricot: #f5b866;
    --honey: #ffd875;
    --sage: #789c78;
    --sage-soft: #dce9d5;
    --blush: #f8d8ca;
    --line: rgba(92, 63, 49, 0.15);
    --shadow: 0 20px 60px rgba(100, 59, 38, 0.12);
    --shadow-small: 0 10px 28px rgba(100, 59, 38, 0.12);
    --radius: 24px;
    --radius-small: 14px;
    --shell: 1180px;
    --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 216, 117, 0.16), transparent 24rem),
        radial-gradient(circle at 93% 22%, rgba(244, 154, 120, 0.14), transparent 25rem),
        var(--cream);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    min-width: 320px;
}
.home-page { background: #fcf6ec; }

img { display: block; max-width: 100%; }
a { color: var(--coral-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
    color: var(--ink);
    font-family: var(--font-display);
    line-height: 1.08;
    letter-spacing: -0.025em;
}
h1 { font-size: clamp(3rem, 6vw, 5.65rem); }
h2 { font-size: clamp(2.25rem, 4vw, 3.65rem); }
h3 { font-size: 1.6rem; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: white;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(92, 63, 49, 0.09);
    background: rgba(255, 250, 240, 0.88);
    backdrop-filter: blur(18px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.brand-logo { display: block; width: 150px; height: auto; flex: 0 0 auto; }
.brand:focus-visible { border-radius: 5px; outline: 2px solid var(--coral); outline-offset: 4px; }
.desktop-nav { display: flex; align-items: center; gap: 27px; }
.desktop-nav > a:not(.button):not(.avatar-link), .nav-button {
    border: 0;
    background: none;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}
.desktop-nav > a:not(.button):not(.avatar-link):hover, .nav-button:hover { color: var(--coral-dark); }
.desktop-nav form { display: inline-flex; margin: 0; }
.avatar-link, .profile-avatar, .mini-avatar {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--honey), var(--peach));
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}
.avatar-link { width: 38px; height: 38px; font-size: 0.78rem; box-shadow: inset 0 0 0 3px rgba(255,255,255,.7); }
.avatar-link img, .mini-avatar img, .profile-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { display: grid; width: 44px; height: 44px; place-content: center; gap: 5px; list-style: none; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; width: 23px; height: 2px; border-radius: 2px; background: var(--ink); }
.mobile-nav nav { position: absolute; top: 52px; right: 0; width: min(280px, calc(100vw - 40px)); padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.mobile-nav nav a, .mobile-nav nav .nav-button { display: block; width: 100%; padding: 12px 14px; color: var(--ink); font-weight: 700; text-align: left; text-decoration: none; }

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid var(--coral);
    border-radius: 999px;
    background: var(--coral);
    box-shadow: 0 10px 20px rgba(200, 78, 59, 0.2);
    color: white;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); background: var(--coral-dark); color: white; box-shadow: 0 14px 28px rgba(200, 78, 59, 0.24); }
.button-small { min-height: 42px; padding: 10px 17px; font-size: 0.88rem; }
.button-full { width: 100%; }
.button-secondary { border-color: var(--line); background: var(--white); box-shadow: none; color: var(--ink); }
.button-secondary:hover { border-color: var(--peach); background: var(--paper); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; text-decoration: none; }
.text-link span { color: var(--coral); font-size: 1.2em; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--coral-dark);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.eyebrow span { font-size: 1rem; }

.flash-stack { position: fixed; z-index: 100; top: 94px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.flash { width: fit-content; max-width: min(560px, 100%); margin-left: auto; padding: 13px 18px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; background: var(--ink); box-shadow: var(--shadow-small); color: white; font-weight: 700; pointer-events: auto; }
.flash-success { background: #567b59; }
.flash-error { background: #a64335; }
.flash-info { background: #6c6359; }

.hero { display: grid; min-height: 720px; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(40px, 7vw, 96px); padding-block: 78px 92px; }
.hero-copy { max-width: 660px; }
.hero h1 { margin-bottom: 27px; }
.hero h1 em { position: relative; color: var(--coral); font-weight: 500; }
.hero h1 em::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 7px; border-radius: 50%; background: var(--honey); content: ""; opacity: .75; transform: rotate(-2deg); }
.hero-lead { max-width: 610px; margin-bottom: 31px; color: var(--ink-soft); font-size: clamp(1.08rem, 1.7vw, 1.28rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; }
.reassurance { margin: 25px 0 0; color: var(--ink-soft); font-size: .86rem; font-weight: 650; }
.reassurance span { margin-right: 5px; color: var(--coral); }
.hero-visual { display: flex; align-items: center; min-height: 0; background: transparent; }
.hero-main-image { position: static; width: 100%; height: auto; max-width: 100%; object-fit: contain; }

.soft-section { padding-block: 105px; background: rgba(248,216,202,.38); border-block: 1px solid rgba(232,103,79,.1); }
.section-heading { margin-bottom: 48px; }
.centered-heading { max-width: 760px; margin-inline: auto; text-align: center; }
.section-heading h2 { margin-bottom: 17px; }
.section-heading p { color: var(--ink-soft); font-size: 1.1rem; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.split-heading h2 { margin-bottom: 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { position: relative; min-height: 300px; padding: 38px 34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,254,249,.78); }
.step-card h3 { margin: 26px 0 13px; }
.step-card p { margin-bottom: 0; color: var(--ink-soft); }
.step-number { position: absolute; top: 22px; right: 26px; color: rgba(62,44,39,.22); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.step-icon { display: grid; width: 61px; height: 61px; place-items: center; border-radius: 19px; background: var(--blush); color: var(--coral-dark); font-family: var(--font-display); font-size: 1.7rem; transform: rotate(-3deg); }
.step-card:nth-child(2) .step-icon { background: var(--honey); }
.step-card:nth-child(3) .step-icon { background: var(--sage-soft); color: #537454; }
.featured-step { transform: translateY(-12px) rotate(.5deg); box-shadow: var(--shadow); }

.moments-showcase { padding-block: 112px; }
.moment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 24px; }
.moment-card { position: relative; overflow: hidden; scroll-margin-top: 100px; border: 1px solid rgba(92,63,49,.12); border-radius: 8px 8px 16px 16px; background: var(--paper); box-shadow: var(--shadow-small); transition: transform .2s ease, box-shadow .2s ease; }
.moment-card:nth-child(3n+2) { background: #fff1df; transform: rotate(.6deg); }
.moment-card:nth-child(3n+3) { background: #f5f0d7; transform: rotate(-.45deg); }
.moment-card:hover { z-index: 2; transform: translateY(-4px) rotate(0); box-shadow: var(--shadow); }
.moment-card:target { z-index: 2; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(232, 103, 79, .2), var(--shadow); }
.moment-card::before { position: absolute; z-index: 2; top: -7px; left: calc(50% - 25px); width: 50px; height: 15px; background: rgba(255,216,117,.72); content: ""; transform: rotate(-2deg); }
.moment-photo { display: block; overflow: hidden; background: #ead8bc; }
.moment-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.moment-photo:hover img { transform: scale(1.025); }
.moment-content { min-height: 210px; padding: 29px 27px 23px; }
.moment-owner { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--ink); font-size: .84rem; font-weight: 800; text-decoration: none; }
.mini-avatar { width: 31px; height: 31px; font-size: .61rem; }
.moment-words { margin-bottom: 23px; font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.65rem); font-style: italic; line-height: 1.35; }
.moment-content time { display: block; color: var(--ink-soft); font-size: .75rem; font-weight: 700; }
.moment-footer { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 19px; border-top: 1px solid rgba(92,63,49,.09); background: rgba(255,255,255,.25); color: var(--ink-soft); font-size: .75rem; }
.like-form, .moment-actions form { margin: 0; }
.like-button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--ink-soft); font-size: .82rem; font-weight: 850; text-decoration: none; }
.like-button .like-icon { color: var(--coral); font-size: 1.25rem; }
.like-button.is-liked .like-icon { color: var(--coral-dark); }
.kindness-label { font-weight: 700; }
.privacy-chip { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: rgba(120,156,120,.16); color: #496b4c; font-weight: 800; }
.moment-actions { display: flex; align-items: center; gap: 12px; }
.moment-actions a, .moment-actions button { border: 0; background: none; color: var(--ink-soft); font-size: .75rem; font-weight: 800; text-decoration: none; }
.moment-actions button:hover, .moment-actions a:hover { color: var(--coral-dark); }
.showcase-grid .moment-card:nth-child(2) { margin-top: 28px; }

.privacy-promise { padding-block: 105px; background: #faf0e6; }
.promise-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(50px, 9vw, 120px); }
.promise-grid h2 { max-width: 700px; }
.promise-grid p { max-width: 650px; color: var(--ink-soft); font-size: 1.08rem; }
.promise-art { display: flex; min-height: 380px; align-items: center; justify-content: center; }
.promise-image { width: min(100%, 390px); height: auto; object-fit: contain; }
.tick-list { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.tick-list li { position: relative; padding-left: 34px; font-weight: 750; }
.tick-list li::before { position: absolute; left: 0; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--sage); color: white; content: "✓"; font-size: .72rem; }
.closing-cta { padding-block: 120px; text-align: center; }
.closing-cta h2 { margin-bottom: 13px; }
.closing-cta p { color: var(--ink-soft); font-size: 1.15rem; }
.mini-stats { display: flex; justify-content: center; gap: 28px; margin-top: 28px; color: var(--ink-soft); font-size: .75rem; font-weight: 800; }

.site-footer { padding-block: 60px; border-top: 1px solid var(--line); background: #f6ead5; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr .8fr; align-items: start; gap: 40px; }
.brand-footer { width: fit-content; margin-bottom: 12px; padding: 5px 7px; border-radius: 11px; background: #fff9f1; }
.footer-grid p { margin-bottom: 0; color: var(--ink-soft); font-size: .84rem; }
.footer-grid nav { display: grid; gap: 8px; }
.footer-grid nav a { color: var(--ink); font-size: .86rem; font-weight: 700; text-decoration: none; }
.footer-note { text-align: right; }

.auth-page, .form-page, .prose-page { background: linear-gradient(135deg, #fff8ea, #fce7dc); }
.auth-shell { display: grid; min-height: calc(100vh - 78px); grid-template-columns: 1fr 500px; align-items: center; gap: clamp(55px, 8vw, 110px); padding-block: 70px 100px; }
.auth-intro h1 { margin-bottom: 22px; }
.auth-intro > p { max-width: 560px; color: var(--ink-soft); font-size: 1.18rem; }
.auth-intro blockquote, .tiny-memory { max-width: 480px; margin: 45px 0 0; padding: 28px 30px; border-left: 5px solid var(--honey); border-radius: 0 14px 14px 0; background: rgba(255,255,255,.6); font-family: var(--font-display); font-size: 1.35rem; font-style: italic; line-height: 1.4; }
.tiny-memory { display: flex; align-items: center; gap: 20px; }
.tiny-memory span { color: var(--apricot); font-size: 2rem; }
.tiny-memory p { margin: 0; }
.form-card { padding: 38px; border: 1px solid rgba(92,63,49,.12); border-radius: var(--radius); background: rgba(255,254,249,.94); box-shadow: var(--shadow); }
.form-card-heading { display: flex; align-items: center; gap: 17px; margin-bottom: 28px; }
.form-card-heading h1, .form-card-heading h2 { margin-bottom: 4px; font-size: 2rem; }
.form-card-heading p { margin: 0; color: var(--ink-soft); font-size: .86rem; }
.form-icon { display: grid; flex: 0 0 auto; width: 49px; height: 49px; place-items: center; border-radius: 16px; background: var(--blush); color: var(--coral-dark); font-family: var(--font-display); font-size: 1.4rem; transform: rotate(-3deg); }
.google-auth-form { display: grid; gap: 13px; }
.google-button {
    display: flex;
    width: 100%;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #747775;
    border-radius: 999px;
    background: #fff;
    color: #1f1f1f;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.google-button img { flex: 0 0 auto; width: auto; height: 20px; }
.google-button:hover { border-color: #5f6368; background: #f8faff; box-shadow: 0 2px 5px rgba(60, 64, 67, .18); }
.google-button:active { background: #f1f3f4; box-shadow: none; }
.google-button:focus-visible { outline: 3px solid rgba(11, 87, 208, .28); outline-offset: 2px; }
.google-terms { margin-bottom: 2px; }
.auth-divider { display: flex; align-items: center; gap: 13px; margin: 22px 0; color: var(--ink-soft); font-size: .72rem; font-weight: 700; }
.auth-divider::before, .auth-divider::after { flex: 1 1 auto; height: 1px; background: var(--line); content: ""; }
.auth-divider span { white-space: nowrap; }
.stacked-form { display: grid; gap: 19px; }
.stacked-form label { display: grid; gap: 7px; color: var(--ink); font-size: .83rem; font-weight: 800; }
.stacked-form .form-field { display: grid; gap: 7px; }
.stacked-form .form-field > label { display: block; }
.stacked-form label small, .stacked-form > small, .stacked-form .form-field > small { color: var(--ink-soft); font-size: .72rem; font-weight: 600; }
input, textarea, select {
    width: 100%;
    border: 1px solid rgba(92,63,49,.2);
    border-radius: 12px;
    outline: 0;
    background: var(--white);
    color: var(--ink);
}
input, select { min-height: 49px; padding: 10px 13px; }
textarea { min-height: 130px; padding: 14px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(232,103,79,.14); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 58px; }
.password-toggle:not([hidden]) {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    display: grid;
    width: 42px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink-soft);
}
.password-toggle:hover { background: var(--paper); color: var(--coral-dark); }
.password-toggle:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
.password-eye { position: relative; display: block; width: 22px; height: 18px; }
.password-eye::before {
    content: "";
    position: absolute;
    inset: 3px 2px;
    border: 2px solid currentColor;
    border-radius: 70% 15%;
    transform: rotate(45deg);
}
.password-eye::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}
.password-toggle[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
}
.check-row, .setting-toggle { display: flex !important; align-items: flex-start; gap: 11px !important; }
.check-row input, .setting-toggle input { flex: 0 0 auto; width: 19px; min-height: 19px; margin-top: 3px; accent-color: var(--coral); }
.check-row span { color: var(--ink-soft); font-size: .78rem; font-weight: 600; }
.form-errors { margin-bottom: 20px; padding: 14px 17px; border: 1px solid rgba(166,67,53,.2); border-radius: 12px; background: #fff0ed; color: #7e3128; font-size: .82rem; }
.form-errors ul { margin: 6px 0 0; padding-left: 20px; }
.form-foot { margin: 24px 0 0; color: var(--ink-soft); font-size: .84rem; text-align: center; }

.jar-masthead { padding-block: 55px; border-bottom: 1px solid rgba(92,63,49,.08); background: linear-gradient(130deg, rgba(255,216,117,.24), rgba(248,216,202,.42)); }
.jar-masthead-inner { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.jar-masthead h1 { margin-bottom: 9px; font-size: clamp(2.8rem, 5vw, 4.7rem); }
.jar-masthead p { margin: 0; color: var(--ink-soft); }
.jar-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); align-items: start; gap: 38px; padding-block: 46px 110px; }
.composer-card { position: sticky; top: 104px; padding: 25px; border: 1px solid rgba(92,63,49,.12); border-radius: var(--radius); background: #fff8e8; box-shadow: var(--shadow-small); }
.composer-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.composer-heading h2 { margin-bottom: 3px; font-size: 1.55rem; }
.composer-heading p { margin: 0; color: var(--ink-soft); font-size: .75rem; }
.moment-form textarea { min-height: 145px; background: var(--white); font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45; }
.form-meta { display: flex; justify-content: flex-end; margin-top: -14px; color: var(--ink-soft); font-size: .68rem; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upload-box { display: flex !important; align-items: center !important; gap: 12px !important; padding: 13px; border: 1px dashed rgba(92,63,49,.28); border-radius: 13px; background: rgba(255,255,255,.45); cursor: pointer; }
.upload-box:hover { border-color: var(--coral); background: rgba(248,216,202,.32); }
.upload-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 11px; background: var(--blush); color: var(--coral-dark); font-size: 1.3rem; }
.upload-box span:last-child { display: grid; }
.upload-box small { display: block; }
.image-preview { min-height: 150px; overflow: hidden; border-radius: 13px; background: var(--paper-deep); }
.image-preview img { width: 100%; max-height: 220px; object-fit: cover; }
.jar-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 38px; }
.jar-tools .search-field { flex: 1 1 250px; }
.jar-tools input, .jar-tools select { min-height: 43px; background: rgba(255,254,249,.85); }
.clear-filter { font-size: .78rem; font-weight: 800; }
.month-group + .month-group { margin-top: 64px; }
.month-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.month-heading h2 { margin: 0; font-size: 2rem; }
.month-heading span { color: var(--ink-soft); font-size: .75rem; font-weight: 800; }
.jar-content .moment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jar-content .moment-content { min-height: 185px; }
.empty-state { padding: 65px 30px; border: 1px dashed rgba(92,63,49,.24); border-radius: var(--radius); background: rgba(255,255,255,.42); text-align: center; }
.empty-state > span { display: block; margin-bottom: 10px; font-size: 3.2rem; }
.empty-state h2 { margin-bottom: 10px; font-size: 2rem; }
.empty-state p { color: var(--ink-soft); }

.page-hero { max-width: 840px; padding-block: 82px 50px; text-align: center; }
.page-hero h1 { margin-bottom: 17px; font-size: clamp(3rem, 6vw, 5rem); }
.page-hero p { color: var(--ink-soft); font-size: 1.15rem; }
.community-content { padding-bottom: 110px; }
.community-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.community-grid .moment-card:nth-child(3n+2) { margin-top: 26px; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 70px; padding: 34px 40px; border-radius: var(--radius); background: var(--blush); }
.inline-cta h2 { margin-bottom: 4px; font-size: 2rem; }
.inline-cta p { margin: 0; color: var(--ink-soft); }

.profile-hero { padding-block: 68px; background: linear-gradient(120deg, #f7ead4, #f9daca); }
.profile-hero-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.profile-avatar { width: 92px; height: 92px; font-family: var(--font-display); font-size: 1.8rem; }
.profile-hero h1 { margin-bottom: 7px; font-size: clamp(2.8rem, 5vw, 4.3rem); }
.profile-hero p { max-width: 650px; margin: 0; color: var(--ink-soft); }
.profile-hero .profile-location { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: .86rem; font-weight: 750; }
.profile-location span { color: var(--coral-dark); }
.profile-moments { padding-block: 75px 110px; }
.narrow-page { max-width: 760px; padding-block: 65px 100px; }
.back-link { display: inline-block; margin-bottom: 23px; color: var(--ink-soft); font-weight: 800; text-decoration: none; }
.wide-form-card { padding: 42px; }
.current-photo { display: grid; justify-items: start; gap: 9px; }
.edit-photo { width: 100%; max-height: 430px; border-radius: 16px; object-fit: cover; }
.remove-photo-button { padding: 0; border: 0; background: none; color: #a64335; font-size: .8rem; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.remove-photo-button:hover { color: var(--ink); }
.current-photo small { color: var(--ink-soft); font-size: .72rem; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; }
.stacked-form hr { width: 100%; margin: 6px 0; border: 0; border-top: 1px solid var(--line); }
.setting-toggle { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.setting-toggle span { display: grid; }
.compact-page-hero { padding: 0 0 35px; text-align: left; }
.compact-page-hero h1 { margin-bottom: 10px; font-size: 4rem; }
.prose-card { max-width: 820px; margin-block: 68px 100px; padding: 52px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,254,249,.94); box-shadow: var(--shadow); }
.prose-card h1 { font-size: 4.5rem; }
.prose-card .lead { color: var(--ink-soft); font-size: 1.25rem; }
.prose-card h2 { margin-top: 40px; scroll-margin-top: 105px; font-size: 2rem; }
.prose-card h3 { margin: 0 0 12px; font-size: 1.45rem; }
.prose-card p, .prose-card li { color: #5f4e47; }
.prose-card ul, .prose-card ol { padding-left: 1.35rem; }
.prose-card li { line-height: 1.65; }
.prose-card li + li { margin-top: 8px; }
.legal-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 22px 0 0; font-size: .78rem; }
.legal-meta span { color: var(--coral); }
.legal-notice { margin-top: 30px; padding: 22px 24px; border-left: 5px solid var(--honey); border-radius: 0 14px 14px 0; background: var(--paper); }
.legal-notice > strong { display: block; margin-bottom: 5px; color: var(--ink); }
.legal-notice p { margin: 0; }
.legal-summary { margin: 34px 0 12px; padding: 27px 29px; border: 1px solid var(--line); border-radius: 18px; background: rgba(248,216,202,.22); }
.legal-summary h2 { margin: 0 0 16px; scroll-margin-top: 0; font-family: var(--font-body); font-size: .8rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.legal-summary ol { columns: 2; column-gap: 40px; margin: 0; padding-left: 1.25rem; }
.legal-summary li { break-inside: avoid; margin-bottom: 7px; font-size: .83rem; }
.legal-summary a { color: var(--ink); font-weight: 750; text-decoration: none; }
.legal-summary a:hover { color: var(--coral-dark); text-decoration: underline; }
.legal-card section + section { margin-top: 42px; }
.legal-card section h2 { margin-top: 0; }
.legal-contact { margin-top: 28px; padding: 25px 27px; border: 1px solid rgba(120,156,120,.28); border-radius: 18px; background: rgba(220,233,213,.48); }
.legal-contact p:last-child { margin-bottom: 0; }

@media (max-width: 1000px) {
    .hero { min-height: 650px; grid-template-columns: 1fr 1fr; gap: 28px; }
    .hero h1 { font-size: clamp(3.3rem, 7vw, 4.8rem); }
    .jar-layout { grid-template-columns: 300px 1fr; gap: 25px; }
    .jar-content .moment-grid { grid-template-columns: 1fr; }
    .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-shell { grid-template-columns: 1fr 460px; gap: 45px; }
}

@media (max-width: 760px) {
    h1 { font-size: 3.35rem; }
    h2 { font-size: 2.45rem; }
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .desktop-nav { display: none; }
    .mobile-nav { display: block; }
    .header-inner { min-height: 68px; }
    .hero { display: flex; min-height: auto; flex-direction: column; gap: 18px; padding-block: 58px 65px; }
    .hero-copy { max-width: none; }
    .hero h1 { font-size: 3.6rem; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
    .hero-visual { width: 100%; height: auto; }
    .steps-grid, .moment-grid, .community-grid { grid-template-columns: 1fr; }
    .step-card { min-height: auto; }
    .featured-step { transform: none; }
    .split-heading { align-items: flex-start; flex-direction: column; }
    .showcase-grid .moment-card:nth-child(2), .community-grid .moment-card:nth-child(3n+2) { margin-top: 0; }
    .promise-grid { grid-template-columns: 1fr; }
    .promise-art { min-height: 0; }
    .promise-image { width: min(100%, 360px); }
    .privacy-promise { padding-block: 75px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-note { grid-column: 1 / -1; text-align: left; }
    .auth-shell { display: flex; min-height: auto; flex-direction: column; align-items: stretch; gap: 38px; padding-block: 52px 80px; }
    .auth-intro blockquote { display: none; }
    .form-card, .wide-form-card { padding: 27px 22px; }
    .jar-masthead-inner { align-items: flex-start; flex-direction: column; }
    .jar-layout { display: flex; flex-direction: column; }
    .composer-card { position: static; width: 100%; }
    .jar-content { width: 100%; }
    .jar-content .moment-grid { grid-template-columns: 1fr; }
    .jar-tools { align-items: stretch; flex-wrap: wrap; }
    .jar-tools .search-field { flex-basis: 100%; }
    .profile-hero-inner { grid-template-columns: auto 1fr; }
    .profile-hero-inner .button { grid-column: 1 / -1; }
    .inline-cta { align-items: flex-start; flex-direction: column; padding: 27px; }
    .prose-card { padding: 32px 23px; }
    .prose-card h1 { font-size: 3.1rem; }
    .legal-summary { padding: 23px 21px; }
    .legal-summary ol { columns: 1; }
    .legal-card section + section { margin-top: 36px; }
}

@media (max-width: 440px) {
    .site-header .brand-logo { width: 140px; }
    .hero h1 { font-size: 3.08rem; }
    .two-fields { grid-template-columns: 1fr; }
    .moment-content { min-height: auto; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .button { width: 100%; }
    .mini-stats { align-items: center; flex-direction: column; gap: 4px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-note { grid-column: auto; }
}

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