:root {
  --bg: #FAFAF7;
  --ink: #16160F;
  --muted: #6B6B60;
  --hair: #D8D6CC;
  --accent: #3F6B5A;
  --hover: #F3F2EC;
  --display: "Noto Serif Thai", Georgia, serif;
  --body: "Inter", "IBM Plex Sans Thai", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16.5px; line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.masthead { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; border-bottom: 1px solid #D8D6CC; font-size: 13px; }
.name { text-transform: uppercase; }
nav { display: flex; flex-wrap: wrap; gap: 20px; }
main { padding-top: 48px; padding-bottom: 72px; }
h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.028em; line-height: 1; overflow-wrap: anywhere; }
.home h1 { font-size: clamp(56px, 9vw, 112px); border-bottom: 2px solid #3F6B5A; padding-bottom: 12px; }
.gloss { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.page-heading { margin-bottom: 32px; }
p { margin: 0 0 20px; }
.intro { font-size: 19px; }
.mono, .meta, .strip, .year, time, figcaption, td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.meta { font-size: 12px; color: var(--muted); margin-bottom: 32px; }
.section-heading { margin: 0 0 20px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
section + section { margin-top: 48px; }
.work { margin-top: 48px; }
.work-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 32px; column-gap: 12px; padding: 20px 0; border-bottom: 1px solid #D8D6CC; }
.work-row:hover { background: var(--hover); }
.year { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.work-title { margin: 0 0 8px; font-family: var(--display); font-size: 23px; font-weight: 400; line-height: 1.4; }
.expanded .work-title { font-size: 28px; }
.description { color: var(--muted); font-size: 14px; margin: 0; }
.work-arrow { justify-self: end; }
figure { margin: 20px 0 0; }
.work-photo { width: 220px; max-width: 100%; aspect-ratio: 4 / 3; background: var(--hair); transform: rotate(-1deg); }
figcaption { margin-top: 8px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.strip { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 8px 20px; border-bottom: 1px solid #D8D6CC; font-size: 11px; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live-square { display: inline-block; width: 5px; height: 5px; background: var(--accent); }
.measure { max-width: 66ch; }
.villages { font-size: 14px; color: var(--muted); }
ol { margin: 0; padding-left: 20px; }
li + li { margin-top: 12px; }
.finding { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 12px 0; }
.finding:not(:last-child) { border-bottom: 1px solid #D8D6CC; }
.finding time { font-size: 12px; color: var(--muted); }
.finding p { margin: 0; }
.bad-list { list-style: none; margin: 0; padding: 0; }
.bad-list li::before { content: "- "; }
table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
th, td { border-bottom: 1px solid #D8D6CC; padding: 12px 4px; text-align: left; }
th { font-size: 12px; font-weight: 600; text-transform: uppercase; }
td { font-size: 13px; }
th:nth-child(n+3), td:nth-child(n+3) { text-align: right; }
.post { padding: 0 0 32px; }
.post + .post { padding-top: 32px; }
.post:not(:last-child) { border-bottom: 1px solid #D8D6CC; }
.post time { font-size: 12px; color: var(--muted); }
.post h2 { font-size: 20px; font-weight: 600; margin: 12px 0 20px; }
.post p:last-child { margin-bottom: 0; }
.about-photo { margin: 0; }
.portrait { width: 180px; aspect-ratio: 3 / 4; background: var(--hair); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; border-top: 1px solid #D8D6CC; padding: 20px 0 32px; color: var(--muted); font-size: 13px; }

@media (min-width: 760px) {
  .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-9 { grid-column: span 9; }
  .masthead { flex-direction: row; justify-content: space-between; align-items: center; }
  main { padding-top: 72px; padding-bottom: 112px; }
  .work-row { grid-template-columns: 88px minmax(0, 1fr) 32px; column-gap: 20px; }
  .about-photo { grid-column: span 5; }
}
