/* Compact type after the Claude Omni window (web/style.css): 13px base, system sans stack, tight medium-weight
   headings, small radii and card padding. Colours and light/dark mode are this site's own.
   Thai falls back to the local Sukhumvit / Thonburi fonts, as in Omni (local() only, nothing is downloaded). */
@font-face { font-family: "Omni Thai"; font-weight: 100 499; size-adjust: 108%; unicode-range: U+0E00-0E7F;
             src: local("SukhumvitSet-Text"), local("Sukhumvit Set"), local("Thonburi"); }
@font-face { font-family: "Omni Thai"; font-weight: 500 900; size-adjust: 108%; unicode-range: U+0E00-0E7F;
             src: local("SukhumvitSet-SemiBold"), local("SukhumvitSet-Bold"), local("Thonburi-Bold"); }
:root {
  --bg: #faf7f2;
  --paper: #ffffff;
  --ink: #26303a;
  --muted: #6a7480;
  --line: #e4ded3;
  --accent: #1f6f78;
  --accent-ink: #14525a;
  --warm: #b5683c;
  --ui: "Omni Thai", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161b20;
    --paper: #1e252c;
    --ink: #e6e2da;
    --muted: #9aa4ae;
    --line: #2e3740;
    --accent: #6cc0c8;
    --accent-ink: #8fd3da;
    --warm: #e0996d;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.7 var(--ui);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--ink); }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .4rem .8rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }
.muted { color: var(--muted); }

/* top bar */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.top .name { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.4px; }
.top .name a { color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: .9rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--accent-ink); }
.top nav a[aria-current="page"] { color: var(--ink); box-shadow: 0 2px 0 var(--warm); padding-bottom: 2px; }

/* page intro */
.intro { padding-top: 2rem; padding-bottom: .1rem; }
.intro h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 500; line-height: 1.18; letter-spacing: -.03em; margin: 0 0 .4rem; }
.intro .lead { margin: 0; font-size: 14px; }
.role { margin: 0; font-size: 15px; color: var(--accent-ink); }
.place { margin: .1rem 0 0; color: var(--muted); }
.place::before { content: ""; display: inline-block; width: 1.2rem; height: 2px; background: var(--warm); vertical-align: middle; margin-right: .5rem; }

/* sections */
section.wrap { padding-top: 1.5rem; padding-bottom: .25rem; }
.intro + section.wrap { padding-top: 1.1rem; }
h2 { font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; margin: 0 0 .6rem; }
.prose p { margin: 0 0 .9rem; line-height: 1.85; max-width: 40rem; }
.lead { color: var(--muted); }
.note { font-size: 12px; color: var(--muted); margin: 0 0 .6rem; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: .15rem .6rem; font-size: 12px; }

.pubs { list-style: none; padding: 0; margin: 0; }
.pubs li { padding: .55rem 0 .55rem .8rem; border-left: 2px solid var(--line); margin-bottom: .35rem; max-width: 42rem; }
.pubs li:hover { border-left-color: var(--warm); }
.pubs p { margin: 0; line-height: 1.55; }
.pubs cite { font-style: normal; font-weight: 600; }
.pubs .links { margin-top: .15rem; }
.pubs.wip li { border-left-style: dashed; }

/* project cards */
.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.card:hover { border-color: color-mix(in srgb, var(--warm) 55%, var(--line)); transform: translateY(-2px); }
.card .shot { display: block; aspect-ratio: 16 / 9; background: var(--line); overflow: hidden; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.card .body { padding: 11px 14px 13px; }
.card h2 { font-size: 14px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .15rem; }
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a::after { content: " \2197"; color: var(--warm); font-size: .9em; }
.card h2 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; }
/* piano-key stand-in for the card without a screenshot */
.shot.keys { display: flex; align-items: end; justify-content: center; background: linear-gradient(135deg, #20293b, #34435f); }
.shot.keys span { width: 100%; height: 62%; margin: 0 8%; background:
  repeating-linear-gradient(90deg, #f4f1ea 0 calc(14.2857% - 2px), #2b3547 calc(14.2857% - 2px) 14.2857%);
  border-radius: 3px 3px 0 0; }

footer { margin-top: 2.5rem; border-top: 1px solid var(--line); padding: 1.1rem 0 2rem; font-size: 12px; }
footer p { margin: .1rem 0; }

/* phones: nothing below 13px */
@media (max-width: 640px) {
  .note, .tags li, footer { font-size: 13px; }
  .intro { padding-top: 1.5rem; }
  .top .wrap { flex-wrap: wrap; row-gap: 0; }
  .top .name { white-space: nowrap; }
  .tags li { padding: .2rem .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
@media print {
  .top, .skip { display: none; }
  body { background: #fff; color: #000; }
  .card { break-inside: avoid; }
  a { color: inherit; }
}
