/* ==========================================================================
   FishCloud Flow — Base & Typography Reset
   ========================================================================== */

@view-transition {
  navigation: auto;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--fc-header-h) + 20px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--fc-font-sans);
  font-size: var(--fc-text-base);
  line-height: 1.75;
  color: var(--fc-ink);
  background-color: var(--fc-bg);
  background-image:
    radial-gradient(circle at 86% 4%, rgba(64, 217, 208, 0.12), transparent 36%),
    radial-gradient(circle at 10% 18%, rgba(38, 117, 245, 0.08), transparent 38%);
  background-attachment: fixed;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

a {
  color: var(--fc-ocean);
  text-decoration: none;
  transition: color var(--fc-dur-fast) var(--fc-ease);
}

a:hover {
  color: var(--fc-ocean-deep);
}

h1, h2, h3, h4, h5 {
  margin: 0 0 0.7em;
  color: var(--fc-ink);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fc-text-3xl);
}

h2 {
  font-size: var(--fc-text-2xl);
}

h3 {
  font-size: var(--fc-text-xl);
}

h4 {
  font-size: var(--fc-text-lg);
}

p {
  margin: 0 0 1.1em;
  color: var(--fc-ink-secondary);
}

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  color: var(--fc-ink-secondary);
}

li {
  margin-bottom: 0.45em;
}

strong {
  color: var(--fc-ink);
  font-weight: 700;
}

code {
  font-family: var(--fc-font-mono);
  font-size: 0.88em;
  background: var(--fc-bg-alt);
  color: var(--fc-ocean-deep);
  padding: 0.14em 0.42em;
  border-radius: 6px;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

/* Focus accessibility */
:focus-visible {
  outline: 3px solid var(--fc-aqua);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--fc-ink);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--fc-radius-pill);
  font-weight: 600;
}

.skip-link:focus {
  top: 14px;
  color: #FFFFFF;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}
