@import "palette.css";
@import "header.css";

header {
	position: sticky;
	background: var(--background);
	width: 100%;
  margin: 0 auto;
}

/* === Minimal Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* === Base Typography & Layout === */
body {
  font-family: 'Poppins', sans-serif;
  text-rendering: optimizeLegibility;
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
	display: grid;
	align-items: center;
	justify-items: center;
}

#container {
	min-width: 60%;
	max-width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

a {
  text-decoration: none;
  color: var(--link);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

#content {
	width: 100%;
  top: 0;
  left: 0;
  right: 0;
  max-width: 900px;
  padding: 30px 20px 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 10px 20px;
}

#blog h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 1px;
	color: var(--text-primary);
}

#posts {
	min-height: 80vh;
	margin-top: 30px;
	font-family: 'Poppins';
	font-style: italic;
	font-weight: 300;
	font-size: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 40px 20px;
}

#title h1 {
	margin: 0 0 5% 0;
}

#post {
	font-family: 'Poppins';
	font-weight: 400;
	color: var(--primary-text);
	font-size: 1.25rem;
	margin-bottom: 10%;
}

/* === Footer === */
footer {
	width: 100%;
  margin: 0 auto 30px auto;
  padding: 20px 20px 0 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  transition: border-color 0.3s ease, color 0.3s ease;
}

/* === Responsive === */
@media screen and (max-width: 900px) {
  :root {
    font-size: 12px;
  }
  
  header {
    padding: 25px 10px 5px 10px;
  }

  #theme-toggle {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  #theme-toggle svg {
    width: 20px;
    height: 20px;
  }

	#content {
		max-width: 100%;
	}
}

@media screen and (max-width: 700px) {
	#container {
		width: 90%;
	}
}
