/* Base reset, typography, layout utilities — uses theme tokens only */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--wl-font-body);
  font-size: var(--wl-fs-base);
  font-weight: var(--wl-fw-regular);
  line-height: var(--wl-lh-normal);
  color: var(--wl-text);
  background-color: var(--wl-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--wl-brand-to);
  text-decoration: none;
  transition: color var(--wl-duration-fast) var(--wl-ease);
}

a:hover {
  color: #6fe0d4;
}

h1, h2, h3, h4 {
  font-family: var(--wl-font-display);
  font-weight: var(--wl-fw-semibold);
  line-height: var(--wl-lh-tight);
  letter-spacing: -0.02em;
  margin: 0 0 var(--wl-space-4);
  color: var(--wl-text);
}

h1 { font-size: var(--wl-fs-hero); }
h2 { font-size: var(--wl-fs-3xl); }
h3 { font-size: var(--wl-fs-2xl); }
h4 { font-size: var(--wl-fs-xl); }

p {
  margin: 0 0 var(--wl-space-4);
  color: var(--wl-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: var(--wl-space-4);
  top: -100%;
  z-index: 200;
  padding: var(--wl-space-3) var(--wl-space-4);
  background: var(--wl-brand-to);
  color: var(--wl-bg);
  border-radius: var(--wl-radius-sm);
  font-weight: var(--wl-fw-semibold);
}

.skip-link:focus {
  top: var(--wl-space-4);
}

.container {
  width: min(100% - var(--wl-space-6), var(--wl-container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - var(--wl-space-6), var(--wl-container-narrow));
}

.site-main {
  padding-top: var(--wl-header-h);
  min-height: 60vh;
}

.section {
  padding: var(--wl-space-9) 0;
  position: relative;
}

.section--tight {
  padding: var(--wl-space-8) 0;
}

.section--flush-top {
  padding-top: var(--wl-space-5);
}

.section__rule {
  border: 0;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--wl-border-strong), transparent);
}

.text-gradient {
  background: var(--wl-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--wl-text-muted);
}

.subtle {
  color: var(--wl-text-subtle);
}

.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;
}

@media (max-width: 640px) {
  .section {
    padding: var(--wl-space-8) 0;
  }

  .container {
    width: min(100% - var(--wl-space-5), var(--wl-container));
  }
}
