/* Site typography (Dec 2026): Cormorant Garamond for titles, Jost for text.
   Loaded last on every page. Not applied to the header (logo + menu), the homepage hero (title, eyebrow and
   booking bar keep their original fonts), its date picker, buttons, or the logo in the footer. */
:root{--tdv-display:'Cormorant Garamond',Georgia,'Times New Roman',serif;--tdv-text:'Jost','Helvetica Neue',Arial,sans-serif}

/* Titles */
:where(main,footer,dialog) :is(h1,h2,h3):not(.hero,.hero *,.brand,.brand *,button *,.button *){
  font-family:var(--tdv-display)!important;font-weight:500!important;letter-spacing:0;font-size-adjust:.46;line-height:1.12}

/* Text: paragraphs, lists, labels, fields, small print, eyebrows */
:where(main,footer,dialog) :where(p,li,dd,dt,label,span,a,small,em,strong,b,i,input,select,textarea,legend,summary,figcaption,blockquote,cite,td,th,div,h4,h5,h6,output,time):not(.hero,.hero *,button,button *,.button,.button *,.brand,.brand *){
  font-family:var(--tdv-text)!important}
:where(main,footer) p:not(.eyebrow,.hero *){line-height:1.75}

/* Buttons keep the site's original button typography (they would otherwise inherit the new text font). */
:where(main,footer,dialog) :is(button,.button,input[type=submit]):not(.hero *){font-family:Arial,Helvetica,sans-serif!important}

/* Logo image (assets/logo-tdv-v2.png) drawn as a mask, so it takes the colour the text logo had in each place:
   white over the homepage photo, dark green on light backgrounds. */
.brand .brand-logo{display:block;width:clamp(150px,15vw,200px);aspect-ratio:900/257;margin:0;letter-spacing:0;background-color:currentColor;
  -webkit-mask:url(assets/logo-tdv-v2.png) left center/contain no-repeat;mask:url(assets/logo-tdv-v2.png) left center/contain no-repeat}
footer .brand .brand-logo{width:min(220px,60vw)}
.brand .brand-name{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:700px){header .brand .brand-logo{width:140px}}

/* Links and words inside a title keep the title's font (villa names on cards were picking up the text font). */
:where(main,footer,dialog) :is(h1,h2,h3):not(.hero,.hero *) :is(a,span,em,strong){font-family:inherit!important;font-weight:inherit!important}
/* Homepage introduction: light text. */
.brand-introduction .intro-description{font-weight:300!important}
/* Luxury services titles (Private Chef…): bolder. */
.luxury-service h3{font-weight:700!important}

/* Homepage introduction: the logo instead of the "TROPICAL DESIGN VILLAS" title (same colour as the title). */
.brand-introduction .intro-logo{line-height:0;margin-left:auto;margin-right:auto}
.brand-introduction .intro-logo-mark{display:block;margin:0 auto;width:min(300px,64vw);aspect-ratio:900/257;background-color:currentColor;
  -webkit-mask:url(assets/logo-tdv-v2.png) center/contain no-repeat;mask:url(assets/logo-tdv-v2.png) center/contain no-repeat}
.sr-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
