/* Work desk. Scoped to .desk-work so it follows the Calm tokens in site.css. */

.desk-work{
  color:var(--ink);
  padding:8px 0 12px;
}
.desk-work h1,
.desk-work h2,
.desk-work h3{
  font-family:var(--display);
  font-weight:500;
  letter-spacing:-.02em;
  color:var(--ink);
}
.desk-work p{margin:0 0 1em}
.desk-work a{color:var(--accent);text-decoration-thickness:1px;text-underline-offset:3px}
.desk-work a:hover{color:var(--accent-2)}

.desk-work-kicker{
  display:inline-flex;
  align-items:center;
  margin:0 0 12px;
  padding:6px 12px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent);
  font-family:var(--font);
  font-size:13px;
  font-weight:650;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.desk-work-flag{
  display:inline-flex;
  margin:0 0 12px;
  padding:6px 12px;
  border-radius:999px;
  background:var(--warm-soft);
  color:#a35d33;
  font-size:13px;
  font-weight:650;
  letter-spacing:.04em;
  text-transform:uppercase;
}
:root[data-theme="dark"] .desk-work-flag{color:var(--warm)}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .desk-work-flag{color:var(--warm)}
}

.desk-work-hero{
  margin:0 0 28px;
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:var(--night);
  box-shadow:var(--shadow-lg);
}
.desk-work-hero-frame{position:relative}
.desk-work-hero img{
  width:100%;
  height:clamp(320px,52vw,560px);
  object-fit:cover;
  object-position:center 68%;
}
.desk-work-hero-copy{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:36px 28px 26px;
  background:linear-gradient(to top,rgba(15,25,29,.9) 10%,rgba(15,25,29,.45) 58%,transparent);
  color:#e7eef0;
}
.desk-work-hero-copy .desk-work-kicker{
  background:rgba(124,196,185,.2);
  color:#b7e4dc;
}
.desk-work-hero h1{
  margin:0 0 10px;
  color:#f4f7f8;
  font-size:clamp(40px,6vw,68px);
  line-height:1.02;
  max-width:14ch;
}
.desk-work-hero-copy p:last-child{
  margin:0;
  max-width:42ch;
  color:#d5e2e6;
  font-size:clamp(17px,2vw,20px);
  line-height:1.5;
}
.desk-work-hero figcaption{padding:12px 18px 14px;background:var(--surface)}
.desk-work-credit{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.desk-work-credit a{color:var(--accent)}

.desk-work-lead{
  max-width:68ch;
  margin:0 0 16px;
  font-size:clamp(18px,2vw,21px);
  line-height:1.6;
  color:var(--ink-2);
}
.desk-work-note{
  margin:0 0 32px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-left:4px solid var(--warm);
  border-radius:16px;
  background:var(--surface);
  color:var(--ink-2);
  font-size:16.5px;
}

.desk-work-stat{
  margin:0 0 36px;
  padding:28px 28px 22px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--surface);
  box-shadow:var(--shadow);
}
.desk-work-stat.is-example{background:var(--bg-3)}
.desk-work-stat-n{
  margin:0 0 10px;
  font-family:var(--display);
  font-size:clamp(42px,6vw,68px);
  font-weight:500;
  letter-spacing:-.03em;
  line-height:1;
  color:var(--ink);
}
.desk-work-stat-n span{
  font-family:var(--font);
  font-size:.38em;
  font-weight:600;
  letter-spacing:0;
  color:var(--muted);
}
.desk-work-stat p{max-width:68ch;color:var(--ink-2);font-size:17.5px}
.desk-work-src{margin:0;color:var(--muted);font-size:15px}

.desk-work-tiles{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin:0 0 48px;
}
.desk-work-tile{
  display:flex;
  flex-direction:column;
  min-width:0;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.desk-work-tile-link{
  display:flex;
  flex-direction:column;
  flex:1;
  color:inherit;
  text-decoration:none;
}
.desk-work-tile-link:hover h2{color:var(--accent)}
.desk-work-tile img{
  width:100%;
  height:auto;
  aspect-ratio:3/2;
  object-fit:cover;
  background:var(--bg-2);
}
.desk-work-tile-b{display:block;padding:18px 20px 8px}
.desk-work-tile h2{margin:0 0 8px;font-size:clamp(24px,2.4vw,30px)}
.desk-work-tile p{margin:0;color:var(--muted);font-size:16.5px;line-height:1.5}
.desk-work-tile-foot{padding:0 20px 16px}

.desk-work-sec{margin:0 0 52px}
.desk-work-sec h2{margin:0 0 14px;font-size:clamp(30px,4vw,44px)}
.desk-work-sec > p,
.desk-work-jobs p{
  max-width:68ch;
  color:var(--ink-2);
  font-size:18px;
  line-height:1.7;
}

.desk-work-table-wrap{
  margin:8px 0 18px;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
}
.desk-work-stub{width:100%;border-collapse:collapse;font-size:16px}
.desk-work-stub caption{
  caption-side:bottom;
  padding:12px 16px;
  color:var(--muted);
  font-size:14px;
  text-align:left;
}
.desk-work-stub th,
.desk-work-stub td{
  padding:12px 16px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}
.desk-work-stub thead th{
  background:var(--surface-2);
  color:var(--muted);
  font-size:13px;
  font-weight:650;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.desk-work-stub tbody th{font-weight:650;white-space:nowrap}
.desk-work-stub td:nth-child(2){font-variant-numeric:tabular-nums;white-space:nowrap}
.desk-work-stub tr.is-net th,
.desk-work-stub tr.is-net td{background:var(--accent-soft);color:var(--ink)}
.desk-work-stub tr:last-child th,
.desk-work-stub tr:last-child td{border-bottom:0}

.desk-work-math{
  margin:8px 0 18px;
  padding:20px 22px 8px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--bg-3);
}
.desk-work-math dl{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:0 0 14px;
}
.desk-work-math dt{margin:0 0 4px;color:var(--muted);font-size:14px}
.desk-work-math dd{
  margin:0;
  font-family:var(--display);
  font-size:32px;
  font-weight:500;
  letter-spacing:-.02em;
}

.desk-work-tools{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
}
.desk-work-tool{
  display:block;
  padding:22px 22px 18px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--surface);
  box-shadow:var(--shadow);
  color:inherit;
  text-decoration:none;
}
.desk-work-tool:hover{border-color:color-mix(in srgb,var(--accent) 35%,var(--line));box-shadow:var(--shadow-lg)}
.desk-work-tool h3{margin:0 0 8px;font-size:22px}
.desk-work-tool p{margin:0;color:var(--muted);font-size:16px;line-height:1.5}

.desk-work-jobs{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:12px}
.desk-work-jobs li{
  padding:16px 18px 12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
}
.desk-work-jobs h3{margin:0 0 6px;font-size:22px}
.desk-work-job-pay{color:var(--ink);font-weight:650}

.desk-work-sources{
  padding-top:8px;
  border-top:1px solid var(--line);
}
.desk-work-sources h2{margin:0 0 12px;font-size:22px}
.desk-work-sources ul{margin:0;padding-left:18px}
.desk-work-sources li{margin:0 0 8px;color:var(--muted);font-size:15px;line-height:1.5}

@media (max-width:760px){
  .desk-work-tiles{grid-template-columns:1fr}
  .desk-work-math dl{grid-template-columns:1fr}
  .desk-work-hero-copy{padding:28px 18px 18px}
  .desk-work-stub tbody th{white-space:normal}
}
@media (prefers-reduced-motion:reduce){
  .desk-work-tool{transition:none}
}
