:root {
  font: 16px/1.5 Inter, "Segoe UI", Arial, sans-serif;
  color: #1b2924;
  background: #f8f9f5;
  --muted: #526158;
  --line: #cdd4cb;
  --accent: #235941;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
a:hover { color: var(--accent); }
.top, main, footer { width: min(1200px, 92%); margin-inline: auto; }
.top, footer, .sectionhead, figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.top { padding-block: 20px; border-bottom: 1px solid var(--line); }
.identity { font-size: 1.125rem; font-weight: 600; }
.top a, footer a, figcaption a, .open, .case a { text-decoration: underline; text-underline-offset: .22em; }
.intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 80px); margin-block: clamp(40px, 5.2vw, 72px); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.07; }
h1 { font: 500 clamp(3rem, 6.2vw, 5.75rem)/1.04 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.lead { max-width: 40ch; margin-block: 20px 24px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.125rem); }
.primary { display: inline-block; padding: 12px 20px; border-radius: 8px; background: var(--accent); color: white; font-weight: 500; }
.primary:hover { background: #193f2e; color: white; }
.cover { min-width: 0; }
.receipt { display: block; background: #dbe5dc; padding: clamp(16px, 2.4vw, 32px); border-radius: 12px; }
.receipt img { display: block; width: 100%; height: auto; border-radius: 8px; }
figcaption { padding-top: 8px; font-size: .9375rem; color: var(--muted); }
figcaption a { color: var(--accent); }
#work { border-top: 1px solid var(--line); padding-top: 24px; }
.sectionhead h2 { font: 500 clamp(2rem, 3.4vw, 3rem)/1.12 Georgia, serif; letter-spacing: -.035em; }
.sectionhead p { color: var(--muted); font-size: .9375rem; }
.filters { display: flex; gap: 4px; flex-wrap: wrap; margin-block: 16px 24px; }
.filters button { font: inherit; font-size: .9375rem; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer; padding: 8px 12px; }
.filters button:hover { background: #ecf0ea; }
.filters button[aria-pressed=true] { background: #e3ebe2; color: #193e2e; border-color: #bacbbd; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 24px; row-gap: 0; }
.card { display: grid; grid-row: span 6; grid-template-rows: subgrid; min-width: 0; padding-bottom: 36px; }
.card[hidden] { display: none; }
.snapshot { display: block; background: white; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1.95; }
.snapshot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.copy { display: contents; }
.type { padding-top: 16px; color: var(--muted); font-size: .875rem; margin-bottom: 4px; }
.copy h3 { font-weight: 600; font-size: 1.375rem; letter-spacing: -.025em; }
.copy p { color: var(--muted); margin-block: 8px 16px; }
.open { width: fit-content; align-self: start; color: var(--accent); font-weight: 500; }
.case { align-self: start; width: 100%; color: var(--muted); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9375rem; }
.case summary { cursor: pointer; }
.case p { margin-bottom: 8px; }
footer { margin-top: 56px; padding-block: 24px; border-top: 1px solid var(--line); }
footer strong { font-weight: 500; }
@media(max-width: 900px) { .cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 640px) {
  .top, main, footer { width: min(100% - 32px, 480px); }
  .intro { grid-template-columns: 1fr; gap: 24px; margin-block: 32px; }
  .sectionhead { align-items: flex-start; flex-direction: column; gap: 4px; }
  .cards { grid-template-columns: 1fr; }
  .filters { row-gap: 4px; }
  .filters button { padding-inline: 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes reveal-work {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
  .introcopy, .cover, .card:not([hidden]), .case[open] > :not(summary) {
    animation: reveal-work 180ms ease-out backwards;
  }
  .cover { animation-delay: 50ms; }
  .filters button, .primary, .snapshot { transition: background-color 140ms ease-out, border-color 140ms ease-out; }
  .snapshot:hover { border-color: var(--accent); }
}
