/* Raw mode: layout only. Browser defaults provide all visual styling. */

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; }
a { text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
button, [role="button"], input[type="submit"], input[type="button"] { cursor: pointer; }

.shell {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding-block: .75rem;
}

.top-authed { flex-wrap: nowrap; }
.brand-logo { display: inline-flex; flex: 0 0 auto; }
.brand-logo .logo-mark-nav { width: 1.6rem; }
.nav-commands { display: flex; align-items: center; gap: .75rem; flex: 1 1 auto; min-width: 0; }
.nav-command, .nav-search-form { flex: 1 1 0; min-width: 0; position: relative; }
.nav-panel.field-bar { display: flex; align-items: center; }
.nav-add-field { flex: 1 1 auto; min-width: 0; }
.nav-add-field input { width: 100%; }
.nav-search-form { display: flex; align-items: center; gap: .35rem; }
.nav-search-form input { flex: 1 1 auto; min-width: 0; }
.nav-tools { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; }
.nav-tool { display: inline-flex; align-items: center; gap: .35rem; }
.top:not(.top-authed) .nav-tools { margin-left: auto; }

main { min-width: 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 2rem; }
.main { min-width: 0; }
.aside { min-width: 0; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; align-items: center; gap: .5rem; }
.inline { display: inline; }
.hidden, [hidden] { display: none !important; }

.feed, .comments, .replies, .landing-love-list, .top-match-list { list-style: none; padding: 0; }
.landing-page .landing { max-width: 40.625rem; margin-top: 3rem; }
.landing-page .tagline { margin: 0 0 1.5rem; }
.landing-love-list { column-count: 3; column-gap: 2rem; margin-top: 1rem; }
.landing-love-list li { display: block; break-inside: avoid; margin-bottom: .5rem; }
.landing-love-list li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.landing-love-count { margin-left: .25rem; color: #666; }
.popular-love-count, .love-count { color: #666; }
.landing-loves { margin-top: 4.375rem; }
.landing-loves h2 { margin-block: 0; padding-bottom: .5rem; border-bottom: 1px solid #eee; }
.landing-stats { margin: .75rem 0 0; color: #666; font-size: .9em; }
.feed-item, .comment { margin-block: 1rem; }
.feed-group-items, .comments { display: grid; gap: 1rem; }
.feed-thought-meta, .meta, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.suggestion-pill, .love-entry { display: inline-flex; align-items: center; gap: .25rem; }
.person-pill { display: inline-flex; align-items: center; gap: .25rem; }
.person-pill .avatar { flex: 0 0 20px; width: 20px; height: 20px; }
.person-pill .avatar img { width: 20px; height: 20px; }
.friend-preview-list, .people-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.friends-list { display: grid; gap: .75rem; }
.friend-page-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.profile-identity, .profile-identity-display { display: flex; align-items: center; gap: .75rem; }
.avatar, .avatar img, .friend-avatar { width: 2rem; height: 2rem; }
.avatar img, .friend-avatar { display: block; }
.avatar-btn { border: 0; padding: 0; background: transparent; }
.thumbs, .home-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); gap: .5rem; }
.thumb img, .home-image-tile img { display: block; width: 100%; height: auto; }
.home-image-tile span { display: block; }
.site-footer { padding-block: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.landing-hint { display: block; margin-top: .25rem; color: #666; }
.landing-auth-alts > p { margin-block: .25rem; }
.landing-page .dev-box { margin-top: 2.5rem; opacity: .65; }
.guest-signup-hint { display: block; margin-top: .25rem; color: #666; }
.guest-signup-lead { margin: 0 0 1rem; font-weight: 700; }
.guest-signup .or { margin-block: .25rem; }
.guest-signup form:first-of-type button,
.landing-auth-alts button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.guest-signup form:first-of-type button svg,
.landing-auth-alts button svg {
  display: block;
  flex: 0 0 auto;
}
.guest-comments .comments { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2.25rem; width: min(100%, 40.625rem); margin-top: 0; }
.guest-comments h2 { margin-block: .75rem 0 1.25rem; padding-bottom: .5rem; border-bottom: 1px solid #eee; font-size: 1.25rem; }
.guest-public-content { max-width: 40.625rem; margin-top: 3rem; }
.guest-comments .comment { flex: 1 1 100%; max-width: 42.5rem; min-width: 0; margin-block: 0; padding: .5rem 0; border: 0; border-top: 1px solid #eee; }
.guest-comments .comment:first-child { border-top: 0; }
.guest-comments .comment { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.guest-comments .comment .meta { grid-column: 1; grid-row: 1; margin-top: 0; }
.guest-comments .comment .meta > .muted { font-size: .85em; }
.guest-comments .comment .meta > .muted::before { content: "·"; margin-right: .5rem; }
.guest-comments .comment .body { grid-column: 1; grid-row: 2; margin-top: .5rem; }
.guest-comments .comment .comment-gallery { grid-column: 1; grid-row: 3; margin-top: 1rem; }
.guest-comments .comment .actions { grid-column: 1; grid-row: 4; }
.guest-comments .comment .body { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin-top: .5rem; }
.guest-comments .comment .comment-gallery { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.guest-comments .comment .thumbs img { display: block; width: 200px; height: 200px; object-fit: cover; border: 1px solid #ccc; }
.guest-comments .comment .body a { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.guest-social-proof .loved-by-more { color: #666; }
.guest-comments-more { align-self: center; }
.guest-suggestions { margin-top: 2.25rem; }
.guest-gallery { margin-top: 2.25rem; }
.guest-gallery h2 { margin-block: .75rem 1.25rem; padding-bottom: .5rem; border-bottom: 1px solid #eee; font-size: 1.25rem; }
.guest-gallery .thumbs { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
.guest-gallery .thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.love-page.guest .site-footer, .home-page .site-footer { margin-top: 2.5rem; }
.landing-page .site-footer { margin-top: 2.5rem; }
.user-page .site-footer { margin-top: 2.5rem; }
.editorial-page main { max-width: 40.625rem; margin-top: 3rem; }
.editorial-page main > h2 { margin: 0 0 1.5rem; font-size: 2rem; }
.editorial-page main > p { margin-block: 1rem; }
.editorial-page .contact-form { display: grid; gap: .75rem; max-width: 32rem; margin-block: 1.5rem; }
.editorial-page .contact-form input[type="email"], .editorial-page .contact-form textarea { width: 100%; }
.editorial-page .contact-form button { justify-self: start; }
.editorial-page .site-footer { margin-top: 2.5rem; }

/* Page geometry only: keep the unstyled browser controls, but give content a
   predictable reading order and breathing room. */
.profile-head, .love-head, .headline { display: flex; align-items: flex-start; gap: 1rem; margin-block: 2rem 1.5rem; }
.profile-identity { flex: 1 1 auto; min-width: 0; }
.profile-identity-main, .profile-identity-display { min-width: 0; }
.profile-name-row, .love-title-row, .loves-heading, .activity-heading { display: flex; align-items: center; gap: .75rem; }
.profile-name-row h1, .love-title-row h1 { margin-block: 0; }
.profile-actions { margin-left: auto; }
.profile-layout, .love-layout, .home-layout { align-items: start; }
.profile-layout > .main, .love-layout > .main, .home-layout > .main { min-width: 0; }
.profile-loves, .profile-section, .love-discussion, .friend-preview { margin-block: 1.5rem; }
.user-page:not(.home-page) .profile-head { margin-top: 3rem; margin-bottom: .75rem; }
.user-page:not(.home-page) .profile-loves { margin-top: .25rem; }
.loves-heading { justify-content: space-between; flex-wrap: wrap; }
.love-view-controls { display: flex; align-items: center; gap: .75rem; }
.love-groups { display: grid; gap: 1.25rem; }
.love-group-label { margin-block: 0 .5rem; }
.love-head-main { min-width: 0; flex: 1 1 auto; }
.love-head-social { margin-top: .5rem; }
.love-title-suggest { display: inline-block; }
.guest-public-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 0; max-width: 42.5rem; }
.guest-title-line { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .75rem; }
.guest-public-headline { margin: 0; font-family: serif; }
.guest-love-context { display: block; margin-top: -.2rem; color: #000; font-family: serif; font-size: 1.35em; font-weight: 400; line-height: 1.15; }
.guest-love-count { display: inline; margin-left: 0; font-size: 1rem; font-weight: 400; }
.guest-love-action-row { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.guest-public-intro { margin-top: .5rem; margin-bottom: 2rem; }
.guest-love-cta-form { display: inline-block; align-self: flex-start; margin-bottom: .1rem; }
.guest-love-cta { padding: .4rem 1rem; font-size: 1.05rem; font-weight: 700; }
#guest-email { width: min(100%, 40.625rem); margin-top: 3.5rem; background: #f5f5f5; border: 0 !important; padding: 1.5rem; }
#guest-email.guest-email-highlight { border: 2px solid currentColor !important; }
.profile-guest-note { max-width: 42.5rem; margin-top: 3.5rem; background: #f5f5f5; padding: 1.5rem; }
.guest-love-question { margin-block: 1rem; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.comment-head .sort { display: flex; flex-wrap: wrap; gap: .5rem; }
.comments, .feed { margin-block: 1rem; }
.say { margin-block: 1rem; }
.say-row textarea { flex: 1 1 auto; min-width: 0; }
.comment-video { display: block; width: min(100%, 28rem); max-height: 30rem; background: #111; border-radius: .25rem; }
.say-video-hint { display: block; margin-top: .35rem; font-size: .8rem; color: #666; }
.say-video-frame { display: inline-block; width: 4rem; height: 3rem; object-fit: cover; border-radius: .2rem; background: #eee; }
.say-progress { display: block; width: min(100%, 20rem); height: .4rem; margin-top: .35rem; }
.home-layout > .aside, .love-layout > .aside, .profile-layout > .aside { min-width: 0; }
.settings-page, .friends-page, .saved-page, .messages-page, .contact-page { max-width: 58rem; margin: 2rem auto; }
.settings-section, .people-section, .messages-list, .contact-form { margin-block: 1rem; }

@media (max-width: 40rem) {
  .shell { width: min(100% - 1rem, 72rem); }
  .top-authed { flex-wrap: wrap; }
  .nav-commands { order: 3; flex-basis: 100%; flex-wrap: wrap; }
  .nav-command, .nav-search-form { flex-basis: 100%; }
  .layout, .friend-preview-list, .people-columns { grid-template-columns: 1fr; }
  .aside { padding-top: 1rem; }
  .profile-head, .love-head, .headline { flex-direction: column; margin-block: 1rem; }
  .profile-actions { margin-left: 0; }
  .profile-name-row, .love-title-row, .loves-heading, .activity-heading { align-items: flex-start; flex-wrap: wrap; }
  .love-view-controls { flex-basis: 100%; }
  .comment-head { align-items: flex-start; flex-direction: column; }
  .landing-love-list { column-count: 1; }
}

/* Connected experience: quiet editorial surfaces, with a denser app shell. */
:root {
  --ink: #20201e;
  --muted-ink: #77736d;
  --line: #e7e4de;
  --soft: #f7f6f2;
  --paper: #fffefa;
  --accent: #b74442;
  --link: #0000ee;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(36, 32, 24, .06);
}

html { background: var(--soft); color: var(--ink); }
body { background: var(--soft); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: var(--link); }
.brand-logo, .footer-links a, .activity-tab.on,
.nav-tool, .account-menu-panel a, .profile-actions a,
.chips > a, .love-entry, .suggestion-pill, .shared-love-chip, .say-hi-love { color: inherit; }
.site-footer { color: var(--muted-ink); }
button, input, textarea, select { font: inherit; }
button, input, textarea, select { border: 1px solid #d7d3cc; border-radius: 8px; background: var(--paper); color: var(--ink); }
button, input[type="submit"] { min-height: 2.35rem; padding: .45rem .8rem; }
input, textarea, select { max-width: 100%; padding: .55rem .7rem; }
button:hover, input[type="submit"]:hover { border-color: #9d9890; }
:focus-visible { outline: 3px solid rgba(183, 68, 66, .26); outline-offset: 2px; }

.shell { width: min(100% - 3rem, 78rem); }
.top { min-height: 4.4rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.top-authed { gap: 1rem; }
.brand-logo { color: var(--accent); }
.brand-logo .logo-mark-nav { width: 1.6rem; }
.nav-commands { gap: .6rem; }
.nav-panel.field-bar, .nav-search-form { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: .15rem; }
.nav-add-field input, .nav-search-form input { border: 0; background: transparent; min-height: 2.1rem; }
.nav-panel .field-bar-submit, .nav-search-form button { border: 0; background: transparent; color: var(--muted-ink); }
.nav-panel .field-bar-submit:hover, .nav-search-form button:hover { color: var(--accent); background: var(--soft); }
.nav-tools { gap: .5rem; }
.nav-tool { min-height: 2.25rem; padding: .25rem .45rem; border-radius: 7px; }
.nav-tool:hover { background: var(--paper); text-decoration: none; }
.nav-tool-messages svg { width: 1.1rem; height: 1.1rem; }
.header-unread-badge { background: var(--accent); color: white; border-radius: 999px; padding: 0 .35rem; font-size: .7rem; }
.account-menu-panel { z-index: 3; right: 0; margin-top: .4rem; padding: .45rem; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: var(--shadow); }
.account-menu-panel a, .account-menu-panel button { display: block; width: 100%; padding: .45rem .6rem; text-align: left; border: 0; background: transparent; }

main { padding-block: 1.5rem 3rem; }
.layout { grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem; }
.home-layout, .profile-layout, .love-layout { margin-top: 1.25rem; }
.main { min-width: 0; }
.aside { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.section-title, .profile-section-title, .section-label { letter-spacing: -.01em; }
.section-title, .profile-section-title { font-size: 1.15rem; }
.section-label { margin: 0 0 .65rem; color: var(--muted-ink); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.muted, .dim, .when, .meta { color: var(--muted-ink); }
.box, .feed-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.feed-cards { display: grid; gap: .9rem; }
.feed-item { margin: 0; padding: 1rem; }
.feed-group-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.feed-love { font-weight: 700; }
.feed-group-items { gap: .7rem; margin: .8rem 0 0; }
.feed-thought { padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.feed-thought:last-child { padding-bottom: 0; border-bottom: 0; }
.feed-thought-link { display: block; }
.feed-thought-body { margin: .5rem 0; overflow-wrap: anywhere; }
.feed-thought-meta { font-size: .83rem; }
.feed-thought-media { display: flex; gap: .45rem; overflow: auto; }
.feed-thought-media img { width: min(7rem, 26vw); aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.friend-preview { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfaf7; }
.today-section-heading, .activity-heading, .loves-heading, .messages-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.today-kicker, .messages-kicker { margin: 0; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.today-section-heading h2 { margin: .15rem 0 0; font-size: 1.1rem; }
.friend-preview-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.friend-preview-item:last-child { border-bottom: 0; }
.friend-avatar, .conversation-avatar { display: grid; place-items: center; border-radius: 50%; background: #e9e5dd; color: #615d56; font-weight: 700; }
.friend-arrow { color: var(--muted-ink); }
.activity-tabs { display: flex; gap: .25rem; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.activity-tab { padding: .25rem .7rem; border-radius: 999px; color: var(--muted-ink); font-size: .85rem; }
.activity-tab.on { background: var(--ink); color: white; text-decoration: none; }
.chips { gap: .45rem; }
.chips > a, .love-entry, .suggestion-pill, .shared-love-chip, .say-hi-love { padding: .38rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.chips > a:hover, .shared-love-chip:hover { border-color: var(--accent); text-decoration: none; }
.love-entry { padding-right: .25rem; }
.love-remove, .suggestion-action { min-height: auto; padding: 0 .25rem; border: 0; background: transparent; color: var(--muted-ink); }
.love-remove:hover, .suggestion-dismiss:hover { color: var(--accent); }
.popular-love-chip { display: inline-flex; align-items: center; gap: .35rem; }
.popular-love-thumb { width: 1.2rem; height: 1.2rem; border-radius: 50%; object-fit: cover; }
.home-sidebar-section, .home-your-loves { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.top-match-list { display: grid; gap: .45rem; margin: 0; }
.top-match-list li { display: grid; grid-template-columns: 1.3rem 1fr auto; align-items: center; gap: .35rem; }
.top-match-rank { color: var(--muted-ink); font-size: .8rem; }
.top-match-score { color: var(--accent); font-size: .8rem; }
.home-image-grid { grid-template-columns: repeat(3, 1fr); }
.home-image-tile img { aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.home-image-tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }

.profile-head, .love-head, .headline { margin-block: 1.5rem 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.love-head { flex-direction: column; align-items: flex-start; gap: .45rem; }
.love-head-social { margin-top: 0; }
.love-head-action { margin-top: .35rem; }
.love-head-action .love-count-pill { display: inline-flex; align-items: center; gap: .4rem; }
.avatar, .avatar img, .friend-avatar { border-radius: 50%; object-fit: cover; }
.profile-name-row h1, .love-title-row h1 { font-size: clamp(1.55rem, 3vw, 2.35rem); letter-spacing: -.04em; }
.profile-bio, .profile-link, .profile-meta { margin: .25rem 0 0; }
.profile-actions { gap: .45rem; }
.profile-actions button, .profile-actions a { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .7rem; }
.profile-layout > .main > section, .love-discussion, .profile-together { padding-block: 1.2rem; border-bottom: 1px solid var(--line); }
.love-groups { gap: 1.5rem; }
.love-group-label { color: var(--muted-ink); font-size: .8rem; }
.love-group-dot { display: inline-block; width: .45rem; height: .45rem; margin-right: .4rem; border-radius: 50%; background: var(--accent); }
.thumbs img { border-radius: 8px; border: 1px solid var(--line); }
.say-hi-panel, .profile-guest-note, #guest-email { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.messages-page, .settings-page, .friends-page, .saved-page, .contact-page { width: min(100%, 62rem); margin: 1.5rem auto; }
.messages-page { max-width: 46rem; }
.messages-header { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.messages-header h1 { margin: .15rem 0; font-size: 1.7rem; }
.messages-list { display: grid; gap: .55rem; min-height: 12rem; padding: 1rem 0; }
.messages-conversation { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: .9rem; text-decoration: none; }
.messages-conversation:hover { border-color: #c6c0b7; transform: translateY(-1px); }
.conversation-avatar { width: 2.4rem; height: 2.4rem; overflow: hidden; }
.conversation-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conversation-main { min-width: 0; }
.conversation-title { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.conversation-stats { color: var(--muted-ink); font-weight: 400; }
.conversation-main > .muted { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-meta { display: grid; justify-items: end; gap: .2rem; color: var(--muted-ink); font-size: .8rem; }
.message-row { display: flex; }
.message-row-mine { justify-content: flex-end; }
.message-bubble { max-width: min(80%, 34rem); padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; background: var(--paper); }
.message-row-mine .message-bubble { border-color: #dec1bd; border-radius: 12px 12px 3px 12px; background: #fff5f3; }
.message-bubble p { margin: 0 0 .35rem; overflow-wrap: anywhere; }
.message-bubble small { color: var(--muted-ink); }
.message-reply-form { display: grid; gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.message-reply-form textarea { width: 100%; resize: vertical; }
.message-reply-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.site-footer { padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); color: var(--muted-ink); }

@media (max-width: 48rem) {
  .shell { width: min(100% - 1.5rem, 42rem); }
  .top-authed { align-items: flex-start; }
  .nav-tools { margin-left: auto; }
  .nav-tool-text { display: none; }
  .nav-commands { order: 3; flex-basis: 100%; }
  .layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .aside { border-left: 0; border-top: 1px solid var(--line); padding: 1.25rem 0 0; }
  .home-layout, .profile-layout, .love-layout { margin-top: .5rem; }
  .profile-head, .love-head, .headline { gap: .75rem; }
  .messages-conversation { grid-template-columns: auto 1fr; }
  .conversation-meta { grid-column: 2; justify-items: start; display: flex; flex-wrap: wrap; gap: .45rem; }
}

@media (max-width: 30rem) {
  .shell { width: min(100% - 1rem, 28rem); }
  main { padding-top: .75rem; }
  .nav-commands { gap: .45rem; }
  .nav-search-form { width: 100%; }
  .today-section-heading, .activity-heading, .loves-heading, .messages-header { align-items: flex-start; flex-direction: column; }
  .activity-tabs { align-self: stretch; justify-content: space-between; }
  .activity-tab { flex: 1; text-align: center; }
  .feed-item { padding: .8rem; }
  .friend-preview { padding: .85rem; }
  .message-bubble { max-width: 92%; }
  .message-reply-actions { align-items: stretch; flex-direction: column; }
  .message-reply-actions button { width: 100%; }
  .home-image-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Craigslist-style presentation: plain surfaces, native-looking controls,
   and familiar blue links while retaining the existing page structure. */
:root {
  --ink: #000;
  --muted-ink: #555;
  --line: #ccc;
  --soft: #fff;
  --paper: #fff;
  --accent: #000;
  --radius: 0;
  --shadow: none;
}

html, body { background: #fff; color: #000; }
body { font-family: "Times New Roman", Times, serif; font-size: medium; line-height: 1.4; }
a { color: #0000ee; }
a:visited { color: #551a8b; }
.brand-logo, .footer-links a, .activity-tab.on, .nav-tool,
.account-menu-panel a, .profile-actions a, .chips > a, .love-entry,
.suggestion-pill, .shared-love-chip, .say-hi-love { color: inherit; }
.brand-name { color: #0000ee; }

.shell { width: min(100% - 2rem, 72rem); }
.top { min-height: 0; padding-block: .75rem; border-bottom: 0; }
main { padding-block: 1rem 2rem; }
button, input, textarea, select {
  border: 1px solid #999;
  border-radius: 0;
  background: #fff;
  color: #000;
}
button, input[type="submit"] { min-height: 0; padding: .25rem .5rem; }
input, textarea, select { padding: .25rem .35rem; }
:focus-visible { outline: 2px dotted #000; outline-offset: 1px; }
.nav-panel.field-bar, .nav-search-form { background: #fff; border: 1px solid #999; border-radius: 0; box-shadow: none; }
.nav-add-field input, .nav-search-form input { min-height: 0; }
.nav-panel .field-bar-submit, .nav-search-form button { color: #000; }
.nav-panel .field-bar-submit:hover, .nav-search-form button:hover { color: #000; background: #eee; }
.nav-tool:hover, .account-menu-panel a:hover { background: #eee; }
.account-menu-panel { border: 1px solid #999; border-radius: 0; background: #fff; box-shadow: none; }
.box, .feed-item, .friend-preview, .say-hi-panel, .profile-guest-note, #guest-email,
.messages-conversation, .message-bubble { border: 1px solid #ccc; border-radius: 0; background: #fff; box-shadow: none; }
.feed-item { padding: .75rem; }
.feed-group-head, .feed-thought { border-color: #ddd; }
.aside { border-color: #ccc; }
.activity-tabs { border: 0; border-radius: 0; background: transparent; }
.activity-tab { border-radius: 0; color: #0000ee; }
.activity-tab.on { background: #eee; }
.chips > a, .love-entry, .suggestion-pill, .shared-love-chip, .say-hi-love,
.profile-actions button, .profile-actions a { border-radius: 0; background: #fff; }
.site-footer { border-top: 1px solid #ccc; color: #555; }
.guest-comments h2 { margin-bottom: .15rem; padding-bottom: 0; border-bottom: 0; }
.guest-love-count {
  display: inline-block;
  padding: .05rem .2rem;
  border: 0;
  background: #f3eafa;
  color: #6b1a82;
}
.guest-email-close-form { position: absolute; top: .45rem; right: .65rem; margin: 0; }
.guest-email-close { border: 0; padding: 0 .25rem; background: transparent; color: #555; font-size: 1.25rem; line-height: 1; }
.guest-email-close:hover { background: #eee; color: #000; }
dialog#guest-email {
  width: fit-content;
  max-width: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  position: relative;
  padding: .35rem 1rem 1rem;
  overflow: auto;
}
dialog#guest-email::backdrop { background: rgba(0, 0, 0, .35); }
.guest-love-cta {
  padding: .2rem .55rem;
  border: 1px solid #b58bc4;
  background: #fff;
  color: #6b1a82;
  font-size: .9rem;
  font-weight: normal;
}
.guest-love-cta:hover, .guest-love-cta:focus-visible {
  border-color: #8d5aa0;
  background: #f3eafa;
  color: #55146a;
}

/* Final plain-document pass. */
h1, h2, h3, h4, h5, h6 { font-family: "Times New Roman", Times, serif; letter-spacing: normal; }
.profile-title-tail { font-weight: 400; }
.section-label, .today-kicker, .messages-kicker { color: #000; letter-spacing: normal; text-transform: none; font-weight: normal; }
.brand-logo { color: #000; }
.header-unread-badge { background: #000; border-radius: 0; }
.love-group-dot { border-radius: 0; background: #000; }
.avatar, .avatar img, .friend-avatar, .conversation-avatar, .popular-love-thumb,
.feed-thought-media img, .home-image-tile img, .thumbs img { border-radius: 0; }
.feed-cards, .messages-list { gap: 1rem; }
.feed-item, .friend-preview, .messages-conversation, .message-bubble,
.say-hi-panel, .profile-guest-note, #guest-email { box-shadow: none; }
.profile-head, .love-head, .headline { border-bottom: 1px solid #ccc; }
.profile-head > .avatar-shell, .profile-head > .avatar { margin-top: .55rem; }
.profile-head { gap: .45rem; }
.user-page .profile-head { margin-bottom: .25rem; padding-bottom: 0; border-bottom: 0; }
.user-page .profile-layout { margin-top: 0; }
.user-page .profile-layout > .main > section { padding-block: .5rem; border-bottom: 0; }
.user-page .profile-loves { margin-top: 0; }
.profile-layout > .main > section, .love-discussion, .profile-together,
.home-sidebar-section, .home-your-loves { border-color: #ccc; }

/* Love detail: keep the plain-document character, with an 8pt reading rhythm. */
.love-page main { padding-block: 2rem 3rem; }
.love-page .guest-public-content {
  width: min(100%, 48rem);
  max-width: none;
  margin: 2rem auto 0;
}
.love-page .guest-public-hero { max-width: none; }
.love-page .guest-love-cta-form { margin: 0 0 .75rem; }
.love-page .guest-public-headline {
  line-height: 1.1;
  letter-spacing: -.01em;
}
.love-page .guest-love-context { line-height: 1.2; }
.love-page .guest-love-action-row { gap: .75rem; margin-top: 1rem; }
.love-page .guest-public-intro { margin-top: 1rem; margin-bottom: 2.5rem; }
.love-page .guest-comments { margin-top: 0; }
.love-page .guest-comments h2 {
  margin: 0 0 1.5rem;
  line-height: 1.2;
}
.love-page .guest-comments .comments { width: 100%; gap: 0; }
.love-page .guest-comments .comment {
  max-width: none;
  padding: 1.5rem 0;
  line-height: 1.5;
}
.love-page .guest-comments .comment:first-child { padding-top: 0; }
.love-page .guest-comments .comment .meta {
  font-size: .9rem;
  line-height: 1.5;
}
.love-page .guest-comments .comment .body {
  margin-top: .5rem;
  line-height: 1.5;
}
.love-page .guest-comments .comment .body:empty + .comment-gallery {
  margin-top: .5rem;
}
.love-page .guest-comments .comment .comment-gallery { margin-top: 1rem; }
.love-page .guest-comments .comment .thumbs img {
  width: min(15rem, 100%);
  height: min(15rem, 100vw);
}
.love-page.guest .site-footer { margin-top: 3rem; }

@media (max-width: 48rem) {
  .love-page .guest-public-content { width: min(100%, 42rem); }
}

@media (max-width: 30rem) {
  .love-page .guest-public-content { margin-top: 1.5rem; }
  .love-page .guest-comments .comment { padding-block: 1.25rem; }
}

/* Landing page: align the entry flow and public list to the same reading grid. */
.landing-page main { padding-block: 2rem 3rem; }
.landing-page .landing {
  width: min(100%, 48rem);
  max-width: none;
  margin: 2rem auto 0;
  line-height: 1.5;
}
.landing-page .tagline {
  max-width: 42rem;
  margin: 0 0 1.5rem;
}
.landing-page .landing-row { max-width: 42rem; }
.landing-page .landing-auth-alts > p { margin-block: .5rem; }
.landing-page .landing-field {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.landing-page .landing-field input { width: 12rem; }
.landing-page .landing-hint { margin-top: .5rem; line-height: 1.5; }
.landing-page .landing-loves { margin-top: 3rem; }
.landing-page .landing-loves h2 {
  line-height: 1.2;
  padding-bottom: .5rem;
}
.landing-page .landing-stats { margin: .5rem 0 0; line-height: 1.5; }
.landing-page .landing-love-list {
  margin-top: 1rem;
  column-gap: 2rem;
}
.landing-page .landing-love-list li { margin-bottom: .5rem; line-height: 1.5; }
.landing-page .landing-love-count { margin-left: .5rem; }
.landing-page .dev-box { margin-top: 2.5rem; }
.landing-page .site-footer { margin-top: 3rem; }

/* Public profile: keep the shared shell/grid while tightening the identity
   heading and bringing love-list text to the accessible reading rhythm. */
.user-page:not(.home-page) .profile-head h1,
.love-page .guest-public-headline {
  font-size: clamp(2rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.user-page:not(.home-page) .profile-layout,
.user-page:not(.home-page) .profile-loves,
.user-page:not(.home-page) .profile-loves a {
  line-height: 1.5;
}

/* Editorial pages share the public reading column and rhythm. */
.editorial-page main {
  width: min(100%, 48rem);
  max-width: none;
  margin: 2rem auto 0;
  line-height: 1.5;
}
.editorial-page main > h1,
.editorial-page main > h2 {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  line-height: 1.2;
}
.editorial-page main > p {
  margin-block: 1rem;
  line-height: 1.5;
}
.editorial-page .contact-form {
  gap: .5rem;
  margin-block: 1.5rem;
}
.editorial-page .site-footer { margin-top: 3rem; }

/* A signed-out profile has no sidebar: do not reserve an empty grid column. */
.user-page:not(.home-page) .profile-layout-no-aside {
  grid-template-columns: minmax(0, 1fr);
}
.user-page:not(.home-page) .profile-layout-no-aside > .main {
  max-width: 48rem;
}
.user-page.guest:not(.home-page) .profile-head,
.user-page.guest:not(.home-page) .profile-layout-no-aside,
.user-page.guest:not(.home-page) .profile-guest-note {
  width: min(100%, 48rem);
  margin-inline: auto;
}
.user-page.guest:not(.home-page) .profile-guest-note {
  max-width: none;
  box-sizing: border-box;
  padding: 1.5rem;
}

/* Shared public-page charter: one title scale, one reading column, one footer
   alignment across homepage, editorial, profile, and Love pages. */
.landing-page .tagline,
.editorial-page main > h1,
.love-page .guest-public-headline,
.user-page.guest:not(.home-page) .profile-head h1 {
  font-size: clamp(2rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.landing-page .site-footer .footer-links,
.editorial-page .site-footer .footer-links,
.love-page.guest .site-footer .footer-links,
.user-page.guest .site-footer .footer-links {
  width: min(100%, 48rem);
  margin-inline: auto;
}

@media (max-width: 48rem) {
  .landing-page .landing { width: min(100%, 42rem); }
}

@media (max-width: 30rem) {
  .landing-page .landing { margin-top: 1.5rem; }
  .landing-page .landing-field { align-items: stretch; flex-wrap: wrap; }
  .landing-page .landing-field input { width: min(100%, 16rem); }
  .landing-page .landing-love-list li:nth-child(n + 13) { display: none; }
}
