/*
Theme Name: Kamartoto Atlas R655DtwmU
Theme URI: https://kamartotologin.asia/
Author: Kamartoto Panduan Indonesia
Description: Tema editorial independen bergaya grid monokrom untuk panduan Kamartoto Indonesia.
Version: 1.0.0
Text Domain: kamartoto-atlas
*/

:root {
  --paper: #f6f6f3;
  --surface: #ffffff;
  --ink: #151515;
  --muted: #5d5d58;
  --line: #1e1e1e;
  --reverse: #111111;
  --reverse-ink: #fafaf7;
  --accent: #c83e32;
  --focus: #2d5f8b;
  --soft: #e8e8e3;
  --max: 1240px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.74;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -8rem; z-index: 9999; background: #fff; color: #111; padding: .75rem 1rem; border: 3px solid #111; }
.skip-link:focus { top: 1rem; }

.site-header { background: var(--reverse); color: var(--reverse-ink); border-bottom: 4px solid var(--accent); position: relative; z-index: 50; }
.header-inner { max-width: var(--max); margin: 0 auto; min-height: 76px; padding: .7rem clamp(1rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(235px, 360px) 1fr; align-items: center; gap: 2rem; }
.custom-logo-link { display: inline-flex; align-items: center; min-height: 48px; }
.custom-logo { width: min(100%, 350px); height: auto; }
.brand-fallback { color: #fff; font-size: 1.05rem; font-weight: 800; text-decoration: none; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 2px solid #fff; background: #111; color: #fff; font: inherit; font-weight: 800; }
.primary-menu { display: flex; justify-content: flex-end; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.primary-menu a { display: flex; align-items: center; min-height: 48px; padding: .4rem .62rem; color: #fff; font-size: .72rem; line-height: 1.2; font-weight: 750; text-decoration: none; border-left: 1px solid #555; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: #fff; background: var(--accent); text-decoration: underline; }

.site-main { min-height: 60vh; }
.content-shell { max-width: var(--max); margin: 0 auto; padding: clamp(2.25rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem); }
.content-shell > article, .content-shell > section, .content-shell > .faq { width: min(100%, var(--reading)); margin-inline: auto; }
.content-shell > figure, .content-shell > table { width: min(100%, 1100px); margin-inline: auto; }
.content-shell > section, .content-shell > article { padding-block: clamp(2.5rem, 7vw, 5.5rem); border-top: 3px solid var(--line); }
.content-shell > section:first-child, .content-shell > article:first-child { border-top: 0; padding-top: 0; }
.home-content { padding-top: 0; }
.home-content > section:first-child { width: 100%; max-width: none; margin: 0; padding: clamp(3rem, 8vw, 7rem) clamp(1.2rem, 6vw, 5rem); background: var(--reverse); color: var(--reverse-ink); border-bottom: 4px solid var(--accent); }
.home-content > section:first-child > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.home-content > section:nth-of-type(even) { background: var(--surface); padding-inline: clamp(1rem, 4vw, 3rem); width: min(100%, 920px); border-left: 8px solid var(--accent); }

h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; margin: 0 0 1.15rem; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 6vw, 5.2rem); max-width: 15ch; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); margin-top: 1.6rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.015em; margin-top: 1.5rem; }
p { margin: 0 0 1.25rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; color: var(--accent); }
strong { font-weight: 800; }

.editorial-image { position: relative; margin-block: clamp(2rem, 6vw, 4.5rem); border: 4px solid var(--line); background: #111; overflow: hidden; }
.editorial-image::before { content: "EDITORIAL"; position: absolute; left: 0; top: 0; z-index: 2; background: var(--accent); color: #fff; padding: .35rem .65rem; font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.editorial-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.editorial-image figcaption { padding: .8rem 1rem; background: #111; color: #fff; font-size: .82rem; line-height: 1.5; border-top: 2px solid var(--accent); }

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; background: #fff; font-size: .88rem; line-height: 1.45; }
th, td { border: 2px solid var(--line); padding: .8rem; text-align: left; vertical-align: top; }
th { background: var(--reverse); color: var(--reverse-ink); font-weight: 800; }
tr:nth-child(even) td { background: var(--soft); }
ol, ul { padding-left: 1.35rem; margin: 1.25rem 0 2rem; }
li { margin-bottom: .85rem; padding-left: .35rem; }
.decision-tree, .verification-checklist, .transaction-timeline { list-style: none; padding: 0; counter-reset: step; border-top: 3px solid var(--line); }
.decision-tree li, .verification-checklist li, .transaction-timeline li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 2px solid var(--line); }
.decision-tree li::before, .verification-checklist li::before, .transaction-timeline li::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; height: 3rem; background: var(--accent); color: #fff; font-weight: 900; }

.faq { background: var(--reverse); color: var(--reverse-ink); padding: clamp(2rem, 6vw, 4rem) !important; width: min(100%, 980px) !important; border-top: 8px solid var(--accent) !important; }
.faq h3 { padding-top: 1.4rem; border-top: 1px solid #777; }
.faq p { color: #e9e9e5; }

.site-footer { background: var(--reverse); color: var(--reverse-ink); border-top: 8px solid var(--accent); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 3rem); display: grid; grid-template-columns: 1.1fr 1.5fr; gap: 3rem; }
.footer-identity strong { display: block; font-size: 1.35rem; margin-bottom: .7rem; }
.footer-identity p { color: #c8c8c3; max-width: 48ch; font-size: .88rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem 1rem; align-content: start; }
.footer-links a { color: #fff; min-height: 44px; display: flex; align-items: center; font-size: .84rem; }
.footer-email { grid-column: 1 / -1; padding-top: .7rem; border-top: 1px solid #555; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .site-nav { grid-column: 1 / -1; display: none; }
  .site-nav.is-open { display: block; }
  .primary-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #555; }
  .primary-menu a { padding: .8rem; border-bottom: 1px solid #555; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner { padding-inline: 1rem; gap: .5rem; }
  .custom-logo { width: 245px; }
  .primary-menu { grid-template-columns: 1fr; }
  .content-shell { padding-inline: 1rem; }
  .home-content > section:first-child { margin-inline: -1rem; width: calc(100% + 2rem); padding-inline: 1rem; }
  .home-content > section:nth-of-type(even) { border-left-width: 4px; }
  h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  h2 { font-size: clamp(1.65rem, 8vw, 2.2rem); }
  .editorial-image { border-width: 2px; }
  .editorial-image img { aspect-ratio: 4 / 3; object-position: center; }
  table { display: block; overflow-x: auto; white-space: normal; -webkit-overflow-scrolling: touch; }
  th, td { min-width: 150px; padding: .65rem; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

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

