/*
 * relay.sejadi.co.id: static pages with no scripts and no third-party requests,
 * because the privacy policy promises no trackers. Colours come from the SEJADI
 * Brand Guidelines v1.0 (Oct 2026), which also rule out shadows and gradients,
 * so surfaces use hairlines only. Fonts stay local for the same privacy reason.
 */
:root {
  --paper: #fafbfa; /* Putih Kabut */
  --tint: #ecf1ee; /* Hijau Kabut */
  --ink: #111111; /* Hitam Tinta */
  --text: #6d7570; /* Abu Teks */
  --line: #e3e8e5; /* Garis Halus */
  --green: #377852; /* Hijau Dalam: green text on light backgrounds */
  --mark: #4eba6e; /* Hijau Sejadi: logo mark */
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15241c; /* Hijau Malam */
    --tint: #24402f; /* Hijau Lumut */
    --ink: #fafbfa;
    --text: #8fa89a; /* Abu Malam */
    --line: #24402f;
    --green: #4eba6e; /* Hijau Sejadi is readable on dark */
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.65 Outfit, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand::before {
  content: '';
  align-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mark);
}

.brand small,
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.brand small {
  color: var(--text);
  font-size: 12px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 15px;
}

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

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--green);
}

main {
  padding-top: 32px;
  padding-bottom: 48px;
}

h1,
h2 {
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 900;
}

h2 {
  margin: 40px 0 12px;
  font-size: 21px;
  font-weight: 800;
  scroll-margin-top: 16px;
}

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

li {
  margin-bottom: 8px;
}

a {
  color: var(--green);
  text-underline-offset: 2px;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
}

.lead {
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
}

.note {
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--tint);
  font-size: 15px;
}

.toc {
  margin: 24px 0 8px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
}

.toc p {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 600;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  margin: 0 0 4px;
  break-inside: avoid;
}

@media (max-width: 560px) {
  .toc ol {
    columns: 1;
  }

  /* Long Indonesian words in three-column tables would otherwise overflow a phone screen. */
  th,
  td {
    padding: 8px 10px;
    overflow-wrap: anywhere;
  }
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

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

th {
  background: var(--tint);
  color: var(--ink);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

@media (min-width: 561px) {
  td:first-child {
    min-width: 11rem;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 20px;
  padding-bottom: 32px;
}

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