/* ==========================================================================
   myscreenverse — Base / Reset / Typography / Layout helpers
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--header-gap) * 2 + 12px);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

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

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

:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 72px 0;
}

.section--cream {
  background: var(--blush);
}

.section--blush {
  background: var(--blush);
}

.section--dark {
  background: linear-gradient(160deg, var(--dark) 0%, var(--secondary) 100%);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark p {
  color: var(--white);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--blush);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section--dark .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary-subtle);
}

.section-head h2 {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 17px;
  color: var(--taupe);
}

.section--dark .section-head p {
  color: var(--mist);
}

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }

.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }

/* ---------- Responsive (base-level) ---------- */
@media (max-width: 640px) {
  :root { --header-gap: 10px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 52px 0; }
  .container { padding: 0 18px; }
  .section-head h2 { font-size: 27px; }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
