/* Pennardine Realty: knows what your street sells for. A wine band, chalk paper, sky blue for the
   picked street and the range. Young Serif and Figtree 400/600. */

@font-face { font-family: "Young Serif"; src: url("/demos/pennardine/after/fonts/young-serif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url("/demos/pennardine/after/fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url("/demos/pennardine/after/fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --wine: #5a1e2c;
  --wine-2: #6d2a3a;
  --chalk: #f5f1ea;
  --sky: #b9d3ec;
  --ink: #1a1617;
  --soft: #5c5254;
  --line: #ddd4c8;
  --serif: "Young Serif", Georgia, serif;
  --sans: Figtree, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--chalk); color: var(--ink); font: 400 1rem/1.55 var(--sans); font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #2f6db3; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--chalk); padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.button.sky { background: var(--sky); color: var(--ink); }
.button.sky:hover { background: #d0e2f3; }
.button.wine { background: var(--wine); color: var(--chalk); }
.button.wine:hover { background: var(--wine-2); }
.button.ghost { box-shadow: inset 0 0 0 2px var(--ink); background: var(--chalk); }
.button.small { min-height: 42px; padding: 0 16px; }

/* ---- Header ---- */
.top { position: sticky; top: 0; z-index: 20; background: var(--wine); color: var(--chalk); }
.top.is-raised { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1440px; margin: 0 auto; padding: 10px 24px; }
.wordmark { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; }
.wordmark span { font-family: var(--sans); font-size: 0.95rem; opacity: 0.8; margin-left: 2px; }
.top nav { display: flex; align-items: center; gap: 22px; }
.nav-link { text-decoration: none; opacity: 0.9; }
.nav-link:hover { text-decoration: underline; }
.nav-phone { font-weight: 600; text-decoration: none; }
.nav-cta { min-height: 40px; }
.listing-page .top { background: var(--sky); color: var(--ink); }

/* ---- Hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: calc(100svh - 62px); }
.band { min-width: 0; background: var(--wine); color: var(--chalk); padding: 36px 40px 40px max(24px, calc((100vw - 1440px) / 2 + 24px)); }
.kicker { font-size: 0.92rem; opacity: 0.85; }
.band h1 { font-size: clamp(2.3rem, 3.8vw, 3.7rem); margin-top: 14px; }
.proof { margin-top: 16px; font-size: 1.05rem; }
.proof b { font-weight: 600; color: var(--sky); }
.streets { border: 0; margin: 24px 0 0; padding: 0; }
.streets legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.street-list { display: flex; flex-wrap: wrap; gap: 8px; }
.street-list label { position: relative; cursor: pointer; }
.street-list input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.street-list span { display: inline-block; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(245, 241, 234, 0.6); }
.street-list input:checked + span { background: var(--sky); color: var(--ink); box-shadow: none; font-weight: 600; }
.street-list input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.other { margin-top: 12px; }
.other label { display: block; font-size: 0.9rem; margin-bottom: 6px; }
.other-row { display: flex; gap: 8px; }
.other-row input { flex: 1; min-width: 0; min-height: 42px; border-radius: 999px; border: 0; padding: 0 16px; background: var(--chalk); color: var(--ink); }
.quick { display: none; }
.visits { margin-top: 24px; }
.visits p { font-size: 0.9rem; opacity: 0.85; }
.visit-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hero-slot { display: inline-block; padding: 8px 14px; border-radius: 6px; background: var(--wine-2); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.hero-slot:hover { background: #82394b; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.hero-call { font-weight: 600; font-size: 1.1rem; text-decoration: none; border-bottom: 2px solid var(--sky); }

.register { min-width: 0; padding: 30px max(24px, calc((100vw - 1440px) / 2 + 24px)) 32px 32px; display: flex; flex-direction: column; }
.register-head h2 { font-size: 1.55rem; }
.note { font-size: 0.82rem; color: var(--soft); margin-top: 4px; }
.panels { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 1; min-height: 0; }
.panel { display: flex; flex-direction: column; min-height: 0; }
.panel picture { flex: 1; min-height: 220px; overflow: hidden; border-radius: 4px; }
.panel img { width: 100%; height: 100%; max-height: 52svh; object-fit: cover; object-position: 50% 35%; }
.cap { padding-top: 10px; border-top: 3px solid var(--ink); margin-top: 8px; }
.cap .tag { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--wine); }
.cap .addr { font-family: var(--serif); font-size: 1.15rem; }
.cap .facts { font-size: 0.88rem; color: var(--soft); }
.cap .money { font-family: var(--serif); font-size: 1.3rem; }
.cap .why { font-size: 0.82rem; margin-top: 2px; }
.panel.is-new { animation: deal 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.panel.is-new:nth-child(2) { animation-delay: 0.08s; }
.panel.is-new:nth-child(3) { animation-delay: 0.16s; }
@keyframes deal { from { transform: translateY(14px) rotate(-1.5deg); opacity: 0.2; } to { transform: none; opacity: 1; } }

.range { margin-top: 18px; }
.bar { position: relative; height: 16px; border-radius: 999px; background: #e7e0d5; }
.span { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--sky); transition: left 0.6s, width 0.6s; }
.dot { position: absolute; top: 50%; left: 6%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 3px var(--chalk); }
.bar.is-out .dot { left: var(--x); transition: left 0.75s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bar.is-out .dot:nth-of-type(2) { transition-delay: 0.08s; }
.bar.is-out .dot:nth-of-type(3) { transition-delay: 0.16s; }
.range-text { margin-top: 10px; font-size: 0.95rem; }

/* ---- Sections ---- */
.section { padding: 84px 0; }
.section h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.lede { margin-top: 14px; max-width: 36em; font-size: 1.05rem; }
.tell { background: var(--sky); }
.tell-grid, .walk-grid, .rent-grid, .show-grid, .details-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.ask label { display: block; font-weight: 600; margin-bottom: 8px; }
.ask textarea, .field input, .field textarea { width: 100%; border: 1px solid #b7aea3; border-radius: 6px; padding: 12px; background: #fffdf9; }
.field input { min-height: 46px; padding: 0 12px; }
.ask-row { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips button { border: 0; border-radius: 999px; padding: 6px 12px; background: rgba(255, 255, 255, 0.55); cursor: pointer; font-size: 0.88rem; }
.demo { margin-top: 10px; font-size: 0.8rem; }
.answer { margin-top: 16px; background: var(--chalk); border-radius: 8px; padding: 18px; }
.answer h3 { font-size: 1.3rem; }
.answer .comps { margin: 10px 0; padding-left: 18px; }
.answer .button { margin-top: 12px; }
.answer .note { margin-top: 10px; }

.book { background: #fffdf9; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.book fieldset { border: 0; margin: 0 0 16px; padding: 0; }
.book legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.slots, .show-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.slot, .show-time { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.slot input, .show-time input { accent-color: var(--wine); width: 18px; height: 18px; margin: 0; }
.slot small { color: var(--soft); margin-left: 26px; flex-basis: 100%; }
.slot:has(input:checked), .show-time:has(input:checked) { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.field { display: grid; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field label span { font-weight: 400; color: var(--soft); }
.error { color: #8e1b2a; font-weight: 600; margin-bottom: 12px; }
.hint { color: var(--soft); font-size: 0.9rem; margin-top: 8px; }
.done h3 { font-size: 1.8rem; color: var(--wine); }
.done p { margin-top: 8px; }

.homes { background: #fffdf9; }
.listings { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.listings li, .listings li > a { display: flex; flex-direction: column; gap: 4px; }
.listings li { padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.listings li.feature { grid-row: span 2; background: var(--sky); border-color: var(--sky); }
.listings li.feature a { text-decoration: none; }
.listings li.feature img { margin-bottom: 8px; }
.listings b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.l-tag { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wine); }
.l-tag.rent { color: #2c5a85; }
.l-price { font-family: var(--serif); font-size: 1.15rem; }
.l-price small { font-family: var(--sans); font-size: 0.85rem; color: var(--soft); }

.terms { margin: 22px 0 0; display: grid; gap: 8px; }
.terms div { display: grid; grid-template-columns: 13em 1fr; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.terms dt { color: var(--soft); }
.terms dd { margin: 0; font-weight: 600; }
.tenant { background: var(--wine); color: var(--chalk); border-radius: 10px; padding: 24px; }
.tenant h3 { font-size: 1.5rem; }
.tenant p { margin-top: 10px; }

.people { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.people li { padding-top: 12px; border-top: 3px solid var(--ink); }
.people b { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; display: block; }
.people span { color: var(--wine); font-weight: 600; font-size: 0.9rem; }
.people p { margin-top: 6px; font-size: 0.95rem; }
.office { margin-top: 36px; display: grid; gap: 4px; }

.foot { background: var(--ink); color: var(--chalk); padding: 40px 0 100px; font-size: 0.9rem; }
.foot-name { font-family: var(--serif); font-size: 1.1rem; }
.foot-demo { margin-top: 8px; opacity: 0.8; }
.dock { display: none; }

/* ---- Listing poster ---- */
.poster { background: var(--sky); padding: 24px max(24px, calc((100vw - 1440px) / 2 + 24px)) 40px; overflow: hidden; }
.poster h1 { font-size: clamp(3rem, 8.6vw, 8.4rem); line-height: 0.95; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.private { display: inline-block; margin-top: 14px; font-weight: 600; }
.poster h1 .num { color: var(--wine); }
.poster-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: center; margin-top: 8px; }
.poster .l-price { font-size: clamp(2rem, 3.4vw, 3rem); }
.ticket { margin-top: 18px; background: var(--wine); color: var(--chalk); padding: 14px 18px; border-radius: 6px; max-width: 26em; }
.ticket b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.offers { margin-top: 10px; font-size: 0.92rem; }
.cutout { margin: 0; }
.cutout img { width: 100%; max-height: 62svh; object-fit: contain; }
.sold-near { margin-top: 18px; font-size: 0.92rem; color: var(--soft); }

/* ---- Narrow screens ---- */
@media (max-width: 1060px) {
  .top nav .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .band { padding: 28px 24px 32px; }
  .register { padding: 24px; }
  .panel img { max-height: 420px; }
  .tell-grid, .walk-grid, .rent-grid, .show-grid, .details-grid { grid-template-columns: 1fr; gap: 28px; }
  .listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .top-in { padding: 8px 16px; }
  .wordmark span, .nav-phone { display: none; }
  .nav-cta { padding: 0 14px; font-size: 0.92rem; }
  .band { padding: 20px 16px 26px; }
  .band h1 { font-size: 2.3rem; margin-top: 8px; }
  .proof { margin-top: 10px; }
  .streets { margin-top: 16px; }
  .quick { display: block; margin-top: 12px; color: var(--sky); font-weight: 600; }
  .street-list { gap: 6px; }
  .street-list span { padding: 6px 12px; }
  .hero-slot { padding: 7px 10px; font-size: 0.86rem; }
  .visits { margin-top: 16px; }
  .hero-actions { margin-top: 16px; }
  .register { padding: 20px 0 24px; }
  .register-head { padding: 0 16px; }
  .panels { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 0 16px; scrollbar-width: none; }
  .panel { flex: 0 0 64%; scroll-snap-align: start; }
  .panel picture { min-height: 0; }
  .panel img { height: 300px; max-height: none; }
  .range { padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .listings, .people { grid-template-columns: 1fr; }
  .listings li.feature { grid-row: auto; }
  .slots, .show-times, .fields { grid-template-columns: 1fr; }
  .terms div { grid-template-columns: 1fr; gap: 0; }
  .poster { padding: 18px 16px 28px; }
  .poster h1 { font-size: 2.6rem; line-height: 1; white-space: normal; }
  .poster h1 .num { display: block; }
  .poster-grid { grid-template-columns: 1fr; }
  .cutout { order: -1; }
  .cutout img { max-height: 250px; }
  .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--chalk); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.25s; }
  .dock.is-on { transform: none; }
  .dock .button { flex: 1; padding: 0 10px; }
}

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