/* LastDayFirstDay - lastdayfirstday.com. Business sales for the trades: the owner's last day is somebody's first day.
   Warm paper, dark walnut ink, an oxblood accent for the handoff, brass for emphasis, green only for "sold".
   Source Serif 4 for headings, Inter for text. One stylesheet, no framework, no build step. Mobile first: the reader is
   sixty-five and on a phone, so every grid stacks, every button spans, and nothing is wider than the screen. */
:root {
  --ink: #1f1a17; --ink-2: #3a312c; --paper: #f8f5ee; --card: #ffffff; --line: #e6e0d4; --muted: #6b625b; --ash: #4a413b;
  --ox: #8a3b2e; --ox-dark: #6e2d23; --ox-soft: #f3e4df; --brass: #b7791f; --brass-soft: #f6ead3;
  --green: #1a7f4b; --green-soft: #e1f3e8; --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@media (min-width: 760px) { body { font-size: 17px; } }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; color: var(--ink); letter-spacing: -.01em; line-height: 1.1; text-wrap: balance; margin: 0 0 .6rem; font-weight: 600; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 7.5vw, 4.2rem); }
h2 { font-size: clamp(1.55rem, 5.2vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; overflow-wrap: anywhere; }
a { color: var(--ox-dark); }
a:hover { color: var(--ink); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: .6rem; }
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 44rem; }
@media (min-width: 760px) { .lede { font-size: 1.2rem; } }
section { padding: 2.6rem 0; }
@media (min-width: 760px) { section { padding: clamp(3rem, 7vw, 5.5rem) 0; } }
section.alt { background: #fffdf8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--ox); color: #fff; text-decoration: none; font-weight: 700; padding: .9rem 1.3rem; border-radius: 12px; border: 1px solid var(--ox); font-size: 1rem; line-height: 1.2; text-align: center; transition: background .15s, transform .15s; }
.btn:hover { background: var(--ox-dark); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn.green { background: var(--green); border-color: var(--green); }
.btn.sm { padding: .55rem .9rem; font-size: .9rem; border-radius: 10px; }
.cta { display: flex; flex-direction: column; gap: .7rem; margin: 1.4rem 0 1rem; }
.cta .btn { width: 100%; }
@media (min-width: 560px) { .cta { flex-direction: row; flex-wrap: wrap; } .cta .btn { width: auto; } }

/* header: the logo, a menu button on a phone, the full row on a desk */
.top { position: sticky; top: 0; z-index: 20; background: rgba(248, 245, 238, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 62px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo img { width: 30px; height: 30px; }
.logo .wm b { color: var(--ox); font-weight: 700; }
.menu-btn { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .85rem; font: inherit; font-weight: 700; font-size: .95rem; color: var(--ink); cursor: pointer; }
.menu-btn .bars { display: inline-block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.menu-btn .bars::before { top: -6px; } .menu-btn .bars::after { top: 6px; }
.menu { display: none; }
.top.open .menu { display: flex; flex-direction: column; gap: .2rem; position: absolute; top: 100%; left: 0; right: 0; background: #fffdf8; border-bottom: 1px solid var(--line); padding: .8rem max(16px, env(safe-area-inset-left, 0px)) 1rem; box-shadow: 0 18px 40px rgba(31, 26, 23, .12); }
.menu a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .7rem .4rem; border-bottom: 1px solid var(--line); }
.menu a:last-child { border-bottom: 0; }
.menu a.btn { margin-top: .6rem; color: #fff; justify-content: center; }
.menu .menu-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); padding: .6rem .4rem .2rem; }
@media (min-width: 980px) {
  .menu-btn { display: none; }
  .menu, .top.open .menu { display: flex; flex-direction: row; align-items: center; gap: 1.1rem; position: static; background: none; border: 0; padding: 0; box-shadow: none; }
  .menu a { padding: 0; border: 0; color: var(--ash); font-size: .95rem; }
  .menu a:hover { color: var(--ink); }
  .menu a.btn { margin: 0; padding: .6rem 1rem; font-size: .95rem; color: #fff; }
  .menu .menu-label { display: none; }
}

/* hero */
.hero { padding: 2.2rem 0 2.4rem; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: center; }
@media (min-width: 900px) { .hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); } .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); } }
.hero-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(31, 26, 23, .14); display: block; }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.2rem; }
.proof div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .75rem; font-size: .82rem; color: var(--ash); line-height: 1.35; }
.proof b { display: block; font-family: "Source Serif 4", Georgia, serif; font-size: 1.25rem; color: var(--ink); margin-bottom: .15rem; }
@media (min-width: 760px) { .proof { gap: 1rem; margin-top: 1.4rem; } .proof div { font-size: .95rem; padding: .9rem 1rem; } .proof b { font-size: 1.4rem; } }

/* the two doors */
.doors { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 760px) { .doors { grid-template-columns: 1fr 1fr; gap: 1.2rem; } }
.door { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: 0 1px 0 rgba(31, 26, 23, .04); }
@media (min-width: 760px) { .door { padding: 1.6rem; } }
.door .tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; background: var(--ox-soft); color: var(--ox-dark); margin-bottom: .8rem; }
.door.buyer .tag { background: var(--brass-soft); color: #8a5a12; }
.door ul { padding-left: 1.2rem; margin: .6rem 0 1.2rem; }
.door li { margin: .4rem 0; }
.door .btn { width: 100%; }
@media (min-width: 560px) { .door .btn { width: auto; } }

/* cards + grids */
.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
.two { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: start; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
@media (min-width: 760px) { .card { padding: 1.4rem; } }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: var(--ox-soft); color: var(--ox-dark); margin-bottom: .6rem; }
.pill.brass { background: var(--brass-soft); color: #8a5a12; }
.pill.green { background: var(--green-soft); color: var(--green); }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; position: relative; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ox); color: #fff; font-weight: 700; margin-bottom: .7rem; font-family: "Source Serif 4", Georgia, serif; }
.steps h3 { font-size: 1.08rem; }
.steps p { margin: 0; font-size: .95rem; color: var(--ash); }

/* exposure: where a listing goes */
.channels { display: grid; grid-template-columns: 1fr; gap: .9rem; margin-top: 1.4rem; counter-reset: ch; }
@media (min-width: 760px) { .channels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .channels { grid-template-columns: repeat(5, 1fr); } }
.channels div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.channels b { display: block; font-family: "Source Serif 4", Georgia, serif; font-size: 1.1rem; margin-bottom: .35rem; }
.channels p { margin: 0; font-size: .93rem; color: var(--ash); }
.weekly { background: var(--ink); color: #f8f5ee; border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-top: 1.2rem; font-size: .95rem; }
.weekly .from { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); margin-bottom: .4rem; }

/* listing cards (home + catalogue) */
.lcards { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.4rem; }
@media (min-width: 640px) { .lcards { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; } }
@media (min-width: 980px) { .lcards { grid-template-columns: repeat(3, 1fr); } }
.lcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.lcard img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.lcard .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.lcard h3, .lcard h2 { font-size: 1.15rem; margin: 0; line-height: 1.2; }
.lcard h3 a, .lcard h2 a { text-decoration: none; color: inherit; }
.lcard .area { color: var(--muted); font-size: .9rem; }
.lcard .ask { font-family: "Source Serif 4", Georgia, serif; font-size: 1.4rem; color: var(--ox-dark); margin-top: .25rem; }
.lcard .ask small { font-size: .82rem; color: var(--muted); font-family: Inter, sans-serif; }
.lcard .sde { font-size: .92rem; color: var(--ash); }
.lcard .meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
.lcard .meta span { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .18rem .5rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ash); }
.lcard a.btn { margin-top: auto; align-self: stretch; }
@media (min-width: 640px) { .lcard a.btn { align-self: flex-start; } }

/* the catalogue filters */
.filters { position: sticky; top: 62px; z-index: 10; background: var(--paper); padding: .8rem 0; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem; font: inherit; font-size: .92rem; font-weight: 600; color: var(--ash); cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #f8f5ee; }
.selects { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .6rem; }
@media (min-width: 760px) { .selects { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.selects select, .selects input { width: 100%; font: inherit; font-size: .95rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-width: 0; }
.selects input { grid-column: 1 / -1; }
@media (min-width: 760px) { .selects input { grid-column: auto; } }
.count { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; margin: 1rem 0 0; color: var(--ash); font-size: .95rem; }
@media (min-width: 640px) { .count { flex-direction: row; justify-content: space-between; align-items: center; gap: 1rem; } }
.count b { color: var(--ink); }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.4rem; margin-top: 1.2rem; }

/* profile pages */
.photo { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); margin: 1rem 0; display: block; }
.glance { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1rem 0; }
@media (min-width: 900px) { .glance { grid-template-columns: repeat(4, 1fr); gap: .9rem; } }
.glance div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; min-width: 0; }
.glance b { display: block; font-family: "Source Serif 4", Georgia, serif; font-size: 1.3rem; color: var(--ox-dark); overflow-wrap: anywhere; }
.glance span { color: var(--muted); font-size: .85rem; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: start; }
.two-col > *, .two > *, .hero .wrap > *, .grid > *, .doors > *, .lcards > * { min-width: 0; }   /* a wide table or word never widens the column past the phone */
@media (min-width: 860px) { .two-col { grid-template-columns: 1.2fr .8fr; gap: 2rem; } }
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; background: #fffdf8; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf th:first-child, .pf td:first-child { width: 40%; }
.pf tr.total td { font-weight: 700; border-top: 2px solid var(--ink); }
.pf tr.sub td { color: var(--muted); font-size: .86rem; }
.swipe { font-size: .8rem; color: var(--muted); margin: .4rem 0 0; }
@media (min-width: 760px) { .swipe { display: none; } }
.status { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.fine { font-size: .85rem; color: var(--muted); }

/* faq, band, footer, legal */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; margin: .6rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1rem; }
.faq p { margin: .7rem 0 0; color: var(--ash); }
.band { background: var(--ink); color: #f8f5ee; }
.band h2, .band p { color: #f8f5ee; }
.band .btn.ghost { color: #f8f5ee; border-color: rgba(248, 245, 238, .35); }
footer { padding: 2.2rem 0 2.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
footer .wrap { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 1fr auto; gap: 1rem 2rem; } }
footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
footer nav a { color: var(--ash); text-decoration: none; }
footer .small { grid-column: 1 / -1; }
.legal { max-width: 46rem; margin: 0 auto; padding: 2rem 0 3rem; }
.legal h1 { font-size: clamp(1.8rem, 6vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8rem; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.counties { display: grid; grid-template-columns: 1fr; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; color: var(--ash); }
@media (min-width: 560px) { .counties { grid-template-columns: 1fr 1fr; gap: .6rem 1.4rem; } }
@media (min-width: 900px) { .counties { grid-template-columns: repeat(3, 1fr); } }
.counties li b { color: var(--ink); }
.about-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.2rem; }
@media (min-width: 760px) { .regions { grid-template-columns: repeat(4, 1fr); } }
.regions a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.regions a span { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; margin-top: .15rem; }
