/* In-between widths. Tablets (768-1099) use the phone layout; this file polishes them,
   and fixes the desktop layout from 1100 px up to just under the 1920 it was drawn for. */

/* footer wordmark, every width: if Fraunces does not arrive (blocked, offline, slow), a close serif stands in
   instead of the browser default, and the footer never scrolls sideways. ui.js also shrinks the line to fit
   its column whenever the font in use runs wider than the drawn one (it never changes it otherwise). */
.giant{font-family:"Fraunces","Fraunces fallback",Georgia,"Times New Roman",serif}
@font-face{font-family:"Fraunces fallback";src:local("Georgia"),local("Georgia Regular");size-adjust:88%}
footer{overflow-x:clip}

/* desktop below 1920: the footer wordmark scales with the window instead of running off the edge */
@media (min-width:1100px) and (max-width:1919.98px){
  .giant{font-size:17.6vw}
}

/* ---------- navigation ---------- */
/* 1500-1919: the full menu, tighter, never wrapping */
@media (min-width:1500px) and (max-width:1919.98px){
  .nav li{white-space:nowrap}
  .nav ul{gap:clamp(13px,1.25vw,24px)}
}
@media (min-width:1500px) and (max-width:1699.98px){
  .nav{font-size:13px}
  .nav .b{font-size:25px}
}
/* 1100-1499: too narrow for ten links, the switcher and the button: the phone header (round menu button) */
@media (min-width:1100px) and (max-width:1499.98px){
  .nav .desk-only{display:none!important}
  .nav .phone-only{display:flex}
  .nav .swm{display:block}
  .nav .swm>button{width:22px;height:22px}
  .nav .burger{display:flex;align-items:center;gap:14px;font-size:14px;color:var(--ink)}
  .nav .burger i{display:block;width:44px;height:44px;border-radius:50%;border:1px solid rgb(var(--ink-rgb) / .4);position:relative}
  .nav .burger i::before,.nav .burger i::after{content:"";position:absolute;left:13px;right:13px;height:1px;background:var(--ink);top:18px}
  .nav .burger i::after{top:25px}
}
/* the menu itself on wider screens: same list, kept to a readable column */
@media (min-width:1100px){
  .pmenu{padding:120px var(--edge) 40px}
  .pmenu ul,.pmenu .pm-foot{width:100%;max-width:640px}
}

/* ---------- tablets (phone layout, 768-1099) ---------- */
@media (min-width: 768px) and (max-width:1099.98px){
  :root{--edge:calc(20px + (100vw - 768px) * .08)}
  .giant{font-size:calc(58px + (100vw - 768px) * .14)}
}

/* ---------- small phones (under the 390 px the phone layout was drawn for) ---------- */
@media (max-width:389.98px){
  .st > *{min-width:0}                                 /* Visage steps: the three thumbnails share the column */
  .st.on .mini div{flex:1 1 0;min-width:0;width:auto}
}
