/* The Thursday Times: Our writers (page-templates/writers.php). Builds on about.css. */

/* ---------------------------------------------------------------------- hero */
.wt-hero { padding-block: clamp(80px, 11vw, 160px) clamp(64px, 8vw, 112px); }
.wt-hero__in { display: flex; flex-direction: column; align-items: flex-start; gap: var(--tt-space-5); }
.wt-byline { --ab-cap: 0.686em; display: flex; align-items: baseline; flex-wrap: wrap; margin: var(--tt-space-5) 0 0; min-height: 1.1em; font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 5.4vw, 84px); line-height: 1.05; letter-spacing: -0.03em; }
.wt-byline__by { color: var(--tt-text-secondary); margin-right: 0.28em; }
.wt-cursor { position: relative; display: inline-block; flex: none; width: calc(var(--ab-cap) * 0.2354); height: var(--ab-cap); margin-left: 0.07em; }
.wt-cursor span { position: absolute; left: 0; width: 100%; aspect-ratio: 1; background: var(--tt-orange); }
.wt-cursor span:first-child { top: 19.16%; }
.wt-cursor span:last-child { bottom: 19.16%; }
.wt-cursor.is-idle { animation: ab-blink var(--tt-blink, 2s) steps(1, end) infinite; }
.wt-title { margin: var(--tt-space-4) 0 0; max-width: 14em; font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -0.025em; }
.wt-hero__deck { margin: 0; max-width: 32em; font-family: var(--font-deck); font-size: clamp(21px, 2.1vw, 28px); line-height: 1.36; }

/* -------------------------------------------------------------------- people */
.wt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--tt-space-6); flex-wrap: wrap; }
.wt-head > div { flex: 1 1 28em; }
.wt-find { display: flex; align-items: center; gap: var(--tt-space-3); width: min(360px, 100%); min-height: 52px; padding: 0 var(--tt-space-4); border: 1.5px solid var(--tt-text); }
.wt-find input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--tt-text); font-family: var(--font-ui); font-size: 18px; outline: none; }
.wt-find:focus-within { outline: var(--tt-focus-width, 3px) solid var(--tt-focus, var(--tt-orange)); outline-offset: var(--tt-focus-offset, 3px); }
.wt-grid { list-style: none; margin: var(--tt-space-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tt-space-7) var(--tt-space-5); }
.wt-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--tt-space-2); padding-top: var(--tt-space-4); border-top: 1px solid var(--tt-border); }
.wt-card[hidden] { display: none; }
.wt-card__face { display: block; width: 72px; height: 72px; margin-bottom: var(--tt-space-2); }
.wt-card__face .tt-square, .wt-card__face img { width: 72px; height: 72px; font-size: 32px; }
.wt-card__name { font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 28px; letter-spacing: -0.02em; color: var(--tt-text); text-decoration: none; }
.wt-card__name:hover, .wt-card__name:focus-visible { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--tt-orange); }
.wt-card__bio { margin: 0; font-family: var(--font-text); font-size: 16px; line-height: 25px; color: var(--tt-text-secondary); }
.wt-card__latest { margin: var(--tt-space-2) 0 0; font-family: var(--font-text); font-size: 16px; line-height: 24px; }
.wt-card__latest-k { display: block; font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--tt-text-secondary); }
.wt-card__latest a { color: var(--tt-text); text-decoration: none; }
.wt-card__latest a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wt-card__meta { margin: auto 0 0; padding-top: var(--tt-space-2); font-family: var(--font-ui); font-size: 14px; line-height: 20px; color: var(--tt-text-secondary); }
.ab-ready .wt-card { transition: opacity 0.6s var(--ab-ease) calc(var(--i) * 0.08s), translate 0.6s var(--ab-ease) calc(var(--i) * 0.08s); }
.ab-ready .wt-card:not(.is-in) { opacity: 0; translate: 0 24px; }
.wt-none { margin: var(--tt-space-6) 0 0; font-family: var(--font-ui); font-size: 18px; color: var(--tt-text-secondary); }

/* --------------------------------------------------------------------- desks */
.wt-desklist { list-style: none; margin: var(--tt-space-8) 0 0; padding: 0; border-bottom: 1px solid var(--tt-border); }
.wt-desk { position: relative; }
.wt-desk::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--tt-border); transform-origin: 0 50%; }
.wt-desk a { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(0, 6fr) auto 24px; align-items: center; gap: var(--tt-space-5); min-height: 88px; padding: var(--tt-space-4) 0; color: var(--tt-paper); text-decoration: none; }
.wt-desk__name { font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 28px; letter-spacing: -0.02em; }
.wt-desk__bio { font-family: var(--font-text); font-size: 17px; line-height: 26px; color: var(--tt-text-secondary); }
.wt-desk__n { font-family: var(--font-ui); font-size: 15px; color: var(--tt-text-secondary); white-space: nowrap; }
.wt-desk__go { transition: translate var(--tt-move-fast, 300ms) var(--ab-ease); }
.wt-desk a:hover .wt-desk__go, .wt-desk a:focus-visible .wt-desk__go { translate: 6px 0; }
.wt-desk a:hover .wt-desk__bio { color: var(--tt-paper); }
.ab-ready .wt-desk::before { transition: transform 0.7s var(--ab-ease) calc(var(--i) * 0.06s); }
.ab-ready .wt-desk a { transition: opacity 0.6s var(--ab-ease) calc(0.15s + var(--i) * 0.06s), translate 0.6s var(--ab-ease) calc(0.15s + var(--i) * 0.06s); }
.ab-ready .wt-desk:not(.is-in)::before { transform: scaleX(0); }
.ab-ready .wt-desk:not(.is-in) a { opacity: 0; translate: -24px 0; }

@media (max-width: 1023px) { .wt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wt-desk a { grid-template-columns: minmax(0, 1fr) auto 24px; } .wt-desk__bio { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 767px) { .wt-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .wt-cursor { display: none; } }
