/* =====================================================
   BASE.CSS — Reset & styling dasar HTML
   ===================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; overscroll-behavior-y: none; }
body {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  min-height: 100vh;
  overscroll-behavior-y: none;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(18,161,80,.10), transparent 60%),
    linear-gradient(rgba(15,36,55,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,36,55,.05) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 26px 26px, 26px 26px, auto;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--disp, inherit); font-weight: 700; line-height: 1.2; }
p { line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(18,161,80,.25); }
button, input, select, textarea { touch-action: manipulation; font-family: inherit; }
.spacer { flex: 1; }
kbd {
  font: 600 12px var(--mono); background: #fff;
  border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 4px; padding: 1px 6px; color: var(--ink2);
}
[data-theme="dark"] body {
  color: var(--ink);
  background: var(--paper);
  background-image: none;
}
[data-theme="dark"] ::selection { background: rgba(255, 255, 255, 0.18); }
[data-theme="dark"] kbd {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink2);
}
