body {
  cursor: default;
  overflow-x: clip;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
}

/* Keep the pointer vocabulary consistent across native and custom controls. */
input,
textarea {
  cursor: default;
}

a[href],
button,
summary,
select,
label[for],
[role="button"],
input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"], [type="file"]) {
  cursor: pointer;
}

:disabled,
[aria-disabled="true"] {
  cursor: default;
}

/* Keep browser and password-manager autofill visually inside the KODZ system.
   Components can override --kodz-input-autofill-background when their field
   surface is not the default page background. */
input,
textarea,
select {
  --kodz-input-autofill-background: var(--color-background);
  --kodz-input-autofill-color: var(--color-foreground);
  caret-color: var(--kodz-input-autofill-color);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--kodz-input-autofill-background) inset !important;
  box-shadow: 0 0 0 1000px var(--kodz-input-autofill-background) inset !important;
  caret-color: var(--kodz-input-autofill-color) !important;
  color: var(--kodz-input-autofill-color) !important;
  -webkit-text-fill-color: var(--kodz-input-autofill-color) !important;
  transition: background-color 9999s ease-out 0s;
}

input:autofill,
textarea:autofill,
select:autofill {
  box-shadow: 0 0 0 1000px var(--kodz-input-autofill-background) inset !important;
  caret-color: var(--kodz-input-autofill-color) !important;
  color: var(--kodz-input-autofill-color) !important;
}

@media (hover: none) and (pointer: coarse) {
  html,
  body {
    touch-action: pan-x pan-y;
  }
}

a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.96;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 8rem);
}

h2 {
  font-size: clamp(2.25rem, 5vw, 6rem);
}

.main-wrapper {
  min-height: 60vh;
}

.padding-global {
  padding-inline: var(--page-padding);
}

.section-padding {
  padding-block: var(--section-space);
}

.padding-section-small {
  padding-block: var(--padding-section-small);
}

.padding-section-medium {
  padding-block: var(--padding-section-medium);
}

.padding-section-large {
  padding-block: var(--padding-section-large);
}

.container-large,
.container-medium,
.container-small {
  width: 100%;
  margin-inline: auto;
}

.container-large {
  max-width: var(--container-large);
}

.container-medium {
  max-width: var(--container-medium);
}

.container-small {
  max-width: var(--container-small);
}

.text-label {
  margin-bottom: var(--space-3);
  color: var(--color-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: var(--border-width) solid currentcolor;
  padding-inline: 1.25rem;
  text-decoration: none;
  text-transform: uppercase;
}

.kodz-scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: inherit;
  font-size: clamp(0.55rem, 0.6vw, 0.7rem);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.kodz-scroll-indicator > span {
  font-size: 1.35em;
  font-weight: 400;
  line-height: 0.8;
}

.kodz-bracket-action {
  display: inline-grid;
  width: max-content;
  min-height: 3.25rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--color-foreground);
  cursor: pointer;
  padding: 0.65rem 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.kodz-bracket-action:hover,
.kodz-bracket-action:focus-visible {
  color: var(--kodz-link-hover-color);
  outline: none;
}

.kodz-bracket-action svg {
  width: 8px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.5;
}

.kodz-bracket-action svg.is-right {
  transform: scale(-1, -1);
}

.kodz-icon-close {
  position: relative;
  display: grid;
  width: 2.375rem;
  height: 2.375rem;
  flex: 0 0 2.375rem;
  place-items: center;
  border: 0;
  border-radius: var(--kodz-ui-radius);
  background: var(--kodz-glass-control);
  color: var(--color-foreground);
  cursor: pointer;
  font-size: 0;
  -webkit-backdrop-filter: blur(var(--kodz-glass-blur));
  backdrop-filter: blur(var(--kodz-glass-blur));
  transition: color 180ms ease, background-color 180ms ease;
}

.kodz-icon-close::before,
.kodz-icon-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.65rem;
  height: 1px;
  background: currentcolor;
  content: "";
}

.kodz-icon-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.kodz-icon-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.kodz-icon-close:hover,
.kodz-icon-close:focus-visible {
  background: rgb(244 244 240 / 12%);
  color: var(--kodz-link-hover-color);
  outline: none;
}

.u-skip-link {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  translate: 0 -120%;
  background: var(--color-foreground);
  color: var(--color-background);
  padding: 0.75rem 1rem;
}

.u-skip-link:focus {
  translate: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.prose > * + * {
  margin-top: 1.5em;
}

.content-list {
  display: grid;
  gap: var(--space-6);
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
