/* ============================================
   Secuble — Base: reset, typography, utilities
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-600);
  background: var(--white);
}

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

h1, h2, h3 { margin: 0 0 var(--sp-2); color: var(--ink-900); }
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.15; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; color: var(--blue-700); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; }

p { margin: 0 0 var(--sp-2); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); }

ul, ol { margin: 0 0 var(--sp-2); padding-left: 1.4em; }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

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

.skip-link {
  position: absolute;
  top: -48px;
  left: var(--sp-2);
  z-index: 200;
  padding: 10px 18px;
  background: var(--blue-900);
  color: var(--white);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

/* Section rhythm */
.section { padding-block: var(--section-pad-y); }
.section--tint { background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%); }
.section + .section { border-top: 1px solid var(--gray-200); }

.section-head { max-width: 760px; margin: 0 auto var(--sp-6); text-align: center; }
.section-head p { color: var(--ink-600); }

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
  }
  [data-reveal].is-revealed { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 767px) {
  :root { --container-pad: 16px; --section-pad-y: 40px; }
}
