:root { color-scheme:dark; --paper:#151311; --card:#211e1a; --raised:#2b2621; --field:#191715; --ink:#f6efe6; --soft:#c9beb2; --muted:#a89e93; --line:rgba(246,239,230,.16); --accent:#e85e2b; --accent-dark:#ff9a70; --green:#70c89b; --red:#ef817c; --focus:#72a7ff; --radius:16px; --ease:cubic-bezier(.22,1,.36,1); }
* { box-sizing:border-box; }
html { background:var(--paper); }
body { margin:0; color:var(--ink); background:var(--paper); font-family:'Trebuchet MS', system-ui, sans-serif; font-size:15px; line-height:1.45; }
body::before { content:""; position:fixed; inset:0; pointer-events:none; opacity:.035; background-image:url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 70h140M70 0v140' stroke='%23211f1c' stroke-opacity='.2'/%3E%3C/svg%3E"); }
a { color:var(--accent-dark); text-underline-offset:3px; }
a:hover { color:var(--ink); }
button, input, select, textarea { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:wait; opacity:.6; }
:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:absolute; left:16px; top:-50px; z-index:20; padding:8px 12px; border-radius:8px; background:var(--raised); color:var(--ink); border:1px solid var(--line); }
.skip-link:focus { top:16px; }
.site-shell { min-height:100vh; display:flex; flex-direction:column; }
.topbar { min-height:72px; width:100%; max-width:1440px; margin:0 auto; padding:16px 32px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:flex; gap:10px; align-items:center; color:var(--ink); text-decoration:none; font-family:'Trebuchet MS', system-ui, sans-serif; font-weight:600; font-size:18px; letter-spacing:-.02em; }
.brand img { width:32px; height:32px; }
nav { display:flex; align-items:center; gap:20px; }
nav a, nav .nav-link { border:0; background:none; color:var(--soft); font-size:14px; text-decoration:none; padding:8px 0; }
nav a:hover, nav .nav-link:hover { color:var(--ink); }
nav .nav-cta { padding:10px 16px; color:var(--ink); border:1px solid var(--line); background:var(--card); border-radius:9px; }
main { width:100%; flex:1; }
.landing { max-width:1440px; margin:0 auto; padding:32px; }
.hero { min-height:calc(100vh - 136px); display:grid; grid-template-columns:minmax(280px,.86fr) minmax(420px,1.14fr); gap:64px; align-items:center; padding:48px 0 64px; }
.hero-copy { max-width:520px; }
.eyebrow { margin:0 0 12px; color:var(--accent-dark); font-size:12px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
h1,h2 { font-family:'Trebuchet MS', system-ui, sans-serif; font-weight:500; line-height:1.08; letter-spacing:-.035em; margin:0; }
h1 { font-size:clamp(38px,5vw,68px); }
h2 { font-size:24px; }
p { margin:0 0 16px; }
.hero-lede { margin-top:24px; max-width:35rem; color:var(--soft); font-size:19px; line-height:1.5; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; }
.fine-print { margin-top:20px; color:var(--muted); font-size:13px; }
.hero-photo { margin:0; position:relative; align-self:stretch; min-height:480px; border-radius:24px; overflow:hidden; background:var(--raised); box-shadow:0 18px 40px rgba(0,0,0,.28); }
.hero-photo img { display:block; width:100%; height:100%; min-height:480px; object-fit:cover; }
.hero-photo figcaption { position:absolute; left:20px; bottom:20px; padding:8px 12px; border-radius:8px; background:rgba(21,19,17,.88); color:var(--ink); font-size:13px; }
.landing-note { display:grid; grid-template-columns:1fr 1fr; gap:48px; padding:48px 0 80px; border-top:1px solid var(--line); }
.landing-note > div { display:flex; align-items:flex-start; gap:16px; }
.landing-note h2 { font-size:32px; max-width:300px; }
.landing-note p { max-width:480px; color:var(--soft); font-size:18px; }
.line-mark { display:block; width:40px; height:7px; margin-top:13px; border-bottom:3px solid var(--accent); border-radius:50%; transform:rotate(-6deg); }
.page { max-width:1160px; margin:0 auto; padding:56px 32px 80px; }
.page-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:32px; margin-bottom:32px; }
.page-heading.compact { align-items:center; }
.page-heading h1 { max-width:700px; font-size:clamp(34px,4vw,52px); }
.page-heading p:not(.eyebrow) { color:var(--soft); max-width:620px; font-size:17px; margin-top:12px; }
.step { display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:32px; color:var(--accent-dark); font-family:'Trebuchet MS', system-ui, sans-serif; font-size:13px; font-weight:500; border-bottom:2px solid var(--accent); }
.step.large { min-width:auto; height:auto; font-size:16px; padding-bottom:6px; }
.button { min-height:44px; display:inline-flex; justify-content:center; align-items:center; gap:8px; border-radius:9px; border:1px solid var(--line); padding:10px 18px; color:var(--ink); background:var(--card); text-decoration:none; font-weight:500; transition:background-color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease); }
.button:hover { border-color:rgba(246,239,230,.3); background:var(--raised); }
.button:active { transform:scale(.98); }
.button.primary { border-color:var(--accent); background:var(--accent); color:#21150f; }
.button.primary:hover { background:#ff9665; border-color:#ff9665; }
.button.danger { color:var(--red); border-color:rgba(239,129,124,.45); }
.button.wide { width:100%; }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); }
.auth-page { max-width:1440px; margin:0 auto; padding:42px 32px 80px; }
.auth-layout { min-height:calc(100vh - 200px); display:grid; grid-template-columns:1fr minmax(380px,500px); gap:64px; align-items:center; }
.auth-intro { max-width:660px; }
.auth-intro h1 { font-size:clamp(38px,5vw,64px); }
.auth-intro p:not(.eyebrow) { max-width:480px; margin-top:22px; color:var(--soft); font-size:19px; }
.auth-intro img { display:block; width:min(100%,640px); aspect-ratio:16/8; margin-top:40px; object-fit:cover; border-radius:18px; }
.form-card { padding:28px; }
.form-heading { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:24px; }
.form-heading h2 { font-size:29px; }
label { display:block; margin-top:16px; color:var(--soft); font-size:14px; }
input, select, textarea { display:block; width:100%; margin-top:7px; padding:11px 12px; color:var(--ink); background:var(--field); border:1px solid rgba(246,239,230,.24); border-radius:8px; accent-color:var(--accent); }
textarea { resize:vertical; min-height:84px; }
input::placeholder, textarea::placeholder { color:var(--muted); opacity:1; }
.hint { display:block; margin-top:6px; color:var(--muted); font-size:12px; }
.check-row { display:flex; gap:9px; align-items:flex-start; color:var(--ink); }
.check-row input { width:18px; height:18px; margin:2px 0 0; flex:0 0 auto; }
.form-card .button { margin-top:24px; }
.form-switch { margin:20px 0 0; color:var(--soft); font-size:14px; text-align:center; }
.form-switch a { font-weight:500; }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px 20px; }
.profile-form { padding:28px; max-width:780px; }
.profile-form > label { margin-top:24px; }
.city-picker { position:relative; margin-top:24px; }
.city-results { position:absolute; z-index:4; left:0; right:0; top:75px; max-height:280px; overflow:auto; border:1px solid var(--line); border-radius:9px; background:var(--card); box-shadow:0 8px 24px rgba(0,0,0,.28); }
.city-option { width:100%; display:flex; flex-direction:column; gap:2px; align-items:flex-start; padding:11px 13px; text-align:left; color:var(--ink); background:none; border:0; border-bottom:1px solid var(--line); }
.city-option:hover { background:var(--raised); }
.city-option small { color:var(--muted); }
.city-empty { padding:12px; }
.upload-block { margin-top:28px; padding-top:24px; border-top:1px solid var(--line); }
.upload-block h2 { font-size:20px; }
.upload-block input[type=file] { background:var(--raised); border-style:dashed; }
input::file-selector-button { margin-right:12px; padding:4px 8px; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:4px; font:inherit; cursor:pointer; }
input::file-selector-button:hover { background:var(--field); }
.photo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:16px; }
.photo-grid figure { margin:0; position:relative; aspect-ratio:1; overflow:hidden; border-radius:9px; background:var(--raised); }
.photo-grid img { width:100%; height:100%; object-fit:cover; }
.photo-grid button { position:absolute; left:8px; bottom:8px; padding:5px 8px; border:0; border-radius:5px; color:var(--ink); background:rgba(21,19,17,.9); font-size:12px; }
.form-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.notice { position:relative; margin:20px 0; padding:13px 44px 13px 14px; border-radius:9px; border:1px solid var(--line); background:var(--raised); color:var(--soft); }
.notice.error { border-color:rgba(239,129,124,.45); background:#3a211f; color:#ffb3ab; }
.notice-close { position:absolute; top:7px; right:8px; width:28px; height:28px; border:0; background:none; font-size:20px; color:inherit; }
.loading { display:flex; justify-content:center; align-items:center; gap:10px; min-height:220px; color:var(--muted); }
.spinner { width:17px; height:17px; border:2px solid var(--line); border-top-color:var(--accent); border-radius:50%; }
.filters { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:30px; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--card); }
.filter-label { margin:0 4px 0 10px; color:var(--muted); font-size:12px; }
.filter { min-height:34px; padding:7px 12px; color:var(--soft); border:1px solid var(--line); border-radius:7px; background:var(--paper); }
.filter.selected { color:var(--ink); border-color:var(--accent); background:#3d241b; }
.dog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.dog-card { overflow:hidden; border:1px solid var(--line); border-radius:16px; background:var(--card); }
.dog-image { aspect-ratio:4/3; background:var(--raised); }
.dog-image img { width:100%; height:100%; object-fit:cover; }
.dog-card-body { padding:20px; }
.dog-card-title { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.dog-card-title h2 { font-size:28px; }
.dog-card-title span { color:var(--muted); font-size:13px; }
.dog-meta { color:var(--soft); font-size:13px; }
.temperament { padding:10px 12px; color:var(--soft); border-left:3px solid var(--accent); background:#33251f; font-size:14px; }
.dog-actions { display:flex; gap:10px; margin-top:24px; }
.dog-actions .button { flex:1; }
.empty-state { max-width:560px; margin:64px auto; padding:44px 24px; text-align:center; border:1px dashed rgba(246,239,230,.28); border-radius:16px; background:rgba(33,30,26,.72); }
.empty-state h2 { margin-bottom:10px; }
.empty-state p { color:var(--soft); }
.empty-mark { display:grid; place-items:center; width:44px; height:44px; margin:0 auto 20px; border-radius:50%; color:var(--ink); border:2px solid var(--accent); font-size:22px; }
.match-list { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.match-card { display:flex; align-items:center; gap:14px; width:100%; padding:14px; text-align:left; border:1px solid var(--line); border-radius:12px; background:var(--card); color:var(--ink); }
.match-card:hover { background:var(--raised); }
.match-card img { width:64px; height:64px; object-fit:cover; border-radius:8px; background:var(--raised); }
.match-card span { display:flex; flex-direction:column; gap:3px; min-width:0; }
.match-card strong { font-family:'Trebuchet MS', system-ui, sans-serif; font-size:18px; font-weight:500; }
.match-card small { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chat-heading { display:flex; align-items:center; gap:16px; margin-bottom:24px; }
.chat-heading > div:nth-child(2) { flex:1; }
.chat-heading h1 { font-size:40px; }
.back-button { border:0; background:none; color:var(--accent-dark); padding:8px 0; }
.chat-actions { display:flex; gap:8px; }
.chat-actions .button { min-height:38px; padding:8px 13px; }
.chat-card { max-width:780px; overflow:hidden; }
.messages { display:flex; flex-direction:column; gap:12px; min-height:360px; max-height:60vh; overflow:auto; padding:24px; background:var(--field); }
.message { align-self:flex-start; max-width:75%; padding:10px 13px; border-radius:12px 12px 12px 4px; background:#302b26; }
.message.mine { align-self:flex-end; border-radius:12px 12px 4px 12px; background:#543124; }
.message p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.message time { display:block; margin-top:5px; color:var(--muted); font-size:11px; }
.message.mine time { color:var(--soft); }
.empty-chat { margin:auto; color:var(--muted); }
.message-form { display:flex; align-items:flex-end; gap:12px; padding:16px; border-top:1px solid var(--line); }
.message-form textarea { margin:0; }
.message-form .button { flex:0 0 auto; }
.profile-preview { display:grid; grid-template-columns:minmax(280px,1fr) 1fr; overflow:hidden; }
.profile-cover { min-height:360px; background:var(--raised); }
.profile-cover img { width:100%; height:100%; object-fit:cover; }
.profile-info { padding:32px; }
.profile-info h2 { font-size:38px; }
.profile-info > p { margin-top:12px; color:var(--soft); }
.profile-info blockquote { margin:28px 0 0; padding:14px 16px; border-left:3px solid var(--accent); background:#33251f; color:var(--soft); }
.settings-card { max-width:520px; margin-top:32px; padding:24px; }
.settings-card h2 { font-size:20px; }
.settings-card p { color:var(--soft); }
.settings-card .button { margin-top:16px; }
.report-list { display:flex; flex-direction:column; gap:12px; }
.report-card { display:flex; justify-content:space-between; gap:24px; padding:20px; }
.report-card h2 { margin:12px 0 8px; font-size:23px; }
.report-card p { color:var(--soft); }
.report-card small { color:var(--muted); }
.status { display:inline-block; padding:4px 8px; border-radius:5px; color:var(--green); background:#1f3a2d; font-size:12px; }
.status.dismissed { color:var(--muted); background:var(--raised); }
.status.resolved { color:var(--green); }
.report-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.report-actions .button { min-height:38px; padding:8px 12px; }
.dialog-card { width:min(480px, calc(100vw - 32px)); padding:26px; border:1px solid var(--line); border-radius:16px; background:var(--card); color:var(--ink); }
.dialog-card::backdrop { background:rgba(0,0,0,.68); }
.dialog-card h2 { margin-bottom:20px; }
footer { max-width:1440px; width:100%; margin:0 auto; padding:24px 32px 32px; display:flex; justify-content:space-between; gap:24px; color:var(--muted); border-top:1px solid var(--line); font-size:12px; }
@media (max-width: 900px) { .topbar { padding:16px 20px; } nav { gap:12px; } nav a:not(.nav-cta), nav .nav-link { font-size:13px; } .landing, .page, .auth-page { padding-left:20px; padding-right:20px; } .hero { grid-template-columns:1fr; gap:32px; padding-top:24px; } .hero-copy { max-width:680px; } .hero-photo { min-height:360px; } .hero-photo img { min-height:360px; } .auth-layout { grid-template-columns:1fr; gap:32px; min-height:auto; } .auth-intro img { max-width:560px; margin-top:24px; } .dog-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 620px) { body { font-size:14px; } .topbar { min-height:64px; padding:12px 16px; } .brand span { font-size:16px; } nav a:not(.nav-cta), nav .nav-link { display:none; } nav .nav-cta { padding:8px 12px; } .landing, .page, .auth-page { padding:28px 16px 56px; } .hero { min-height:auto; padding:20px 0 48px; } h1 { font-size:40px; } .hero-lede { font-size:17px; } .hero-photo { min-height:280px; border-radius:16px; } .hero-photo img { min-height:280px; } .landing-note { grid-template-columns:1fr; gap:16px; padding:32px 0 48px; } .landing-note h2 { font-size:28px; } .page-heading, .page-heading.compact { align-items:flex-start; flex-direction:column; gap:16px; margin-bottom:24px; } .page-heading h1 { font-size:38px; } .form-grid { grid-template-columns:1fr; gap:0; } .profile-form, .form-card { padding:20px; } .photo-grid { grid-template-columns:repeat(2,1fr); } .dog-grid, .match-list { grid-template-columns:1fr; } .filters { align-items:flex-start; } .filter-label { width:100%; margin-left:0; margin-top:5px; } .profile-preview { grid-template-columns:1fr; } .profile-cover { min-height:280px; } .profile-info { padding:24px; } .profile-info h2 { font-size:32px; } .chat-heading { align-items:flex-start; flex-wrap:wrap; } .chat-heading > div:nth-child(2) { min-width:180px; } .chat-heading h1 { font-size:34px; } .chat-actions { width:100%; margin-left:54px; } .messages { min-height:320px; padding:16px; } .message-form { align-items:stretch; flex-direction:column; } .report-card { flex-direction:column; } footer { flex-direction:column; padding:20px 16px 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration:0.01ms !important; animation-duration:0.01ms !important; } }
body::before { display:none; }
.eyebrow { text-transform:none; letter-spacing:0; font-size:14px; }
.menu-button { display:none; }
nav .button { margin:0; }
.no-photo { display:grid; place-items:center; min-height:100%; width:100%; height:100%; background:var(--raised); color:var(--soft); }
.no-photo span { padding:24px; }
.leash-line { display:block; width:104px; height:16px; margin-top:24px; border-bottom:6px solid var(--accent); border-radius:0 0 50% 30%; }
.hero-photo figcaption span { display:block; color:var(--soft); font-size:12px; margin-top:4px; }
.hero-actions > a:not(.button) { align-self:center; }
.text-button { padding:8px 0; border:0; background:none; color:var(--accent-dark); text-decoration:underline; text-underline-offset:4px; }
.city-results:empty { display:none; }
.city-results[hidden] { display:none; }
.city-results [role=option] { width:100%; display:flex; flex-direction:column; padding:12px; text-align:left; background:var(--card); border:0; border-bottom:1px solid var(--line); color:var(--ink); }
.city-results [role=option] small { color:var(--soft); }
.city-results [aria-selected=true], .city-results [role=option]:hover { background:var(--raised); }
fieldset { display:flex; flex-wrap:wrap; gap:8px; border:0; margin:0; padding:4px 8px 8px; }
legend { padding:0; font-size:13px; color:var(--soft); }
.filters { align-items:center; }
.filters .button { padding:8px 12px; min-height:40px; }
.match-image { width:80px; height:80px; overflow:hidden; border-radius:8px; flex:none; }
.match-image > img { width:100%; height:100%; object-fit:cover; }
.match-card > span:last-child { margin-left:auto; }
.match-card .no-photo { font-size:11px; }
.match-card .no-photo span { padding:8px; }
.profile-gallery { max-width:800px; }
.profile-gallery figure { aspect-ratio:4/3; }
.poll-note { margin:0; padding:8px 16px; border-top:1px solid var(--line); }
.form-error:empty, .page-error:empty { display:none; }
.message-form { flex-wrap:wrap; }
.message-form textarea { flex:1; }
.message-form .form-error { flex-basis:100%; }
.settings-card { max-width:680px; display:flex; flex-wrap:wrap; gap:16px; }
.settings-card > h2, .settings-card > p, .settings-card > .notice { flex-basis:100%; margin:0; }
#blocks-panel { margin-top:40px; }
.block-row { display:flex; gap:20px; justify-content:space-between; align-items:center; margin:12px 0; padding:16px; overflow-wrap:anywhere; }
.status-filter { max-width:240px; margin-bottom:24px; }
dialog { max-height:90dvh; width:min(600px,calc(100vw - 32px)); padding:0; border:0; background:var(--card); color:var(--ink); border-radius:16px; }
dialog::backdrop { background:rgba(0,0,0,.68); }
dialog .dialog-card { width:auto; border:0; }
dialog h3 { font-size:18px; font-weight:500; }
dialog form + form { border-top:1px solid var(--line); margin-top:24px; }
dialog .button { margin-top:8px; }
.detail-photo { aspect-ratio:4/3; margin:20px 0; overflow:hidden; border-radius:12px; }
.detail-photo img { width:100%; height:100%; object-fit:cover; }
.evidence-dog > img { max-height:240px; width:100%; object-fit:contain; }
#toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); max-width:min(600px,calc(100vw - 32px)); width:max-content; background:var(--raised); color:var(--ink); border:1px solid var(--line); padding:16px 20px; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.28); z-index:30; visibility:hidden; }
#toast.show { visibility:visible; }
@media(max-width:620px) {
  .topbar { flex-wrap:wrap; gap:12px; }
  .menu-button { display:block; border:1px solid var(--line); background:var(--card); color:var(--ink); padding:8px 12px; border-radius:8px; }
  #main-nav { display:none; width:100%; flex-direction:column; align-items:stretch; gap:0; border-top:1px solid var(--line); padding:8px 0; }
  #main-nav.open { display:flex; }
  #main-nav a, #main-nav button { display:block; text-align:left; border:0; padding:12px 8px; background:none; color:var(--ink); }
  #main-nav .button { min-height:44px; }
  .dog-image { aspect-ratio:4/3; }
  .chat-actions { margin-left:0; }
  .chat-heading > a { flex-basis:100%; }
  .block-row { flex-direction:column; align-items:stretch; }
}
h1:focus { outline:none; }
.hero-photo { align-self:center; min-height:0; aspect-ratio:3/2; }
.hero-photo img { min-height:0; height:100%; object-fit:cover; }
.auth-intro figure { margin:32px 0 0; }
.auth-intro figure img { margin-top:0; }
