/*
  Holding page for useful.software (the company domain).
  Colours and typefaces copy the usefulhr.co tokens in src/styles/global.css.
  Fonts are self-hosted (the CSP allows font-src 'self' only).
*/

@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/fonts/inter.woff2") format("woff2-variations");
}

@font-face {
    font-family: "Plus Jakarta Sans Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("/fonts/plus-jakarta-sans.woff2") format("woff2-variations");
}

:root {
    --ink: #29251f;
    --ink-soft: #6f6a62;
    --line: #eae7e1;
    --surface: #fdfaf6;
    --brand: #4b7f52;
    --brand-deep: #3a6540;
    --forest-deep: #1c3521;
    --font-sans: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --font-display: "Plus Jakarta Sans Variable", "Inter Variable", system-ui,
        sans-serif;
    color-scheme: light;
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

.mark {
    display: block;
    width: 2.5rem;
    height: 0.375rem;
    margin-bottom: 1.75rem;
    border-radius: 999px;
    background: var(--brand);
}

h1 {
    margin: 0;
    color: var(--forest-deep);
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.lede {
    margin: 1.25rem 0 0;
    color: var(--ink-soft);
    font-size: 1.25rem;
}

a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--brand);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

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

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

footer {
    border-top: 1px solid var(--line);
}

footer p {
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.5rem;
    color: var(--ink-soft);
    font-size: 0.8125rem;
    line-height: 1.6;
}
