/* Design tokens, resets and typography.
   Palette mirrors the Ocean Tracer app and OceanIMR brand:
   navy primary, blue secondary, teal accent (the wave colors). */

:root {
    --navy: #1C355E;
    --navy-soft: #19406B;
    --blue: #3D7CC9;
    --blue-dark: #2D6CB3;      /* link color - darker for contrast on light bg */
    --teal: #84DADE;
    --ink: #22304C;            /* body text */
    --muted: #5C6B85;
    --bg: #F4F6FA;             /* page background */
    --surface: #FFFFFF;
    --border: #DFE6F0;
    --tint-blue: #EBF2FB;      /* callout / hover tints */
    --shadow-soft: 0 1px 3px rgba(28, 53, 94, 0.06);
    --shadow-lift: 0 8px 20px rgba(28, 53, 94, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Typography */
h1 {
    color: var(--navy);
    font-size: 2.1em;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

/* Short gradient accent under the page title (replaces the old full-width rule) */
h1::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    margin-top: 14px;
}

h2 {
    color: var(--navy);
    font-size: 1.45em;
    line-height: 1.3;
    margin-top: 38px;
    margin-bottom: 14px;
}

h3 {
    color: var(--navy-soft);
    font-size: 1.15em;
    margin-top: 22px;
    margin-bottom: 10px;
}

/* Anchored sections shouldn't hide under the viewport edge when jumped to */
h1, h2, h3, [id] {
    scroll-margin-top: 20px;
}

p {
    margin-bottom: 15px;
}

ul, ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

/* Inline Code */
code {
    background-color: #EEF2F8;
    color: var(--navy);
    padding: 2px 6px;
    border-radius: 5px;
    font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
    font-size: 0.92em;
}

/* Links */
a {
    color: var(--blue-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Horizontal Rules */
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 34px 0;
}

/* Mobile Responsive Typography */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.55;
    }

    p {
        margin-bottom: 12px;
    }

    ul, ol {
        margin-left: 20px;
        margin-bottom: 12px;
    }

    li {
        margin-bottom: 6px;
    }

    hr {
        margin: 24px 0;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 15.5px;
    }

    ul, ol {
        margin-left: 15px;
    }
}
