/* Styles for every page. Everything else is Tailwind classes in the markup (theme in /js/tailwind.config.js). */

/* Palette (light theme):
   1 white      #ffffff  page background, cards
   2 blush      #f4dfe2  light pink: soft sections, chips, highlights (deeper #c4848e for small accents)
   3 ink        #2f2f33  dark grey: headings, text, buttons, footer
   4 ink-400    #6e6e74  captions and secondary text
   Fonts: Pinyon Script (cursive, logo and accents) · Cormorant Garamond (headings) · Jost (text) */
:root {
    --white: #ffffff;
    --blush-50: #fdf8f8;
    --blush: #f4dfe2;
    --blush-300: #ebc9ce;
    --rose: #c4848e;
    --ink: #2f2f33;
    --ink-soft: #6e6e74;
    --line: #ebe5e6;
    color-scheme: only light;   /* never auto-darkened (Samsung Internet, Chrome auto dark mode); also <meta name="color-scheme"> */
}

html { background-color: var(--white); scroll-behavior: smooth; }

body {
    font-family: 'Jost', system-ui, sans-serif;
    font-weight: 300;
    background-color: var(--white);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-serif { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; }

::selection { background: var(--blush); color: var(--ink); }

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

/* Small uppercase label used above headings and on buttons */
.label {
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.95rem 2rem;
    border-radius: 999px;
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
    transition: background-color .25s, color .25s, border-color .25s, transform .25s;
    cursor: pointer;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.btn-dark:hover:not(:disabled) { background: #1f1f22; }
.btn-light { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-light:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.btn-blush { background: var(--blush); color: var(--ink); border: 1px solid var(--blush); }
.btn-blush:hover:not(:disabled) { background: var(--blush-300); border-color: var(--blush-300); }

/* Form fields */
.field {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.field:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(196, 132, 142, .18); }

/* Mobile: 16px in form fields so iOS Safari does not zoom in when one is tapped. */
@media (max-width: 767px) { .field { font-size: 16px; } }

/* Thin hairline divider with a centred dot */
.ornament { display: flex; align-items: center; gap: 1rem; color: var(--rose); }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Soft blush wash behind the hero */
.wash {
    background:
        radial-gradient(60% 70% at 85% 20%, rgba(244, 223, 226, .9) 0%, transparent 70%),
        radial-gradient(50% 60% at 10% 90%, rgba(250, 238, 240, .9) 0%, transparent 70%),
        var(--white);
}

/* Mobile: the same white page as desktop. The wash is sized relative to the hero, so on a narrow screen it covered almost
   all of it; here it is a light corner over white, as it reads on desktop. */
@media (max-width: 767px) {
    .wash {
        background:
            radial-gradient(70% 38% at 100% 0%, rgba(244, 223, 226, .55) 0%, transparent 70%),
            var(--white);
    }
}

/* Reveal on scroll (js/layout.jsx adds .is-in) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Drawer / modal animation */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.animate-fade-in { animation: fade-in .35s ease both; }
.animate-rise-in { animation: rise-in .45s ease both; }

/* Static HTML for crawlers inside #root (tools/seo.py, class seo-static): hidden whenever JavaScript runs, because React
   renders the real page there. Crawlers without JavaScript read it from the HTML source. <html class="js"> is set by the
   first script of the <head>. */
.js .seo-static { display: none; }

/* Loading screen: a thin grey ring, only with JavaScript and only until React renders (it replaces everything in #root). */
.page-loader { display: none; }
.js .page-loader { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: var(--white); }
.page-loader span { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--line); border-top-color: #9a9aa0; animation: loader-spin .8s linear infinite; }
@keyframes loader-spin { to { transform: rotate(360deg); } }

/* Hide scrollbar on horizontal chip rows */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
