/* Reset + base typography */

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

html,
body {
  height: 100%;
}

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

body {
  font-family: var(--tc-font);
  font-size: var(--tc-fs-md);
  line-height: var(--tc-lh-base);
  color: var(--tc-text-1);
  background-color: var(--tc-bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  overscroll-behavior-y: none;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3, h4 {
  line-height: var(--tc-lh-tight);
  letter-spacing: -0.02em;
  color: var(--tc-text-1);
}

h1 {
  font-size: var(--tc-fs-2xl);
  font-weight: 500;
  letter-spacing: -0.025em;
}
h2 {
  font-size: var(--tc-fs-xl);
  font-weight: 500;
}
h3 {
  font-size: var(--tc-fs-lg);
  font-weight: 500;
}

p {
  color: var(--tc-text-2);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--tc-dur-fast) var(--tc-ease);
}
a:hover {
  color: var(--tc-red);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--tc-red);
  outline-offset: 2px;
}

::selection {
  background: var(--tc-red);
  color: #fff;
}

/* Scrollbar (subtle) */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--tc-border-2);
  border-radius: 10px;
  border: 2px solid var(--tc-bg-1);
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--tc-border-3);
}

/* Safe tap targets on touch devices */
@media (hover: none) {
  *::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}
