/* ==========================================================================
   RankinAI — reset.css
   Modern CSS reset. Normalises browser defaults only.
   No brand styling belongs in this file.
   ========================================================================== */

/* Box sizing
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margins
   -------------------------------------------------------------------------- */
html,
body,
h1, h2, h3, h4, h5, h6,
p,
figure,
figcaption,
blockquote,
dl,
dd,
ol,
ul,
pre {
  margin: 0;
}

/* Core root defaults
   -------------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
}

html:focus-within {
  scroll-behavior: smooth;
}

/* Core body defaults
   -------------------------------------------------------------------------- */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Lists with a list role have their bullets removed
   -------------------------------------------------------------------------- */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* Headings and text wrapping
   -------------------------------------------------------------------------- */
/* Every heading level has a real default. They used to inherit, which meant
   a heading without a class rendered at body size and nothing on the page
   said so. A class still wins, so this is a floor rather than a style. */
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-lead); }
h6 { font-size: var(--fs-body); }

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  text-wrap: balance;
}

p, li, figcaption {
  text-wrap: pretty;
}

/* Anchors
   -------------------------------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Media
   -------------------------------------------------------------------------- */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img,
svg {
  vertical-align: middle;
}

/* Forms
   -------------------------------------------------------------------------- */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  margin: 0;
}

button,
[type="button"],
[type="submit"],
[type="reset"] {
  -webkit-appearance: button;
  appearance: button;
  background-color: transparent;
  background-image: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

textarea {
  resize: vertical;
}

::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/* Tables
   -------------------------------------------------------------------------- */
table {
  border-collapse: collapse;
  border-spacing: 0;
  text-indent: 0;
  border-color: inherit;
}

th {
  text-align: left;
  font-weight: inherit;
}

/* Typography details
   -------------------------------------------------------------------------- */
b,
strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

abbr[title] {
  text-decoration: underline dotted;
}

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1em;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

/* Interactive
   -------------------------------------------------------------------------- */
summary {
  display: list-item;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* Focus — never remove the outline without replacing it
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
