/* tommytai.dev shared styles: home page and /work/ pages. Same tokens as blog/style.css. */
:root {
  --paper: #f1f3f0; --ink: #161b20; --muted: #56606a; --rule: #d3d9d4; --panel: #e6eae6;
  --accent: #0a6f6a; --on-accent: #ffffff;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0f1416; --ink: #e5ebe8; --muted: #c3ccd1; --rule: #27323a; --panel: #172025; --accent: #52cfc4; --on-accent: #06211f; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #0f1416; --ink: #e5ebe8; --muted: #c3ccd1; --rule: #27323a; --panel: #172025; --accent: #52cfc4; --on-accent: #06211f; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--body); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.brand { font: 800 18px/1 var(--display); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
nav.top { display: flex; flex-wrap: wrap; gap: 4px 6px; }
nav.top a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted); text-decoration: none; font-size: 16px; border-radius: 6px; }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--ink); }
nav.top a.agents { border: 1px solid var(--rule); font: 500 14px/1 var(--mono); }
.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.kicker { font: 500 13px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin: 0 0 16px; }
h1 { font: 800 clamp(34px, 5.4vw, 56px)/1.05 var(--display); letter-spacing: -0.025em; margin: 0 0 20px; text-wrap: balance; }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 16px; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.ghost { border: 1px solid var(--muted); color: var(--ink); }
.figure { margin: 0; border-radius: 16px; background: var(--panel); border: 1px solid var(--rule); overflow: hidden; }
.figure svg { display: block; width: 100%; height: auto; max-height: 420px; }
.figure figcaption { padding: 0 16px 14px; font: 400 13px/1.45 var(--mono); color: var(--ink); }
section { padding: 48px 0; border-top: 1px solid var(--rule); }
h2 { font: 800 28px/1.15 var(--display); letter-spacing: -0.015em; margin: 0 0 8px; }
h3 { font: 600 19px/1.25 var(--display); margin: 0; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.card p { margin: 0; font-size: 16px; color: var(--muted); }
.tag { font: 500 12px/1.3 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.card a.more { margin-top: auto; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.status { font: 500 13px/1.45 var(--mono); color: var(--muted); border-top: 1px dashed var(--rule); padding-top: 8px; margin-top: 4px; }
/* Showcase: recorded clips */
.reel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reel.two { grid-template-columns: repeat(2, 1fr); }
.clip { margin: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.clip video, .clip img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; background: #0b0f11; }
.clip figcaption { padding: 12px 14px 14px; display: grid; gap: 4px; }
.clip figcaption b { font-family: var(--display); font-size: 17px; }
.clip figcaption span { font-size: 15px; color: var(--muted); }
.clip figcaption small { font: 400 12.5px/1.45 var(--mono); color: var(--muted); }
/* Writing: two streams */
.streams { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.stream h3 { margin-bottom: 4px; }
.stream > p { margin: 0 0 8px; color: var(--muted); font-size: 16px; }
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.posts time, .posts .soon { font: 400 14px/1.6 var(--mono); color: var(--muted); }
.posts a { font-weight: 700; }
.posts p { margin: 0; color: var(--muted); font-size: 16px; }
.stream .all { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
/* Agents band */
.agents-band { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; }
.agents-band p { margin: 0; max-width: 36em; }
.agents-band code { font: 500 15px/1.4 var(--mono); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about p { margin: 0 0 16px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 0 0 14px 18px; border-left: 2px solid var(--rule); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline b { display: block; font-family: var(--display); }
.timeline span { color: var(--muted); font-size: 16px; }
.contact { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.email { font: 500 16px/1 var(--mono); background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 13px 14px; }
button.copy, button.theme { font: 700 15px var(--body); min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--muted); background: transparent; color: var(--ink); cursor: pointer; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 8px; font-weight: 700; text-decoration: none; }
footer.site { padding: 28px 0 44px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer.site a { color: var(--muted); }
/* Work pages */
.crumb { font: 500 14px/1 var(--mono); margin: 28px 0 0; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; }
.page-head { padding: 12px 0 32px; max-width: 46em; }
.pill { display: inline-block; font: 500 13px/1.3 var(--mono); border: 1px solid var(--muted); color: var(--ink); border-radius: 999px; padding: 4px 10px; margin: 0 6px 6px 0; }
.pill.live { border-color: var(--accent); color: var(--accent); }
.prose { max-width: 44em; }
.prose p, .prose li { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose h2 { margin-top: 32px; }
.prose > h2:first-child { margin-top: 0; }
table.facts { border-collapse: collapse; width: 100%; font-size: 16px; margin: 0 0 16px; }
table.facts th, table.facts td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
table.facts th { font: 500 13px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.table-scroll { overflow-x: auto; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .figure svg { max-height: 260px; }
  .grid, .grid.two, .reel, .reel.two, .streams, .about { grid-template-columns: 1fr; }
  .about { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
