/* Now (page-now.hbs) and Contact (page-contact.hbs): the morning-sky header with the sun's path. After t.css. */

.tl-top { padding: 140px 0 var(--t-s9); }
.tl-glow { display: none; }
.tl-top .t-hand { color: var(--t-ink); font-size: 46px; margin-bottom: 14px; }
.tl-top h1 { font: 800 120px/.9 var(--t-sans); letter-spacing: -.045em; }
.tl-lede { font: 400 22px/1.5 var(--t-serif); color: var(--t-body); max-width: 600px; margin-top: 22px; }
.tl-lede a { text-decoration: underline; text-decoration-color: var(--t-sun); text-decoration-thickness: 2px; text-underline-offset: 3px; color: var(--t-ink); }
.tl-stamp { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--t-muted); }
.tl-ping { background: var(--t-gum); }
.tl-notch { margin-top: 70px; }
.tl-notch-space { height: 130px; }
.tl-sec { padding-top: 90px; }

/* Now: the bold-labelled paragraphs as a route */
.js .tl-source { display: none; }
.tl-route { position: relative; padding-left: 60px; }
.tl-line { position: absolute; left: 18px; top: 6px; bottom: 6px; width: 2px; background: repeating-linear-gradient(var(--t-line) 0 4px, transparent 4px 10px); }
.no-route .tl-line { display: none; }
.tl-line i { position: absolute; left: 0; top: 0; width: 2px; height: calc(var(--rp, 0) * 100%); background: repeating-linear-gradient(var(--t-ember) 0 4px, transparent 4px 10px); }
.tl-line b { position: absolute; left: 50%; top: calc(var(--rp, 0) * 100%); width: 14px; height: 14px; border-radius: 50%; background: var(--t-sun); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgba(242,169,0,.25); }
.tl-stop { position: relative; padding: 0 0 54px; display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.tl-stop .node { position: absolute; left: -54px; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--t-paper); border: 1.5px solid var(--t-ink); transition: background .4s, box-shadow .4s; }
.tl-stop.reached .node { background: var(--t-ink); box-shadow: inset 0 0 0 6px var(--t-ink), inset 0 0 0 9px var(--t-sun); }
.tl-stop .t-k { color: var(--t-muted); }
.tl-stop h2 { font: 800 42px/1.05 var(--t-sans); letter-spacing: -.03em; margin: var(--t-s2) 0 10px; }
.tl-stop p { font: 400 19px/1.62 var(--t-serif); color: var(--t-body); max-width: 600px; }
.tl-stop p a { text-decoration: underline; text-decoration-color: var(--t-sun); text-decoration-thickness: 2px; text-underline-offset: 3px; color: var(--t-ink); }
.tl-aside { background: var(--t-soft); border-radius: 10px; padding: 18px 20px; }
.tl-aside .t-k { display: flex; align-items: center; gap: var(--t-s2); margin-bottom: var(--t-s2); color: var(--t-muted); }
.tl-aside > b { display: block; font: 800 36px/1 var(--t-sans); letter-spacing: -.028em; }
.tl-aside p { font-size: 14px; color: var(--t-muted); margin-top: 6px; }
.tl-aside.dk { background: var(--t-night); color: #fff; }
.tl-aside.dk .t-k { color: rgba(255,255,255,.6); }
.tl-aside.dk p { color: rgba(255,255,255,.55); margin-top: 10px; }
.tl-aside .t-ping { width: 7px; height: 7px; }
.tl-count { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--t-s2); margin-top: 10px; }
.tl-count div { text-align: center; background: rgba(255,255,255,.08); border-radius: 8px; padding: 10px var(--t-s1); }
.tl-count b { font: 800 30px/1 var(--t-sans); letter-spacing: -.02em; }
.tl-count span { font: 600 12px var(--t-sans); color: rgba(255,255,255,.65); display: block; margin-top: var(--t-s1); }
.tl-lately { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tl-mc { display: flex; flex-direction: column; gap: 10px; padding: var(--t-s4) 0 0; border-top: 6px solid var(--t-sky); transition: border-color .2s; }
.tl-mc::before { content: none; }
.tl-mc:hover { border-color: var(--t-sun); }

.tl-mc .t-k { color: var(--t-muted); transition: color .2s; }
.tl-mc:hover .t-k { color: var(--t-ember); }
.tl-mc h3 { font: 700 22px/1.2 var(--t-sans); letter-spacing: -.015em; }
.tl-note { margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--t-line); color: var(--t-muted); font-size: 14.5px; line-height: 1.6; max-width: 640px; }
.tl-note a { text-decoration: underline; text-decoration-color: var(--t-sun); text-decoration-thickness: 2px; text-underline-offset: 3px; color: var(--t-ink); }

/* Contact: the form panel overlapping the header, the ways to reach me beside it */
.tl-ct { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: -80px; position: relative; z-index: var(--t-z-raised); }
.tl-form { position: relative; background: #fff; border-radius: 10px; padding: var(--t-s6); box-shadow: 0 24px 60px -20px rgba(23,32,51,.28); overflow: hidden; }
.tl-form h2 { font: 800 34px/1.1 var(--t-sans); letter-spacing: -.025em; }
.tl-topics { border: 0; padding: 0; margin: var(--t-s5) 0 0; display: flex; flex-wrap: wrap; gap: var(--t-s2); min-width: 0; }
.tl-topics legend { color: var(--t-muted); padding: 0; margin-bottom: 10px; width: 100%; }
.tl-topics input { position: absolute; opacity: 0; pointer-events: none; }
.tl-topics label { display: inline-flex; }
.tl-topics input:checked + .t-btn { background: var(--t-ink); border-color: var(--t-ink); color: var(--t-paper); }
.tl-topics input:focus-visible + .t-btn { outline: 2px solid var(--t-ember); outline-offset: 2px; }
.tl-field { display: block; margin-top: 18px; }
.tl-field span { display: block; font: 600 13px var(--t-sans); color: var(--t-muted); margin-bottom: 6px; }
.tl-field input, .tl-field textarea { width: 100%; border: 0; border-bottom: 1.5px solid var(--t-line); background: transparent; font: 18px var(--t-sans); color: var(--t-ink); padding: var(--t-s2) 0 10px; outline: none; transition: border-color .2s; resize: vertical; border-radius: 0; }
.tl-field input:focus, .tl-field textarea:focus { border-color: var(--t-sun); }
.tl-field textarea { min-height: 120px; line-height: 1.5; }
.tl-trap { position: absolute; left: -9999px; }
.tl-send { display: flex; justify-content: space-between; align-items: center; gap: var(--t-s4); margin-top: 26px; }
.tl-send p { font-size: 13.5px; color: var(--t-muted); line-height: 1.5; }
.tl-form.loading .tl-send .t-btn { opacity: .6; pointer-events: none; }
.tl-err { display: none; margin-top: 14px; font-size: 14px; color: #b3261e; }
.tl-form.error .tl-err { display: block; }
.tl-sent { position: absolute; inset: 0; background: var(--t-night); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px; opacity: 0; pointer-events: none; transition: opacity .5s; }
.tl-form.done .tl-sent { opacity: 1; pointer-events: auto; }
.tl-sent svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tl-sent .trail { fill: none; stroke: var(--t-sun); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.tl-sent .plane path { fill: var(--t-sun); }
.tl-sent > *:not(svg) { position: relative; }
.tl-sent .t-k { color: rgba(255,255,255,.6); margin-bottom: var(--t-s3); }
.tl-sent h2 { font: 800 46px/1 var(--t-sans); letter-spacing: -.028em; }
.tl-sent h2 em { font-style: normal; }
.tl-sent p:not(.t-k) { color: rgba(255,255,255,.7); margin: 14px 0 22px; line-height: 1.6; max-width: 380px; }
.tl-ways { display: grid; gap: 14px; align-content: start; }
.tl-way { position: relative; overflow: hidden; isolation: isolate; border-radius: 10px; padding: 22px var(--t-s5); background: var(--t-soft); display: flex; flex-direction: column; gap: 6px; transition: color .2s; }
.tl-way::before { content: none; }
.tl-way:hover { box-shadow: inset 0 0 0 2px var(--t-ink); }

.tl-way .t-k { color: var(--t-muted); transition: color .2s; }
.tl-way:not(.dk):hover .t-k { color: var(--t-ember); }
.tl-way h3 { font: 800 28px/1.1 var(--t-sans); letter-spacing: -.02em; overflow-wrap: anywhere; }
.tl-way p { font-size: 14px; opacity: .7; }
.tl-way.dk { background: var(--t-night); color: #fff; }
.tl-way.dk::before { background: var(--t-sun); }
.tl-way.dk:hover { box-shadow: inset 0 0 0 2px var(--t-sun); }
.tl-way.dk .t-k { color: var(--t-sun); }
.tl-way.dk:hover .t-k { color: var(--t-sun); }
.tl-reply { display: flex; align-items: center; gap: 10px; color: var(--t-muted); margin-top: var(--t-s1); }
body:has([data-contact]) .tf { margin-top: 90px; }

@media (max-width: 900px) {
  .tl-top { padding: 100px 0 70px; }
  .tl-top h1 { font-size: 72px; }
  .tl-top .t-hand { font-size: 36px; }
  .tl-lede { font-size: 17px; }
  .tl-sec { padding-top: 60px; }
  .tl-route { padding-left: 44px; }
  .tl-line { left: 12px; }
  .tl-stop { grid-template-columns: 1fr; gap: var(--t-s4); }
  .tl-stop .node { left: -40px; }
  .tl-stop h2 { font-size: 30px; }
  .tl-lately { grid-template-columns: 1fr; }
  .tl-ct { grid-template-columns: 1fr; margin-top: -60px; }
  .tl-form { padding: 22px; }
  .tl-notch-space { height: 100px; }
}
@media (prefers-reduced-motion: reduce) { .tl-mc::before, .tl-way::before { transition: none; } .tl-ping { animation: none; } }

/* ---------- numbers, stats and small text in the data face: Atkinson Hyperlegible Next with lining, even-width figures (content/DESIGN.md, section 3) ---------- */
.tl-aside > b, .tl-count b { font-family: var(--t-data); font-variant-numeric: var(--t-figs); letter-spacing: -.01em; }
.tl-aside p, .tl-count span, .tl-stamp, .tl-note, .tl-field span, .tl-field input, .tl-field textarea, .tl-send p, .tl-way p, .tl-way h3, .tl-err, .tl-reply, .tl-sent p:not(.t-k) { font-family: var(--t-data); font-variant-numeric: var(--t-figs); letter-spacing: 0; }

/* ---------- polish ---------- */
/* the email address never breaks mid-word on a phone */
.tl-way h3 { overflow-wrap: normal; word-break: normal; }
@media (max-width: 900px) { .tl-way h3 { font-size: clamp(19px, 5.6vw, 26px); } }
