/* =====================================================
   BUBAKI DESIGN — Base / Reset / Typography
   ===================================================== */

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
}

h4 {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

h5, h6 {
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ---- Links ---- */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ---- Text elements ---- */
p {
  line-height: 1.75;
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

em {
  font-style: italic;
}

/* ---- Images ---- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- Lists ---- */
ul, ol {
  list-style: none;
}

/* ---- Buttons ---- */
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

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

/* ---- HR ---- */
hr {
  border: none;
  border-top: var(--border);
  margin: var(--space-8) 0;
}

/* =====================================================
   UTILITIES
   ===================================================== */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   SECTION DEFAULTS
   All page sections constrained to container width
   except full-bleed overrides below.
   ===================================================== */

main > section {
  padding: var(--space-20) var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
}

/* Full-bleed: hero and CTA backgrounds extend edge to edge */
section#hero,
section#cta {
  max-width: 100%;
  margin-inline: 0;
  padding-inline: 0;
}
