:root {
    --color-primary: #166d89;
    --color-primary-dark: hsl(from var(--color-primary) h s calc(l - 20));
    --color-secondary: #a7d7cf;
    --color-secondary-dark: hsl(from var(--color-secondary) h s calc(l - 20));
    --color-accent: #9bcb3c;
    --color-accent-dark: hsl(from var(--color-accent) h s calc(l - 20));
    --color-text: #3d3d3d;
    --color-background: #f4f4f4;
    --color-surface: #ffffff;
    --color-border: #d7dde2;
    --color-border-soft: #e8edf0;
    --color-menu-shadow: rgb(15 23 42 / 0.12);
    --color-light-gray: rgba(255, 255, 255, 0.2);
    --color-dark-gray: rgb(255 255 255 / 0.06);
    --font-body: 'Open Sans';
    --font-heading: 'Poppins';
    --container-width: 80rem;
    --container-padding: 1rem;
    --header-visible-height: 6rem;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --shadow-focus: 0 0 0 3px #ffffff, 0 0 0 6px var(--color-text);
    --shadow-menu: 0 20px 40px var(--color-menu-shadow);
    --transition-fast: 160ms ease;
    --transition-medium: 220ms ease;
}

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

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

body {
    margin: 0;
    min-width: 320px;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body), sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0.005em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a,
button,
input,
label,
select,
textarea,
span,
p,
li {
    font-size: max(1rem, 16px);
}

a {
    color: inherit;
    text-decoration: none;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
    text-decoration-color: var(--color-accent);
    text-decoration: underline;
}

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

button {
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--font-heading), sans-serif;
    line-height: 1.25;
    letter-spacing: 0.015em;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.focusable:focus-visible,
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: var(--color-primary-dark) auto 2px ;
    outline-offset: 2px;
}

.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;
}

.is-hidden, [hidden] {
    display: none !important;
}

.no-underline {
    text-decoration: none;
}

.page-shell {
    overflow-x: clip;
}

html.mobile-menu-open,
body.mobile-menu-open {
    overflow: hidden;
}

@media (min-width: 640px) {
    :root {
        --container-padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-padding: 2rem;
    }
}
