:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #161616;
  --secondary: #999;
  --surface: #f5f5f3;
  --radius: 20px;
  --space-small: 16px;
  --space-medium: 32px;
  --space-section: 48px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/22px "SF Pro Display", "SF Pro", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid #666; outline-offset: 4px; }
a:hover { opacity: .68; }
h1, h2, p { margin: 0; font-size: inherit; font-weight: 400; }
.page { width: min(960px, calc(100% - 96px)); margin: 0 auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { padding: 44px 0 136px; }
.site-identity { min-width: 0; }
.site-identity p { color: var(--secondary); }
.work-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-section) var(--space-medium); }
.work-item { min-width: 0; grid-column: 1 / -1; }
.work-item-half { grid-column: auto; }
.work-media { display: block; overflow: hidden; isolation: isolate; border-radius: var(--radius); background: var(--surface); aspect-ratio: 16 / 9; }
@media (min-width: 601px) { .work-item-half .work-media { border-radius: 12px; } }
.work-media:hover { opacity: 1; }
.work-media video { display: block; height: 100%; width: 100%; object-fit: cover; }
@media (min-width: 901px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .work-media { transform-origin: center; transition: transform 240ms ease, box-shadow 240ms ease; }
  .work-item:hover .work-media { transform: scale(1.02); box-shadow: 0 10px 24px rgba(0, 0, 0, .06); }
}
.work-caption { padding: var(--space-small) 20px 0 15px; }
.work-caption h2 a { display: inline-flex; align-items: center; gap: 6px; }
.work-caption p { color: var(--secondary); }
.project-link-arrow { width: 13px; height: 13px; flex: none; transform: translateY(2px); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.site-footer { margin-top: var(--space-section); padding: 0 0 var(--space-medium); }
.footer-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--space-small); margin-top: var(--space-section); color: var(--secondary); }
.footer-meta a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-meta a:first-child { color: var(--ink); }

@media (max-width: 900px) {
  .page { width: calc(100% - 40px); }
}
@media (max-width: 600px) {
  :root { --radius: 18px; }
  .page { width: calc(100% - 32px); }
  .work-items { grid-template-columns: minmax(0, 1fr); }
  .work-item { grid-column: auto; }
  .work-caption { padding-left: 8px; }
  .site-footer { margin-top: var(--space-section); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
