/* Calderwell Group. Standalone: no web fonts, no scripts. Colours are tokens on :root, redefined for dark mode. */

:root {
    --brand: #1f4a43;
    --brand-strong: #163631;
    --brand-soft: #e2eeea;
    --warm: #c8643f;
    --warm-soft: #fbe9e1;
    --ok: #0f7b5f;
    --ok-soft: #dcf2ea;
    --ink: #14211f;
    --ink-soft: #4b5b58;
    --ink-faint: #85938f;
    --line: #e4e6e1;
    --ground: #f8f6f1;
    --tint: #f0f3ef;
    --surface: #ffffff;
    --shadow: 0 1px 2px rgb(20 33 31 / 0.06), 0 12px 32px -12px rgb(20 33 31 / 0.18);
    --shadow-lift: 0 2px 4px rgb(20 33 31 / 0.06), 0 24px 48px -20px rgb(20 33 31 / 0.28);
    --radius: 16px;
    --display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --brand: #7cc4b4;
        --brand-strong: #a6dccf;
        --brand-soft: #17302b;
        --warm: #f0a27f;
        --warm-soft: #3a2620;
        --ok: #4fd1a5;
        --ok-soft: #123329;
        --ink: #e9efed;
        --ink-soft: #a7b6b2;
        --ink-faint: #74837f;
        --line: #27332f;
        --ground: #0e1513;
        --tint: #121b19;
        --surface: #16201e;
        --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.6);
        --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.3), 0 24px 48px -20px rgb(0 0 0 / 0.7);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --brand: #7cc4b4;
    --brand-strong: #a6dccf;
    --brand-soft: #17302b;
    --warm: #f0a27f;
    --warm-soft: #3a2620;
    --ok: #4fd1a5;
    --ok-soft: #123329;
    --ink: #e9efed;
    --ink-soft: #a7b6b2;
    --ink-faint: #74837f;
    --line: #27332f;
    --ground: #0e1513;
    --tint: #121b19;
    --surface: #16201e;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.6);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.3), 0 24px 48px -20px rgb(0 0 0 / 0.7);
    color-scheme: dark;
}

/* Base ------------------------------------------------------------------------------------------------------- */

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

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

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }

h1 em, h2 em { font-style: italic; color: var(--brand); }

p { margin: 0 0 1em; }

a { color: var(--brand); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-strong); }

:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    padding: 8px 14px;
    background: var(--brand);
    color: var(--surface);
    border-radius: 8px;
    z-index: 10;
}
.skip:focus { top: 12px; }

.kicker {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warm);
    margin-bottom: 0.9em;
}

/* Header ----------------------------------------------------------------------------------------------------- */

.top {
    position: sticky;
    top: 0;
    z-index: 5;
    background: color-mix(in srgb, var(--ground) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}

.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand small { font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.brand-small { font-size: 1.0625rem; }

.top-nav { display: flex; gap: 28px; }
.top-nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.top-nav a:hover { color: var(--ink); }

/* Hero ------------------------------------------------------------------------------------------------------- */

.hero { padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 8vw, 96px); }
.hero h1 { max-width: 15ch; }

.lede { font-size: clamp(1.125rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ink-soft);
    font-size: 0.9375rem;
}
.hero-meta li { display: flex; align-items: center; gap: 10px; }
.hero-meta li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warm); }

/* Sections --------------------------------------------------------------------------------------------------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }
.section-flush { padding-top: 0; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-lede { font-size: 1.125rem; color: var(--ink-soft); }

/* Products --------------------------------------------------------------------------------------------------- */

.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }

.product {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-live:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.product-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.product-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    flex: none;
}
.product-mark img { display: block; width: 52px; height: 52px; }
.product-mark-pending { border: 1.5px dashed var(--line); color: var(--ink-faint); }
.product-mark-pending svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--ok-soft);
    color: var(--ok);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-soon { background: var(--warm-soft); color: var(--warm); }

.product h3 { margin: 4px 0 0; }
.product-for { margin: -8px 0 0; font-size: 0.9375rem; font-weight: 500; color: var(--ink-faint); }
.product p { color: var(--ink-soft); margin: 0; }

.product-link { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; }
.product-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.product-link span { transition: margin 0.2s ease; }
.product-live:hover .product-link span { margin-left: 4px; }
.product-note { margin-top: auto; padding-top: 8px; font-size: 0.9375rem; color: var(--ink-faint); }

/* How we work ------------------------------------------------------------------------------------------------ */

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px; }
.principle { border-top: 2px solid var(--brand); padding-top: 24px; }
.principle p { color: var(--ink-soft); margin: 0; }

/* Contact ---------------------------------------------------------------------------------------------------- */

.contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    padding: clamp(32px, 5vw, 56px);
    background: var(--brand);
    color: var(--surface);
    border-radius: calc(var(--radius) * 1.5);
}
.contact h2 { margin: 0 0 0.25em; color: inherit; }
.contact p { margin: 0; opacity: 0.85; max-width: 52ch; }

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--brand-strong);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.button:hover { color: var(--brand-strong); background: var(--brand-soft); }

/* Prose (privacy notice) ------------------------------------------------------------------------------------- */

.prose { max-width: 720px; padding: clamp(48px, 8vw, 88px) 0; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose .updated { color: var(--ink-faint); font-size: 0.9375rem; }

.draft {
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--warm-soft);
    color: var(--ink);
    font-size: 0.9375rem;
    margin-bottom: 2em;
}

/* Footer ----------------------------------------------------------------------------------------------------- */

.foot { padding: 48px 0 56px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.875rem; }
.foot-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.foot p { margin: 0 0 0.5em; }
.foot-legal { max-width: 70ch; }
.foot-legal .foot-company { margin-top: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-self: end; }
.foot-links a { color: var(--ink-soft); }

/* Small screens ---------------------------------------------------------------------------------------------- */

@media (max-width: 720px) {
    .top-nav { gap: 18px; }
    .top-nav .wide-only { display: none; }
    .foot-inner { grid-template-columns: 1fr; }
    .foot-links { justify-self: start; }
    .product { padding: 24px; }
}

@media (max-width: 420px) {
    .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
