:root {
  --navy: #071532;
  --ink: #142033;
  --muted: #5a6576;
  --line: #d7dee8;
  --paper: #f7f9fc;
  --primary: #0b2f63;
  --primary-mid: #144b99;
  --accent: #0f3a7a;
  --success: #1f7a4d;
  --font-serif: "Libre Baskerville", "Times New Roman", serif;
  --font-sans: "Figtree", "Segoe UI", sans-serif;
  --pad-x: clamp(1.25rem, 4vw, 3.5rem);
  --pad-y: clamp(1.5rem, 4.5vh, 3rem);
  --content: min(1120px, 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    linear-gradient(180deg, #e8eef6 0%, var(--paper) 40%, #eef2f7 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
}

.rail {
  background: linear-gradient(180deg, var(--navy), var(--primary-mid));
}

.sheet {
  width: var(--content);
  max-width: 100%;
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  gap: clamp(1.75rem, 4vh, 3rem);
}

.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
  animation: enter 0.7s ease both;
}

.wordmark {
  display: block;
  height: clamp(40px, 5vw, 56px);
  width: auto;
  max-width: min(280px, 68vw);
  object-fit: contain;
  object-position: left center;
  filter: contrast(1.05);
}

.top-meta {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  animation: enter 0.8s ease 0.08s both;
}

.intro {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-mid);
}

h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.6vw, 3.1rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 .line {
  display: block;
}

.domain {
  display: block;
  margin: 0.4rem 0;
  color: var(--primary-mid);
  font-size: clamp(1.45rem, 3.2vw, 2.4rem);
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: none;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 40rem;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  color: var(--muted);
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: #b8c3d4;
  background: #fff;
}

.aside-panel {
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.72);
}

.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin: 0;
}

.facts dt {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.facts div:first-child dd {
  color: var(--success);
}

.bottom {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  animation: enter 0.85s ease 0.14s both;
}

.seal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bottom-brand {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
}

.bottom-note {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.bottom-note a {
  color: var(--primary-mid);
  font-weight: 600;
  text-decoration: none;
}

.bottom-note a:hover {
  text-decoration: underline;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */
@media (max-width: 900px) {
  .content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .aside-panel {
    max-width: 100%;
  }

  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .page {
    grid-template-columns: 5px minmax(0, 1fr);
  }

  .sheet {
    gap: 1.5rem;
  }

  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .top-meta {
    margin: 0;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .bottom {
    align-items: flex-start;
  }
}

/* Layar lebar: manfaatkan ruang tanpa margin berlebih */
@media (min-width: 1400px) {
  :root {
    --content: min(1240px, 100%);
    --pad-x: clamp(2rem, 5vw, 4.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
