/* Editorial headlines, quiet English accents, and upright practical information. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}
:root { --accent-serif: "Cormorant Garamond", Georgia, serif; }

.hero h1, .section-heading h2, .buyer-intro h2, .approach h2,
.community-note-entry h2, .final-contact h2 {
  font-weight: 400;
  letter-spacing: .025em;
  text-wrap: balance;
}
.hero h1 { font-size: clamp(48px, 4.8vw, 68px); line-height: 1.5; letter-spacing: .035em; }
.hero-copy > .eyebrow { letter-spacing: .12em; }
.hero-person { font-size: 16px; letter-spacing: .04em; margin-bottom: 20px; }
.hero .editorial-annotation {
  margin: 12px 0 0;
  color: #705532;
  font: italic 600 28px/1.3 var(--accent-serif);
  letter-spacing: .01em;
}
.hero-description { margin-top: 28px; font-size: 16px; line-height: 2.05; }
.section-heading h2, .buyer-intro h2, .approach h2 { line-height: 1.65; }
.approach h2 em { font-style: normal; }
.portrait-caption p { letter-spacing: .035em; }
.nav a, .button, .under-link, .filter, label, input, select, textarea {
  font-family: var(--sans, var(--font-sans-tc)), sans-serif;
  font-style: normal;
}
.nav a, .button, .under-link { letter-spacing: .035em; }
.home-card h3, .seller-summary h3, .calc-heading h3,
.contact-dialog h2, .seller-phone-dialog h2, .line-handoff-card h1 {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  letter-spacing: .015em;
}
.home-card h3 { font-size: 24px; line-height: 1.65; }
.seller-summary h3 { font-size: 27px; line-height: 1.65; }
.contact-dialog h2, .seller-phone-dialog h2 { font-size: 27px; line-height: 1.6; }
.home-price, .monthly-amount strong, .detail-price, .result-details dd {
  font-family: var(--sans);
  font-style: normal;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.015em;
}
.button { transition: background .25s ease, color .25s ease, border-color .25s ease; }
.button:hover { transform: none; }
.home-photo img { transition-duration: 1s; }
.home-card:hover .home-photo img { transform: scale(1.025); }

.community-notes .notes-brand { font-family: var(--font-editorial), serif; font-weight: 400; letter-spacing: .05em; }
.community-notes .notes-brand small { font: 600 15px/1.5 var(--accent-serif); letter-spacing: .12em; }
.community-notes .notes-index h1 { font-size: clamp(34px, 4.3vw, 54px); line-height: 1.55; letter-spacing: .035em; }
.community-notes .notes-article-heading h1 { line-height: 1.65; letter-spacing: .025em; text-wrap: balance; }
.community-notes .notes-intro { font-family: var(--font-sans-tc), sans-serif; font-size: 17px; line-height: 2; }
.community-notes .notes-body h2, .community-notes .notes-toc h2,
.community-notes .notes-sources h2, .community-notes .notes-author h2 {
  font-family: var(--font-sans-tc), sans-serif;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .015em;
}
.community-notes .notes-body h2 { font-size: 25px; }
.community-notes .notes-body p, .community-notes .notes-body li { line-height: 2.05; }
.community-notes .notes-card h2 { line-height: 1.65; letter-spacing: .015em; text-wrap: balance; }
.community-notes .notes-number { font: 600 34px/1.2 var(--accent-serif); color: #695039; }
.community-notes .notes-english {
  color: #695039;
  font: italic 600 24px/1.45 var(--accent-serif);
  letter-spacing: .015em;
  text-transform: none;
}

/* Native cross-document fade: normal navigation remains the fallback. */
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-duration: .45s; }
::view-transition-old(root) { animation: page-fade-out .24s ease-in both; }
::view-transition-new(root) { animation: page-fade-in .45s ease-out both; }
@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; } }

@media (max-width: 1100px) {
  .hero h1 { font-size: 50px; }
  .hero .editorial-annotation { font-size: 27px; }
}
@media (max-width: 800px) {
  .hero h1 { font-size: 40px; }
  .hero .editorial-annotation { font-size: 25px; }
}
@media (max-width: 600px) {
  /* Lead with the advisor on phones; keep the face above the fixed LINE bar. */
  .hero { padding: 22px 24px 44px; gap: 28px; }
  .hero-image { grid-row: 1; margin: 0; width: 100%; min-width: 0; }
  .hero-photo > img { height: clamp(260px, 42svh, 360px); object-position: 50% 58%; }
  .hero-image .portrait-caption { padding: 12px 16px; }
  .portrait-caption > span { font-size: 13px; }
  .portrait-caption p { font-size: 18px; line-height: 1.6; }
  .hero-copy > .eyebrow { margin-bottom: 12px; }
  .hero-person { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(38px, 10.6vw, 46px); line-height: 1.5; letter-spacing: .015em; }
  .hero .editorial-annotation { font-size: 26px; margin-top: 10px; }
  .hero-description { margin-top: 24px; }
  .home-card h3 { font-size: 23px; }
  .seller-summary h3, .contact-dialog h2, .seller-phone-dialog h2 { font-size: 25px; }
  .community-notes .notes-body h2 { font-size: 23px; }
  .community-notes .notes-number { font-size: 26px; }
  .community-notes .notes-english { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  .home-card:hover .home-photo img { transform: none; }
}

/* Keep the expanded browsing choices readable on narrow screens. */
.collection-bar .filters { flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }
.collection-bar .filter { flex: 0 0 auto; }
.detail-photo-open { display: block; position: relative; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.detail-photo-hint { position: absolute; top: 16px; left: 16px; padding: 6px 11px; border: 1px solid #ffffff85; border-radius: 4px; background: #fffefaed; color: #264b37; font-size: 12px; pointer-events: none; }
.detail-photo-open:focus-visible { outline: 3px solid #3c7750; outline-offset: -4px; }
.dialog.property-photo-dialog { width: min(96vw,1440px); height: 94svh; max-width: 1440px; max-height: 94svh; padding: 22px 26px; overflow: hidden; background: #18231e; color: #fffef8; }
.property-photo-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.property-photo-dialog .close { color: #fffef8; background: #2d3b32; border-color: #637267; z-index: 4; }
.photo-zoom-header { flex: 0 0 auto; padding-right: 50px; }
.property-photo-dialog .photo-zoom-header h2 { font-size: 20px; margin: 0; line-height: 1.6; font-family: var(--sans); }
.photo-zoom-header p { font-size: 12px; color: #cdd9cc; margin-top: 4px; }
.photo-zoom-viewport { position: relative; flex: 1 1 0; min-height: 0; overflow: auto; background: #101a14; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.photo-zoom-canvas { position: relative; width: 100%; height: 100%; }
.photo-zoom-canvas > img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.photo-zoom-viewport.is-zoomed .photo-zoom-canvas { width: 200%; height: 200%; }
.photo-zoom-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 14px; }
.photo-zoom-description { min-width: 0; font-size: 13px; }
.photo-zoom-description > span { color: #d1dfce; font-size: 12px; font-variant-numeric: tabular-nums; }
.photo-zoom-description p { margin-top: 3px; max-height: 3.6em; overflow: auto; overflow-wrap: anywhere; line-height: 1.8; }
.photo-zoom-actions { display: flex; flex-shrink: 0; gap: 8px; }
.photo-zoom-actions button { min-height: 44px; min-width: 44px; padding: 9px 14px; border: 1px solid #788a78; border-radius: 4px; background: #2c3e30; color: #fff; font-size: 13px; }
.photo-zoom-actions button:disabled { opacity: .4; cursor: default; }
.photo-zoom-actions button[aria-pressed=true] { background: #e8eee0; color: #1c3c28; }
.contact-dialog .contact-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.contact-dialog .contact-actions .button { width: 100%; margin-top: 0; justify-content: center; white-space: normal; text-align: center; }
.contact-dialog #copy-status:empty { display: none; }
@media (max-width: 600px) {
  .dialog.property-photo-dialog { width: 100%; height: 100dvh; max-height: 100dvh; padding: calc(16px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom)); }
  .property-photo-dialog .close { top: calc(10px + env(safe-area-inset-top)); right: 10px; }
  .property-photo-dialog .photo-zoom-header h2 { font-size: 16px; }
  .photo-zoom-header p { font-size: 11px; }
  .photo-zoom-footer { flex-wrap: wrap; gap: 10px; }
  .photo-zoom-description { width: 100%; }
  .photo-zoom-description p { max-height: 1.8em; }
  .photo-zoom-actions { width: 100%; justify-content: center; }
  .photo-zoom-actions #photo-zoom-toggle { flex: 1; }
  .detail-photo-hint { top: 12px; left: 12px; font-size: 11px; }
}

/* Keep the room, living-room and bathroom counts together when cards wrap. */
.home-specs .home-layout { display: inline-block; white-space: nowrap; }
