﻿/* cdn/web/css/global.css */

/* 1. IMPORT FONTS */
/* Kita mengimpor semua font yang dipakai di index_old_WP.txt sekaligus dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Akronim&family=Aleo:ital,wght@0,300;0,400;0,700;1,400&family=Allerta+Stencil&family=Allison&family=Cabin:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Faster+One&display=swap');

/* 2. VARIABLES (DESIGN TOKENS) */
:root {
  /* Colors - Berdasarkan referensi WP lama */
  --color-primary: #eeaa6d;       /* Gold utama */
  --color-primary-light: #dbe1aa; /* Gold muda/pucat */
  --color-bg: #171717;            /* Dark Background */
  --color-bg-alt: #222222;        /* Sedikit lebih terang untuk card/section */
  --color-text: #f5f5f5;          /* Putih tulang untuk teks bacaan */
  --color-text-muted: #a0a0a0;    /* Abu-abu untuk teks sekunder */
  
  /* Fonts */
  --font-sans: 'Cabin', sans-serif;
  --font-serif: 'Aleo', serif;
  --font-display-fast: 'Faster One', cursive;
  --font-display-stencil: 'Allerta Stencil', sans-serif;
  --font-display-script: 'Allison', cursive;
  --font-display-hand: 'Akronim', cursive;

  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 80px;
}

/* 3. RESET & BASE STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Mencegah scroll horizontal tidak sengaja */
}

/* 4. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 5. UTILITY CLASSES */

/* Container umum untuk membatasi lebar konten */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Scrollbar Custom (Agar terlihat premium) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Helper untuk text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }