:root {
  --color-primary: #10211c;
  --color-secondary: #b4332a;
  --color-accent: #b4332a;
  --color-background: #f4f7f5;
  --color-surface: #e7eeea;
  --color-text: #10211c;
  --color-muted: #3d4c47;
  --color-cta: #10211c;
  --line: rgba(16, 33, 28, 0.16);
  --pad: clamp(1.25rem, 4.5vw, 5rem);
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Public Sans", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: #f3d2ce;
  color: var(--color-text);
}

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

.skip {
  position: absolute;
  z-index: 40;
  left: var(--pad);
  top: 0.75rem;
  transform: translateY(-160%);
  padding: 0.6rem 0.9rem;
  background: var(--color-primary);
  color: var(--color-background);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

main:focus {
  outline: none;
}

#khidmat,
#siapa,
#hubungi {
  scroll-margin-top: 4.5rem;
}

.top,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--pad);
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: calc(0.85rem + env(safe-area-inset-top));
  padding-bottom: 0.85rem;
  background: rgba(244, 247, 245, 0.94);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.mark {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--color-primary);
  flex: none;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--color-secondary);
}

.menu {
  display: none;
  min-height: 2.75rem;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  max-width: 46rem;
  margin-left: auto;
  padding: clamp(3.5rem, 12vh, 7.5rem) var(--pad) clamp(3rem, 8vh, 5.5rem);
  text-align: right;
}

.kicker {
  margin: 0;
  color: var(--color-secondary);
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.lede,
.who p,
.contact p,
.ledger p {
  margin: 0;
}

.lede {
  max-width: 34rem;
  color: var(--color-muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.55rem 1.15rem;
  background: var(--color-cta);
  color: var(--color-background);
  font-weight: 600;
  text-decoration: none;
}

.cta:hover {
  background: #1c3830;
}

.ledger {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
  background: var(--color-surface);
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.ledger ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.ledger li:last-child {
  border-bottom: 1px solid var(--line);
}

.ledger h3 {
  color: var(--color-secondary);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ledger p {
  color: var(--color-text);
}

.who {
  padding: clamp(3rem, 8vw, 5.5rem) var(--pad);
}

.who h2 {
  max-width: 12em;
}

.who p {
  max-width: 34rem;
  margin-top: 0.8rem;
  color: var(--color-muted);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: clamp(3rem, 8vw, 5.5rem) var(--pad);
  background: var(--color-primary);
  color: var(--color-background);
  text-align: left;
}

.contact .kicker {
  color: #f3c7c1;
}

.contact h2,
.contact p {
  color: var(--color-background);
}

.contact .cta {
  background: var(--color-background);
  color: var(--color-primary);
}

.contact .cta:hover {
  background: #ffffff;
}

.contact .cta:focus-visible,
.mail:focus-visible {
  outline-color: var(--color-background);
}

.mail {
  color: var(--color-background);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mail:hover {
  text-decoration: underline;
}

.foot {
  padding-top: 1.15rem;
  padding-bottom: calc(1.15rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.foot p {
  margin: 0;
}

@media (max-width: 720px) {
  .menu {
    display: inline-flex;
    align-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem var(--pad) 0.9rem;
    background: var(--color-primary);
  }

  .top.is-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 0;
    border-top: 1px solid rgba(244, 247, 245, 0.2);
    color: var(--color-background);
  }

  .nav a:hover {
    color: #f3c7c1;
  }

  .hero {
    align-items: flex-start;
    margin-left: 0;
    padding-top: 2.4rem;
    text-align: left;
  }

  h1 {
    max-width: 12ch;
  }

  .ledger li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

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