/* Dipakai bersama oleh framework.html dan journal.html. Sidebar sama dengan v2.html. */
:root {
  color-scheme: dark;
  --paper: #f1efe8;
  --ink: #15171c;
  --night: #050607;
  --dim: #f1efe8a8;
  --signal: #ff5a36;
  --sans: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --hand: Caveat, "Segoe Print", cursive;
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body { min-height: 100svh; padding-bottom: 44px; background: var(--night); color: var(--paper); font-family: var(--sans); font-size: 18px; line-height: 1.45; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
p { text-wrap: pretty; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variation-settings: "opsz" 96; }
.halaman { padding: clamp(32px, 8vh, 80px) var(--gutter) clamp(40px, 8vh, 80px); }
.lead { margin-top: 12px; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.35; }
.tanda { display: inline-block; margin-top: 16px; padding: 3px 8px; border: 1px dashed currentColor; font-family: var(--mono); font-size: 12px; line-height: 1.4; }

/* Sidebar */
.side { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; height: 44px; background: var(--night); border-top: 1px solid #f1efe826; }
.side ol { flex: 1; min-width: 0; display: flex; height: 100%; padding: 0; list-style: none; }
.side li { flex: 1; }
.side a { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--dim); font-size: 13px; font-weight: 600; text-decoration: none; }
.side a:hover { color: var(--paper); }
.side a[aria-current="true"] { color: var(--paper); box-shadow: inset 0 2px 0 var(--signal); }
.side a:focus-visible { outline-offset: -3px; }
/* Framework dan Journal: halaman lain, terpisah dari menu utama */
.side-more { display: none; flex: none; padding: 0 10px; background: none; border: 0; color: var(--dim); font: 600 13px var(--sans); cursor: pointer; }
.js .side-more { display: block; }
.side-more:hover, .side-more[aria-expanded="true"] { color: var(--paper); }
.side-more:focus-visible { outline-offset: -3px; }
.side-pages { position: fixed; left: 0; right: 0; bottom: 44px; display: flex; padding: 0; list-style: none; background: var(--night); border-top: 1px solid #f1efe826; }
.side-pages li { height: 44px; }
.side-pages a { padding: 0 16px; white-space: nowrap; }
.side-pages a[aria-current="true"] { box-shadow: none; color: var(--signal); }
.side-pages span { margin-left: 4px; font-weight: 400; }
.js .side-pages { left: auto; right: 0; display: none; border: 1px solid #f1efe826; border-right: 0; border-bottom: 0; }
.js .side-pages.open { display: block; }
.js .side-pages a { justify-content: flex-start; }
@media (min-width: 1100px) and (min-aspect-ratio: 1/1) {
  body { padding-bottom: 0; padding-left: 148px; }
  .side { top: 0; right: auto; width: 148px; height: auto; flex-direction: column; justify-content: center; align-items: stretch; border-top: 0; border-right: 1px solid #f1efe826; }
  .side ol { flex: none; position: relative; display: block; width: 100%; height: auto; padding: 0 18px; }
  .side ol::before { content: ""; position: absolute; left: 22px; top: 22px; height: 132px; width: 1px; background: #f1efe840; }
  .side li { height: 44px; }
  .side a { justify-content: flex-start; padding-left: 20px; }
  .side a[aria-current="true"] { box-shadow: none; }
  .js .side-more { display: none; }
  .side-pages, .js .side-pages, .js .side-pages.open { position: static; display: block; margin-top: 26px; padding: 0 18px; background: none; border: 0; }
  .side-pages li { height: 40px; }
  .side-pages a { padding: 0 0 0 20px; }
}
