/* Base & Reset — 8pt Grid & Typography Compliant */

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

[data-mode="light"] html {
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-ink);
  color: var(--color-fg);
  font-size: var(--text-base);
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* 8pt Strict Typography */
h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-fg);
}

@media (max-width: 768px) {
  h1 {
    font-size: var(--text-xl);
    line-height: 40px;
  }
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-fg);
}

@media (max-width: 768px) {
  h2 {
    font-size: var(--text-lg);
    line-height: 32px;
  }
}

h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-fg);
}

p {
  font-size: var(--text-base);
  line-height: 24px;
  color: var(--color-fg-dim);
}

.font-mono {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img, video {
  display: block;
  max-width: 100%;
}

/* Container — 8pt padding (16px mobile, 32px desktop) */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* Google Material Symbols Base Style */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: 300; /* Lineweight ringan, tidak tebal */
  font-style: normal;
  font-size: 24px;  /* 8pt scale default */
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined.icon-16 {
  font-size: 16px;
}

.material-symbols-outlined.icon-24 {
  font-size: 24px;
}

.material-symbols-outlined.icon-32 {
  font-size: 32px;
}

/* Solid Brand Accent (Blue Only) */
.text-accent {
  color: var(--color-accent);
}

/* Remove Divider Lines per user request: "hindari garis pemisah" */
.rule {
  display: none !important;
}

/* Reveal animation */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: var(--d, 0ms);
}

.rv.in {
  opacity: 1;
  transform: none;
}
