:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --secondary-text-color: #c8c8c8;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter/Inter.ttf") format("truetype");
  font-weight: 500;   /* variable weight range */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Familjen";
  src: url("/assets/fonts/Familjen/Familjen.ttf") format("truetype");
  font-weight: 500 800;   /* variable weight range */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Familjen";
  src: url("/assets/fonts/Familjen/Familjen-Italic.ttf") format("truetype");
  font-weight: 500;   /* variable weight range */
  font-style: italic;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Inter", sans-serif;
}
/* Global */
a {
  color: var(--text-color);
  text-decoration: none;
}
 .letter {
  text-decoration: underline;
}

/* Navigation */
 .container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}
 .logo {
  font-family: "Familjen", sans-serif;
  font-size: 24px;
  font-weight: bold;
}


/* Main */

main {
  max-width: 1200px;
  min-height:75dvh;
  margin:64px auto;
  padding: 40px;
}

.hero h1 {
  font-family: "Familjen", sans-serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.5rem;
  max-width: 650px;
}
.hero p {
  font-weight: 500;
  line-height: 1.5;
  color: var(--secondary-text-color);
  max-width: 580px;
}

/* Post Grid */
/* GRID */

.post-grid {
  margin: 64px auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
}

/* CARD */

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  background: #0a0a0a;
  padding: 10px;
}

/* IMAGE */
.image-container {
  position: relative;
  overflow: hidden;
}

.post-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform .4s ease;
}

/* OVERLAY */
.post-overlay h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.post-overlay p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.read-more {
  font-size: 13px;
  text-decoration: underline;
}

/* HOVER EFFECT */

.post-card:hover img {
  transform: scale(1.05);
}

/* Footer */

footer .footer-right {
  display: flex;
  gap: 16px;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .container {
    padding: 16px 20px;
  }

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

  main {
    margin: 32px auto;
    padding: 0 20px;
  }

  .post-grid {
    grid-template-columns: 1fr;
    margin: 32px auto;
  }

  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}