/*
Theme Name: Fistic-iu Seherezada
Theme URI: https://sagia.ro/v2/fistic-iu/
Author: Sagia Conect
Description: Tema „Seherezada” a blogului Fistic-iu: o mie și una de povești, câte una în fiecare noapte. Temă copil pentru Twenty Twenty-Two: publicarea, autorii, comentariile și pluginurile funcționează ca înainte.
Template: twentytwentytwo
Version: 1.0.2
Requires at least: 6.1
Text Domain: fistic-seherezada
*/

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/fraunces-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/fraunces-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('assets/fonts/fraunces-latin-ext-wght-italic.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('assets/fonts/fraunces-latin-wght-italic.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('assets/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('assets/fonts/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --fi-pistachio: #b5d67a;
  --fi-moss: #6f8f3a;
  --fi-gold: #d9a441;
  --fi-copper: #b1502a;
  --fi-night: #1c1410;
  --fi-paper: #f8f2e7;
  --fi-card: #fffaf1;
  --fi-line: rgba(42, 29, 20, 0.12);
  --fi-shadow: 0 1px 2px rgba(42, 29, 20, 0.06), 0 14px 34px -14px rgba(42, 29, 20, 0.25);
  --fi-shadow-lg: 0 34px 70px -26px rgba(42, 29, 20, 0.45);
  --fi-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }
.wp-site-blocks { padding-left: 0 !important; padding-right: 0 !important; }
html, body { overflow-x: clip; }
.fi-hero.alignfull { max-width: none !important; margin-left: calc(-1 * clamp(16px, 4vw, 40px)) !important; margin-right: calc(-1 * clamp(16px, 4vw, 40px)) !important; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--fi-pistachio); color: var(--fi-night); }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
img { height: auto; }

/* ---------- Bara de progres la citire ---------- */
.fi-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; background: linear-gradient(90deg, var(--fi-pistachio), var(--fi-gold), var(--fi-copper)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Antet ---------- */
.fi-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 242, 231, 0.86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.admin-bar .fi-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fi-header { top: 0; position: relative; } }
.fi-header.is-scrolled { border-bottom-color: var(--fi-line); box-shadow: 0 10px 30px -22px rgba(42, 29, 20, 0.5); }
.fi-brand { gap: 12px !important; }
.fi-brand a { text-decoration: none; }
.fi-mark { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; margin: 0; font-family: Fraunces, Georgia, serif; font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--fi-night); background: linear-gradient(135deg, var(--fi-pistachio), var(--fi-gold)); transition: transform 0.6s var(--fi-ease); }
.fi-mark a { color: inherit; }
.fi-brand:hover .fi-mark { transform: rotate(-12deg) scale(1.06); }
.fi-brand .wp-block-site-title { margin: 0; line-height: 1; }
.fi-brand .wp-block-site-title a { color: var(--fi-night); }
.fi-tagline { margin: 2px 0 0 !important; font-size: 0.7rem !important; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--fi-moss); }
.fi-header .wp-block-navigation { font-weight: 600; font-size: 0.92rem; }
.fi-header .wp-block-navigation-item__content { padding: 6px 2px; position: relative; }
.fi-header .wp-block-navigation-item__content::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--fi-pistachio); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--fi-ease); }
.fi-header .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
.fi-header .wp-block-navigation__submenu-container { border-radius: 14px; border: 1px solid var(--fi-line) !important; box-shadow: var(--fi-shadow); padding: 8px !important; background: var(--fi-card) !important; min-width: 260px !important; }
.fi-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 12px; border-radius: 8px; }
.fi-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: rgba(181, 214, 122, 0.25); }
.fi-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }
.fi-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--fi-night) !important; color: #fff7ea !important; padding: 28px !important; }
.fi-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { font-family: Fraunces, Georgia, serif; font-size: 1.35rem; gap: 14px; }
.fi-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; border: 0 !important; box-shadow: none; font-size: 1.05rem; padding: 4px 0 0 14px !important; }
.fi-header .wp-block-search__input { border-radius: 999px; border: 1px solid var(--fi-line); background: var(--fi-card); padding: 8px 14px; font-size: 0.9rem; min-width: 0; }
.fi-header .wp-block-search__button { border-radius: 999px; background: var(--fi-night); color: #fff7ea; border: 0; }
.fi-sagia a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(42, 29, 20, 0.2); color: var(--fi-night); font-size: 0.82rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.fi-sagia a:hover { background: var(--fi-night); color: #fff7ea; border-color: var(--fi-night); }
@media (max-width: 1180px) { .fi-header .wp-block-search { display: none !important; } }
@media (max-width: 1000px) {
  .fi-sagia { display: none !important; }
  .fi-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  .fi-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}

/* ---------- Copertă (prima pagină) ---------- */
.fi-hero { position: relative; overflow: hidden; isolation: isolate; }
.fi-hero::before { content: ''; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(181, 214, 122, 0.45), transparent 65%); filter: blur(10px); animation: fi-drift 14s ease-in-out infinite alternate; }
.fi-hero::after { content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; left: -140px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 164, 65, 0.3), transparent 65%); animation: fi-drift 18s ease-in-out infinite alternate-reverse; }
.fi-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.78rem !important; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 800; color: var(--fi-moss); }
.fi-eyebrow::before { content: ''; width: 36px; height: 2px; background: currentColor; }
.fi-hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem) !important; line-height: 0.98 !important; letter-spacing: -0.02em; max-width: 14ch; margin-block: 18px 22px !important; }
.fi-hero h1 em { font-style: italic; font-weight: 400; color: var(--fi-moss); }
.fi-hero .fi-lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 40ch; color: #5d4b3d; }
.fi-glyphs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fi-glyphs span { position: absolute; font-family: Fraunces, Georgia, serif; font-style: italic; color: rgba(111, 143, 58, 0.18); animation: fi-float 9s ease-in-out infinite; }
.fi-glyphs span:nth-child(1) { font-size: 14rem; right: 8%; top: 4%; }
.fi-glyphs span:nth-child(2) { font-size: 5rem; right: 30%; bottom: 8%; animation-delay: -3s; color: rgba(217, 164, 65, 0.25); }
.fi-glyphs span:nth-child(3) { font-size: 7rem; right: 2%; bottom: -4%; animation-delay: -6s; color: rgba(177, 80, 42, 0.14); }
.fi-glyphs span:nth-child(4) { font-size: 3.4rem; right: 40%; top: 10%; animation-delay: -1.5s; }
@media (max-width: 760px) { .fi-glyphs span:nth-child(1) { font-size: 8rem; top: auto; bottom: 0; } .fi-glyphs span:nth-child(4) { display: none; } }

.wp-block-button__link { transition: transform 0.35s var(--fi-ease), box-shadow 0.35s var(--fi-ease), background 0.25s; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: var(--fi-shadow); }
.is-style-outline .wp-block-button__link:hover { background: var(--fi-night) !important; color: #fff7ea !important; }

/* ---------- Colecții (categorii) ---------- */
.fi-collections .wp-block-categories { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fi-collections .wp-block-categories li { margin: 0; font-size: 0.92rem; font-weight: 600; color: #8a7563; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px 9px 18px; border-radius: 999px; background: var(--fi-card); border: 1px solid var(--fi-line); transition: border-color 0.25s, transform 0.35s var(--fi-ease), background 0.25s; }
.fi-collections .wp-block-categories li:hover { border-color: var(--fi-moss); transform: translateY(-2px); background: #f3f6e6; }
.fi-collections .wp-block-categories a { color: var(--fi-night); text-decoration: none; }
.fi-collections .cat-item-1 { display: none !important; }

/* ---------- Grila de articole ---------- */
.fi-grid .wp-block-post-template { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: clamp(20px, 3vw, 34px) !important; }
@media (max-width: 1000px) { .fi-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .fi-grid .wp-block-post-template { grid-template-columns: 1fr !important; } }
.fi-grid .wp-block-post-template > li { margin: 0 !important; display: flex; }
.fi-card { position: relative; width: 100%; display: flex; flex-direction: column; background: var(--fi-card); border: 1px solid var(--fi-line); border-radius: 22px; overflow: hidden; box-shadow: var(--fi-shadow); transition: transform 0.5s var(--fi-ease), box-shadow 0.5s var(--fi-ease), border-color 0.3s; }
.fi-card:hover { transform: translateY(-6px); box-shadow: var(--fi-shadow-lg); border-color: rgba(111, 143, 58, 0.4); }
.fi-card .wp-block-post-featured-image { margin: 0 !important; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #e7efd2, #f1e2c2); }
.fi-card .wp-block-post-featured-image a, .fi-card .wp-block-post-featured-image img { display: block; width: 100%; height: 100% !important; object-fit: cover; transition: transform 1.1s var(--fi-ease); }
.fi-card:hover .wp-block-post-featured-image img { transform: scale(1.06); }
.fi-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px !important; padding: 22px 24px 24px !important; }
.fi-card .wp-block-post-terms { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; color: var(--fi-moss); }
.fi-card .wp-block-post-terms a { color: inherit; text-decoration: none; }
.fi-card .wp-block-post-title { margin: 0; font-size: 1.4rem !important; line-height: 1.2; }
.fi-card .wp-block-post-title a { text-decoration: none; color: var(--fi-night); background: linear-gradient(var(--fi-pistachio), var(--fi-pistachio)) 0 92% / 0 30% no-repeat; transition: background-size 0.5s var(--fi-ease); }
.fi-card:hover .wp-block-post-title a { background-size: 100% 30%; }
.fi-card .wp-block-post-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.fi-card .wp-block-post-excerpt { color: #5d4b3d; font-size: 0.97rem; margin: 0; }
.fi-card .wp-block-post-excerpt__more-text { display: none; }
.fi-card .wp-block-post-excerpt p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.fi-meta { margin-top: auto !important; padding-top: 14px; border-top: 1px dashed var(--fi-line); gap: 8px !important; font-size: 0.82rem; color: #8a7563; }
.fi-meta > * { margin: 0 !important; }
.fi-meta .wp-block-post-author__avatar img { border-radius: 50%; width: 28px; height: 28px; }
.fi-meta .wp-block-post-author { align-items: center; }
.fi-meta .wp-block-post-author__name { font-weight: 700; color: var(--fi-night); margin: 0; }
.fi-meta .wp-block-post-author__avatar { margin-right: 8px; }

/* Primul articol din prima pagină: mare, pe toată lățimea */
.home:not(.paged) .fi-grid--home .wp-block-post-template > li:first-child { grid-column: 1 / -1; }
.home:not(.paged) .fi-grid--home li:first-child .fi-card { flex-direction: row; }
.home:not(.paged) .fi-grid--home li:first-child .wp-block-post-featured-image { flex: 1.25; aspect-ratio: auto; min-height: 420px; }
.home:not(.paged) .fi-grid--home li:first-child .fi-card-body { flex: 1; padding: clamp(28px, 4vw, 52px) !important; justify-content: center; }
.home:not(.paged) .fi-grid--home li:first-child .wp-block-post-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem) !important; }
.home:not(.paged) .fi-grid--home li:first-child .wp-block-post-excerpt p { -webkit-line-clamp: 5; font-size: 1.08rem; }
.home:not(.paged) .fi-grid--home li:first-child .fi-card-body::before { content: 'Cea mai nouă poveste'; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--fi-night); color: var(--fi-pistachio); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; }
@media (max-width: 860px) {
  .home:not(.paged) .fi-grid--home li:first-child .fi-card { flex-direction: column; }
  .home:not(.paged) .fi-grid--home li:first-child .wp-block-post-featured-image { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Paginare ---------- */
.wp-block-query-pagination { gap: 8px !important; font-weight: 700; }
.wp-block-query-pagination a { white-space: nowrap; }
.wp-block-query-pagination-numbers { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--fi-night); border: 1px solid var(--fi-line); background: var(--fi-card); margin: 0 !important; transition: background 0.25s, color 0.25s; }
.wp-block-query-pagination a:hover { background: var(--fi-night); color: #fff7ea; }
.wp-block-query-pagination .page-numbers.current { background: var(--fi-pistachio); border-color: var(--fi-pistachio); }
.wp-block-query-pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- Arhive ---------- */
.fi-archive-hero .wp-block-query-title { font-size: clamp(2.2rem, 5vw, 3.8rem) !important; font-weight: 500; }
.fi-archive-hero .wp-block-term-description { max-width: 60ch; color: #5d4b3d; font-size: 1.1rem; }

/* ---------- Articol ---------- */
.fi-single-head .wp-block-post-terms { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; }
.fi-single-head .wp-block-post-terms a { color: var(--fi-moss); text-decoration: none; }
.fi-single-head .wp-block-post-title { font-size: clamp(2.2rem, 5.4vw, 4rem) !important; line-height: 1.04; letter-spacing: -0.015em; }
.fi-byline { gap: 14px !important; font-size: 0.92rem; color: #8a7563; }
.fi-byline > * { margin: 0 !important; }
.fi-byline .wp-block-post-author { align-items: center; }
.fi-byline .wp-block-post-author__avatar img { border-radius: 50%; width: 44px; height: 44px; box-shadow: 0 0 0 3px var(--fi-paper), 0 0 0 5px var(--fi-pistachio); }
.fi-byline .wp-block-post-author__name { font-weight: 800; color: var(--fi-night); }
.fi-byline .fi-read { padding-left: 14px; border-left: 1px solid var(--fi-line); }
@media (max-width: 560px) { .fi-byline .fi-read { border-left: 0; padding-left: 0; } }
.fi-cover img { border-radius: 26px; box-shadow: var(--fi-shadow-lg); max-height: 620px; object-fit: cover; width: 100%; }
.fi-prose { font-size: 1.16rem; line-height: 1.78; }
.fi-prose blockquote, .fi-prose .wp-block-quote { border-left: 3px solid var(--fi-pistachio); padding: 4px 0 4px 26px; margin-inline: 0; font-family: Fraunces, Georgia, serif; font-style: italic; font-size: 1.3em; line-height: 1.5; color: #3b2a1d; }
.fi-prose img { border-radius: 16px; }
.fi-prose figcaption { font-size: 0.85rem; color: #8a7563; text-align: center; }
.fi-prose a { color: var(--fi-copper); }
.fi-prose h2, .fi-prose h3 { margin-top: 2em; }
.fi-prose hr, .fi-prose .wp-block-separator { border: 0; text-align: center; margin: 2.6em auto; opacity: 1; background: none !important; }
.fi-prose hr::after, .fi-prose .wp-block-separator::after { content: '❦'; font-size: 1.4rem; color: var(--fi-moss); }
.fi-prose .watch-action { float: none !important; display: flex; width: fit-content; margin: 0 0 1.2em; padding: 6px 14px; border-radius: 999px; background: #f3f6e6; border: 1px solid rgba(111, 143, 58, 0.3); font-size: 0.85rem; }
.fi-tags .wp-block-post-terms { display: flex; flex-wrap: wrap; gap: 8px; }
.fi-tags .wp-block-post-terms a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--fi-line); text-decoration: none; color: #5d4b3d; font-size: 0.85rem; }
.fi-tags .wp-block-post-terms__separator { display: none; }
.fi-author-box { border-radius: 24px; background: var(--fi-night); color: #f3e9da; }
.fi-author-box .wp-block-post-author { gap: 18px; align-items: center; }
.fi-author-box .wp-block-post-author__avatar img { border-radius: 50%; width: 72px; height: 72px; }
.fi-author-box .wp-block-post-author__byline { color: var(--fi-pistachio); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; margin: 0 0 4px; }
.fi-author-box .wp-block-post-author__name { font-family: Fraunces, Georgia, serif; font-size: 1.5rem; color: #fff7ea; }
.fi-author-box .wp-block-post-author__bio { color: #cdb79c; margin-top: 6px; }
.fi-postnav { gap: 18px !important; }
.fi-postnav > * { flex: 1; margin: 0 !important; }
.fi-postnav a { display: block; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--fi-line); background: var(--fi-card); text-decoration: none; color: var(--fi-night); font-family: Fraunces, Georgia, serif; font-size: 1.1rem; line-height: 1.3; transition: border-color 0.25s, transform 0.35s var(--fi-ease); }
.fi-postnav a:hover { border-color: var(--fi-moss); transform: translateY(-3px); }
.fi-postnav .post-navigation-link-next { text-align: right; }
.wp-block-comments input:not([type=submit]):not([type=checkbox]), .wp-block-comments textarea, .comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; border: 1px solid var(--fi-line); border-radius: 12px; padding: 12px 14px; background: var(--fi-card); font: inherit; }
.wp-block-comments input[type=submit], .comment-form input[type=submit] { border: 0; border-radius: 999px; padding: 12px 24px; background: var(--fi-night); color: #fff7ea; font-weight: 700; cursor: pointer; }

.fi-comment { border-bottom: 1px dashed var(--fi-line); }
.fi-comment .wp-block-comment-author-name { font-weight: 800; }
.fi-comment .wp-block-comment-date { color: #8a7563; }
.fi-comment .wp-block-comment-date a, .fi-comment .wp-block-comment-author-name a { color: inherit; text-decoration: none; }
.fi-comments .comment-reply-title { font-family: Fraunces, Georgia, serif; font-weight: 500; }

/* ---------- Abonare + subsol ---------- */
.fi-subscribe { border-radius: 28px; position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #e7efd2, #f6ead0); }
.fi-subscribe::after { content: 'F'; position: absolute; z-index: -1; right: 4%; top: 50%; transform: translateY(-50%); font-family: Fraunces, Georgia, serif; font-style: italic; font-size: 16rem; line-height: 1; color: rgba(111, 143, 58, 0.14); }
.fi-subscribe form p { margin: 0 0 10px; }
.fi-subscribe form label { font-size: 0.85rem; font-weight: 700; }
.fi-subscribe input[type=email], .fi-subscribe input[type=text] { width: 100%; max-width: 380px; border: 1px solid var(--fi-line); border-radius: 999px; padding: 12px 18px; font: inherit; background: #fff; }
.fi-subscribe input[type=submit] { border: 0; border-radius: 999px; padding: 12px 22px; margin-right: 6px; background: var(--fi-night); color: #fff7ea; font-weight: 700; cursor: pointer; }
.fi-subscribe input[name=unsubscribe] { background: transparent; color: var(--fi-night); border: 1px solid rgba(42, 29, 20, 0.25); }
.fi-footer { background: var(--fi-night); color: #cdb79c; }
.fi-footer a { color: #fff7ea; }
.fi-footer a:hover { color: var(--fi-pistachio); }
.fi-footer .fi-mark { width: 64px; height: 64px; font-size: 2.1rem; }
.fi-footer .wp-block-loginout a { display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255, 247, 234, 0.25); text-decoration: none; font-weight: 700; font-size: 0.88rem; }
.fi-footer .wp-block-loginout a:hover { border-color: var(--fi-pistachio); }
.fi-footer-line { border-top: 1px solid rgba(255, 247, 234, 0.12); padding-top: 22px; font-size: 0.85rem; }

/* ---------- Animații ---------- */
.fi-js .fi-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--fi-ease), transform 0.9s var(--fi-ease); transition-delay: var(--d, 0ms); }
.fi-js .fi-reveal.is-in { opacity: 1; transform: none; }
@keyframes fi-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(3deg); } }
@keyframes fi-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fi-js .fi-reveal { opacity: 1; transform: none; }
}


/* =====================================================================
   SEHEREZADA — „o mie și una de povești”: cer de noapte, lună, aur,
   ferestre arcuite, fiecare poveste e o noapte, textul pe pergament.
   ===================================================================== */
:root {
  --sh-night: #0d1230;
  --sh-deep: #141a44;
  --sh-indigo: #1f2763;
  --sh-gold: #d8b25a;
  --sh-gold-2: #f3d98b;
  --sh-rose: #d36d7e;
  --sh-cream: #f1e6cc;
  --sh-mute: #a9a3c4;
  --sh-parch: #f5ecd6;
  --fi-paper: var(--sh-night);
  --fi-card: var(--sh-deep);
  --fi-night: #070a1d;
  --fi-moss: var(--sh-gold);
  --fi-line: rgba(216, 178, 90, 0.28);
  --fi-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.8);
  --fi-shadow-lg: 0 30px 80px -30px rgba(216, 178, 90, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  --sh-arch: 999px 999px 18px 18px;
  --sh-gold-text: linear-gradient(180deg, #fff0bf 0%, #e9c56f 45%, #b98a35 100%);
}
body {
  background-color: var(--sh-night);
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(83, 74, 170, 0.35), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(211, 109, 126, 0.12), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23d8b25a' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M48 6l12 30 30 12-30 12-12 30-12-30L6 48l30-12z'/%3E%3Ccircle cx='48' cy='48' r='14'/%3E%3Cpath d='M0 0l20 20M96 0L76 20M0 96l20-20M96 96L76 76'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--sh-cream);
}
::selection { background: var(--sh-gold); color: var(--sh-night); }
a { color: var(--sh-gold-2); }
h1, h2, h3, h4 { color: var(--sh-cream); }
.fi-progress { background: linear-gradient(90deg, var(--sh-rose), var(--sh-gold), var(--sh-gold-2)); }

/* Antet de noapte */
.fi-header { background: rgba(13, 18, 48, 0.78); }
.fi-header.is-scrolled { border-bottom-color: var(--fi-line); box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.8); }
.fi-brand .wp-block-site-title a, .fi-header .wp-block-navigation, .fi-header a { color: var(--sh-cream); }
.fi-mark { background: none; color: var(--sh-gold-2); border: 1.5px solid var(--sh-gold); box-shadow: 0 0 22px rgba(216, 178, 90, 0.35), inset 0 0 12px rgba(216, 178, 90, 0.25); }
.fi-tagline { color: var(--sh-gold); }
.fi-header .wp-block-navigation-item__content::after { background: var(--sh-gold); }
.fi-header .wp-block-navigation__submenu-container { background: var(--sh-deep) !important; border-color: var(--fi-line) !important; }
.fi-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: rgba(216, 178, 90, 0.12); }
.fi-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--sh-night) !important; }
.fi-header .wp-block-search__inside-wrapper { border: 0 !important; padding: 0 !important; background: none !important; gap: 6px; }
.fi-header .wp-block-search__input { background: rgba(255, 255, 255, 0.06); border-color: var(--fi-line); color: var(--sh-cream); }
.fi-header .wp-block-search__button { background: var(--sh-gold); color: var(--sh-night); }
.fi-sagia a { border-color: var(--fi-line); color: var(--sh-cream); }
.fi-sagia a:hover { background: var(--sh-gold); color: var(--sh-night); border-color: var(--sh-gold); }

/* Coperta: cerul cu lună și stele */
.fi-hero { text-align: center; padding-bottom: clamp(70px, 10vw, 130px) !important; }
.fi-hero::before, .fi-hero::after { display: none; }
.sh-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sh-sky::before, .sh-sky::after { content: ''; position: absolute; inset: -50%; background-image:
  radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent),
  radial-gradient(1.2px 1.2px at 55% 15%, #fff, transparent), radial-gradient(1px 1px at 70% 55%, #fff, transparent),
  radial-gradient(1.6px 1.6px at 85% 30%, #ffe9ad, transparent), radial-gradient(1px 1px at 20% 45%, #fff, transparent),
  radial-gradient(1.3px 1.3px at 45% 85%, #ffe9ad, transparent), radial-gradient(1px 1px at 92% 80%, #fff, transparent);
  background-size: 340px 340px; animation: sh-twinkle 5s ease-in-out infinite alternate; }
.sh-sky::after { background-size: 520px 520px; background-position: 120px 60px; animation-delay: -2.5s; opacity: 0.7; }
.sh-sky i { position: absolute; top: 12%; left: 110%; width: 140px; height: 1.5px; background: linear-gradient(90deg, #fff, transparent); transform: rotate(-18deg); opacity: 0; animation: sh-shoot 9s linear infinite; }
.sh-sky i:nth-child(2) { top: 30%; animation-delay: 3.3s; width: 100px; }
.sh-sky i:nth-child(3) { top: 6%; animation-delay: 6.6s; width: 180px; }
.sh-moon { position: absolute; z-index: -1; width: clamp(110px, 16vw, 210px); right: 9%; top: 9%; filter: drop-shadow(0 0 40px rgba(243, 217, 139, 0.55)); animation: sh-moon 12s ease-in-out infinite alternate; }
.sh-eyebrow { justify-content: center; color: var(--sh-gold) !important; }
.sh-eyebrow::before { display: none; }
.fi-hero h1.sh-title { font-size: clamp(4rem, 15vw, 11rem) !important; line-height: 0.9 !important; font-weight: 400 !important; letter-spacing: -0.03em; margin: 14px auto 6px !important; max-width: none !important; background: var(--sh-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(216, 178, 90, 0.35)); }
.sh-title em { color: var(--sh-rose); -webkit-text-fill-color: var(--sh-rose); font-style: italic; }
.sh-orn-wrap { display: flex; justify-content: center; color: var(--sh-gold); margin: 18px 0; }
.sh-orn { width: 180px; height: 26px; overflow: visible; }
.sh-orn path:nth-of-type(3) { transform-origin: 80px 12px; animation: sh-spin 14s linear infinite; }
.sh-lead { margin-inline: auto !important; max-width: 46ch !important; color: #d8d0ea !important; font-family: Fraunces, Georgia, serif; font-style: italic; }
.sh-count { margin-top: 22px !important; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; color: var(--sh-mute); }
.sh-count strong { font-family: Fraunces, Georgia, serif; font-size: 2.2em; letter-spacing: 0; font-weight: 400; color: var(--sh-gold-2); vertical-align: -0.15em; margin-right: 6px; }
.sh-hero-text > * { animation: sh-rise 1.2s var(--fi-ease) both; }
.sh-hero-text > *:nth-child(2) { animation-delay: 0.15s; } .sh-hero-text > *:nth-child(3) { animation-delay: 0.35s; } .sh-hero-text > *:nth-child(4) { animation-delay: 0.5s; } .sh-hero-text > *:nth-child(5) { animation-delay: 0.65s; } .sh-hero-text > *:nth-child(6) { animation-delay: 0.8s; }

/* Butoane aurii */
.wp-block-button__link { background: linear-gradient(180deg, #f3d98b, #c99a43) !important; color: var(--sh-night) !important; box-shadow: 0 10px 30px -10px rgba(216, 178, 90, 0.6); }
.is-style-outline .wp-block-button__link { background: transparent !important; color: var(--sh-gold-2) !important; border: 1.5px solid var(--sh-gold) !important; box-shadow: none; }
.is-style-outline .wp-block-button__link:hover { background: var(--sh-gold) !important; color: var(--sh-night) !important; }

/* Colecții */
.fi-eyebrow { color: var(--sh-gold); }
.fi-collections .wp-block-categories li { background: rgba(255, 255, 255, 0.04); border-color: var(--fi-line); color: var(--sh-mute); }
.fi-collections .wp-block-categories li:hover { background: rgba(216, 178, 90, 0.12); border-color: var(--sh-gold); }
.fi-collections .wp-block-categories a { color: var(--sh-cream); }

/* Carduri: ferestre arcuite */
.fi-card { background: linear-gradient(180deg, rgba(31, 39, 99, 0.7), rgba(20, 26, 68, 0.9)); border: 1px solid var(--fi-line); border-radius: var(--sh-arch); padding: 12px 12px 0; overflow: visible; }
.fi-card::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(216, 178, 90, 0.18); border-radius: var(--sh-arch); pointer-events: none; transition: border-color 0.5s; }
.fi-card:hover { border-color: var(--sh-gold); box-shadow: var(--fi-shadow-lg); }
.fi-card:hover::before { border-color: rgba(243, 217, 139, 0.55); }
.fi-card .wp-block-post-featured-image { aspect-ratio: 3 / 3.4; border-radius: 999px 999px 6px 6px; background: radial-gradient(circle at 50% 30%, #2d3577, #10153a); }
.fi-card .wp-block-post-featured-image img { filter: saturate(0.85) brightness(0.92); }
.fi-card:hover .wp-block-post-featured-image img { filter: none; }
.fi-card-body { text-align: center; align-items: center; padding: 22px 18px 26px !important; }
.sh-night { display: inline-block; font-family: Fraunces, Georgia, serif; font-style: italic; font-size: 1rem; color: var(--sh-gold-2); letter-spacing: 0.02em; }
.sh-night::before, .sh-night::after { content: '✦'; font-style: normal; font-size: 0.6em; margin: 0 0.6em; color: var(--sh-gold); vertical-align: 0.25em; }
.fi-card .wp-block-post-terms { color: var(--sh-mute); }
.fi-card .wp-block-post-title a { color: var(--sh-cream); background-image: linear-gradient(var(--sh-gold), var(--sh-gold)); background-size: 0 1px; background-position: 50% 100%; }
.fi-card:hover .wp-block-post-title a { background-size: 100% 1px; color: var(--sh-gold-2); }
.fi-card .wp-block-post-excerpt { color: #c9c2df; }
.fi-meta { width: 100%; border-top-color: var(--fi-line); color: var(--sh-mute); }
.fi-meta .wp-block-post-author__name { color: var(--sh-cream); }
.fi-meta .wp-block-post-author__avatar img { filter: grayscale(0.4); }

/* Povestea zilei: fereastra mare */
.home:not(.paged) .fi-grid--home li:first-child .fi-card { border-radius: 999px 999px 24px 24px / 420px 420px 24px 24px; padding: 14px; }
.home:not(.paged) .fi-grid--home li:first-child .fi-card::before { border-radius: inherit; }
.home:not(.paged) .fi-grid--home li:first-child .fi-card { flex-direction: column; }
.home:not(.paged) .fi-grid--home li:first-child .wp-block-post-featured-image { flex: none; min-height: 0; aspect-ratio: 21 / 9; border-radius: 999px 999px 10px 10px / 520px 520px 10px 10px; }
.home:not(.paged) .fi-grid--home li:first-child .fi-card-body { padding: clamp(24px, 4vw, 44px) clamp(20px, 6vw, 120px) clamp(28px, 4vw, 48px) !important; }
.home:not(.paged) .fi-grid--home li:first-child .fi-card-body::before { content: 'Povestea din noaptea asta'; background: none; color: var(--sh-rose); padding: 0; align-self: center; }
.home:not(.paged) .fi-grid--home li:first-child .wp-block-post-title { font-size: clamp(2.2rem, 5vw, 3.8rem) !important; font-style: italic; }
@media (max-width: 860px) { .home:not(.paged) .fi-grid--home li:first-child .wp-block-post-featured-image { aspect-ratio: 4 / 3; } }

/* Paginare */
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { background: rgba(255, 255, 255, 0.04); border-color: var(--fi-line); color: var(--sh-cream); }
.wp-block-query-pagination a:hover { background: var(--sh-gold); color: var(--sh-night); }
.wp-block-query-pagination .page-numbers.current { background: var(--sh-gold); border-color: var(--sh-gold); color: var(--sh-night); }

/* Arhive */
.fi-archive-hero .wp-block-query-title { background: var(--sh-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.fi-archive-hero .wp-block-term-description { color: #c9c2df; }

/* Povestea: noaptea, fereastra și pagina de pergament */
.sh-opening-night { text-align: center; margin: 0 !important; font-size: 1.2rem; }
.fi-single-head .wp-block-post-title { background: var(--sh-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; font-weight: 400 !important; font-size: clamp(2.6rem, 7vw, 5.4rem) !important; line-height: 1.02; filter: drop-shadow(0 6px 24px rgba(216, 178, 90, 0.3)); padding-bottom: 0.08em; }
.fi-byline { color: var(--sh-mute); }
.fi-byline .wp-block-post-author__name { color: var(--sh-cream); }
.fi-byline .wp-block-post-author__avatar img { box-shadow: 0 0 0 3px var(--sh-night), 0 0 0 4.5px var(--sh-gold); }
.fi-byline .fi-read { border-left-color: var(--fi-line); }
.fi-byline .wp-block-post-terms a { color: var(--sh-gold); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem; font-weight: 700; text-decoration: none; }
.sh-arch { max-width: 760px; margin-inline: auto !important; padding: 10px; border: 1px solid var(--sh-gold); border-radius: 999px 999px 18px 18px / 380px 380px 18px 18px; box-shadow: 0 0 60px -10px rgba(216, 178, 90, 0.35); }
.sh-arch img { border-radius: 999px 999px 10px 10px / 380px 380px 10px 10px !important; box-shadow: none !important; max-height: 560px; }
.sh-page { position: relative; max-width: 860px; margin-inline: auto !important; background: var(--sh-parch); color: #2b2218; border-radius: 6px; padding: clamp(36px, 6vw, 80px) clamp(22px, 6vw, 80px) clamp(40px, 6vw, 72px) !important; box-shadow: 0 0 0 1px #c9a557, 0 0 0 7px var(--sh-parch), 0 0 0 8px #c9a557, 0 40px 90px -30px rgba(0, 0, 0, 0.9); background-image: radial-gradient(130% 100% at 50% 40%, transparent 60%, rgba(150, 110, 40, 0.18) 100%); }
.sh-page::before, .sh-page::after { content: '✦'; position: absolute; top: 14px; left: 18px; color: #b8924a; font-size: 0.9rem; }
.sh-page::after { left: auto; right: 18px; }
.sh-page .fi-prose { font-family: Fraunces, Georgia, serif; font-size: clamp(1.1rem, 1.4vw, 1.22rem); line-height: 1.8; color: #2b2218; }
.sh-page .fi-prose h2, .sh-page .fi-prose h3, .sh-page .fi-prose h4 { color: #2b2218; }
.sh-page .fi-prose a { color: #8a3b22; }
.sh-page .fi-prose p.sh-drop::first-letter { float: left; font-family: Fraunces, Georgia, serif; font-style: italic; font-size: 4.6em; line-height: 0.8; margin: 0.06em 0.14em 0 0; padding: 0.12em 0.16em 0.1em; color: #f3d98b; background: radial-gradient(circle at 30% 30%, #2d3577, #0d1230); border: 2px solid #c9a557; box-shadow: inset 0 0 0 3px #0d1230, inset 0 0 0 4px #c9a557; }
.sh-page .fi-prose blockquote, .sh-page .fi-prose .wp-block-quote { border-left-color: #c9a557; color: #5a3d22; }
.sh-page .fi-prose hr::after, .sh-page .fi-prose .wp-block-separator::after { content: '✦ ✦ ✦'; color: #b8924a; letter-spacing: 0.4em; }
.sh-page .fi-prose .watch-action { background: rgba(201, 165, 87, 0.12); border-color: rgba(201, 165, 87, 0.5); color: #2b2218; }
.sh-page .fi-prose figcaption { color: #7a6a52; }
.sh-end { margin-top: 2.6em !important; font-family: Fraunces, Georgia, serif; font-style: italic; color: #8a6a35; font-size: 1.05rem; }
.sh-end::before { content: '✦'; display: block; font-style: normal; color: #b8924a; margin-bottom: 10px; }
.fi-tags .wp-block-post-terms a { border-color: var(--fi-line); color: var(--sh-mute); }
.fi-author-box { background: linear-gradient(180deg, rgba(31, 39, 99, 0.8), rgba(20, 26, 68, 0.95)); border: 1px solid var(--fi-line); }
.fi-author-box .wp-block-post-author__byline { color: var(--sh-gold); }
.fi-author-box .wp-block-post-author__name { color: var(--sh-gold-2); }
.fi-author-box .wp-block-post-author__bio { color: #c9c2df; }
.fi-postnav a { background: rgba(255, 255, 255, 0.04); border-color: var(--fi-line); color: var(--sh-cream); }
.fi-postnav a:hover { border-color: var(--sh-gold); color: var(--sh-gold-2); }
.wp-block-comments, .wp-block-comments h3, .comment-reply-title { color: var(--sh-cream); }
.fi-comment { border-bottom-color: var(--fi-line); }
.fi-comment .wp-block-comment-date { color: var(--sh-mute); }
.wp-block-comments input:not([type=submit]):not([type=checkbox]), .wp-block-comments textarea, .comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { background: rgba(255, 255, 255, 0.05); border-color: var(--fi-line); color: var(--sh-cream); }
.wp-block-comments input[type=submit], .comment-form input[type=submit] { background: var(--sh-gold); color: var(--sh-night); }

/* Abonare + subsol */
.fi-subscribe { background: linear-gradient(135deg, rgba(31, 39, 99, 0.9), rgba(13, 18, 48, 0.95)); border: 1px solid var(--fi-line); text-align: center; }
.fi-subscribe > * { margin-inline: auto !important; }
.fi-subscribe .fi-eyebrow { justify-content: center; }
.fi-subscribe::after { content: '☾'; font-family: Georgia, serif; font-style: normal; color: rgba(243, 217, 139, 0.12); right: 6%; }
.fi-subscribe input[type=email], .fi-subscribe input[type=text] { background: rgba(255, 255, 255, 0.06); border-color: var(--fi-line); color: var(--sh-cream); }
.fi-subscribe input[type=submit] { background: var(--sh-gold); color: var(--sh-night); }
.fi-subscribe input[name=unsubscribe] { background: transparent; color: var(--sh-gold-2); border-color: var(--fi-line); }
.fi-footer { background: #070a1d; color: var(--sh-mute); border-top: 1px solid var(--fi-line); }
.fi-footer .fi-mark { background: none; color: var(--sh-gold-2); border: 1.5px solid var(--sh-gold); }
.fi-footer h3 { color: var(--sh-gold-2) !important; }
.fi-footer a:hover { color: var(--sh-gold-2); }

@keyframes sh-twinkle { from { opacity: 0.45; } to { opacity: 1; } }
@keyframes sh-shoot { 0% { transform: translateX(0) rotate(-18deg); opacity: 0; } 2% { opacity: 1; } 10% { transform: translateX(-120vw) rotate(-18deg); opacity: 0; } 100% { opacity: 0; } }
@keyframes sh-moon { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(14px) rotate(3deg); } }
@keyframes sh-spin { to { transform: rotate(360deg); } }
@keyframes sh-rise { from { opacity: 0; transform: translateY(22px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 760px) { .sh-moon { right: 4%; top: 4%; } .fi-card { border-radius: 999px 999px 18px 18px / 300px 300px 18px 18px; } }
