.font-light {
  font-family: "Inter", serif;
  font-weight: 300;
  font-style: normal;
}

.font-regular {
  font-family: "Inter", serif;
  font-weight: 400;
  font-style: normal;
}

.font-heavy {
  font-family: "Inter", serif;
  font-weight: 600;
  font-style: normal;
}

:root {
  --accent: #cd6e00;
  --bg: #FDFCFB;
  --secondary: #F1EDE9;
  --card-bg: #ffffff;
  --text-main: #1A120B;
  --text-dim: #716051;
  --transition: all 0.3s ease;
  --white: #fff;
  --hero-text: #ffffff;
}

.selectDisable {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* hide page scrollbar */
html {
  scrollbar-width: none;
}

/* Firefox */
body {
  -ms-overflow-style: none;
}

/* IE and Edge */
body::-webkit-scrollbar,
body::-webkit-scrollbar-button {
  display: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: rgba(0, 0, 0, 0);
}

.diagonal-divider {
  width: 0;
  height: 0;
  border-right: 100vw solid transparent;
  border-bottom: max(4vw, 3vh) solid var(--secondary);
  margin-top: -max(4vw, 3vh);
}

.selectDisable {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

.accent-text {
  color: var(--accent);
}

.hero {  
  position: relative;
  text-align: center;
  padding: 4rem 10% 3rem;
  background-color: var(--card-bg);
}

.hero h1 {
  margin-top: 1rem;
  font-size: 4rem;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.4rem;
  max-width: 600px;
  margin: 0 auto;
}

.filter-wrapper {
  margin: 0;
  padding: 0 10%;
  background-color: var(--secondary);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-bar a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);
}

.filter-bar a.active,
.filter-bar a:hover {
  color: var(--text-main);
}

.filter-bar a.active {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: var(--accent);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 4rem 10%;
  max-width: 1400px;
  margin: 0 auto;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.post-card a {
  text-decoration: none;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.post-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.card-title {
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--text-main);
  font-weight: 600;
}

.top-nav-wrapper {
  position: absolute;
  top: 2rem;
  right: 8%;
  z-index: 10;
}

.port-link {
  display: inline-block;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--secondary);
  border-radius: 50px;
  transition: var(--transition);
  background-color: var(--bg);
}

.port-link:hover {
  background-color: var(--secondary);
  color: var(--text-main);
  transform: translateX(5px);
}

footer {
  background-color: var(--secondary);
  padding: 4rem 10%;
  text-align: center;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 5% 2rem;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .top-nav-wrapper {
    top: 1.5rem;
    right: 5%;
  }

  .port-link {
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
  }

  .filter-wrapper {
    padding: 0 5%;
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 2rem 10px;
  }

  .filter-bar {
    padding: 1rem 0;
    gap: 1.5rem;
  }

  .card-body {
    padding: 0.8rem;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .post-tag {
    font-size: 0.6rem;
    margin-bottom: 0.4rem;
  }
}