/* Make Me a Reasonable Offer — warm, simple, phone-first. */
:root {
  --ink: #2b2118;
  --paper: #fff9f0;
  --card: #ffffff;
  --accent: #b5502a;      /* warm terracotta */
  --accent-dark: #8f3d1f;
  --sage: #5f7052;
  --line: #e6d9c6;
  --muted: #7a6a58;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; }

.topbar {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
  background: var(--card);
  border-bottom: 2px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { text-decoration: none; color: var(--ink); }
.brand-name { font-weight: bold; font-size: 1.25rem; display: block; line-height: 1.2; }
.brand-tag { color: var(--muted); font-style: italic; font-size: .95rem; }
.topnav { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; }
.topnav a { font-weight: bold; text-decoration: none; padding: .35rem .2rem; }
.topnav button {
  background: none; border: 2px solid var(--line); border-radius: 999px;
  padding: .35rem .8rem; cursor: pointer; font-weight: bold; color: var(--ink);
}

.banner {
  background: #fdf0d5; border-bottom: 2px solid #e8cf9a;
  padding: .7rem 1rem; text-align: center;
}
.flash {
  background: var(--sage); color: #fff; text-align: center;
  padding: .7rem 1rem; font-weight: bold;
}
.flash.error { background: var(--accent); }

main { max-width: 1060px; margin: 0 auto; padding: 1rem; }
.hero { text-align: center; }
.hero img.cover {
  width: 100%; max-height: 520px; object-fit: cover; object-position: center 30%;
  border-radius: var(--radius); border: 3px solid var(--line);
}
.hero h1 { font-size: 2rem; margin: .8rem 0 .2rem; }
.hero p.lede { font-size: 1.15rem; color: var(--muted); margin: .2rem auto 1rem; max-width: 34em; }
.video-wrap { max-width: 420px; margin: 0 auto 1rem; }
.video-wrap video {
  width: 100%; border-radius: var(--radius); border: 3px solid var(--line);
  background: #000;
}
.video-caption { font-style: italic; color: var(--muted); margin-top: .3rem; }

.how {
  display: grid; gap: 1rem; margin: 1.4rem 0;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.how .step {
  background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 1rem;
}
.how .step h3 { margin: .2rem 0 .4rem; }
.how .step .num {
  display: inline-block; background: var(--accent); color: #fff;
  width: 2rem; height: 2rem; line-height: 2rem; border-radius: 50%;
  text-align: center; font-weight: bold;
}

.section-title { font-size: 1.5rem; margin: 1.6rem 0 .6rem; }
.board {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.card a { text-decoration: none; color: inherit; }
.card .photo { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: #f3ead9; }
.card .card-body { padding: .8rem 1rem 1rem; }
.card .price { font-size: 1.3rem; font-weight: bold; color: var(--accent-dark); }
.card h3 { margin: .2rem 0; font-size: 1.1rem; }
.card .meta { color: var(--muted); font-size: .92rem; }
.badge {
  display: inline-block; background: #f3ead9; border: 1px solid var(--line);
  border-radius: 999px; padding: .05rem .6rem; font-size: .85rem; margin-right: .3rem;
}
.badge.sold { background: var(--accent); color: #fff; border-color: var(--accent); }
.badge.pending { background: #fdf0d5; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; border: none;
  border-radius: 999px; padding: .7rem 1.4rem; font-weight: bold;
  cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: var(--card); color: var(--ink); border: 2px solid var(--line); }
.btn.danger { background: #8a2f1d; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0; }

.detail { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .detail { grid-template-columns: 1.1fr 1fr; } }
.gallery .main-photo { border-radius: var(--radius); border: 3px solid var(--line); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.thumbs { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 3px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button.active { border-color: var(--accent); }
.thumbs img { width: 64px; height: 64px; object-fit: cover; }
.price-big { font-size: 1.9rem; font-weight: bold; color: var(--accent-dark); }

form.stack { display: grid; gap: .9rem; max-width: 560px; }
label { display: grid; gap: .3rem; font-weight: bold; }
label .hint { font-weight: normal; color: var(--muted); font-size: .92rem; }
input, select, textarea {
  padding: .65rem .7rem; border: 2px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); width: 100%;
}
textarea { min-height: 6rem; }
fieldset { border: 2px solid var(--line); border-radius: var(--radius); padding: .8rem; }
legend { font-weight: bold; padding: 0 .4rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 1rem; font-weight: normal; }
.radio-row label { display: flex; gap: .4rem; align-items: center; font-weight: normal; }
.radio-row input { width: auto; }

.preview-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.preview-grid figure { margin: 0; position: relative; }
.preview-grid img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); }
.preview-grid figcaption { font-size: .8rem; text-align: center; color: var(--muted); }
.preview-grid button {
  position: absolute; top: -8px; right: -8px; width: 28px; height: 28px;
  border-radius: 50%; border: none; background: var(--accent); color: #fff;
  font-weight: bold; cursor: pointer; line-height: 1;
}

.list-rows { display: grid; gap: 1rem; }
.row-card {
  background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 1rem;
  display: grid; gap: .6rem;
}
.row-card h3 { margin: 0; }
.row-card .thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.row-head { display: flex; gap: 1rem; align-items: center; }
.fee-box {
  background: #f7efe0; border: 2px dashed var(--accent);
  border-radius: var(--radius); padding: .8rem 1rem;
}
.fee-box table { width: 100%; border-collapse: collapse; }
.fee-box td { padding: .15rem 0; }
.fee-box td:last-child { text-align: right; font-weight: bold; }
.fee-box tr.total td { border-top: 2px solid var(--line); font-size: 1.05rem; }

.thread { display: grid; gap: .5rem; margin: 1rem 0; }
.msg {
  max-width: 85%; padding: .6rem .8rem; border-radius: 14px;
  background: #f3ead9; justify-self: start; white-space: pre-wrap;
}
.msg.mine { background: var(--sage); color: #fff; justify-self: end; }
.msg .when { display: block; font-size: .78rem; opacity: .75; margin-top: .2rem; }
.empty { color: var(--muted); font-style: italic; padding: 1rem 0; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.tabs a {
  padding: .45rem 1rem; border: 2px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: bold; color: var(--ink); background: var(--card);
}
.tabs a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer {
  margin-top: 3rem; border-top: 2px solid var(--line);
  padding: 1.2rem 1rem 2rem; text-align: center; color: var(--muted);
  background: var(--card);
}
.footer .fineprint { font-size: .88rem; max-width: 46em; margin: .4rem auto 0; }
