/* NIN Group · base: reset, type, buttons, chips, nav (N1b), footer (Ft1) */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; overflow-x: clip;
  background: var(--color-canvas); color: var(--color-ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-body); font-weight: 600; font-style: normal; line-height: 1.1; letter-spacing: -0.015em; margin: 0; overflow-wrap: anywhere; min-width: 0; }
/* Bodoni only where it is large: the hero line and the letterhead marks. A low optical size keeps its hairlines sturdy on screen. */
h1, .foot__name, .brand__word { font-family: var(--font-display); font-variation-settings: "opsz" 18; }
p { margin: 0; }
.wrap { width: min(100% - 2 * clamp(1rem, 3vw, 2rem), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.simpul { width: 1.75rem; height: 1.75rem; --knot: currentColor; --gap: var(--color-canvas); flex: none; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 2.75rem; padding: 0 var(--space-lg); border-radius: var(--radius-pill);
  border: var(--rule-hair) solid var(--color-ink); background: var(--color-ink); color: var(--color-on-ink);
  font: 500 var(--text-sm) / 1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.btn:hover { background: var(--color-ink-3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--light { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-paper); }
.btn--light:hover { background: var(--color-accent-soft); }
.btn--wide { width: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-sm);
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill);
  font-size: var(--text-xs); color: var(--color-muted); background: var(--color-paper); white-space: nowrap;
}
.chip--ink { background: var(--color-ink-2); border-color: var(--color-ink-rule); color: var(--color-on-ink-muted); }
.card { background: var(--color-paper); border-radius: var(--radius-lg); }

/* N1b nav: brand left, links + dropdown, filled pill right; frosts on scroll */
.nav { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--color-canvas); transition: box-shadow var(--dur-short) var(--ease-out); }
.nav.is-stuck { box-shadow: 0 var(--rule-hair) 0 var(--color-rule); }
.nav__bar { display: flex; align-items: center; gap: var(--space-lg); min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; }
.brand__word { font-weight: 700; letter-spacing: 0.2em; font-size: var(--text-sm); white-space: nowrap; }
.nav__links { display: none; margin-inline-start: auto; gap: var(--space-xs); align-items: center; }
.nav__link { padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-pill); font-size: var(--text-sm); text-decoration: none; white-space: nowrap; background: none; border: 0; color: inherit; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2xs); }
.nav__link:hover { background: var(--color-paper-2); }
.nav__link svg { width: 0.7rem; transition: transform var(--dur-short) var(--ease-out); }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__cta { display: none; }
.nav__toggle { margin-inline-start: auto; }
.drop { position: relative; }
.drop__menu {
  position: absolute; top: calc(100% + var(--space-xs)); left: 50%; translate: -50% 0; width: 18rem; z-index: var(--z-dropdown);
  padding: var(--space-xs); background: var(--color-paper); border-radius: var(--radius-md); box-shadow: var(--shadow-whisper), 0 0 0 var(--rule-hair) var(--color-rule);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.drop__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.drop__item { display: flex; gap: var(--space-sm); align-items: center; padding: var(--space-sm); border-radius: var(--radius-sm); text-decoration: none; }
.drop__item:hover, .drop__item:focus-visible { background: var(--color-paper-2); }
.drop__mark { flex: none; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--color-accent-soft); color: var(--color-accent); font: 600 var(--text-md) / 1 var(--font-display); }
.drop__mark--ink { background: var(--color-ink); color: var(--color-on-ink); }
.drop__item b { display: block; font-size: var(--text-sm); font-weight: 600; }
.drop__item span { font-size: var(--text-xs); color: var(--color-muted); }
.sheet { display: none; padding-block: var(--space-sm) var(--space-lg); }
.sheet.is-open { display: grid; gap: var(--space-2xs); }
.sheet a { padding: var(--space-sm) 0; text-decoration: none; border-bottom: var(--rule-hair) solid var(--color-rule); }
@media (min-width: 60rem) {
  .nav__links, .nav__cta { display: inline-flex; }
  .nav__toggle, .sheet, .sheet.is-open { display: none; }
}

/* Ft1 mast-headed footer, set like the PT NIN letterhead */
.foot { padding-block: var(--space-3xl) var(--space-xl); text-align: center; }
.foot .simpul { width: 3rem; height: 3rem; margin-inline: auto; }
.foot__name { margin-top: var(--space-md); font-weight: 600; letter-spacing: 0.24em; font-size: clamp(1rem, 0.7rem + 1.4vw, 1.6rem); }
.foot__place { margin-top: var(--space-xs); font-size: var(--text-xs); letter-spacing: 0.3em; color: var(--color-muted); }
.foot__rule { width: 6rem; height: var(--rule-hair); margin: var(--space-lg) auto; background: var(--color-neutral); border: 0; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); }
.foot__links a { white-space: nowrap; text-underline-offset: 0.25em; }
.foot__reg { margin-top: var(--space-xl); font-size: var(--text-xs); color: var(--color-muted); line-height: 1.8; font-variant-numeric: tabular-nums; }

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