/* Wersja A — Wieniec. Symetryczna jak ołtarz: imię w środku, wszystko wokół je chroni.
   Wspólna paleta, fonty, liście i ramy: _core/gaj/gaj.css */

/* Nagłówek */
.hd { display: grid; justify-items: center; gap: .7rem; padding: 1.5rem 1rem .8rem; z-index: 32; }
.hd .theme-btn { position: absolute; right: clamp(1rem, 4vw, 3rem); top: 1.5rem; }
.hd__brand { display: flex; align-items: center; gap: .1rem; }
.hd__leaf { width: 34px; height: 34px; transform: rotate(-62deg); }
.hd__leaf--r { transform: rotate(62deg) scaleX(-1); }
.hd__eye { width: 32px; height: 32px; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.hd__brand:hover .hd__eye { transform: rotate(180deg) scale(1.1); }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 2.2rem; font: 400 1.02rem var(--font-b); }
.nav a { position: relative; text-decoration: none; padding: .35em 0; color: var(--muted); transition: color .3s; }
.nav a:hover, .nav a[aria-current] { color: var(--gold-hi); }
.nav a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 14px; height: 14px; transform: translateX(-50%) scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23b4232e'%3E%3Cpath d='M32 32C21 27 17 11 26 5c3-2 9-2 12 0 9 6 5 22-6 27z'/%3E%3Cpath d='M32 32C21 27 17 11 26 5c3-2 9-2 12 0 9 6 5 22-6 27z' transform='rotate(72 32 32)'/%3E%3Cpath d='M32 32C21 27 17 11 26 5c3-2 9-2 12 0 9 6 5 22-6 27z' transform='rotate(144 32 32)'/%3E%3Cpath d='M32 32C21 27 17 11 26 5c3-2 9-2 12 0 9 6 5 22-6 27z' transform='rotate(216 32 32)'/%3E%3Cpath d='M32 32C21 27 17 11 26 5c3-2 9-2 12 0 9 6 5 22-6 27z' transform='rotate(288 32 32)'/%3E%3C/g%3E%3Ccircle cx='32' cy='32' r='6' fill='%23ecd38f'/%3E%3C/svg%3E") center / contain no-repeat; }
.nav a[aria-current]::after { transform: translateX(-50%) translateY(10px) scale(1); }
.hd__menu { display: none; }

/* Hero: wieniec. Wszystko rośnie razem, powoli, jak w jednym oddechu */
.hero { position: relative; display: grid; justify-items: center; text-align: center; padding: .5rem 1rem clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero__wreath { position: relative; width: min(100%, 47rem); aspect-ratio: 1; display: grid; place-items: center; }
.wreath { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.phases { transform-origin: 300px 300px; animation: fade 3.2s .2s ease both, turn 240s linear infinite; }
.ph__ring { fill: none; stroke: var(--gold); stroke-opacity: .22; stroke-dasharray: 2 7; }
.ph__o { fill: var(--bg); stroke: var(--gold); stroke-opacity: .55; }
.ph__f { fill: var(--gold); fill-opacity: .75; }
@keyframes turn { to { transform: rotate(360deg); } }
.wr__halo { fill: rgb(236 211 143 / .035); stroke: none; animation: fade 3s .2s both; }
.wr__stem { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3s .2s var(--ease) forwards; }
.wr__stem2 { fill: none; stroke: #6b4a2a; stroke-width: 5; stroke-linecap: round; animation: fade 2s .2s both; }
html[data-theme="light"] .wr__stem2 { stroke: #8a6a3e; }
.wr__tendril { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s 1.6s var(--ease) forwards; }
.wr__g { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 2.2s calc(.3s + var(--i) * 45ms) var(--ease) both; }
.wr__leaf { color: var(--gold); transform-box: fill-box; transform-origin: 50% 100%; animation: grow 2.2s calc(.5s + var(--i) * 50ms) var(--ease) both; }
.wr__bloom { transform-box: fill-box; transform-origin: center; animation: bloom 2.2s calc(1.1s + var(--i) * 70ms) var(--ease) both; }
.wr__acorn { transform-box: fill-box; transform-origin: 50% 0; animation: grow 2s 1.2s var(--ease) both; }
.wr__flower { transform-box: fill-box; transform-origin: center; animation: bloom 2.4s 1.2s var(--ease) both; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .45)); }
html[data-theme="light"] .wr__flower { filter: drop-shadow(0 6px 10px rgb(90 13 20 / .3)); }
.wr__flower--s { animation-delay: 1.4s; }
.wr__eye { transform-box: fill-box; transform-origin: center; animation: fade 2s 1s both, blink 7s 4s ease-in-out infinite; filter: drop-shadow(0 0 12px rgb(236 211 143 / .45)); }
.spark { color: var(--gold-hi); transform-box: fill-box; transform-origin: center; animation: twinkle 4.2s var(--d) ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.5) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.bfly use { transform-box: fill-box; transform-origin: center; animation: flap .24s ease-in-out infinite alternate; }
.bfly--a { offset-path: path("M60 140C120 40 220 20 250 70S170 190 120 160 40 200 60 140"); animation: orbit 24s 2.4s linear infinite both; }
.bfly--b { offset-path: path("M560 210C500 120 420 110 400 170S500 260 540 240 600 270 560 210"); animation: orbit 29s 3s linear infinite both; }
@keyframes orbit { from { offset-distance: 0%; opacity: 0; } 5% { opacity: 1; } to { offset-distance: 100%; opacity: 1; } }
@keyframes flap { to { transform: scaleX(.3); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scale(0); opacity: 0; } }
@keyframes bloom { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes blink { 0%, 46%, 54%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.1); } }
@keyframes soft-rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.hero__name { position: relative; margin: 0; display: grid; gap: .7rem; }
.hero__alias { font-size: clamp(3.6rem, 13vw, 8rem); line-height: .95; letter-spacing: .02em;
  background: linear-gradient(100deg, var(--gold) 20%, var(--sheen) 45%, var(--gold) 70%) 0 0 / 300% 100% text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 18px var(--text-glow)); animation: soft-rise 2.4s .4s var(--ease) both, sheen 8s 4s ease-in-out infinite; }
@keyframes sheen { 0%, 70% { background-position: 100% 0; } 100% { background-position: -50% 0; } }
.hero__full { font: 400 clamp(1rem, 2.4vw, 1.25rem) var(--font-d); letter-spacing: .16em; color: var(--parch-dim); animation: soft-rise 2.2s .8s var(--ease) both; }
.hero__tag { max-width: 33rem; margin: 1.4rem auto 2rem; font-size: 1.18rem; font-style: italic; color: var(--fg); animation: soft-rise 2.2s 1.1s var(--ease) both; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; animation: soft-rise 2.2s 1.3s var(--ease) both; }
.view--start > .ornament { margin-block: 0 clamp(3rem, 6vw, 4rem); }

/* Trzy działy jako karty tarota z ilustracją */
.arcana-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.arcana { display: block; text-decoration: none; transform: rotate(calc((var(--n) - 1) * 2deg)); transition: transform .7s var(--ease); }
.arcana:hover, .arcana:focus-visible { transform: translateY(-10px) rotate(0); }
.arcana__in { position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%; padding: 10px; border-radius: 14px;
  background: var(--card-bg); box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 6px var(--card-gap), inset 0 0 0 7px var(--line), 0 30px 50px -26px rgb(0 0 0 / .9); transition: box-shadow .6s; }
.arcana:hover .arcana__in { box-shadow: inset 0 0 0 1px var(--gold-hi), inset 0 0 0 6px var(--card-gap), inset 0 0 0 7px var(--gold), 0 40px 60px -26px rgb(0 0 0 / .9), 0 0 40px -10px rgb(236 211 143 / .3); }
.arcana__in::before, .arcana__in::after { content: ""; position: absolute; width: 34px; height: 34px; pointer-events: none; z-index: 1; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34' fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M3 31V12C3 7 7 3 12 3h19'/%3E%3Cpath d='M9 31V16c0-4 3-7 7-7h15' opacity='.5'/%3E%3Ccircle cx='9' cy='9' r='2' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34' fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M3 31V12C3 7 7 3 12 3h19'/%3E%3Cpath d='M9 31V16c0-4 3-7 7-7h15' opacity='.5'/%3E%3Ccircle cx='9' cy='9' r='2' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat; }
.arcana__in::before { left: 14px; top: 14px; }
.arcana__in::after { right: 14px; bottom: 14px; transform: rotate(180deg); }
.vg { display: block; width: 100%; height: auto; border-radius: 8px 8px 0 0; }
.vg__moon { transform-box: fill-box; transform-origin: center; transition: transform 1.2s var(--ease); }
.arcana:hover .vg__moon { transform: rotate(-14deg) scale(1.08); }
.arcana:hover .vg__cards { animation: lift 2.4s ease-in-out infinite; }
@keyframes lift { 50% { transform: translateY(-5px); } }
.vg__boat { animation: drift-boat 14s ease-in-out infinite alternate; }
@keyframes drift-boat { to { transform: translateX(90px); } }
.vg__waves { animation: shimmer 3.4s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: .4; transform: translateX(4px); } }
.vg__gems path { transition: transform .8s var(--ease); }
.arcana:hover .vg__gems { transform: translateY(-3px); transition: transform .8s var(--ease); }
.vg__spark { color: var(--gold-hi); transform-box: fill-box; transform-origin: center; animation: twinkle 4s var(--d, 0s) ease-in-out infinite; }
.arcana__body { display: grid; justify-items: center; align-content: start; gap: .5rem; padding: 1.2rem 1.4rem 1.6rem; text-align: center; }
.arcana__body h2 { font-size: 2rem; margin: 0; }
.arcana__txt { color: var(--muted); max-width: 18rem; }
.arcana__cta { margin-top: .4rem; padding: .35rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-hi); font-size: .95rem; transition: background-color .4s, color .4s; }
.arcana:hover .arcana__cta { background: var(--gold); color: #1b1608; }

/* Karta na dziś */
.oracle { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: clamp(2rem, 6vw, 5rem); align-items: center; max-width: 52rem; padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 3rem); margin-bottom: clamp(4rem, 9vw, 7rem);
  border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(80% 120% at 85% 50%, var(--oracle-glow), transparent 70%), var(--surface); }
.oracle h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.oracle__text p { color: var(--muted); }
.oracle__text a { color: var(--gold-hi); }
.oracle__card .card { filter: drop-shadow(0 18px 30px rgb(0 0 0 / .45)); animation: hover-card 5s ease-in-out infinite; }
.oracle .draw.is-open .card { animation: none; }
@keyframes hover-card { 50% { transform: translateY(-8px) rotate(1deg); } }

/* Rzeka o zmierzchu */
.river { position: relative; height: clamp(22rem, 36vw, 30rem); overflow: hidden; }
.river__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.river__q { position: absolute; left: 50%; top: 24%; width: min(100% - 3rem, 40rem); margin: 0; transform: translateX(-50%); text-align: center;
  font: 400 clamp(1.35rem, 3vw, 2.1rem)/1.32 var(--font-d); color: #1b2a4e; text-shadow: 0 1px 0 rgb(255 250 235 / .6); }
.river__q p { margin: 0; }
.rv__flow { animation: flow var(--t) var(--d) linear infinite; }
@keyframes flow { to { stroke-dashoffset: -1440; } }
.rv__glint { animation: shimmer 3s ease-in-out infinite; }
/* obóz: płomień drga, dym unosi się kłębami, poświata oddycha */
.rv__flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flick 1.1s ease-in-out infinite alternate; }
.rv__flame--in { animation-duration: .8s; animation-delay: -.3s; }
@keyframes flick { to { transform: scale(1.08, .86) translateX(1px); } }
.rv__glow { animation: breathe 2.6s ease-in-out infinite alternate; }
@keyframes breathe { to { opacity: .55; } }
.rv__puff { opacity: 0; transform-box: fill-box; transform-origin: center; animation: puff 6s var(--d) ease-out infinite; }
@keyframes puff { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 15% { opacity: .5; } 100% { transform: translate(16px, -72px) scale(1.7); opacity: 0; } }
.rv__fly { animation: glow 3.4s var(--d) ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* Ściana salonu */
.salon { padding-block: clamp(4rem, 9vw, 7rem) clamp(2rem, 5vw, 3rem); }
.salon__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 2.5rem; }
.salon__head h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0; }
.salon__head a { color: var(--gold-hi); }
.salon__wall { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.8rem); align-items: start; }
.salon__item--0 { grid-row: span 2; }
.salon__item--1 { grid-column: span 2; }
.salon__item .art { width: 100%; object-fit: cover; }
.salon__item--0 .art { aspect-ratio: 3 / 4.3; }
.salon__item--1 .art { aspect-ratio: 16 / 8; }
.salon__item--2 .art, .salon__item--3 .art { aspect-ratio: 4 / 5; }

/* Pocztówka z bloga */
.letter { padding-bottom: clamp(3rem, 7vw, 5rem); }
.postcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); max-width: 56rem; margin: 0 auto; text-decoration: none; color: #2a2418;
  background: linear-gradient(135deg, #f3ead6, #e4d6b6); border-radius: 6px; box-shadow: 0 30px 50px -25px rgb(0 0 0 / .9); transform: rotate(-1.2deg); transition: transform .7s var(--ease); }
.postcard:hover { transform: rotate(0) translateY(-6px); }
.postcard__pic { padding: 14px; }
.postcard__pic .art { width: 100%; height: 100%; padding: 0; border: 0; border-image: none; box-shadow: none; border-radius: 3px; }
.postcard__back { position: relative; display: grid; align-content: start; gap: .5rem; padding: 2rem 2rem 2rem 2.2rem; border-left: 1px dashed rgb(42 36 24 / .35); }
.postcard__stamp { position: absolute; right: 1.4rem; top: 1.4rem; width: 4rem; height: 4.6rem; display: grid; place-items: center; background: #f8f2e2;
  outline: 3px dotted #e4d6b6; outline-offset: -1px; box-shadow: 0 0 0 4px #f8f2e2, inset 0 0 0 1px #b4232e; }
.postcard__stamp-ico { width: 2.4rem; height: 2.4rem; color: #b4232e; }
.postcard__mark { position: absolute; right: 4.4rem; top: 3.4rem; width: 5.6rem; height: 5.6rem; display: grid; place-items: center; border: 1.5px solid rgb(27 42 78 / .55); border-radius: 50%; transform: rotate(-14deg); color: rgb(27 42 78 / .75); font-size: .72rem; text-align: center; line-height: 1.2; }
.postcard__mark span { padding: .3rem; border-block: 1px solid rgb(27 42 78 / .4); }
.postcard__from { font-size: .9rem; color: #6b5d40; margin-top: 4.8rem; }
.postcard__title { font: 400 1.9rem/1.15 var(--font-d); color: #1b2a4e; }
.postcard__txt { font-style: italic; line-height: 2rem; background: repeating-linear-gradient(transparent 0 1.95rem, rgb(42 36 24 / .18) 1.95rem 2rem); }
.postcard__sign { justify-self: end; font-style: italic; color: #b4232e; }

@media (max-width: 860px) {
  .arcana-row { grid-template-columns: 1fr; max-width: 26rem; }
  .arcana { transform: none; }
  .salon__wall { grid-template-columns: 1fr 1fr; }
  .salon__item--0 { grid-row: auto; grid-column: span 2; }
  .postcard { grid-template-columns: 1fr; transform: none; }
  .postcard__pic { height: 12rem; }
  .postcard__back { border-left: 0; border-top: 1px dashed rgb(42 36 24 / .35); }
}
@media (max-width: 760px) {
  .hd { grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center; padding-inline: 1.25rem; }
  .hd .theme-btn { position: static; }
  .hd__brand { justify-self: start; }
  .hd__menu { display: inline-flex; gap: .5rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; cursor: pointer; position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; font: 400 2rem var(--font-d);
    background: radial-gradient(circle at 50% 30%, var(--glow), var(--bg) 70%); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .oracle { grid-template-columns: 1fr; justify-items: center; text-align: center; margin-inline: 1.25rem; }
  .oracle__card { width: 11rem; }
  .river { height: 26rem; }
  .river__q { top: 16%; }
}
