/* ==========================================================================
   KINETO — Reset, base, utilities
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, picture, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--text-dark); }

/* ---- Shell & grid ------------------------------------------------------ */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
}

/* ---- Skip link --------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--text-dark);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius-button);
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-fast);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---- Typographic primitives ------------------------------------------- */

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: var(--tracking-display);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}
.eyebrow::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.on-paper .eyebrow { color: var(--text-dark-muted); }

.accent-italic {
  font-style: italic;
  color: var(--accent);
}

.label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.index {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.arrow {
  display: inline-block;
  transition: transform var(--dur-hover) var(--ease-fast);
}

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  transition: transform var(--dur-hover) var(--ease-fast);
}

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 54px;
  padding-inline: 28px;
  border-radius: var(--radius-button);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    transform var(--dur-hover) var(--ease-fast),
    background-color var(--dur-hover) var(--ease-fast),
    border-color var(--dur-hover) var(--ease-fast),
    box-shadow var(--dur-hover) var(--ease-fast),
    color var(--dur-hover) var(--ease-fast);
}

.btn--paper {
  background: var(--paper);
  color: var(--text-dark);
  border: 1px solid rgba(255, 255, 255, .5);
}
.btn--paper .arrow { color: #3f8f00; }

.btn--outline {
  height: 50px;
  padding-inline: 26px;
  border: 1px solid rgba(255, 255, 255, .28);
  color: var(--text-light);
}
.btn--outline .arrow { color: var(--accent); }

.btn--ink {
  height: 60px;
  padding-inline: 30px;
  background: var(--text-dark);
  color: var(--paper);
  border: 1px solid var(--text-dark);
}
.btn--ink .arrow { color: var(--accent); }

.btn--ghost {
  padding-inline: 8px;
  gap: 12px;
  color: var(--text-light);
  letter-spacing: .13em;
  opacity: .88;
}

@media (hover: hover) and (pointer: fine) {
  .btn--paper:hover {
    transform: translateY(-2px);
    background: var(--paper-bright);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
  }
  .btn--outline:hover {
    border-color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .04);
  }
  .btn--ink:hover { transform: translateY(-2px); }
  .btn--ghost:hover { opacity: 1; }
  .btn:hover .arrow { transform: translate(3px, -2px); }
  .btn--ghost:hover .dot { transform: translateX(3px); }
}

/* ---- Hairlines --------------------------------------------------------- */

.rule { border: 0; height: 1px; background: var(--line-dark); }
.on-paper .rule { background: var(--line-light); }

/* ---- Visually hidden --------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
