:root {
  color-scheme: dark;
  --bg: #141311;
  --panel: #1d1b18;
  --border: #3c362e;
  --text: #fff8ed;
  --muted: #cdc3b5;
  --gold: #ffc578;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: var(--gold); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
[id] { scroll-margin-top: 1.25rem; }
.shell { width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }

.skip-link {
  position: absolute;
  inset: 1rem auto auto 1rem;
  z-index: 2;
  padding: .5rem 1rem;
  background: var(--panel);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }
.site-header { background: #11100f; border-bottom: 1px solid var(--border); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.header-inner { min-height: 4.625rem; }
.brand { position: relative; display: inline-flex; flex: none; align-items: center; width: 11rem; min-height: 3rem; color: var(--text); text-decoration: none; font-weight: 800; }
.brand-static { display: inline-flex; align-items: center; gap: .5rem; line-height: 1.15; }
.brand-static img { border-radius: .5rem; }
.brand-logo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.has-animated-logo .brand-static { visibility: hidden; }
nav { display: flex; flex-wrap: wrap; gap: 0 clamp(.75rem, 2vw, 1.75rem); }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); text-decoration: none; font-weight: 600; }
nav a:hover { text-decoration: underline; }
nav a[aria-current] { color: var(--gold); }

.hero {
  background: #100e0d;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(28rem, 43vw, 37rem);
  padding-block: 4rem;
  background:
    linear-gradient(90deg, #100e0d 4%, #100e0dbf 29%, #100e0d00 60%, #100e0d00 92%, #100e0d),
    url("../images/pages/beranda.jpg") right center / auto 133% no-repeat;
}
.hero-copy { max-width: 31rem; }
.eyebrow { color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; font-size: .875rem; }
h1, h2, h3 { line-height: 1.15; }
h1 { margin-block: .7rem 1.35rem; font-size: clamp(3.5rem, 7vw, 6.25rem); letter-spacing: -.075em; }
h1 span { display: block; color: var(--gold); }
.hero-copy > p:not(.eyebrow) { max-width: 25rem; font-size: 1.125rem; color: var(--muted); }
.button { display: inline-block; padding: .72rem 1.25rem; border-radius: .45rem; background: var(--gold); color: #1c140d; font-weight: 750; text-decoration: none; margin-top: 1.65rem; }
.button:hover { background: #ffdaa7; color: #1c140d; }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; text-wrap: balance; }
h3 { font-size: 1.25rem; letter-spacing: -.015em; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.guide-card {
  min-height: 12.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}
.guide-card:hover { border-color: var(--gold); background: #282119; }
.guide-card p, .split p, .questions p { color: var(--muted); }
.text-link { margin-top: auto; padding-top: .35rem; color: var(--gold); font-weight: 700; }
.guide-card:hover .text-link { text-decoration: underline; }
.guide-icon { position: relative; width: 2.5rem; height: 2.5rem; margin-bottom: .4rem; border-radius: .55rem; color: var(--gold); background: #3d2b18; }
.guide-icon::before, .guide-icon::after { content: ""; position: absolute; }
.icon-plus::before { width: 1.05rem; height: 2px; top: calc(50% - 1px); left: .725rem; background: currentColor; }
.icon-plus::after { width: 2px; height: 1.05rem; left: calc(50% - 1px); top: .725rem; background: currentColor; }
.icon-key::before { width: .65rem; height: .65rem; left: .65rem; top: .925rem; border: 2px solid; border-radius: 50%; }
.icon-key::after { width: .65rem; height: .325rem; left: 1.2rem; top: calc(50% - 1px); border-top: 2px solid; border-right: 2px solid; }
.icon-link::before, .icon-link::after { width: .7rem; height: .47rem; border: 2px solid; border-radius: 1rem; transform: rotate(-45deg); }
.icon-link::before { top: .83rem; left: 1.12rem; }
.icon-link::after { top: 1.2rem; left: .69rem; }

.about { background: var(--panel); border-block: 1px solid var(--border); }
.split { display: grid; grid-template-columns: 1fr 1.55fr; gap: clamp(1rem, 4vw, 3.5rem); }
.split p + p { margin-top: .75rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.25rem; }
.article-card { min-height: 11rem; }
.article-card h2 { font-size: 1.25rem; letter-spacing: -.015em; }
.article-card a { color: var(--text); }
.article-card a:hover { color: var(--gold); }
.article-card .card-topic { color: var(--gold); font-size: .875rem; font-weight: 700; }
.page-header { padding-block: clamp(2.75rem, 7vw, 5.25rem); border-bottom: 1px solid var(--border); background: linear-gradient(120deg, var(--panel), #2a2118); }
.page-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(1.25rem, 4vw, 3.5rem); }
.page-illustration { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: .75rem; }
.page-header h1 { max-width: 19ch; margin-block: 0 .8rem; font-size: clamp(2.35rem, 6vw, 4.75rem); letter-spacing: -.055em; text-wrap: balance; }
.page-intro { max-width: 42rem; color: var(--muted); font-size: 1.125rem; }
.page-context { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: 1rem; color: var(--muted); }
.page-content { padding-block: clamp(2.5rem, 5vw, 4rem); }
.page-content > .guide-grid { margin-top: 0; }
.reading-width, .prose { max-width: 44rem; }
.prose section + section { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.prose section:target h2 { color: var(--gold); }
.prose h2 { margin-bottom: .75rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.prose :is(p, ul, ol) { color: var(--muted); }
.prose p + p, .prose li + li { margin-top: .5rem; }
.prose :is(ul, ol) { padding-left: 1.45rem; }
.questions { border-top: 1px solid var(--border); }
.topic-nav { gap: .25rem 1.25rem; margin-bottom: 2rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.topic-nav a { color: var(--gold); text-decoration: underline; }
details { border-bottom: 1px solid var(--border); }
summary { color: var(--text); cursor: pointer; font-weight: 650; padding: 1rem .25rem; }
summary::marker { color: var(--gold); }
details:target > summary { color: var(--gold); }
details p { padding: 0 .25rem 1rem; }
footer { border-top: 1px solid var(--border); }
.footer-inner { flex-wrap: wrap; padding-block: 1.25rem; }
.footer-inner span { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .brand-logo { display: none; }
  .has-animated-logo .brand-static { visibility: visible; }
}

@media (max-width: 52rem) {
  .hero-inner {
    width: 100%;
    min-height: auto;
    padding: clamp(14rem, 53vw, 23rem) 1.5rem 2.5rem;
    background:
      linear-gradient(180deg, #100e0d00 clamp(10rem, 42vw, 18rem), #100e0d clamp(15.5rem, 59vw, 25rem)),
      url("../images/pages/beranda.jpg") calc(50% - clamp(4.25rem, 14vw, 9rem)) top / auto clamp(17rem, 62vw, 27rem) no-repeat;
  }
}

@media (max-width: 48rem) {
  .page-header-inner { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; padding-block: .75rem; gap: .25rem 1rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: auto; }
}

@media (max-width: 36rem) {
  .shell { width: calc(100% - 2rem); }
  .hero-inner { width: 100%; padding-inline: 1rem; }
  .split { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 22rem) {
  h1 { font-size: clamp(2.5rem, 16vw, 3.5rem); }
}
