/* ==========================================================================
   Frost Norse theme for nielchristensen.com
   Pale icy stone slabs, no outlines, deep slate-blue text.
   stone.jpg is drawn by assets/ui/build_theme.py (no third-party art).
   Loaded after Tailwind so these colors replace the old gray/dark palette.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative&display=swap');

:root {
    --text: #1f3048;
    --heading: #1a3a5c;
    --muted: #3e5670;
    --faint: #5a7088;
}

html { color-scheme: light; }

body {
    background-color: #dfe7ee;
    color: var(--text);
    font-family: 'Cinzel Decorative', cursive;
    background-image:
        linear-gradient(to bottom, rgba(236, 242, 247, 0.9), rgba(214, 226, 236, 0.88)),
        url('https://res.cloudinary.com/deto3pmrq/image/upload/v1748822207/jeremy-thomas-E0AHdsENmDg-unsplash_xcc6o3.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

::selection { background: #bcd6ee; color: var(--heading); }

/* ---- Boxes: frosted stone inside a smooth silver frame, medallion corners */
.decorative-border {
    padding: 14px;
    border: 42px solid transparent;
    border-radius: 0;
    border-image: url('/assets/ui/frame.png') 96 round;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 246, 251, 0.3) 45%, rgba(200, 216, 230, 0.3) 100%),
        url('/assets/ui/stone.jpg') center / 384px 384px,
        #e6edf3;
    background-clip: padding-box;
    box-shadow: 0 18px 40px rgba(40, 62, 90, 0.25);
}
@media (max-width: 640px) {
    .decorative-border { border-width: 28px; padding: 8px; }
}
header.decorative-border { margin-left: 1rem; margin-right: 1rem; }

/* ---- Text colors (replace Tailwind grays) ------------------------------ */
.text-gray-200 { color: var(--text); }
.text-gray-300 { color: var(--heading); }
.text-gray-400 { color: var(--muted); }
.text-gray-500 { color: var(--faint); }
.hover\:text-gray-200:hover, .hover\:text-white:hover { color: #0f2640; }

/* Author name keeps its gradient lettering, in slate blues */
header h1.bg-clip-text { background-image: linear-gradient(to right, #1a3a5c, #4a6a8c) !important; }

/* No lines inside boxes */
.border-t.border-gray-700 { border-top-color: transparent; }

/* Author portrait: no outline ring, just a soft shadow */
img.rounded-full.border-gray-700 { border-color: transparent; border-width: 0; box-shadow: 0 10px 24px rgba(40, 62, 90, 0.35); }

/* Book covers: no outline, just a soft shadow */
main img.shadow-2xl { box-shadow: 0 18px 32px rgba(30, 50, 80, 0.4); }

/* ---- Buttons: solid white so they stand out from the boxes ------------ */
a.bg-gray-700, button.bg-gray-700 {
    background: #ffffff;
    border: 0;
    border-radius: 6px !important;
    color: var(--heading);
    box-shadow: 0 2px 0 rgba(90, 120, 155, 0.35), 0 8px 18px rgba(40, 62, 90, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.bg-gray-700:hover, button.bg-gray-700:hover, .hover-effect:hover {
    background: #ffffff;
    color: #0f2640;
    transform: scale(1.05);
    box-shadow: 0 2px 0 rgba(90, 120, 155, 0.35), 0 0 18px rgba(130, 185, 235, 0.7), 0 10px 22px rgba(40, 62, 90, 0.35);
}
a.bg-gray-700:active, button.bg-gray-700:active { transform: scale(1.01); }
button.bg-gray-700:disabled { opacity: 0.6; cursor: wait; }

/* ---- Form fields: pressed into the stone, no outline ------------------- */
.bg-gray-800 {
    background: rgba(250, 252, 254, 0.85);
    border: 0 !important;
    border-radius: 6px !important;
    color: var(--text);
    box-shadow: inset 0 2px 5px rgba(40, 62, 90, 0.22), 0 1px 0 rgba(255, 255, 255, 0.9);
}
.bg-gray-800::placeholder { color: var(--faint); }
.bg-gray-800:focus { box-shadow: inset 0 2px 5px rgba(40, 62, 90, 0.22), 0 0 0 3px rgba(120, 170, 220, 0.45); }

iframe {
    width: 100%;
    max-width: 480px;
    height: 320px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(40, 62, 90, 0.25);
}

.body-text { font-family: Arial, sans-serif; }
