*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

:root {
  /* hsl (fallback color) */
  --bg-dark: hsl(17 100% 1%);
  --bg: hsl(23 78% 4%);
  --bg-light: hsl(28 51% 8%);
  --text: hsl(27 100% 93%);
  --text-muted: hsl(27 34% 68%);
  --highlight: hsl(28 27% 37%);
  --border: hsl(28 36% 26%);
  --border-muted: hsl(29 57% 16%);
  --primary: hsl(28 64% 65%);
  --secondary: hsl(206 75% 69%);
  --danger: hsl(9 26% 64%);
  --warning: hsl(52 19% 57%);
  --success: hsl(146 17% 59%);
  --info: hsl(217 28% 65%);
  /* oklch */
  --bg-dark: oklch(0.1 0.025 62);
  --bg: oklch(0.15 0.025 62);
  --bg-light: oklch(0.2 0.025 62);
  --text: oklch(0.96 0.05 62);
  --text-muted: oklch(0.76 0.05 62);
  --highlight: oklch(0.5 0.05 62);
  --border: oklch(0.4 0.05 62);
  --border-muted: oklch(0.3 0.05 62);
  --primary: oklch(0.76 0.1 62);
  --secondary: oklch(0.76 0.1 242);
  --danger: oklch(0.7 0.05 30);
  --warning: oklch(0.7 0.05 100);
  --success: oklch(0.7 0.05 160);
  --info: oklch(0.7 0.05 260);

  --font: system-ui, sans-serif;
}

body.light {
  /* hsl (fallback color) */
  --bg-dark: hsl(27 52% 89%);
  --bg: hsl(27 98% 94%);
  --bg-light: hsl(27 100% 99%);
  --text: hsl(17 100% 4%);
  --text-muted: hsl(28 36% 26%);
  --highlight: hsl(27 100% 99%);
  --border: hsl(28 21% 49%);
  --border-muted: hsl(27 27% 61%);
  --primary: hsl(34 100% 19%);
  ≈: hsl(200 100% 22%);
  --danger: hsl(9 21% 41%);
  --warning: hsl(52 23% 34%);
  --success: hsl(147 19% 36%);
  --info: hsl(217 22% 41%);
  /* oklch */
  --bg-dark: oklch(0.92 0.025 62);
  --bg: oklch(0.96 0.025 62);
  --bg-light: oklch(1 0.025 62);
  --text: oklch(0.15 0.05 62);
  --text-muted: oklch(0.4 0.05 62);
  --highlight: oklch(1 0.05 62);
  --border: oklch(0.6 0.05 62);
  --border-muted: oklch(0.7 0.05 62);
  --primary: oklch(0.4 0.1 62);
  --secondary: oklch(0.4 0.1 242);
  --danger: oklch(0.5 0.05 30);
  --warning: oklch(0.5 0.05 100);
  --success: oklch(0.5 0.05 160);
  --info: oklch(0.5 0.05 260);
}

html {
  color-scheme: dark;
  font: 200 62.5%/1.6 var(--font);
  -webkit-text-size-adjust: 100%;
  hanging-punctuation: first last;
}

body.light {
  color-scheme: light;
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-size: 1.6rem;
}

/* Header Section */
header {
  background-color: var(--header-bg);
  color: var(--text-light);
  padding: 12px 0;
  text-align: center;
  border-bottom: 3px solid var(--accent-color);
}

header h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: normal;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

header .tagline {
  font-size: 0.9rem;
  color: #cccccc;
  font-style: italic;
}

.logo {
  color: #dfba69;
  font-size: 3.4rem;
  text-decoration: none;
  letter-spacing: 0.2rem;
}
.logo span {
  display: inline-block;
  margin-left: 0.3rem;
  color: #3a7c99;
}

.site-header {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 12px 30px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-menu a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  margin-left: 20px;
  transition: 0.3s;
}
.nav-menu a:hover {
  color: var(--primary);
}
.nav-menu i {
  margin-right: 5px;
}

.hero {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background-image: url("journal_head.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  @media (max-width: 800px) {
    aspect-ratio: 16 / 9;
  }
  @media (max-width: 500px) {
    aspect-ratio: 5 / 4;
  }
}

.home-title {
  padding: 15px 15px 25px;
  width: 100%;
  background: var(--secondary);
}

.home-title h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw + 1rem, 4rem);
  text-align: center;
}

.home-title p {
  margin: 0 auto;
  max-width: 750px;
  font-size: clamp(1.2rem, 2vw + 1rem, 2.2rem);
  color: #fff;
  text-wrap: pretty;
}

.container {
  width: 100%;
  max-width: 1100px;
  min-height: 100%;
  margin: 0 auto;
  padding: 15px 15px 60px;
}

.container h1 {
  margin-top: 75px;
  color: var(--secondary);
  font-size: clamp(1.8rem, 3.2vw + 1rem, 4rem);
  text-align: center;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1.2rem;
  text-decoration: none;
  color: #333;
  display: inline-block;
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Main Content Area (Journal/Index) */
.main-content {
  flex: 3;
  background-color: var(--content-bg);
  padding: 30px;
  border-radius: 4px;
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.post-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-card:hover {
  transform: translateY(-5px);
}
.card-image {
  width: 100%;
  height: 220px;
  background: #eee;
  position: relative;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.date-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: clamp(0.75rem, 1vw + 0.75rem, 1.2rem);
  font-weight: bold;
  color: #333;
}
.card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-content h3 {
  margin: 0 0 10px 0;
  font-size: clamp(1.4rem, 2vw + 1rem, 2.2rem);
  color: #2c3e50;
}
.read-more {
  font-weight: bold;
  color: var(--primary);
  font-size: clamp(1.2rem, 1.8vw + 1rem, 2rem);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
}
.pg-link {
  padding: 10px 18px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}
.pg-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pg-link.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/*- - - - - */

/* --- Article Layout --- */
.container {
  max-width: 800px;
  margin: auto;
  padding: 40px 20px;
}

h1 {
  font-family: "Segoe UI", sans-serif;
  font-size: 3rem;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #111;
}
.meta {
  text-align: center;
  color: #888;
  margin-bottom: 50px;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Blocks --- */
.text-block {
  font-size: 1.25rem;
  font-size: clamp(1.4rem, 2vw + 1rem, 2.2rem);
  margin-bottom: 30px;
  white-space: pre-wrap;
  color: #222;
}

.img-block {
  margin: 40px 0;
}
.img-block.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}
.img-block.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.img-block img {
  width: 100%;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s;
}
.img-block img:hover {
  transform: scale(1.01);
}

.vid-box {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 40px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.vid-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Social Share --- */
.share-section {
  text-align: center;
  margin-top: 80px;
  border-top: 1px solid #eee;
  padding-top: 40px;
}
.share-title {
  font-family: "Segoe UI", sans-serif;
  font-weight: bold;
  margin-bottom: 20px;
  display: block;
}

.share-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.s-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: transform 0.2s;
  cursor: pointer;
  border: none;
  outline: none;
}
.s-btn:hover {
  transform: translateY(-3px);
}

/* Brand Colors */
.fb {
  background: #3b5998;
}
.tw {
  background: #000000;
}
.wa {
  background: #25d366;
}
.ig {
  background: #e1306c; /* Instagram Gradient Color */
}

/* --- Lightbox --- */
#lb {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
#lb img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Mobile Tweaks */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  .site-header {
    padding: 15px 20px;
  }
  .logo {
    font-size: 1.2rem;
  }
}
