/* Fonts */
@font-face {
  font-family: 'Cabin';
  src: url('/fonts/Cabin-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cabin';
  src: url('/fonts/Cabin-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cabin';
  src: url('/fonts/Cabin-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Base */
body {
  font-family: 'Cabin', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 700px;
  margin: 12vh auto;
  padding: 0 1rem;
  line-height: 1.7;
  color: #111;
  font-size: 1rem;
}

h1 {
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

h2 {
  font-size: 1rem;
  margin-top: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
}

p {
  margin: 1.2rem 0;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
}

a:hover {
  border-bottom-color: #111;
}

/* Navigation */
header {
  border-bottom: 1px solid #ddd;
  margin-bottom: 2rem;
  padding-bottom: 0.4rem;
}

nav a {
  margin-right: 1.2rem;
  font-weight: 600;
  border-bottom: none;
}

nav a:hover {
  color: #000;
}

/* Lists */
ul {
  list-style: none;
  padding-left: 0;
}

li {
  margin: 0.5rem 0;
}

/* Footer */
footer {
  margin-top: 4rem;
  font-size: 0.85rem;
  color: #555;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

/* Hero section */

.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1.6rem;
}

.description {
  font-size: 1.05rem;
  color: #333;
}

.hero img {
  max-width: none;
}

.portrait {
  display: block;
  width: 120px;
  height: 120px;
  max-width: 120px;
  max-height: 120px;
  min-width: 120px;
  min-height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 0.6rem auto;
}

/* ----------------------------
   Cats gallery
---------------------------- */

/* ----------------------------
   Cats gallery
---------------------------- */

.cats {
  margin-top: 4rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.cat {
  max-width: 220px;
  justify-self: center;
  text-align: center;
}

.cat-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.cat-photos img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
}

.cat figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #555;
}

.cat-title {
  font-size: 0.8rem;
  color: #777;
}

/* ----------------------------
   Mobile adjustments
---------------------------- */

@media (max-width: 700px) {

  main {
    margin-top: 4rem;
  }

  /* Navigation */
  .nav {
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  /* Hero */
  .hero {
    margin-bottom: 2.5rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .subtitle {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .description {
    font-size: 1rem;
  }

  .portrait {
    width: 96px;
    height: 96px;
    max-width: 96px;
    max-height: 96px;
    min-width: 96px;
    min-height: 96px;
    border-radius: 50%;
  }

  /* Sections */
  section {
    margin-bottom: 2.5rem;
  }

  /* Explore links */
  .explore ul li {
    margin: 0.8rem 0;
  }

  /* Cats */
  .cat-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cat {
    max-width: 260px;
  }

  .cat-photos {
    grid-template-columns: repeat(3, 1fr);
  }

  .cat-photos img {
    height: 90px;
  }

  /* Footer */
  .site-footer {
    margin-top: 3rem;
    font-size: 0.8rem;
  }
}

