/* Wilicom — base reset + typography v2 */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  font-feature-settings: "cv11", "ss03", "ss05";
  min-height: 100dvh;
  overflow-x: hidden;
}
img, svg, video, canvas, picture { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; flex-shrink: 0; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
a:hover { color: var(--c-primary-dark); }
ul, ol { padding: 0; list-style: none; }
hr { border: 0; height: 1px; background: var(--grad-divider); margin-block: var(--s-7); }
strong, b { font-weight: 700; }
::selection { background: var(--c-accent); color: var(--c-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  color: inherit;
}
h1 { font-size: var(--fs-5xl); font-weight: 900; }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: var(--tracking-snug); }
h4 { font-size: var(--fs-xl); font-weight: 700; }
h5, h6 { font-size: var(--fs-lg); font-weight: 700; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute;
  top: 0; left: 0;
  padding: var(--s-2) var(--s-4);
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  z-index: 1000;
  transform: translateY(-120%);
  transition: transform var(--t-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* Prose — for long-form page content */
.prose ul, .prose ol { padding-left: 1.25rem; margin-block: var(--s-5); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul li, .prose ol li { margin-block: var(--s-2); }
.prose ul li::marker { color: var(--c-accent); }
.prose p { margin-block: var(--s-4); max-width: 72ch; }
.prose h2 { margin-block: var(--s-7) var(--s-4); font-size: var(--fs-3xl); }
.prose h3 { margin-block: var(--s-6) var(--s-3); }
.prose a {
  color: var(--c-primary);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--c-accent-dark); }
.prose blockquote {
  border-left: 3px solid var(--c-accent);
  padding-left: var(--s-5);
  margin-block: var(--s-6);
  font-size: var(--fs-lg);
  color: var(--c-text-soft);
}
.prose code {
  font-family: var(--ff-mono);
  font-size: .92em;
  padding: .1em .35em;
  background: var(--c-bg-soft);
  border-radius: var(--r-xs);
  border: 1px solid var(--c-border);
}
.prose pre {
  background: var(--c-dark-2);
  color: var(--c-text-on-dark);
  border-radius: var(--r-md);
  padding: var(--s-5);
  overflow-x: auto;
  font-size: var(--fs-sm);
  margin-block: var(--s-5);
}
.prose pre code { background: transparent; border: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
