/* Trancefamily Montréal theme: base styles.
   What plain text, headings, links and form fields look like before any widget styles them.
   Colours, fonts and sizes are CSS variables written by the plugin from Trancefamily > Settings > Style;
   the value after each comma is only used if the plugin is switched off. */

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box}
/* the page always keeps its scrollbar, so nothing jumps sideways between short and long pages */
html{-webkit-text-size-adjust:100%;background:var(--tfm-bg,#0E0D15);overflow-x:hidden;overflow-y:scroll;scroll-behavior:smooth}
body{margin:0;background:var(--tfm-bg,#0E0D15);color:var(--tfm-text,#B1A7A7);font-family:var(--tfm-font-body,"Work Sans",sans-serif);font-size:var(--tfm-size-body,16px);font-weight:400;line-height:var(--tfm-lh-body,1.625em);overflow-wrap:break-word;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img,video{max-width:100%;height:auto}
iframe{max-width:100%}
figure{margin:0}
ul,ol{margin:0;padding-left:1.2em}
button,input,select,textarea{font:inherit;color:inherit}

/* ---------- text ---------- */
a{color:var(--tfm-link,#D5FF00);text-decoration:none;transition:color .3s}
a:hover{color:var(--tfm-link-hover,#C4EE00)}
p{margin:0 0 1.62em}
p:last-child{margin-bottom:0}
h1,h2,h3,h4,h5,h6{color:var(--tfm-heading,#202020);font-family:var(--tfm-font-head,"Epilogue",sans-serif);font-weight:var(--tfm-weight-head,500);font-style:normal;text-transform:none}
h1{font-size:var(--tfm-h1,57px);line-height:1.105em;letter-spacing:-.04em}
h2{font-size:var(--tfm-h2,47px);line-height:1.13em;letter-spacing:-.03em}
h3{font-size:var(--tfm-h3,35px);line-height:1.115em;letter-spacing:-.03em}
h4{font-size:var(--tfm-h4,28px);line-height:1.215em;letter-spacing:-.02em}
h5{font-size:var(--tfm-h5,23px);line-height:1.215em;letter-spacing:-.02em}
h6{font-size:var(--tfm-h6,19px);line-height:1.265em;letter-spacing:-.02em}
/* space around headings inside running text (widgets that are a heading by themselves reset this) */
h1{margin:.75em 0 .28em}
h2{margin:.94em 0 .34em}
h3{margin:1.26em 0 .46em}
h4{margin:1.57em 0 .46em}
h5{margin:1.91em 0 .57em}
h6{margin:2.32em 0 .47em}
@media(max-width:1279px){h1,h2,h3,h4,h5,h6{margin-top:35px}}
@media(max-width:767px){h1,h2,h3,h4,h5,h6{margin-top:22px}}
h1:first-child,h2:first-child,h3:first-child,h4:first-child,h5:first-child,h6:first-child{margin-top:0}
/* a heading that is a link: the whole line is clickable and keeps the heading colour */
h1>a,h2>a,h3>a,h4>a,h5>a,h6>a{display:block}
h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{color:var(--tfm-heading,#202020)}
h1 a:hover,h2 a:hover,h3 a:hover,h4 a:hover,h5 a:hover,h6 a:hover{color:var(--tfm-link,#D5FF00)}
b,strong{font-weight:700}
sup,sub{font-size:75%;height:0;line-height:0;position:relative;vertical-align:baseline}
sup{bottom:1ex}
sub{top:.5ex}
figure figcaption{display:block;box-sizing:border-box;margin:0;padding:10px 0 0;text-align:left}

/* ---------- Elementor: what its widgets get before they are styled ---------- */
/* width of the content column inside "boxed" containers: fixed on wide screens, the screen minus a gutter on small ones */
body .e-con{--container-max-width:var(--tfm-page,1290px)}
/* heading widgets keep the heading's own line height (Elementor would squeeze them to 1) */
h1.elementor-heading-title{line-height:1.105em}
h2.elementor-heading-title{line-height:1.13em}
h3.elementor-heading-title{line-height:1.115em}
h4.elementor-heading-title,h5.elementor-heading-title{line-height:1.215em}
h6.elementor-heading-title{line-height:1.265em}
/* buttons (the doubled class makes these win over Elementor's size presets, and still lose to a button's own settings) */
body .elementor-button.elementor-button{font-family:var(--tfm-font-head,"Epilogue",sans-serif);font-size:16px;font-weight:600;line-height:19px;letter-spacing:0;text-transform:none;padding:18px 40px;border:0;border-radius:var(--tfm-btn-radius,8px);color:var(--tfm-btn-text,#F1F1F1);background-color:var(--tfm-btn-bg,#D5FF00);transition:all .3s}
body .elementor-button.elementor-button:visited{color:var(--tfm-btn-text,#F1F1F1)}
body .elementor-button.elementor-button:hover,body .elementor-button.elementor-button:focus{color:var(--tfm-btn-text,#F1F1F1);background-color:var(--tfm-btn-bg-hover,#C4EE00)}
@media(max-width:1279px){body .elementor-button.elementor-button{padding:16px 36px}}
@media(max-width:767px){body .elementor-button.elementor-button{font-size:15px;padding:14px 32px}}
/* text fields, drop-downs and text areas */
input[type="text"],input[type="email"],input[type="url"],input[type="tel"],input[type="number"],input[type="password"],input[type="search"],input[type="date"],select,textarea{font-size:15px;font-weight:400;font-style:normal;line-height:1.6em;letter-spacing:0;text-transform:none;padding:13px 14px;border:1px solid var(--tfm-field-border,#E2E2E2);border-radius:8px;background-color:var(--tfm-field-bg,#F1F1F1);color:var(--tfm-text,#B1A7A7);outline:0}
/* tick boxes: a drawn box beside the label (the real box stays in place for keyboards and screen readers) */
input[type="checkbox"]{clip:rect(1px,1px,1px,1px);clip-path:inset(50%);margin:0;padding:0;position:absolute !important}
input[type="checkbox"]+label{position:relative;padding-left:24px;font-size:14px;line-height:20px;display:inline-block;vertical-align:top}
input[type="checkbox"]+label::before{content:"";display:block;position:absolute;z-index:1;top:2px;left:0;width:16px;height:16px;border:1px solid var(--tfm-field-border,#E2E2E2);border-radius:4px;box-sizing:border-box}
input[type="checkbox"]:checked+label::before{background:radial-gradient(circle,var(--tfm-heading,#202020) 55%,var(--tfm-field-bg,#F1F1F1) 65%);box-shadow:inset 0 0 0 2px var(--tfm-field-bg,#F1F1F1)}
input[type="checkbox"]:focus-visible+label::before{box-shadow:0 0 0 1px var(--tfm-heading,#202020)}

/* ---------- page shell ---------- */
.tfm-site{position:relative}
.tfm-site-header{position:relative;z-index:100}
.tfm-skip{position:absolute;left:-9999px;top:0;z-index:100000;padding:10px 16px;background:#fff;color:#000}
.tfm-skip:focus{left:8px;top:8px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- plain posts and lists (pages built with Elementor bring their own layout) ---------- */
.tfm-article{max-width:780px;margin:0 auto;padding:160px 20px 90px}
.tfm-article h1,.tfm-article h2,.tfm-article h3{color:#fff}
.tfm-article-title{font-size:clamp(34px,5vw,60px);margin-bottom:28px}
.tfm-article-body>*+*{margin-top:1.2em}
.tfm-list-item{margin:0 0 36px}
.tfm-list-item h2{font-size:26px;margin-bottom:8px}
