/* ==========================================================================
   base.css — reset, variabel warna, tipografi
   ========================================================================== */

:root {
  /* warna — light */
  --bg:            #F7F8FA;
  --surface:       #FFFFFF;
  --surface-alt:   #EFF2F5;
  --text:          #12181F;
  --muted:         #5C6B7A;
  --accent:        #2E8B8B;
  --accent-hover:  #246F6F;
  --accent-soft:   rgba(46, 139, 139, .12);
  --border:        #E2E6EB;
  --shadow-sm:     0 1px 2px rgba(18, 24, 31, .06);
  --shadow-md:     0 2px 6px rgba(18, 24, 31, .06), 0 12px 32px rgba(18, 24, 31, .08);

  /* tipografi */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ukuran */
  --max-width: 1320px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 10px;
  --radius-lg: 16px;

  /* gerak */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .28s;
}

[data-theme="dark"] {
  --bg:            #0B0F14;
  --surface:       #141A21;
  --surface-alt:   #1B232C;
  --text:          #EDF1F5;
  --muted:         #8A9AA9;
  --accent:        #4FB3B3;
  --accent-hover:  #6FC9C9;
  --accent-soft:   rgba(79, 179, 179, .16);
  --border:        #232C36;
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md:     0 2px 6px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .45);
}

/* --- reset ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --- tipografi ------------------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9rem;
}

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

/* --- utilitas ------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 760px; }

.text-center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }
.lead--center { margin-inline: auto; }

.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;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }
