/* ==========================================================================
   OkulSeti - Base Styles
   Reset / normalize + body + system font + heading scale + link + form base
   Mobile-first; desktop overrides via @media (min-width: 1025px) or 769px
   ========================================================================== */

/* --------------------------------------------------------------------------
   Modern reset (modern-normalize inspired)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

body,
h1, h2, h3, h4, h5, h6,
p, blockquote, figure,
dl, dd,
ul, ol,
pre {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

body {
  min-height: 100vh;
  font: 400 var(--fs-body) / 1.6 var(--font-system);
  color: var(--color-text);
  background: var(--color-bg-app);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Headings — mobile baseline (smaller); desktop overrides below
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-brand-ink);
  font-weight: var(--fw-heavy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  /* Mobile clamp: 32px floor, 52px ceiling, scales with viewport */
  font-size: clamp(32px, 8vw, var(--fs-h1));
  line-height: 1.1;
}

h2 {
  font-size: clamp(28px, 6vw, var(--fs-h2));
  color: var(--color-brand-blue);
}

h3 {
  font-size: clamp(22px, 4.5vw, var(--fs-h3));
}

h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
}

h5 {
  font-size: 17px;
  font-weight: var(--fw-bold);
}

h6 {
  font-size: 15px;
  font-weight: var(--fw-bold);
}

p {
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-brand-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Media
   -------------------------------------------------------------------------- */
img,
picture,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Forms — base reset
   -------------------------------------------------------------------------- */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  background: #fff;
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-md);
  padding: 10px 15px;
  width: 100%;
  /* iOS zoom prevention: 16px+ font size on form inputs */
  font-size: 16px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
  accent-color: var(--color-brand-blue);
}

label {
  display: inline-block;
  font-weight: var(--fw-semibold);
  color: var(--color-brand-ink);
}

/* --------------------------------------------------------------------------
   Tables (default reasonable spacing)
   -------------------------------------------------------------------------- */
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  text-align: left;
  padding: 10px 12px;
}

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */
*:focus-visible {
  outline: 2px solid var(--color-brand-blue);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--color-brand-blue);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .no-print { display: none !important; }
  a { color: inherit; text-decoration: none; }
}

/* --------------------------------------------------------------------------
   Reduced motion — disable all transitions/animations
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Touch devices — remove hover states
   -------------------------------------------------------------------------- */
@media (hover: none) {
  a:hover { text-decoration: none; }
}
