/* Gaya bersama untuk semua halaman gbtdev. */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: rgba(0, 0, 0, 0.6);
  --line: rgba(0, 0, 0, 0.12);
  --surface: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161510;
    --fg: #f5f2e9;
    --muted: rgba(245, 242, 233, 0.6);
    --line: rgba(245, 242, 233, 0.16);
    --surface: rgba(245, 242, 233, 0.08);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

/* Header dan footer */

.site-header,
.site-footer {
  padding: 24px clamp(20px, 5vw, 48px);
  font-size: 14px;
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
}

.brand:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-list a[aria-current="page"] {
  color: var(--fg);
}

.site-footer {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Tata letak */

main {
  flex: 1;
}

.wrap {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
}

/* Halaman utama (Coming Soon) */

body.home main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(20px, 5vw, 48px);
  text-align: center;
}

.hero {
  max-width: 900px;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 82px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero__sub {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 22px);
  letter-spacing: 0.08em;
}

.divider {
  width: 64px;
  height: 1px;
  margin: 40px auto 0;
  background: var(--line);
}

/* Halaman dokumen (privasi, ketentuan) */

.doc {
  padding: 40px clamp(20px, 5vw, 48px) 96px;
}

.page-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.page-header .eyebrow {
  margin-bottom: 16px;
}

.doc h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.updated {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.lede {
  margin: 32px 0 0;
  font-size: clamp(17px, 2vw, 19px);
  color: var(--fg);
}

.doc section {
  margin-top: 48px;
}

.doc h2 {
  margin: 0 0 16px;
  font-size: clamp(20px, 3vw, 25px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.doc p,
.doc ul,
.doc ol {
  margin: 0 0 16px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc li:last-child {
  margin-bottom: 0;
}

.doc a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

.doc a:hover,
.doc a:focus-visible {
  text-decoration-color: currentColor;
}

.placeholder {
  padding: 0.1em 0.45em;
  border-radius: 4px;
  background: var(--surface);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
  white-space: nowrap;
}

/* Utilitas aksesibilitas */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

/* Animasi */

.fade-in {
  animation: fade-in 0.9s ease both;
}

.fade-in--delayed {
  animation-delay: 0.15s;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
  }
}
