/* Modern, Calm & Welcoming Design */

:root {
  --primary-color: #2d7a6e;      /* Soft teal */
  --accent-color: #b8b4a1;       /* Warm taupe */
  --light-bg: #f8f7f4;           /* Warm off-white */
  --text-dark: #3a3a3a;          /* Dark grey */
  --text-light: #6b6b6b;         /* Medium grey */
  --border-color: #e8e6e1;       /* Light grey */
  --white: #ffffff;
}

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

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-color);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

h1 {
  font-size: 2.5em;
  margin-top: 0;
}

h2 {
  font-size: 2em;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.25em;
}

p {
  margin-bottom: 1em;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

a:hover {
  border-bottom-color: var(--primary-color);
}

/* Header & Navigation */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2em;
}

.site-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.site-title:hover {
  border-bottom: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
}

nav a {
  font-weight: 500;
  font-size: 0.95em;
  text-decoration: none;
  color: var(--text-dark);
  padding-bottom: 0.25em;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3em 2em;
}

.page-title {
  text-align: center;
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--border-color);
}

.content {
  background-color: var(--white);
  padding: 2.5em;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
}

.content img {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Home Page */
.home h1 {
  text-align: center;
  margin-bottom: 1.5em;
  color: var(--text-dark);
  font-weight: 700;
}

.home > p {
  text-align: center;
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 3em;
}

.hero-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5em;
  margin: 2em 0;
}

.hero-images img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 2em;
  padding-bottom: 2em;
  border-bottom: 1px solid var(--border-color);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-meta {
  font-size: 0.9em;
  color: var(--text-light);
  margin-bottom: 0.5em;
}

.post-title {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

.post-excerpt {
  color: var(--text-light);
  margin-bottom: 1em;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  padding: 0.5em 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.read-more:hover {
  border-bottom-color: var(--primary-color);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

th, td {
  padding: 1em;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
}

tbody tr:hover {
  background-color: var(--light-bg);
}

/* Code */
code {
  background-color: var(--light-bg);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

pre {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 1.5em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5em 0;
}

pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

/* Lists */
ul, ol {
  margin-left: 2em;
  margin-bottom: 1em;
}

li {
  margin-bottom: 0.5em;
}

blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1em;
  margin-left: 0;
  margin-bottom: 1em;
  color: var(--text-light);
  font-style: italic;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3em 2em;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  margin-bottom: 2em;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1em;
  border-bottom: none;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.9);
}

.footer-section a {
  color: var(--accent-color);
  border-bottom: 2px solid transparent;
}

.footer-section a:hover {
  border-bottom-color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2em;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.btn:hover {
  background-color: transparent;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.btn-secondary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--accent-color);
}

/* Responsive */
@media (max-width: 900px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
    padding: 1em;
  }

  .site-title {
    font-size: 1.2em;
  }

  nav ul {
    gap: 0.75em;
    flex-direction: row;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.85em;
    padding: 0.4em 0.6em;
    border-radius: 4px;
    background-color: var(--light-bg);
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.75em;
    gap: 0.5em;
  }

  .site-title {
    font-size: 1.1em;
  }

  nav ul {
    gap: 0.5em;
  }

  nav a {
    font-size: 0.80em;
    padding: 0.3em 0.5em;
  }

  .container {
    padding: 1.5em 1em;
  }

  .content {
    padding: 1.5em;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.5em;
  }

  .hero-images {
    grid-template-columns: 1fr;
  }

  .hero-images img {
    height: 250px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0.5em 0.3em;
    gap: 0.3em;
  }

  .site-title {
    font-size: 0.95em;
    word-break: break-word;
  }

  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.1em;
  }

  .content {
    padding: 0.8em;
  }

  nav ul {
    flex-direction: row;
    gap: 0.2em;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.65em;
    padding: 0.25em 0.35em;
    display: inline-block;
  }

  .container {
    padding: 1em 0.5em;
  }

  .post-title {
    font-size: 1.2em;
  }
}

@media (max-width: 380px) {
  .header-container {
    padding: 0.4em 0.2em;
    gap: 0.2em;
  }

  .site-title {
    font-size: 0.85em;
    line-height: 1.2;
  }

  nav ul {
    gap: 0.15em;
  }

  nav a {
    font-size: 0.6em;
    padding: 0.2em 0.3em;
  }

  .container {
    padding: 0.8em 0.4em;
  }

  .content {
    padding: 0.6em;
  }

  h1 {
    font-size: 1.3em;
  }

  h2 {
    font-size: 1em;
  }

  .post-title {
    font-size: 1.1em;
  }

  .post-meta {
    font-size: 0.8em;
  }

  p {
    font-size: 0.95em;
  }
}
