:root {
    --soft-olive: #e6eadb;
    --warm-white: #faf9f5;
    --surface-line: #d7ddcd;
    --corner: .7rem;
}

.hero .button-outline { background: #f8f7f5de; }
.hero .button-outline:hover { background: var(--soft-olive); }
.navigation li a { position: relative; }
.navigation li a::after {
    position: absolute;
    inset: auto .08rem .14rem;
    height: 1px;
    background: currentColor;
    content: '';
    transform: scaleX(0);
    transform-origin: left center;
}
.navigation li a:hover::after,
.navigation li a:focus-visible::after,
.navigation li a[aria-current]::after { transform: scaleX(1); }
@media (min-width: 60.001em) {
    .navigation li a:hover, .navigation li a[aria-current] { text-decoration: none; }
}
.button:not(.button-outline) {
    background-image: linear-gradient(110deg, #354e2e, #47633a 60%, #354e2e);
    background-size: 190% 100%;
    background-position: 0 50%;
}
.button:not(.button-outline):hover, .button:not(.button-outline):focus-visible {
    background-position: 100% 50%;
}
.pillar {
    position: relative;
    border: 1px solid transparent;
    border-radius: .24rem;
}
.pillar:hover { background: #eef0e7; border-color: #e0e5d7; }
.pillar svg { stroke-width: 1.15; }
.project-card {
    position: relative;
    border-color: #dce0d4;
    border-radius: .53rem;
}
.project-card:hover, .project-card:focus-within {
    border-color: #a4af91;
    box-shadow: 0 .45rem 1.25rem #27351c14;
}
.card-copy .arrow-link::after { position: absolute; inset: 0; content: ''; }
.card-copy :is(h2,h3,p) { position: relative; z-index: 1; }
.feature-image, .more-news img { border-radius: .21rem; }
.feature-image { overflow: hidden; }
.more-news a:hover .news-item-title { color: var(--green-dark); }
.event-row { border-radius: .25rem; }
.event-row:hover { background: var(--paper); }
.event-row:hover .event-date { background: var(--soft-olive); }
.event-row:hover .event-arrow { margin-right: .18rem; }
.event-row .event-copy { position: static; }
.archive-note { margin-bottom: .28rem; color: #48533e; font-weight: 600; font-size: .73rem; }
.contact-banner .editorial-photo { width: 100%; object-position: center 57%; }
.contact-banner::before {
    background: linear-gradient(90deg, #232e1eea 4%, #232e1ecd max(48%, 34rem), #232e1e55 76%, #232e1e14 99%);
}
.contact-layout { min-height: 10.1rem; }
.contact-layout .social-links { display: inline-flex; vertical-align: middle; margin: 0 0 0 .35rem; }
.social-links { display: flex; flex-wrap: wrap; gap: .38rem; margin-top: .46rem; padding: 0; list-style: none; }
.social-links a {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: var(--green-dark);
    background: #edf0e7;
    border: 1px solid #b9c4ad;
    border-radius: 50%;
}
.social-links a svg { width: 1rem; height: 1rem; }
.social-links a:hover { color: #fff; background: var(--green-dark); border-color: var(--green-dark); }
.contact-banner .social-links a { color: #fff; background: #293922b3; border-color: #e4ebd7; }
.contact-banner .social-links a:hover { color: var(--green-dark); background: #fff; }
.site-footer { border-top: 1px solid var(--surface-line); }

.editorial-interior, .story { padding-top: 1.4rem; }
.interior-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1.55rem;
    background: linear-gradient(122deg, #f6f7ef, #f4f3ea 62%, #e8ebdf);
    border: 1px solid var(--surface-line);
    border-radius: var(--corner);
}
.interior-head.has-art { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: stretch; }
.interior-head-copy { display: grid; align-content: center; gap: .7rem; min-width: 0; padding: 1.4rem 1.7rem 1.6rem; }
.interior-head h1 { margin: 0; font-size: clamp(2.1rem, 3.75vw, 3.75rem); line-height: 1.03; text-wrap: balance; }
.interior-head p { max-width: 35rem; font-size: clamp(.95rem, 1.57vw, 1.18rem); line-height: 1.45; color: #384033; overflow-wrap: anywhere; }
.interior-art { width: 100%; height: 100%; min-height: 13.2rem; object-fit: cover; border-radius: 0 var(--corner) var(--corner) 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .18rem .46rem; margin: 0; padding: 0; list-style: none; }
.crumbs li { overflow-wrap: anywhere; color: #475541; font-size: .73rem; }
.crumbs li + li::before { content: '›'; padding-right: .46rem; color: #65735d; }
.crumbs a { color: var(--green-dark); }
.crumbs [aria-current] { font-weight: 600; }
.editorial-section { margin-block: 1.8rem; }
.editorial-section h2, .note-card h2, .split-story h2, .inline-invitation h2 { margin-bottom: .48rem; }
.editorial-section .pillars { gap: .48rem; margin-top: .75rem; }
.editorial-section .pillar { border: 1px solid var(--surface-line); border-radius: .45rem; }
.editorial-section .pillar p { font-size: .88rem; line-height: 1.5; }
.split-story, .split-notes, .contact-routes, .story-layout {
    display: grid;
    gap: .85rem;
    align-items: start;
}
.split-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split-story > div { padding: .5rem 1rem .5rem .15rem; }
.split-photo { width: 100%; aspect-ratio: 1.8; object-fit: cover; border-radius: var(--corner); }
.split-story p, .note-card p, .event-panel > p { margin: .45rem 0 .7rem; font-size: .92rem; line-height: 1.55; }
.split-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.note-card, .event-panel, .story-aside {
    min-width: 0;
    padding: 1.05rem 1.15rem;
    background: var(--warm-white);
    border: 1px solid var(--surface-line);
    border-radius: var(--corner);
    overflow-wrap: anywhere;
}
.contact-routes { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.contact-routes h2, .note-card h2, .story-aside h2 { font-size: 1.41rem; }
.note-icon { width: 1.58rem; height: 1.58rem; margin-bottom: .4rem; color: var(--green-dark); }
.note-card .arrow-link { font-size: .83rem; }
.contact-detail { font-size: .93rem; font-weight: 700; }
.contact-info { margin-top: 1rem; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.contact-info details { border-top: 1px solid var(--surface-line); }
.contact-info summary { padding: .75rem 0; cursor: pointer; color: var(--green-dark); font-size: .94rem; font-weight: 700; }
.contact-info summary:hover { text-decoration: underline; }
.contact-info details p { margin: 0 0 .8rem; }
.contact-social .social-links { margin-block: .58rem; }
.document-register { display: grid; gap: .3rem; padding: .42rem 0 .6rem; font-size: .96rem; }
.document-register > div { gap: .55rem; }
.document-list { display: grid; gap: .16rem; padding-left: 1.13rem; }
.document-list a { padding-block: .28rem; }
.document-contact { margin-top: .85rem; }
.foundation-timeline { display: grid; gap: .62rem; margin: .6rem 0; padding: 0; list-style: none; }
.foundation-timeline li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: baseline; font-size: .88rem; }
.foundation-timeline strong { color: var(--green-dark); font: 700 1.3rem/1 var(--heading); }
.inline-invitation {
    display: grid;
    min-height: 8.3rem;
    align-items: center;
    isolation: isolate;
    position: relative;
    margin-top: 1.75rem;
    overflow: hidden;
    color: #fff;
    background: #2e3b27;
    border-radius: var(--corner);
}
.inline-invitation::before { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(90deg, #202c1ced, #253222d9 62%, #25322270); }
.inline-invitation-copy { padding: .9rem 1.15rem; }
.inline-invitation h2 { color: #fff; }
.inline-invitation p { margin-bottom: .64rem; font-size: .9rem; }
.editorial-grid .card-copy { padding: .76rem .8rem .58rem; }
.editorial-grid .card-copy :is(h2,h3) { font-size: 1.38rem; }
.editorial-grid .card-copy p { margin-bottom: .55rem; font-size: .87rem; line-height: 1.42; }
.editorial-grid .card-copy .arrow-link { font-size: .82rem; }
.event-panel { max-width: 52rem; }
.event-panel .full-event-list { max-width: none; }
.event-panel .full-event-list .event-date { width: 3.95rem; }
.post-detail .interior-head { width: min(94vw, var(--shell)); }
.story-cover { position: relative; margin-bottom: 1.05rem; }
.story-cover .story-image { width: 100%; max-height: 19rem; object-fit: cover; border-radius: var(--corner); }
.story-cover figcaption { margin-top: .25rem; color: #4a5744; font-size: .73rem; }
.story-layout { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.story-layout .entry-content { max-width: 46rem; }
.story-layout .entry-content section p { margin-top: .55rem; }
.story-aside { align-self: start; }
.story-aside .arrow-link { font-size: .82rem; }
.story-fact { display: flex; gap: .36rem; align-items: center; margin-bottom: .4rem; font-size: .8rem; }
.story-fact svg { width: .9rem; height: .9rem; color: var(--green); }
.story-aside .story-fact + h2 { margin-top: .7rem; }
.page-authored { max-width: 50rem; margin-block: 1rem; }
.copy-control { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .5rem; }
.copy-control:has(button:not([hidden])) { margin-top: .63rem; }
.copy-control .copy-status { color: var(--green-dark); font-size: .78rem; }
.copy-control input { width: 100%; min-width: 0; padding: .26rem .4rem; }
.entry-cover img { width: 100%; }
#tresc:focus { outline: none; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .navigation li a::after { transition: transform .24s ease; }
    .button:not(.button-outline) { transition: background-position .65s ease, box-shadow .22s ease, transform .22s ease, border-color .2s ease; }
    .button:hover { transform: translateY(-2px); }
    .project-card, .pillar, .social-links a, .event-row, .event-date { transition: transform .27s ease, background-color .27s ease, border-color .27s ease, box-shadow .27s ease, color .27s ease; }
    .project-card:hover { transform: translateY(-.21rem); }
    .pillar:hover { transform: translateY(-.15rem); }
    .social-links a:hover { transform: translateY(-.15rem); }
    .event-arrow { transition: margin-right .2s ease; }
    .hero .banner-photo, .contact-banner .banner-photo { transition: translate .58s cubic-bezier(.15,.55,.3,1); }
    .hero .banner-photo { translate: var(--photo-x, 0) var(--photo-y, 0); }
    
    .hero .editorial-photo { scale: 1.035; }
    .is-revealing { animation: wyt-enter .56s cubic-bezier(.24,.56,.27,1) backwards; }
    @keyframes wyt-enter {
        from { transform: translateY(.75rem); }
        to { transform: none; }
    }

}

@media (max-width: 60em) {
    .contact-banner::before { background: linear-gradient(90deg, #232e1eea 4%, #232e1ec2 100%); }
    .social-links a { width: 2.6rem; height: 2.6rem; }
    .contact-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-routes > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .note-card { padding: .95rem; }
    .interior-art { min-height: 11rem; }
}
@media (max-width: 40em) {
    .interior-head.has-art, .split-story, .split-notes, .contact-info, .story-layout { grid-template-columns: minmax(0, 1fr); }
    .interior-head { gap: .18rem; }
    .interior-head-copy { padding: .95rem .85rem 1.08rem; }
    .interior-art { min-height: 0; height: auto; aspect-ratio: 2.2; border-radius: 0 0 var(--corner) var(--corner); }
    .inline-invitation::before { background: #202c1cd6; }
    .editorial-section .pillar { padding: .68rem; }
    .editorial-section .pillar p { font-size: .82rem; }
    .story-cover .story-image { aspect-ratio: 2; }
}
@media (max-width: 28em) {
    .contact-routes { grid-template-columns: minmax(0, 1fr); }
    .contact-layout .social-links { margin-top: .43rem; margin-left: .1rem; }
    .contact-layout > div { padding-block: .19rem; }
    .story-layout, .split-notes, .contact-routes { gap: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-copy, .is-revealing, .hero-actions .button { animation: none; }
}

.next-event-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    margin-top: .53rem;
    padding: .67rem .6rem;
    color: var(--green-dark);
    background: linear-gradient(110deg, #eff1e7, #f8f8f3);
    border: 1px solid var(--surface-line);
    border-radius: .4rem;
    text-decoration: none;
}
.next-event-card svg:first-child { width: .9rem; height: .9rem; }
.next-event-card svg:last-child { width: .75rem; height: .75rem; }
.next-event-card small { display: block; margin-top: .08rem; color: #485341; font-size: .73rem; }
.next-event-card:hover { border-color: #9bab88; background: #e8edde; }
.next-event-card:hover strong { text-decoration: underline; }

.social-with-labels a {
    display: flex;
    width: auto;
    gap: .38rem;
    padding-inline: .62rem;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
}
@media (max-width: 60em) {
    .editorial-interior .button, .story .button { min-height: 2.75rem; }
}

/* Fundacja */
.site-header { border-bottom: 1px solid #e6e8df; }
.header-layout .brand { min-width: 0; }
.hero { background: #f2f2e9; }
.hero::before { content: none; }
.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
    gap: clamp(1.05rem, 3.8vw, 4.25rem);
    min-height: 0;
    padding: clamp(1.3rem, 3.7vw, 3.65rem) 0;
}
.hero .hero-copy { width: auto; }
.hero h1 {
    max-width: 16ch;
    margin-bottom: .95rem;
    color: #233020;
    font-size: clamp(2.4rem, 5.1vw, 4.6rem);
    line-height: .99;
    letter-spacing: -.04em;
    text-wrap: balance;
}
.hero h1::before { width: 2.25rem; height: 2px; margin-bottom: 1.1rem; }
.hero p { max-width: 37ch; font-size: clamp(.98rem, 1.35vw, 1.2rem); line-height: 1.53; }
.hero-actions { gap: .55rem; margin-top: 1.08rem; }
.hero-figure {
    position: relative;
    min-height: 19rem;
    overflow: hidden;
    background: #33452c;
    border-radius: .5rem;
    isolation: isolate;
}
.hero .hero-figure .banner-photo {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 50% 49%;
}
.hero-figure figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .2rem .75rem;
    padding: .26rem .65rem;
    color: #fff;
    background: #202c1de8;
    font-size: .78rem;
    line-height: 1.33;
}
.hero-figure figcaption a { display: inline-flex; align-items: center; min-height: 1.55rem; color: inherit; }

.about { padding-block: clamp(1.7rem, 3.7vw, 3.65rem); }
.about-layout { grid-template-columns: minmax(13.5rem, 1.02fr) minmax(0, 3.5fr); align-items: start; gap: clamp(1rem, 2.65vw, 2.75rem); }
.about-copy { padding: .12rem 0 0; }
.about-copy p { margin-bottom: .45rem; font-size: .93rem; line-height: 1.54; }
.about h2, .section-heading h2 { font-size: clamp(1.68rem, 3vw, 2.55rem); line-height: 1.08; }
.pillars { gap: .55rem; }
.pillar { min-height: 0; padding: 1rem .88rem; background: #f4f5ee; border-color: #e5e8dc; }
.pillar h3 { font-size: 1.19rem; }
.pillar p { font-size: .86rem; line-height: 1.45; }
.pillar svg { width: 2.15rem; height: 2.15rem; margin-bottom: .5rem; }
.projects { padding-block: clamp(1.65rem, 3.5vw, 3.3rem); background: #f6f6f1; }
.projects .section-heading { padding-inline: 0; }
.project-grid { gap: clamp(.75rem, 1.55vw, 1.4rem); }
.project-card { background: #fff; border-color: #e1e4d8; border-radius: .44rem; }
.card-photo { aspect-ratio: 1.82; }
.card-copy { padding: .86rem .94rem .7rem; }
.card-copy :is(h2,h3), .editorial-grid .card-copy :is(h2,h3) { font-size: clamp(1.22rem, 2vw, 1.56rem); line-height: 1.13; }
.card-copy p, .editorial-grid .card-copy p { margin-bottom: .65rem; font-size: .91rem; line-height: 1.51; }
.card-copy .arrow-link, .editorial-grid .card-copy .arrow-link { font-size: .9rem; }
.section-heading { gap: .35rem .65rem; margin-bottom: .95rem; }
.section-link, .events .section-link { font-size: .85rem; }
.updates { padding-block: clamp(1.6rem, 3.5vw, 3.3rem); }
.updates .shell { width: min(93%, var(--shell)); }
.updates-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.05rem, 2.7vw, 2.6rem); }
.news { padding-right: clamp(1.05rem, 2.25vw, 2.35rem); }
.news-layout.has-more { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
.feature-news.has-image { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
.feature-image { aspect-ratio: 1.65; }
.feature-news h3 { font-size: 1.24rem; line-height: 1.14; }
.feature-news p { font-size: .91rem; line-height: 1.43; }
.feature-news time, .more-news time { font-size: .75rem; }
.more-news { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem; padding: .67rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
.more-news li + li { margin: 0; padding: 0; border: 0; }
.more-news a.has-image { grid-template-columns: minmax(2.8rem, 1.1fr) minmax(0, 2fr); }
.more-news img { min-height: 2.25rem; }
.news-item-title { font-size: .92rem; line-height: 1.19; }
.event-row { gap: .65rem; }
.event-date { width: 3.45rem; min-height: 3.65rem; }
.event-copy :is(h2,h3) { font-size: 1.13rem; }
.event-copy p { font-size: .82rem; line-height: 1.33; }
.archive-note { margin-bottom: .35rem; font-size: .84rem; }
.next-event-card { padding: .75rem; }
.next-event-card small { font-size: .82rem; }
.contact-layout { min-height: 12.7rem; padding: 1.4rem .1rem; }
.contact-banner h2 { font-size: clamp(1.8rem, 3.3vw, 2.65rem); }
.contact-banner p { font-size: .95rem; line-height: 1.5; }
.contact-banner::before { background: linear-gradient(90deg, #202c1dec 8%, #202c1dd9 max(57%, 39rem), #202c1d47 100%); }
.contact-banner .button { min-height: 2.65rem; }
.contact-layout .social-links a, .site-footer .social-links a { width: 2.65rem; height: 2.65rem; }
.site-footer { padding-block: 1.75rem; }
.footer-layout { grid-template-columns: .87fr 1.17fr .85fr 1fr; }
.footer-layout > div, .footer-layout > div:nth-child(2) { padding-inline: clamp(.6rem, 1.7vw, 1.5rem) .5rem; }
.footer-layout h2 { font-size: 1.02rem; }
.footer-layout p, .registration { font-size: .87rem; }
.footer-links a { display: inline-flex; min-height: 1.65rem; align-items: center; }
.interior-head-copy { padding: clamp(1rem, 3.2vw, 3rem); }
.interior-head.has-art { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.interior-art { min-height: clamp(12rem, 19vw, 18rem); }
.crumbs li { font-size: .85rem; }
.crumbs a { display: inline-block; line-height: 1.65; }
.editorial-interior .interior-head { margin-bottom: clamp(1.3rem, 3.4vw, 2.75rem); }
.inline-invitation::before { content: none; }
.inline-invitation-copy { padding: 1.25rem; }
.event-panel .arrow-link + .arrow-link { margin-left: .95rem; }
.event-panel .event-row a { padding-block: .17em; }
.photo-credits { margin-top: .9rem; }
.photo-credits summary { min-height: 1.72rem; color: var(--green-dark); font-weight: 700; cursor: pointer; }
.photo-credits a { overflow-wrap: anywhere; }
.photo-credits .document-list { gap: .28rem; }
.page-recovery { display: flex; flex-wrap: wrap; gap: .5rem; }
.story-cover figcaption { font-size: .84rem; }
.story-layout { gap: clamp(.85rem, 2.2vw, 2rem); }
.story-layout .entry-content { max-width: 64ch; }

@media (min-width: 60.001em) {
    .hero-layout { min-height: clamp(22rem, 36vw, 32rem); }
}
@media (max-width: 67em) {
    .news { padding-right: 0; border-right: 0; }
    .updates-layout { grid-template-columns: minmax(0, 1fr); }
    .events { padding-top: 1rem; border-top: 1px solid var(--line); }
    .events .event-list { max-width: 52rem; }
    .feature-news.has-image { grid-template-columns: minmax(0, .57fr) minmax(0, 1fr); }
}
@media (max-width: 60em) {
    .hero h1 { letter-spacing: -.035em; }
    .navigation li a { padding-inline: .5rem; font-size: .98rem; }
    .about-layout { grid-template-columns: minmax(0, 1fr); }
    .about-copy p { max-width: 56ch; }
    .footer-layout > div, .footer-layout > div:nth-child(2) { padding-inline: 0; }
}
@media (max-width: 45em) {
    .hero { display: block; }
    .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 1.05rem; padding-block: 1.15rem; }
    .hero h1 { max-width: 17ch; font-size: clamp(2.15rem, 8.6vw, 3.75rem); }
    .hero-figure { min-height: 0; aspect-ratio: 1.84; }
    .hero-figure figcaption { font-size: .72rem; }
    .hero-actions { margin-top: .8rem; }
    .hero .button { font-size: .84rem; }
    .hero h1::before { margin-bottom: .8rem; }
    .feature-news.has-image { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
}
@media (max-width: 40em) {
    .interior-head.has-art { grid-template-columns: minmax(0, 1fr); }
    .interior-art { min-height: 0; }
    .contact-banner::before { background: #202c1de2; }
    .about, .projects, .updates { padding-block: 1.35rem; }
    .crumbs li { font-size: .79rem; }
    .contact-layout { min-height: 10.5rem; }
}
@media (max-width: 28em) {
    .feature-news.has-image, .more-news { grid-template-columns: minmax(0, 1fr); }
    .more-news a.has-image { grid-template-columns: 4.2rem minmax(0, 1fr); }
    .more-news li:not(:first-child) { padding-top: .65rem; border-top: 1px solid var(--line); }
    .footer-brand { padding-bottom: .5rem; }
    .site-footer .contact-list a { min-height: 2rem; }
    .event-panel .arrow-link + .arrow-link { margin-left: 0; }
}
@media (forced-colors: active) {
    :focus-visible { outline: 2px solid Highlight; box-shadow: none; }
    .button, .hero-figure figcaption, .social-links a { border: 1px solid ButtonText; }
}
