:root {
    --background: #f7f2eb;
    --surface: #fffaf4;
    --text: #201c19;
    --muted: #766e67;
    --accent: #8f3d48;
    --accent-dark: #6f2d36;
    --border: rgba(32, 28, 25, 0.13);
    --container: 1220px;
    --narrow: 780px;
    --shadow: 0 18px 50px rgba(50, 35, 25, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(247, 242, 235, 0.9);
    backdrop-filter: blur(18px);
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 40px), var(--container));
    min-height: 82px;
    margin: 0 auto;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.04em;
}
.custom-logo { display: block; max-height: 58px; width: auto; }
.main-menu, .footer-menu { list-style: none; margin: 0; padding: 0; }
.main-menu { display: flex; align-items: center; gap: 34px; }
.main-menu a {
    position: relative;
    display: block;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.main-menu a::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms ease;
}
.main-menu a:hover::after,
.current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }

.section-shell { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.narrow-shell { max-width: var(--narrow); }
.hero {
    position: relative;
    display: grid;
    min-height: calc(100vh - 83px);
    place-items: center;
    overflow: hidden;
    padding: 110px 20px;
    text-align: center;
}
.hero::before {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(143, 61, 72, 0.10), transparent 30%),
        radial-gradient(circle at 80% 75%, rgba(113, 87, 65, 0.10), transparent 31%);
    content: "";
}
.hero-orbit {
    position: absolute;
    width: min(72vw, 880px);
    aspect-ratio: 1;
    border: 1px solid rgba(143, 61, 72, 0.13);
    border-radius: 50%;
}
.hero-orbit::before, .hero-orbit::after {
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(32, 28, 25, 0.07);
    border-radius: 50%;
    content: "";
}
.hero-orbit::after { inset: 26%; }
.hero-content { position: relative; z-index: 2; max-width: 940px; }
.hero-eyebrow {
    margin: 0 0 22px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.hero h1, .page-header h1, .not-found h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.96;
}
.hero h1 { font-size: clamp(58px, 8.5vw, 122px); }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero-description {
    max-width: 650px;
    margin: 34px auto 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.8;
}
.hero-actions { display: flex; justify-content: center; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(143, 61, 72, 0.22); }
.button-primary:hover { background: var(--accent-dark); }
.button-text { border: 1px solid var(--border); background: rgba(255,255,255,0.25); }

.poems-section, .content-section { padding: 110px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-heading p { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(42px, 6vw, 72px); font-weight: 400; letter-spacing: -.045em; }
.poems-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.poem-card {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 250, 244, 0.7);
    box-shadow: var(--shadow);
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.poem-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(50, 35, 25, 0.12); }
.poem-date { margin: 0 0 28px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.poem-card h2, .poem-card h3 { margin: 0 0 18px; font-family: Georgia, serif; font-size: 34px; font-weight: 400; letter-spacing: -.035em; line-height: 1.08; }
.poem-excerpt { color: var(--muted); }
.poem-excerpt p { margin-top: 0; }
.poem-link { margin-top: auto; padding-top: 24px; color: var(--accent); font-weight: 700; }
.empty-state { grid-column: 1 / -1; padding: 60px; border: 1px dashed var(--border); border-radius: 24px; text-align: center; }
.quote-section { padding: 90px 0 140px; }
.quote-section blockquote { max-width: 900px; margin: 0 auto; font-family: Georgia, serif; font-size: clamp(34px, 5vw, 66px); letter-spacing: -.04em; line-height: 1.14; text-align: center; }

.page-header { margin-bottom: 52px; text-align: center; }
.page-header h1, .not-found h1 { font-size: clamp(52px, 7vw, 88px); }
.entry-content { font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.95; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.poem-content { white-space: normal; }
.featured-image { margin: 0 0 46px; }
.featured-image img { border-radius: 22px; }
.post-footer { margin-top: 60px; }
.pagination { grid-column: 1 / -1; margin-top: 30px; }
.not-found { min-height: 70vh; padding: 130px 0; text-align: center; }
.not-found p { color: var(--muted); font-size: 18px; }
.not-found .button { margin-top: 24px; }

.site-footer { border-top: 1px solid var(--border); padding: 58px 0; }
.footer-container { display: grid; grid-template-columns: 1fr auto; gap: 28px 50px; width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.footer-brand > a { font-family: Georgia, serif; font-size: 27px; font-weight: 600; }
.footer-brand p { max-width: 500px; margin: 8px 0 0; color: var(--muted); }
.footer-menu { display: flex; gap: 22px; flex-wrap: wrap; }
.copyright { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
    body.admin-bar .site-header { top: 46px; }
    .menu-toggle {
        display: grid;
        width: 46px;
        height: 46px;
        place-content: center;
        padding: 10px;
        border: 0;
        background: transparent;
        gap: 5px;
        cursor: pointer;
    }
    .menu-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
    .menu-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    .main-navigation {
        position: absolute;
        top: 82px;
        right: 0;
        left: 0;
        display: none;
        padding: 26px 20px 32px;
        border-bottom: 1px solid var(--border);
        background: var(--background);
    }
    .main-navigation.is-open { display: block; }
    .main-menu { align-items: stretch; flex-direction: column; gap: 4px; }
    .main-menu a { padding: 13px 0; font-size: 14px; }
    .poems-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .header-container, .section-shell, .footer-container { width: min(calc(100% - 28px), var(--container)); }
    .hero { min-height: 78vh; padding: 90px 14px; }
    .hero-orbit { width: 110vw; }
    .hero h1 { font-size: clamp(52px, 17vw, 82px); }
    .hero-description { font-size: 17px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .poems-section, .content-section { padding: 78px 0; }
    .poems-grid { grid-template-columns: 1fr; }
    .poem-card { min-height: 300px; padding: 27px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .quote-section { padding: 70px 0 100px; }
    .entry-content { font-size: 19px; }
    .footer-container { grid-template-columns: 1fr; }
    .copyright { grid-column: auto; }
}

.all-poems-action {
    display: flex;
    justify-content: center;
    margin-top: 46px;
}

.archive-intro {
    max-width: 680px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}


/* Separate article section */
.articles-section {
    padding: 110px 0;
    border-top: 1px solid var(--border);
}
.article-card {
    background: rgba(248, 246, 241, 0.88);
}
.single-article .entry-content {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
    font-family: inherit;
    line-height: 1.85;
}
@media (max-width: 620px) {
    .articles-section { padding: 78px 0; }
}
