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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 107, 26, 0.35) transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 26, 0.35);
  border-radius: 999px;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 107, 26, 0.75); }

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
img { border-style: none; }
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent); }

button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

ul, ol { list-style: none; }

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

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: var(--fw-semi);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--ff-body); font-weight: var(--fw-semi); letter-spacing: 0; }

p { line-height: var(--lh-normal); }

.t-display   { font-family: var(--ff-head); font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -0.02em; font-weight: var(--fw-semi); }
.t-lead      { font-size: var(--fs-lead); color: var(--color-text-muted); line-height: var(--lh-snug); }
.t-mono      { font-family: var(--ff-mono); font-size: var(--fs-small); letter-spacing: 0.02em; }
.t-label     { font-family: var(--ff-mono); font-size: var(--fs-tiny); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.t-muted     { color: var(--color-text-muted); }
.t-subtle    { color: var(--color-text-subtle); }
.t-accent    { color: var(--color-accent); }
.t-italic    { font-style: italic; }
.t-serif     { font-family: var(--ff-head); }

em, .em-accent {
  font-style: italic;
  color: var(--color-accent);
  font-family: var(--ff-head);
  font-weight: var(--fw-reg);
}

hr {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-6) 0;
}

.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;
}
