/* Philocalist landing page
   Custom styling designed to sit on top of the POLO HTML template by Inspiro.
*/

:root {
    --philocalist-bg: #121119;
    --philocalist-text: #d8cfc1;
    --philocalist-muted: #c8bfb2;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--philocalist-bg);
    color: var(--philocalist-text);
    overflow-x: hidden;
}

#philocalist-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    overflow: hidden;
    background: var(--philocalist-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 5vw, 72px);
}

/* Fixed image stage:
   The image is anchored to the top-right corner and clipped by the viewport.
   This preserves the “flower lives in the corner” effect across screen sizes.
*/
.philocalist-flower-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.philocalist-flower {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(560px, 74vw, 1040px);
    height: auto;
    max-width: none;
    display: block;
    opacity: 0.96;
    transform: translate(50%, -50%);
    user-select: none;
}

/* Soft blend so the image and page feel like one piece, not pasted together. */
.philocalist-flower-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.025), transparent 24%),
        linear-gradient(90deg, var(--philocalist-bg) 0%, rgba(17, 16, 24, 0.96) 24%, rgba(17, 16, 24, 0.58) 50%, rgba(17, 16, 24, 0.06) 78%, transparent 100%),
        linear-gradient(180deg, transparent 0%, rgba(17, 16, 24, 0.08) 58%, var(--philocalist-bg) 100%);
    z-index: 2;
}

.philocalist-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 720px;
    margin-top: clamp(32px, 7vh, 72px);
}

.philocalist-title,
.philocalist-pronunciation,
.philocalist-type,
.philocalist-definition {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.philocalist-title {
    font-size: clamp(62px, 8.8vw, 132px);
    line-height: 0.95;
    letter-spacing: -0.055em;
    color: var(--philocalist-text);
    margin: 0 0 28px;
}

.philocalist-pronunciation {
    font-size: clamp(20px, 2vw, 32px);
    line-height: 1.2;
    color: var(--philocalist-muted);
    margin-bottom: 22px;
}

.philocalist-type {
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.2;
    font-style: italic;
    color: var(--philocalist-muted);
    margin-bottom: 26px;
}

.philocalist-line {
    width: 120px;
    height: 1px;
    background: var(--philocalist-muted);
    opacity: 0.8;
    margin: 0 auto 34px;
}

.philocalist-definition {
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.28;
    color: var(--philocalist-text);
    margin: 0;
}

@media (max-width: 1200px) {
    .philocalist-flower {
        width: clamp(520px, 82vw, 900px);
    }
}

@media (max-width: 991px) {
    .philocalist-flower {
        width: 800px;
        opacity: 0.9;
    }

    .philocalist-content {
        margin-top: 96px;
    }
}

@media (max-width: 768px) {
    #philocalist-hero {
        align-items: center;
        padding: 32px 24px;
    }

    .philocalist-flower {
        width: 690px;
        opacity: 0.82;
    }

    .philocalist-content {
        margin-top: 128px;
    }

    .philocalist-title {
        letter-spacing: -0.04em;
    }
}

@media (max-width: 480px) {
    .philocalist-flower {
        width: 590px;
        opacity: 0.76;
    }

    .philocalist-content {
        margin-top: 150px;
    }

    .philocalist-line {
        width: 96px;
        margin-bottom: 28px;
    }
}
