/* Shared design system: colors, type, and base resets for the whole site */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
    /* Calm, spa-inspired palette */
    --color-sage: #7C9885;
    --color-sage-dark: #5F7A68;
    --color-sage-light: #A9C2AE;
    --color-sand: #FAF6EF;
    --color-sand-dark: #EFE6D8;
    --color-ocean: #4A7B90;
    --color-ocean-dark: #345A6E;
    --color-text: #33342E;
    --color-text-soft: #5B5C54;
    --color-white: #FFFFFF;

    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

    --radius: 12px;
    --shadow-soft: 0 6px 24px rgba(51, 52, 46, 0.08);

    /* Prevent browsers from force-inverting an unstyled page into dark mode */
    color-scheme: light;
}

html,
body {
    background-color: var(--color-sand);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* Soft, spa-like backdrop instead of a flat page - subtle enough to stay
   out of the way of text. A fixed, viewport-sized layer behind everything,
   rather than a `background-image` on body directly: with `background-size:
   cover` and no fixed attachment, the image would size itself against the
   full scrollable page height (which can be several times taller than the
   viewport on long pages), forcing it to scale up so much that it visibly
   bled through content lower on the page. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url('../assets/images/background-pattern.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Sticky footer: keep the footer pinned to the bottom of the viewport on
   short pages, instead of floating right after the content. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Also scopes the ::before background above so its z-index is resolved
       against body's own stacking context, not the document root - otherwise
       it ends up hidden behind body's own opaque background-color.
       (position alone doesn't create a stacking context - needs a z-index too) */
    position: relative;
    z-index: 0;
}

#footerContainer {
    margin-top: auto;
}

h1,
h2,
h3,
.header {
    font-family: var(--font-heading);
    color: var(--color-sage-dark);
    font-weight: 600;
}

a {
    color: var(--color-ocean-dark);
}

/* Some pages center their body content with a flex column, which shrinks
   any child without an explicit width (like this) to fit its content
   instead of spanning full width - keep the footer full-width everywhere. */
#footerContainer {
    width: 100%;
    align-self: stretch;
}

/* Shared rounded, softly-shadowed look for content photos */
.content img,
.column.images img,
.row img,
#coneImage {
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
