body {
  margin: 0;
  font-family: Georgia, serif;
  background: #0f1113;
  color: #e6e0d4;
}

h1 {
  margin: 0;
}

.tagline {
  margin: 0;
  font-size: 0.9em;
  color: #888;
}

header {
  width: 100%;
  display: block;
}

header h1 {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  opacity: 0.8;
}

main {
  width: 100%;
  display: block;
}

/* Tile grid */

.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .tile-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tile base */

.tile {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.tile::before {
  content: "";
  display: block;
  padding-top: 100%;
}

/* Hero tile */

.tile.hero {
  grid-column: 1 / -1;
}

.tile.hero::before {
  padding-top: 42%;
}

.tile.hero .tile-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0.25),
    rgba(0,0,0,0)
  );
}

.tile.hero:hover .tile-bg {
  transform: scale(1.04);
}

/* Clickable layer */

.tile a {
  position: absolute;
  inset: 0;
  display: block;
  color: white;
  text-decoration: none;
}

/* Visual layers */

.tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s ease;
}

.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78),
    rgba(0, 0, 0, 0.28),
    rgba(0, 0, 0, 0)
  );
  transition: background 0.4s ease;
}

.tile-content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}

.tile-content h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 2.5px;
  font-weight: 500;
}

.tile-content p {
  margin: 6px 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
  opacity: 0.75;
}

/* Hover */

.tile:hover .tile-bg {
  transform: scale(1.03);
}

.tile:hover .tile-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82),
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.00)
  );
}

/* About */

.about-contact {
  max-width: 800px;
  margin: 60px auto 80px;
  padding: 0 20px;
  text-align: center;
}

.about-inner h2 {
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin: 40px 0 10px;
  font-weight: 500;
  color: #c8a75a;
}

.about-inner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #a7a094;
}

.about-inner a {
  color: #c8a75a;
  text-decoration: none;
  border-bottom: 1px solid rgba(200,167,90,0.4);
}

.about-inner a:hover {
  color: #e0c878;
  border-bottom-color: #e0c878;
}

/* About link */

.about-link a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.about-link:hover {
  opacity: 0.85;
}

/* PHC unikt */

.tile.phc .tile-bg {
  background-image: url('assets/Devil.png');
  background-position: center;
  background-size: cover;

  filter:
    brightness(0.8)
    contrast(1.05)
    saturate(0.85);

  transition: transform 0.6s ease, filter 0.6s ease;
}

.tile.phc:hover .tile-bg {
  transform: scale(1.04);

  filter:
    brightness(1.0)
    contrast(1.1)
    saturate(1.0);
}

.tile.phc .tile-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85),
    rgba(20,0,0,0.4),
    rgba(0,0,0,0)
  );
}

/* Freyja unikt */

.tile.freyja .tile-bg {
  background-position: center 20%;
  background-size: 130%;
}

.tile.freyja .tile-bg {
  filter:
    brightness(0.65)
    contrast(0.9)
    saturate(0.7);
}

.tile.freyja .tile-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85),
    rgba(0,0,20,0.5),
    rgba(0,0,0,0)
  );
}

.tile.freyja:hover .tile-bg {
  transform: scale(1.02);

  filter:
    brightness(0.8)
    contrast(1.0)
    saturate(0.85);
}



/* Wilhelm unikt */

.tile.wilhelm .tile-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.8),
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.2)
  );
  opacity: 0.2;
}

.tile.wilhelm .tile-bg {
  filter: 
    brightness(0.75)
    contrast(0.9)
    saturate(0.7);
   
}

.tile.wilhelm .tile-bg {
  background-position: center 25%;
  background-size: 120%;
}

.tile.wilhelm:hover .tile-bg {
  transform: scale(1.03);

  filter: 
    brightness(0.95)
    contrast(1.0)
    saturate(0.85);
}


/* fragment unikt */

.tile.fragments .tile-bg {
  background-position: center;
  background-size: 140%;
}

.tile.fragments .tile-bg {
  filter:
    brightness(0.55)
    contrast(0.95)
    saturate(0.7);
}

.tile.fragments .tile-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.9),
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.2)
  );
 opacity: 0.04;
}

.tile.fragments:hover .tile-bg {
  transform: scale(1.03);

  filter:
    brightness(0.75)
    contrast(1.05)
    saturate(0.85);
}



/* recept unikt */

.tile.food .tile-bg {
  background-position: center;
  background-size: cover;

  filter:
    brightness(0.7)
    contrast(0.95)
    saturate(0.8);

  transition: transform 0.6s ease, filter 0.6s ease;
}

.tile.food:hover .tile-bg {
  transform: scale(1.03);

  filter:
    brightness(0.9)
    contrast(1.05)
    saturate(1.0);
}

.tile.food .tile-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85),
    rgba(40,20,0,0.4),
    rgba(0,0,0,0)
  );
}


/* garden unikt */

.tile.garden .tile-bg {
  background-position: center;
  background-size: cover;

  filter:
    brightness(0.6)
    contrast(0.95)
    saturate(0.8);

  transition: transform 0.8s ease, filter 0.8s ease;
}

.tile.garden:hover .tile-bg {
  transform: scale(1.01);

  filter:
    brightness(0.75)
    contrast(1.0)
    saturate(0.9);
}

.tile.garden .tile-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.9),
    rgba(0,0,30,0.5),
    rgba(0,0,0,0)
  );
}

/* pi60s-s unikt */

.tile.tech .tile-bg {
  background-position: center;
  background-size: cover;

  filter:
    brightness(0.65)
    contrast(1.05)
    saturate(0.7);

  transition: transform 0.6s ease, filter 0.6s ease;
}

.tile.tech:hover .tile-bg {
  transform: scale(1.02);

  filter:
    brightness(0.8)
    contrast(1.15)
    saturate(0.85);
}

.tile.tech .tile-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85),
    rgba(20,20,20,0.4),
    rgba(0,0,0,0)
  );
}

/* Ornament */

.tile.ornament {
  cursor: default;
}

.tile.ornament:hover .tile-bg{
  transform: none;
}

.tile.ornament::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("ornament.png");
  background-size: 55%;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.05;
  mix-blend-mode: soft-light;
}