/* ==========================================================================
   1. GLOBAL RESET & BOX-SIZING
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   2. DESIGN TOKENS (LIGHT MODE)
   ========================================================================== */
/* ==========================================================================
   2. DESIGN TOKENS (LIGHT MODE)
   ========================================================================== */
:root {
  /* Color Palette (OKLCH Format) */
  --bg-primary: oklch(96.5% 0.009 78.4);
  --bg-secondary: oklch(94.2% 0.012 78.1);
  
  --text-main: oklch(22.8% 0.007 58.2);
  --text-subtle: oklch(42.0% 0.012 65.4);

  --accent-navy: oklch(38.2% 0.035 235.1);
  --accent-sage: oklch(67.8% 0.031 128.5);
  
  /* FIX: Accent Camel versi Light Mode (Lebih pekat & kontras tinggi) */
  --accent-camel: oklch(58.5% 0.115 68.6);

  /* Border Gold menyesuaikan aksen Camel Light Mode */
  --border-gold: oklch(58.5% 0.115 68.6 / 0.25);
  --shadow-warm: oklch(22.8% 0.007 58.2 / 0.06);

  /* Typography Configuration */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --line-height-body: 1.75;
  --letter-spacing-heading: -0.025em;
}

/* ==========================================================================
   3. DESIGN TOKENS (DARK MODE)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: oklch(18.5% 0.008 58.2);
    --bg-secondary: oklch(23.2% 0.010 60.1);
    
    --text-main: oklch(93.5% 0.008 78.4);
    --text-subtle: oklch(75.5% 0.012 65.4);

    --accent-navy: oklch(58.2% 0.045 235.1);
    --accent-sage: oklch(74.8% 0.035 128.5);
    
    /* Accent Camel versi Dark Mode (Tetap terang & bercahaya) */
    --accent-camel: oklch(75.4% 0.088 68.6);

    --border-gold: oklch(75.4% 0.088 68.6 / 0.25);
    --shadow-warm: oklch(0% 0 0deg / 0.3);
  }
}

:root[data-theme="dark"] {
  --bg-primary: oklch(18.5% 0.008 58.2);
  --bg-secondary: oklch(23.2% 0.010 60.1);
  --text-main: oklch(93.5% 0.008 78.4);
  --text-subtle: oklch(75.5% 0.012 65.4);
  --accent-navy: oklch(58.2% 0.045 235.1);
  --accent-sage: oklch(74.8% 0.035 128.5);
  --accent-camel: oklch(75.4% 0.088 68.6);
  --border-gold: oklch(75.4% 0.088 68.6 / 0.25);
  --shadow-warm: oklch(0% 0 0deg / 0.3);
}

/* ==========================================================================
   4. BASE BODY STYLING
   ========================================================================== */
body {
  background-color: var(--bg-primary);
  color: var(--text-main);

  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: var(--line-height-body);
  letter-spacing: -0.011em;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   5. HEADINGS & CONTENT STYLING
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: var(--letter-spacing-heading);
  color: var(--text-main);
  font-variation-settings: "WONK" 1, "SOFT" 30;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.875rem;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.6rem;
}

.article-meta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ==========================================================================
   6. HEADER LAYOUT & ACTIONS
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 60px;
  background-color: oklch(from var(--bg-primary) l c h / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-container {
  max-width: 1140px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.02em;
  font-variation-settings: "WONK" 1, "SOFT" 30; /* FIX: Menyelaraskan efek font ke logo */
}

.logo-dot {
  color: var(--accent-camel);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.25rem;
  align-items: center;
  justify-content: center;
  /* FIX: Touch Target Size untuk Jempol Mobile */
  min-width: 44px;
  min-height: 44px;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-subtle);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-camel);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  /* FIX: Memperbesar area sentuh dari 36px ke 44px (Standard Touch Target) */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--accent-camel);
}

.btn-header {
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 600;
  color: oklch(93.5% 0.008 78.4);
  background-color: var(--accent-navy);
  padding: 0.55rem 1.15rem;
  border-radius: 99px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-header:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Theme Toggle Logic */
.theme-toggle .moon-icon { display: block; }
.theme-toggle .sun-icon { display: none; }

:root[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun-icon { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon-icon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .sun-icon { display: block; }
}



















/* ==========================================================================
   PERSONAL HOMEPAGE STYLING (Isolated Classes - Fixed Width Container)
   ========================================================================== */

/* FIX: Tambahkan max-width dan margin auto di main container agar tidak full-width */
.home-personal-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
}

/* 1. Personal Hero Section */
.home-hero-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 12px 35px var(--shadow-warm);
}

.home-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-camel);
  display: block;
  margin-bottom: 0.75rem;
}

.home-headline {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.home-bio-lead {
  font-size: 1.05rem;
  color: var(--text-subtle);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-primary-home {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: oklch(93.5% 0.008 78.4);
  background-color: var(--accent-navy);
  padding: 0.75rem 1.6rem;
  border-radius: 99px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary-home:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-secondary-home {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-secondary-home:hover {
  color: var(--accent-camel);
}

/* Portrait Badge Wrapper */
.home-hero-portrait-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
}

.home-hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-portrait-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background-color: oklch(from var(--bg-primary) l c h / 0.85);
  backdrop-filter: blur(10px);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
}

.badge-number {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-camel);
}

.badge-text {
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 2. Section Headers */
.home-section-block {
  margin-top: 5rem;
}

.home-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 1rem;
  margin-bottom: 2.25rem;
}

.home-section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-camel);
  display: block;
}

.home-section-title {
  font-size: 1.85rem;
  margin: 0;
}

.home-view-all {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-view-all:hover {
  color: var(--text-main);
}

/* 3. Preset Product Cards */
.home-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
}

.home-preset-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.home-preset-card:hover {
  transform: translateY(-4px);
}

.home-preset-preview {
  position: relative;
  width: 100%;
  height: auto;
}

.preset-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.home-preset-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent-navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
}

.home-preset-info {
  padding: 1.5rem;
}

.home-preset-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-camel);
  margin-bottom: 0.5rem;
}

.home-preset-name {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.home-preset-name a {
  color: var(--text-main);
  text-decoration: none;
}

.home-preset-desc {
  font-size: 0.925rem;
  color: var(--text-subtle);
  margin: 0;
  line-height: 1.6;
}

/* 4. Journal Editorial List */
.home-journal-list {
  display: flex;
  flex-direction: column;
}

.home-journal-item {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid oklch(from var(--text-subtle) l c h / 0.15);
  transition: background-color 0.2s ease;
}

.home-journal-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  padding: 0.6rem;
  border-radius: 10px;
  text-align: center;
}

.date-day {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
}

.date-month {
  font-size: 0.675rem;
  font-weight: 700;
  color: var(--accent-camel);
  margin-top: 0.2rem;
}

.home-journal-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-sage);
}

.home-journal-title {
  font-size: 1.25rem;
  margin: 0.25rem 0 0.35rem;
}

.home-journal-title a {
  color: var(--text-main);
  text-decoration: none;
}

.home-journal-title a:hover {
  color: var(--accent-camel);
}

.home-journal-excerpt {
  font-size: 0.9rem;
  color: var(--text-subtle);
  margin: 0;
}

.home-journal-arrow {
  font-size: 1.35rem;
  color: var(--text-subtle);
  text-decoration: none;
  text-align: right;
  transition: color 0.2s ease, transform 0.2s ease;
}

.home-journal-item:hover .home-journal-arrow {
  color: var(--accent-camel);
  transform: translateX(3px);
}

/* ==========================================================================
   MOBILE UX RESPONSIVE (Max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .home-personal-main {
    padding-top: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-hero-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .home-headline {
    font-size: 1.75rem;
  }

  .home-hero-portrait-wrapper {
    height: 300px;
  }

  .home-preset-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .home-journal-item {
    grid-template-columns: 65px 1fr;
    gap: 1rem;
  }

  .home-journal-arrow {
    display: none;
  }
}









/* ==========================================================================
   SEARCH MODAL STYLING
   ========================================================================== */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25 ease;
}

.search-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-overlay {
  position: absolute;
  inset: 0;
  background-color: oklch(0% 0 0 / 0.55);
  backdrop-filter: blur(8px);
}

.search-modal-content {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 650px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  box-shadow: 0 20px 40px var(--shadow-warm);
  overflow: hidden;
  transform: translateY(-15px);
  transition: transform 0.25s ease;
}

.search-modal.active .search-modal-content {
  transform: translateY(0);
}

.search-modal-header {
  display: flex;
  align-items: center;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-gold);
  gap: 1rem;
}

.search-modal-icon {
  color: var(--accent-camel);
  flex-shrink: 0;
}

#modalSearchInput {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1.05rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
}

#modalSearchInput::placeholder {
  color: var(--text-subtle);
  opacity: 0.7;
}

.search-modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.search-modal-close:hover {
  color: var(--accent-camel);
}

.search-modal-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.search-placeholder-text {
  font-size: 0.9rem;
  color: var(--text-subtle);
  text-align: center;
  padding: 2rem 0;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0;
  border-bottom: 1px dashed oklch(from var(--text-main) l c h / 0.1);
  text-decoration: none;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.search-result-item:hover .search-result-title {
  color: var(--accent-camel);
}

.search-result-meta {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .search-modal {
    padding-top: 2rem;
  }
}











/* ==========================================================================
   7. SITE FOOTER STYLING
   ========================================================================== */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-gold);
  padding-top: 4rem;
  margin-top: 6rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .site-logo {
  font-size: 1.35rem;
}

.footer-bio {
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--text-subtle);
  line-height: 1.6;
  margin-top: 0.85rem;
  max-width: 360px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-camel);
  display: block;
  margin-bottom: 1.25rem;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.75rem; /* FIX: Spasi antar menu footer dibuat lebih mudah di-tap */
}

.footer-menu a {
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--text-subtle);
  text-decoration: none;
  display: inline-block;
  padding: 0.15rem 0;
  transition: color 0.2s ease;
}

.footer-menu a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid oklch(from var(--text-subtle) l c h / 0.15);
  padding: 1.5rem 0;
}

.footer-bottom-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   8. MOBILE RESPONSIVE (Max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .btn-header {
    display: none;
  }

  /* Drawer Navigation */
  .site-nav {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 270px;
    height: calc(100vh - 60px);
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border-gold);
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px var(--shadow-warm);
    z-index: 99;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .site-nav.is-open {
    left: 0;
  }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.25rem 0; /* Area sentuh lebih luas */
  }

  /* Mobile Footer Layout Clean-up */
  .site-footer {
    padding-top: 3rem;
    margin-top: 4rem;
  }

  /* FIX: Menyatukan deklarasi grid footer mobile secara efisien */
  .footer-container {
    display: grid;
    grid-template-areas: 
      "brand brand"
      "explore legal";
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1rem;
    padding-bottom: 2.25rem;
  }

  .footer-brand {
    grid-area: brand;
  }

  .footer-container > .footer-col:nth-of-type(1) {
    grid-area: explore;
  }

  .footer-container > .footer-col:nth-of-type(2) {
    grid-area: legal;
  }

  .footer-bio {
    max-width: 100%;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}