/* ============================================
   Cloud Pratica — Base Styles
   ============================================ */

/* ── Google Fonts ──
   Loaded via <link> in HTML <head> for non-blocking rendering.
   See each HTML file's <head> section. */

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(107, 163, 247, 0.2);
}

a, button, input, select, textarea {
  -webkit-tap-highlight-color: rgba(107, 163, 247, 0.2);
}

:focus-visible {
  outline: 2px solid #6BA3F7;
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

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

a:hover {
  color: var(--color-accent-light);
}

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

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

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

/* ── Selection ── */
::selection {
  background: rgba(107, 163, 247, 0.3);
  color: var(--color-text-primary);
}

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ── Section ── */
.section {
  padding: var(--space-24) 0;
  position: relative;
  contain: layout style;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: #6BA3F7;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-4);
}

.section__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Section responsive ── */
@media (max-width: 768px) {
  .section {
    padding: var(--space-12) 0;
  }

  .section__header {
    margin-bottom: var(--space-10);
  }
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: var(--space-12) 0;
}

/* ── Visually Hidden (Accessibility) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
