
:root {
  --page-max: 1180px;
  --side-pad: 22px;
  --gap: 14px;
  --text: #111111;
  --muted: #6f6f6f;
  --line: #eaeaea;
}

* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-header {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 54px var(--side-pad) 34px;
  text-align: center;
}

.site-title {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.site-subtitle {
  margin: 18px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.55;
  font-weight: 400;
}

.save-note {
  display: inline-block;
  margin-top: 6px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 14px;
  line-height: 1;
  transition: border-color 160ms ease, transform 160ms ease;
}

.nav a:hover {
  border-color: #111111;
  transform: translateY(-1px);
}

.nav a.active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.home {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--side-pad) 70px;
}

.hero-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.hero-image {
  width: 100%;
  max-height: 74vh;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  background: #f6f6f6;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.home-actions a {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  color: #111111;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: -0.035em;
  transition: border-color 160ms ease, transform 160ms ease;
}

.home-actions a:hover {
  border-color: #111111;
  transform: translateY(-1px);
}

.gallery {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--side-pad) 70px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.photo-card {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f6f6f6;
  text-decoration: none;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease, opacity 220ms ease;
}

.photo-card:hover img {
  transform: scale(1.018);
}

.footer {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--side-pad) 42px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  :root {
    --side-pad: 12px;
    --gap: 8px;
  }

  .site-header {
    padding-top: 38px;
    padding-bottom: 24px;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-actions {
    grid-template-columns: 1fr;
  }

  .photo-card {
    aspect-ratio: 3 / 4;
  }
}
