/* contang.com on phones and upright tablets (Tim, 4 Dec: "yes dispatch agetn pls contang.com on phones"). Linked with
   media="(max-width:1023px)", so the desktop page never reads it. Same look as site.css: its colours, type, glass, mono
   section heads and faint column guides; only the layout changes. Four guides on a phone, eight from 600 px.
   The home page's sections are in phone-home.css and the inner pages' in phone-pages.css while they are built. */
@import url("phone-home.css?v=64e2a9d3");
@import url("phone-pages.css?v=9aeae346");

:root{--m:20px;--gap:12px}
@media (min-width:600px){:root{--m:32px;--gap:16px}}
body{min-width:0}

/* ---------- guides: four columns, eight on a tablet ---------- */
.guides .g,.frame .fguides .g{grid-template-columns:repeat(4,minmax(0,1fr))}
.guides .g>i:nth-child(n+5),.frame .fguides .g>i:nth-child(n+5){display:none}
@media (min-width:600px){
  .guides .g,.frame .fguides .g{grid-template-columns:repeat(8,minmax(0,1fr))}
  .guides .g>i:nth-child(n+5),.frame .fguides .g>i:nth-child(n+5){display:block}
  .guides .g>i:nth-child(n+9),.frame .fguides .g>i:nth-child(n+9){display:none}
}

/* ---------- nav: the same glass pill across the width; the section links and the theme move into the menu ---------- */
.nav-wrap{top:12px;padding:0 12px}
/* once the page moves, a band of the page's own colour fades in behind the pill, so text never runs under or above it */
.nav-wrap::before{content:"";position:absolute;z-index:-1;left:0;right:0;top:-12px;height:96px;pointer-events:none;opacity:0;
  background:linear-gradient(180deg,var(--bg) 0%,var(--bg) 62%,color-mix(in srgb,var(--bg) 0%,transparent) 100%);transition:opacity .3s var(--ease)}
.scrolled .nav-wrap::before{opacity:1}
.nav.glass{background-color:color-mix(in srgb,var(--bg) 70%,transparent)}
.nav{width:100%;max-width:640px;height:56px;padding:0 6px 0 14px;gap:6px}
.nav .brand{padding-right:0;margin-right:auto}
.nav .sep,.nav .parts,.nav .links,.nav>.theme-btn{display:none}
.nav .btn{height:42px;padding:0 15px;font-size:14px}
.nav .menu-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:42px;height:42px;flex:none;border-radius:999px;
  background:var(--line2);box-shadow:inset 0 1px 0 var(--g-hi)}
.menu-btn i{display:block;width:16px;height:1.5px;background:var(--ink);transition:transform .35s var(--ease)}
.menu-open .menu-btn i:first-child{transform:translateY(3.25px) rotate(45deg)}
.menu-open .menu-btn i:last-child{transform:translateY(-3.25px) rotate(-45deg)}
.menu{position:absolute;top:66px;left:12px;right:12px;max-width:640px;margin:0 auto;pointer-events:auto;border-radius:24px;padding:8px 18px 14px;
  background-color:color-mix(in srgb,var(--bg) 86%,transparent);animation:menu-in .35s var(--ease) both}
.menu[hidden]{display:none}
@keyframes menu-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.menu nav{display:flex;flex-direction:column}
.menu nav a{display:flex;align-items:baseline;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);font-size:26px;font-weight:600;letter-spacing:-.03em;line-height:1.1}
.menu nav a .mono{font-size:11px;font-weight:400;letter-spacing:.06em}
.menu-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:14px}
.menu-foot .mono{font-size:10px;white-space:nowrap}
.menu-theme{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 13px;border-radius:999px;background:var(--line2);box-shadow:inset 0 1px 0 var(--g-hi);font-size:10.5px;white-space:nowrap}

/* ---------- section heads: number and label; the right-hand note goes under them ---------- */
.sh{row-gap:4px}
.sh .n{grid-column:1/3}
.sh .l{grid-column:3/13}
.sh .r{grid-column:3/13;text-align:left}
.h2{font-size:clamp(40px,11.2vw,72px);line-height:1;letter-spacing:-.045em;text-wrap:balance}

/* ---------- footer: the running line smaller, the columns two by two, the lockup across ---------- */
.footer{--s:min(calc(100vw / 760), 1px)}
.run{padding:28px 0 24px}
.run .t{font-size:clamp(46px,13vw,96px)}
.run .t.o{-webkit-text-stroke:1.2px var(--ink)}
.run .track2{gap:22px;padding-left:22px}
.run .d{width:22px;height:22px}
.cols,.footer.norun .cols{display:grid;grid-template-columns:1fr 1fr;gap:32px var(--gap);padding:40px var(--m) 0}
.cols>div,.cols>div.creed{width:auto;gap:10px;min-width:0}
.cols>div.creed{grid-column:1/-1}
.cols .creed p{font-size:clamp(26px,7.4vw,40px);line-height:1.08;text-wrap:balance}
@media (min-width:600px){.cols,.footer.norun .cols{grid-template-columns:repeat(4,minmax(0,1fr))}}
.cols a,.cols span.x{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.bigword{padding:40px var(--m) 28px}

/* ---------- the corner loader between pages: smaller ---------- */
#cornerload{left:16px;bottom:16px;gap:12px}
#cornerload .t{font-size:11px}
