/* lwr-base.css — Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--lwr-font-sans);
  font-size: var(--lwr-text-body);
  line-height: var(--lwr-lh-body);
  color: var(--lwr-fg-on-light-primary);
  background-color: var(--lwr-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.lwr-page--dark-top {
  background-color: var(--lwr-bg-dark);
}

img, video, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Typography base */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--lwr-lh-heading);
  letter-spacing: -0.02em;
}

/* Light surface headings */
body.lwr-page--light-top h1,
.lwr-section--light h1,
.lwr-section--white h1,
.lwr-section--card-light h1 {
  color: var(--lwr-fg-on-light-primary);
}

body.lwr-page--light-top h2,
.lwr-section--light h2,
.lwr-section--white h2 {
  color: var(--lwr-fg-on-light-primary);
}

body.lwr-page--light-top h3,
.lwr-section--light h3,
.lwr-section--white h3 {
  color: var(--lwr-fg-on-light-primary);
}

/* Dark surface headings */
body.lwr-page--dark-top h1,
.lwr-section--dark h1,
.lwr-section--dark-alt h1 {
  color: var(--lwr-fg-on-dark-primary);
}

body.lwr-page--dark-top h2,
.lwr-section--dark h2,
.lwr-section--dark-alt h2 {
  color: var(--lwr-fg-on-dark-primary);
}

body.lwr-page--dark-top h3,
.lwr-section--dark h3,
.lwr-section--dark-alt h3 {
  color: var(--lwr-fg-on-dark-primary);
}

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

.lwr-section--light p,
.lwr-section--white p,
body.lwr-page--light-top p {
  color: var(--lwr-fg-on-light-secondary);
}

.lwr-section--dark p,
.lwr-section--dark-alt p,
body.lwr-page--dark-top p {
  color: var(--lwr-fg-on-dark-secondary);
}

code, pre {
  font-family: var(--lwr-font-mono);
  font-size: 0.9em;
}

/* Utility */
.lwr-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;
}

.lwr-eyebrow {
  font-size: var(--lwr-text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lwr-section--light .lwr-eyebrow,
.lwr-section--white .lwr-eyebrow,
body.lwr-page--light-top .lwr-eyebrow {
  color: var(--lwr-accent-aa-on-light);
}

.lwr-section--dark .lwr-eyebrow,
.lwr-section--dark-alt .lwr-eyebrow,
body.lwr-page--dark-top .lwr-eyebrow {
  color: var(--lwr-accent-aa-on-dark);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--lwr-accent-decorative);
  outline-offset: 2px;
}
