/*
Theme Name: HaarmonyLike Poetry
Theme URI: https://haarmonylike.ir
Author: HaarmonyLike
Description: A calm, editable block theme for Persian and multilingual poetry.
Version: 1.0.0
Requires at least: 7.1
Requires PHP: 8.3
Text Domain: haarmonylike-poetry
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --poetry-shadow: 0 22px 60px rgba(62, 43, 35, 0.10);
}

html {
    scroll-behavior: smooth;
}

body {
    background-image:
        radial-gradient(circle at 12% 12%, rgba(184, 138, 68, 0.09), transparent 28rem),
        radial-gradient(circle at 88% 4%, rgba(122, 38, 58, 0.07), transparent 25rem);
}

a {
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.06em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #b88a44;
    outline-offset: 3px;
}

.site-shell {
    min-height: 100vh;
}

.poetry-masthead {
    border-bottom: 1px solid rgba(43, 36, 32, 0.12);
    backdrop-filter: blur(10px);
}

.poetry-hero {
    position: relative;
    overflow: hidden;
    box-shadow: var(--poetry-shadow);
}

.poetry-hero::after {
    content: "❦";
    position: absolute;
    inset-inline-end: clamp(1.25rem, 6vw, 5rem);
    inset-block-end: -0.18em;
    color: rgba(255, 255, 255, 0.13);
    font-family: Georgia, serif;
    font-size: clamp(7rem, 18vw, 15rem);
    line-height: 1;
    pointer-events: none;
}

.poetry-card {
    height: 100%;
    border: 1px solid rgba(43, 36, 32, 0.10);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.76);
    box-shadow: 0 10px 34px rgba(62, 43, 35, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.poetry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(62, 43, 35, 0.11);
}

.poetry-card .wp-block-post-title a {
    text-decoration: none;
}

.poetry-rule {
    width: 5rem;
    border: 0;
    border-top: 2px solid #b88a44;
}

.poetry-reading,
.entry-content {
    hanging-punctuation: first last;
}

.wp-block-verse,
.poem-text {
    overflow: visible;
    padding: clamp(1.5rem, 5vw, 3.25rem);
    border: 0;
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.84);
    box-shadow: var(--poetry-shadow);
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(1.2rem, 2.7vw, 1.75rem);
    line-height: 2.25;
    text-align: center;
    white-space: pre-wrap;
}

.poetry-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem 1rem;
    margin: 1rem 0 2rem;
    color: #6c6058;
    font-size: 0.92rem;
}

.poetry-meta__item::before {
    content: "•";
    margin-inline-end: 0.55rem;
    color: #b88a44;
}

.poetry-meta__item:first-child::before {
    content: "";
    margin: 0;
}

.wp-block-query-pagination {
    margin-block-start: 3rem;
}

@media (max-width: 700px) {
    .poetry-masthead .wp-block-group {
        align-items: flex-start;
    }

    .poetry-card {
        border-radius: 14px;
    }

    .wp-block-verse,
    .poem-text {
        line-height: 2.05;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .poetry-card {
        transition: none;
    }
}

