/* brendantucek.com page styles, shared by the home page and the About page. Builds on brand.css.
   Black, warm white, navy and one blue band. His face on screen one, short words, one main button. */
:root{ color-scheme:dark; --bar-h:64px; }

/* Keyboard focus never lands under the bars: the floating bar on desktop, the action bar on phones.
   Section jumps cancel the top padding so they still land flush, as before. */
@media (min-width:860px){
  html{scroll-padding-top:calc(12px + var(--bar-h) + 16px)}
  main > section[id]{scroll-margin-top:calc(-12px - var(--bar-h) - 16px)}
}
@media (max-width:859.98px){ html{scroll-padding-bottom:calc(60px + env(safe-area-inset-bottom, 0px) + 8px)} }

/* Skip link: hidden until a keyboard user reaches it, then shown above the bar */
a.vh:focus-visible{position:fixed!important; top:12px; left:12px; z-index:100; width:auto; height:auto; overflow:visible; clip:auto; clip-path:none; white-space:nowrap; padding:14px 20px; background:var(--blue); color:var(--black); font:700 13px/1 var(--f-display); letter-spacing:.2em; text-transform:uppercase; text-decoration:none; outline:2px solid var(--black); outline-offset:2px}

/* ---------- Grounds: each band sets its own colours, components read them ---------- */
.g-black{--ground:var(--black); --text:var(--white); --text-2:var(--stone); --text-3:var(--bone); --line:#ffffff1f; --link:var(--blue); --focus:var(--blue); --focus-gap:var(--black); background:var(--ground); color:var(--text)}
.g-night{--ground:var(--night); --text:var(--white); --text-2:var(--stone); --text-3:var(--bone); --line:#ffffff1a; --link:var(--blue); --focus:var(--blue); --focus-gap:var(--night); background:var(--ground); color:var(--text)}
.g-navy{--ground:var(--navy-deep); --text:var(--white); --text-2:#aebdca; --text-3:#dfe6ec; --line:#ffffff24; --link:var(--blue); --focus:var(--blue); --focus-gap:var(--navy-deep); background:var(--ground); color:var(--text)}
.g-light{color-scheme:light; --ground:var(--warm-white); --text:var(--char); --text-2:var(--umber); --text-3:#3a372f; --line:#1b1a1624; --link:var(--blue-ink); --focus:var(--blue-ink); --focus-gap:var(--warm-white);
  --field-bg:var(--white); --field-fg:var(--char); --field-line:var(--taupe); --field-ph:var(--umber); --danger:var(--danger-light); background:var(--ground); color:var(--text)}
.g-light ::selection{background:var(--blue-ink); color:var(--white)}
.g-light input,.g-light textarea{caret-color:var(--blue-ink)}
.g-blue{--ground:var(--blue); --text:var(--black); --text-2:#000000bf; --line:#00000029; --link:var(--black); --focus:var(--black); --focus-gap:var(--blue); background:var(--ground); color:var(--text)}
.g-blue ::selection{background:var(--black); color:var(--blue)}

/* ---------- Type ---------- */
.h2{font:700 clamp(30px, 3.6vw, 52px)/1.04 var(--f-display); letter-spacing:.1em; text-transform:uppercase}
.h3{font:700 clamp(16px, 1.4vw, 19px)/1.3 var(--f-display); letter-spacing:.18em; text-transform:uppercase}
.lede{font:300 clamp(17px, 1.4vw, 19px)/1.6 var(--f-sans); color:var(--text-3); max-width:52ch}
.sec{padding-block:var(--section)}

/* Text link with an arrow, used for the "see more" moves */
.more{display:inline-flex; align-items:center; gap:10px; min-height:44px; font:700 13px/1.2 var(--f-display); letter-spacing:.2em; text-transform:uppercase; text-decoration:none; color:var(--link)}
.more .ico{width:18px; height:18px; transition:transform .3s var(--ease)}
.more:hover{text-decoration:underline}
.more:hover .ico{transform:translateX(4px)}
.more--down:hover .ico{transform:translateY(3px)}

/* Dark button for light grounds */
.btn--ink{background:var(--char); color:var(--white)}
.btn--ink:hover{background:var(--blue-ink)}
.btn .ico{width:18px; height:18px}
/* The long review buttons wrap to two lines on phones: give the lines room */
.rev__body > .btn,.revs__more .btn{line-height:1.4; text-wrap:balance}

/* ---------- Bar: floats on desktop, sits at the top on phones ---------- */
.bar{position:fixed; z-index:50; top:calc(12px + env(safe-area-inset-top, 0px)); left:50%; transform:translateX(-50%); width:min(calc(100% - 24px), 1240px); height:var(--bar-h); display:flex; align-items:center; gap:8px; padding:0 8px 0 20px; background:#000000e6; border:1px solid #ffffff1f; box-shadow:0 12px 32px #00000066; color:var(--white)}
.bar__brand{display:flex; align-items:center; gap:14px; min-height:44px; text-decoration:none; flex:none}
.bar__brand img{height:20px; width:auto}
.bar__name{font:700 13px/1 var(--f-display); letter-spacing:.3em; text-transform:uppercase; padding-left:14px; border-left:1px solid #ffffff33; white-space:nowrap}
.bar__links{display:flex; margin-left:auto}
.bar__links a{position:relative; display:flex; align-items:center; min-height:44px; padding:0 14px; font:700 13px/1 var(--f-display); letter-spacing:.2em; text-transform:uppercase; text-decoration:none; color:var(--sand); transition:color .25s var(--ease)}
.bar__links a::after{content:""; position:absolute; left:14px; right:14px; bottom:10px; height:1px; background:var(--blue); transform:scaleX(0); transform-origin:left; transition:transform .3s var(--ease)}
.bar__links a:hover,.bar__links a[aria-current="true"],.bar__links a[aria-current="page"]{color:var(--white)}
.bar__links a:hover::after,.bar__links a[aria-current="true"]::after,.bar__links a[aria-current="page"]::after{transform:scaleX(1)}
.bar__tel{display:flex; align-items:center; min-height:44px; padding:0 16px; font:400 15px/1 var(--f-sans); color:var(--white); text-decoration:none; white-space:nowrap; font-variant-numeric:tabular-nums}
.bar__tel:hover{text-decoration:underline}
.bar__cta{min-height:48px; padding:0 22px; white-space:nowrap}
@media (max-width:1219.98px){ .bar__tel{display:none} }
@media (max-width:1023.98px){ .bar__links{display:none} .bar__cta{margin-left:auto} }
@media (max-width:859.98px){
  .bar{position:static; transform:none; width:auto; height:60px; padding:0 var(--gut-r) 0 var(--gut-l); background:var(--black); border:0; box-shadow:none}
  .bar__cta{display:none}
  .bar__about{margin-left:auto; display:flex; align-items:center; min-height:44px; padding-left:16px; font:700 13px/1 var(--f-display); letter-spacing:.2em; text-transform:uppercase; text-decoration:none; color:var(--sand)}
  .bar__about[aria-current="page"]{color:var(--white)}
}
@media (min-width:860px){ .bar__about{display:none} }
@media (max-width:379.98px){ .bar__name{display:none} }

/* ---------- Phone action bar ---------- */
.mbar{grid-template-columns:1fr 2fr}
.mbar a{letter-spacing:.14em; gap:10px}
.mbar a .ico{width:18px; height:18px}
/* Step far enough aside that the bar's shadow leaves the screen too */
.mbar.is-away{transform:translateY(calc(100% + 40px))}
/* Small phones (320 to 359 wide): tighter letters so "What's my home worth?" stays on one line */
@media (max-width:359.98px){ .mbar{grid-template-columns:1fr 2.6fr} .mbar a{letter-spacing:.08em; gap:8px} }

/* ---------- Quotes ---------- */
.q{margin:0; display:grid; gap:14px; align-content:start}
.q blockquote{margin:0; font:400 clamp(21px, 1.9vw, 26px)/1.3 var(--f-serif); color:var(--text); text-wrap:pretty}
.q figcaption{font:700 13px/1.4 var(--f-display); letter-spacing:.24em; text-transform:uppercase; color:var(--link)}

/* ---------- Footer ---------- */
.foot{padding-block:clamp(64px, 8vw, 104px) 40px}
.foot__card{display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:28px 48px; align-items:end; padding-bottom:clamp(48px, 6vw, 72px); border-bottom:1px solid var(--line)}
.foot__name{font:700 clamp(28px, 3.4vw, 48px)/1 var(--f-display); letter-spacing:.12em; text-transform:uppercase}
.foot__role{margin-top:12px; font:700 13px/1.4 var(--f-display); letter-spacing:.24em; text-transform:uppercase; color:var(--blue)}
.foot__reach{display:grid; gap:4px; margin-top:28px}
.foot__tel{display:inline-flex; align-items:center; min-height:48px; font:300 clamp(28px, 3vw, 40px)/1 var(--f-sans); letter-spacing:-.01em; font-variant-numeric:tabular-nums; text-decoration:none; justify-self:start}
.foot__mail{display:inline-flex; align-items:center; min-height:44px; font:400 17px/1.3 var(--f-sans); color:var(--text-3); justify-self:start; overflow-wrap:anywhere}
.foot__tel:hover,.foot__mail:hover{text-decoration:underline}
.foot__save{justify-self:end}
.foot__row{display:grid; grid-template-columns:auto minmax(0, 1fr) auto; gap:28px 56px; align-items:center; padding-top:40px; color:var(--text-2); font-size:15px}
.foot__logo{height:22px; width:auto}
.foot__links{display:flex; flex-wrap:wrap; gap:0 24px; margin-top:6px}
.foot__links a{min-height:44px; min-width:44px; display:inline-flex; align-items:center; justify-content:center; color:var(--text-3)}
.foot__links a:hover{color:var(--white)}
.foot__dd{width:min(220px, 56vw); height:auto}
.foot__row .nw{white-space:nowrap}
.foot__legal{margin-top:32px; font-size:14px; color:var(--text-2)}
@media (max-width:859.98px){
  .foot__card,.foot__row{grid-template-columns:1fr}
  .foot__save{justify-self:start}
}
