:root {
  color-scheme: light;
  --ink: #101113;
  --ink-soft: #414142;
  --paper: #f6f0e4;
  --paper-strong: #fffaf0;
  --night: #07080a;
  --radius: 8px;
  --shadow: 0 16px 45px rgba(16, 17, 19, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-size: inherit;
}

.site-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  border-bottom: 1px solid rgba(16, 17, 19, 0.14);
  background: var(--paper-strong);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  color: var(--ink);
}

.brand {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(16, 17, 19, 0.24);
  border-radius: 50%;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 760;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.96rem;
  font-weight: 650;
}

.nav a {
  border-bottom: 1px solid rgba(16, 17, 19, 0.34);
  padding-block: 0.25rem;
}

.hero {
  background: var(--paper);
  color: var(--ink);
}

.hero-inner {
  padding-block: 72px 56px;
}

h1,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  font-weight: 760;
}

.button.primary {
  background: var(--ink);
  color: var(--paper-strong);
}

.gallery-section {
  padding-block: 0 70px;
}

.astro-hero h1 {
  max-width: 860px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1rem;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.photo-card img {
  aspect-ratio: 3 / 4;
  width: 100%;
  background: var(--night);
  object-fit: contain;
}

.photo-card figcaption {
  padding: 1rem;
}

.photo-card strong {
  display: block;
  font-size: 1.05rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(16, 17, 19, 0.14);
  min-height: 92px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.footer a {
  color: var(--ink);
  font-weight: 760;
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 28px, 680px);
  }

  .topbar-inner {
    min-height: 68px;
  }

  .hero-inner {
    padding-block: 54px 44px;
  }

  h1 {
    font-size: 2.72rem;
  }

  .gallery-section {
    padding-block: 0 56px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand {
    width: 38px;
    height: 38px;
  }

  .nav {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2.28rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
