/* ==========================================================================
   Devon South Consulting Limited — holding site
   Deliberately minimal. Neutral, professional, restrained.
   ========================================================================== */

:root {
    --ink:        #1b1d22;   /* primary text / wordmark */
    --ink-muted:  #565b63;   /* secondary text */
    --ink-faint:  #8a8f97;   /* footnotes, fine print */
    --accent:     #33506b;   /* slate blue — links, subtle emphasis */
    --accent-strong: #21384d;
    --bg:         #faf9f7;   /* warm off-white page */
    --surface:    #ffffff;   /* cards */
    --border:     #e7e3dc;   /* hairlines */
    --border-strong: #d8d3c9;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
    --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;

    --measure: 64rem;        /* page max width */
    --gap:     clamp(3.5rem, 8vw, 6rem); /* vertical rhythm between sections */
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- layout shell ---------- */

.page {
    max-width: var(--measure);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
}

main { display: block; }

/* ---------- typography ---------- */

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: var(--accent-strong); border-bottom-color: var(--accent-strong); }

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

.eyebrow {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 1rem;
}

/* ---------- header / hero ---------- */

.hero {
    padding-block: clamp(4rem, 12vw, 7.5rem) var(--gap);
    text-align: center;
}

.mark {
    width: clamp(56px, 12vw, 76px);
    height: auto;
    color: var(--accent);
    margin: 0 auto 1.75rem;
    display: block;
}

.wordmark {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 5.5vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0;
}

.subline {
    font-family: var(--sans);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--ink-muted);
    margin: 0.75rem 0 0;
}

/* ---------- generic section ---------- */

.section { padding-block: var(--gap); border-top: 1px solid var(--border); }

.section__head { margin-bottom: 1.75rem; }
.section h2 { font-size: clamp(1.4rem, 3.5vw, 1.75rem); }

.prose { max-width: 42rem; color: var(--ink-muted); }
.prose.center { margin-inline: auto; text-align: center; }

/* ---------- ventures ---------- */

.ventures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 6px 22px -14px rgba(27, 29, 34, 0.35);
    transform: translateY(-2px);
}

.card h3 { font-size: 1.3rem; }
.card p { color: var(--ink-muted); margin: 0; }

.card__link {
    margin-top: auto;
    padding-top: 0.4rem;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: none;
    align-self: flex-start;
}
.card__link .arrow { transition: transform 0.15s ease; display: inline-block; }
.card__link:hover .arrow { transform: translateX(3px); }

.also {
    color: var(--ink-muted);
    max-width: 42rem;
    font-size: 1rem;
}

/* ---------- contact ---------- */

.contact__email {
    font-family: var(--serif);
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    color: var(--ink);
    margin: 0.5rem 0 0.75rem;
    word-break: break-word;
}

.contact__note { color: var(--ink-faint); font-size: 0.95rem; }

/* ---------- footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding-block: 2.5rem;
    margin-top: var(--gap);
    color: var(--ink-faint);
    font-size: 0.875rem;
}
.site-footer .page { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; align-items: baseline; }
.site-footer a { color: var(--ink-muted); border-bottom-color: color-mix(in srgb, var(--ink-muted) 30%, transparent); }
.site-footer a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.site-footer .sep { color: var(--border-strong); }

/* ---------- simple pages (privacy / 404) ---------- */

.doc { padding-block: clamp(3rem, 8vw, 5rem) var(--gap); }
.doc .back {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: none;
    display: inline-block;
    margin-bottom: 2rem;
}
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 0.5rem; }
.doc .lede { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 2.5rem; }
.doc h2 { font-size: 1.25rem; margin: 2.25rem 0 0.75rem; }
.doc p { color: var(--ink-muted); max-width: 42rem; }

.notfound { text-align: center; padding-block: clamp(5rem, 15vw, 9rem); }
.notfound .code { font-family: var(--serif); font-size: clamp(3.5rem, 12vw, 6rem); color: var(--border-strong); line-height: 1; }
.notfound h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0.5rem 0 1rem; }
.notfound p { color: var(--ink-muted); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
