:root {
  color-scheme: light;
  font-family: "Inter", system-ui, sans-serif;
  color: #1f1f1f;
  background: #f4ffed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f4ffed;
}

.page {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 48px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.site-header h1 {
  margin: 0 0 6px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  color: #5a5dcf;
  letter-spacing: 0.02em;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #6c6c6c;
  margin: 0 0 12px;
}

.subtitle {
  margin: 0;
  font-size: 16px;
  color: #555;
  max-width: 520px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav a {
  text-decoration: none;
  color: #1f1f1f;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #d6d6d6;
  background: #fff;
  font-size: 14px;
  transition: all 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  border-color: #1f1f1f;
}

.site-nav a.is-active {
  background: #1f1f1f;
  color: #fff;
  border-color: #1f1f1f;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.tile,
.gallery-tile {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(31, 31, 31, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-tile {
  text-align: center;
  min-height: 220px;
  justify-content: center;
}

.welcome-tile .tile-text {
  padding: 28px 24px 30px;
}

.welcome-tile h2 {
  font-size: 22px;
}

.welcome-tile p {
  font-size: 15px;
}

.tile:hover,
.tile:focus,
.gallery-tile:hover,
.gallery-tile:focus {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(31, 31, 31, 0.12);
}

.tile-media {
  position: relative;
  background: #eee;
}

.tile-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.tile-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #1f1f1f;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile-text {
  padding: 18px 20px 22px;
  display: grid;
  gap: 8px;
}

.tile-text h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.tile-text p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .tile-media img {
    height: 200px;
  }
}
