:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8f8f5;
  color: #20211e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 20% 0%, #fff 0, transparent 32rem), #f8f8f5;
}

.topbar {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 4rem);
  background: #20211e;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand, .github {
  color: #fafaf6;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.github {
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 160ms ease;
}

.github:hover, .github:focus-visible { color: #b9e6c2; }

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: calc(52px + clamp(2.5rem, 7vw, 6rem)) clamp(1rem, 4vw, 4rem) 5rem;
}

.intro { margin-bottom: clamp(2rem, 5vw, 4rem); }

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.intro p {
  max-width: 48ch;
  margin: 1.25rem 0 0;
  color: #65675f;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
}

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

.tile {
  position: relative;
  isolation: isolate;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid #e5e6df;
  border-radius: 0;
  background-color: #dce3dc;
  background-image: var(--image);
  background-position: center;
  background-size: cover;
  color: inherit;
  box-shadow: 0 8px 28px rgba(40, 42, 34, 0.045);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(40, 42, 34, 0.1);
}

.tile-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-image-under-construction {
  filter: grayscale(100%);
}

.tile-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 108px;
  flex: 0 0 108px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem 1.35rem;
  overflow: hidden;
  border-radius: 0;
  isolation: isolate;
  background: transparent;
}

.tile-copy::before {
  position: absolute;
  z-index: -2;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 320px;
  content: "";
  background-image: var(--image);
  background-position: center;
  background-size: cover;
  filter: blur(8px);
  transform: scale(1.06);
}

.tile-copy::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(255, 255, 255, 0.72);
}

.tile h2 {
  overflow: hidden;
  margin: 0 0 0.35rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1.25;
}

.tile p {
  overflow: hidden;
  margin: 0;
  color: #575a53;
  font-size: 0.9rem;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}
