/* Starchan — CSS reset + *chan aesthetic baseline */
/* Based on modern CSS reset (Andy Bell / Josh Comeau patterns) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  /* Prevent font size inflation on mobile */
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  /* *chan aesthetic: uses CSS custom properties from vars.css */
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* The hidden attribute must always win. Without this, any author display rule
   (e.g. .btn-outline { display: inline-flex }) overrides the UA's
   [hidden] { display: none } and "hidden" elements render anyway — seen live
   on the account consent buttons and the profile pager (2026-07-27). */
[hidden] {
  display: none !important;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:visited {
  color: var(--visited);
}

a:hover {
  color: var(--hover);
}
