@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/geist-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --foreground: oklch(0.16 0 0);
  --muted-foreground: oklch(0.56 0 0);
  --muted: oklch(0.968 0.007 247.896);
  --border: oklch(0.92 0 0);
  font-family: Geist, ui-sans-serif, system-ui, sans-serif;
  color: var(--foreground);
  background: white;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, p, ul, dl, dd { margin: 0; }
body { min-width: 280px; }
ul { list-style: none; padding: 0; }
h1 { font-size: inherit; font-weight: 400; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible { outline: 2px solid var(--foreground); outline-offset: 5px; }
.link { transition: opacity 150ms; }
.link:hover { opacity: 0.6; }
.muted { color: var(--muted-foreground); }
.underlined { text-decoration: underline; text-underline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; background: white; padding: 8px 12px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.layout { max-width: 672px; margin-inline: auto; padding: 48px 24px; min-height: 100svh; display: flex; flex-direction: column; }
.header { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 80px; }
.brand { font-weight: 500; }
.header nav { display: flex; gap: 24px; color: var(--muted-foreground); }
.header a[aria-current='page'] { color: var(--foreground); }
main { flex: 1; }
.gallery-heading { color: var(--muted-foreground); margin-bottom: 40px; }
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 24px; }
.project-card { display: block; }
.project-thumbnail { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--muted); }
.project-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.project-thumbnail img.thumbnail-contain { object-fit: contain; padding: 24px; background: white; }
.project-thumbnail > * { transition: opacity 150ms; }
.placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted-foreground); font-size: 14px; line-height: 20px; }
.project-title { margin-top: 12px; font-weight: 500; transition: opacity 150ms; }
.project-subtitle { margin-top: 4px; color: var(--muted-foreground); font-size: 14px; line-height: 20px; }
.project-card:hover .project-thumbnail > * { opacity: 0.8; }
.project-card:hover .project-title { opacity: 0.6; }
.footer { margin-top: 96px; display: flex; gap: 24px; border-top: 1px solid var(--border); padding-top: 24px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.about p + p { margin-top: 24px; }
.case-heading { font-weight: 500; margin-top: 40px; }
.case-description { margin-top: 4px; color: var(--muted-foreground); }
.logo-panel { border: 1px solid var(--border); padding: 32px; margin-top: 40px; }
.logo-panel img { width: 100%; max-width: 320px; margin-inline: auto; }
.details { margin-top: 48px; display: grid; gap: 24px; }
.detail-row { display: grid; gap: 4px; }
.detail-row dt { color: var(--muted-foreground); }
.project-images { margin-top: 64px; display: grid; gap: 24px; }
.project-images img { width: 100%; background: var(--muted); }
.project-navigation { display: flex; justify-content: space-between; gap: 24px; margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted-foreground); }
.project-navigation a { max-width: 48%; }
.project-navigation a:last-child { text-align: right; }
.not-found h1 { font-weight: 500; margin-bottom: 12px; }
.not-found p { margin-bottom: 24px; }

@media (min-width: 640px) {
  .layout { padding-block: 80px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-panel { padding: 56px; }
  .detail-row { grid-template-columns: 128px minmax(0, 1fr); gap: 24px; }
  .project-images { margin-inline: -96px; }
}
@media (min-width: 1024px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
