:root {
  color-scheme: light;

  --bg: #eef2f1;
  --surface: #ffffff;
  --ink: #16211f;
  --ink-soft: #4b5a57;
  --line: #d7ded9;
  --accent: #1f6f63;
  --accent-soft: #e4efec;
  --accent-2: #d98e2b;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: var(--accent);
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

nav a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
  background: var(--accent-soft);
}

nav a[aria-current="page"] {
  color: var(--surface);
  background: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

/* Main / pages */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page {
  animation: page-in 0.35s ease;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kicker {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

h1 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 17px;
}

.section-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 10px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 20px;
}

/* Profil */
.profil-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.profil-foto {
  margin: 0;
}

.profil-foto img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

.profil-teks p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.profil-teks p:last-child {
  margin-bottom: 0;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

caption {
  text-align: left;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  caption-side: top;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: var(--accent-soft);
}

td:first-child {
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 600;
  width: 48px;
}

/* Kontak */
#kontak p {
  color: var(--ink-soft);
  max-width: 60ch;
}

.kontak-tombol {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.kontak-tombol:hover,
.kontak-tombol:focus-visible {
  background: var(--accent);
  color: var(--surface);
}

footer {
  text-align: center;
  padding: 24px;
  color: var(--ink-soft);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 640px) {
  .topbar {
    padding: 12px 16px;
  }

  main {
    padding: 32px 16px 60px;
  }

  .profil-grid {
    grid-template-columns: 1fr;
  }

  .profil-foto img {
    max-width: 200px;
  }

  h1 {
    font-size: 32px;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tbody tr {
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }

  td {
    border: none;
    padding: 4px 0;
  }

  td:first-child {
    color: var(--accent);
  }

  td:nth-child(2) {
    font-weight: 600;
  }
}
