@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');

:root {
    --bg-color: #E7E2DB;
    --text-color: #231f20;
    --muted-color: #6e6459;
    --accent-color: #101010;
    --card-color: #fbf7f1;
    --line-color: #231f20;
    --border-color: rgba(35, 31, 32, 0.1);
    --logo-fade-height: 20vh;
}

html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', 'Space Grotesk', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    padding-top: 96px;
    font-size: 21px;
}

p {
    line-height: 1.4;
}

main a {
    color: inherit;
    text-decoration: underline;
    font-weight: 700;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    background: var(--accent-color);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    z-index: 999;
}

.skip-link:focus {
    left: 16px;
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

#logoMark {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 110px;
    height: auto;
    z-index: 30;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#logoMark.is-visible {
    opacity: 1;
}

#logoMark.is-hidden-while-hero {
    opacity: 0;
}

.top-fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--logo-fade-height) * 1.5);
    background: linear-gradient(
        180deg,
        var(--bg-color) 0%,
        var(--bg-color) 68%,
        rgba(241, 235, 227, 0) 100%
    );
    background-repeat: no-repeat;
    background-size: 100% calc(var(--nav-height, 96px) * 1.5);
    background-position: left 0 top 0;
    z-index: 2;
    pointer-events: none;
}

.top-fade::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--logo-fade-width, 220px);
    height: calc(var(--logo-fade-height) * 1.5);
    background: radial-gradient(
        150% 150% at left top,
        var(--bg-color) 0%,
        var(--bg-color) 50%,
        rgba(231, 226, 219, 0) 66%
    );
    pointer-events: none;
}

.site-nav {
    --nav-height: 96px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
    min-height: var(--nav-height);
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin-left: auto;
    font-size: 1.15em;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.7em;
    padding: 0.35rem 0.15rem 0.95rem;
    border-radius: 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: -6px;
    bottom: -2px;
    width: calc(100% + 12px);
    height: 9px;
    background-image: url('assets/menu.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.5s ease, opacity 0.5s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-color);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-nav.is-open .nav-toggle {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.hero {
    padding: 2rem clamp(1.5rem, 5vw, 4rem) 4rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.hero-logo {
    display: none;
    align-items: center;
    justify-content: center;
}

.hero-logo img {
    width: min(520px, 25vh);
    max-width: 620px;
    height: auto;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.5rem, 5vw, 2.5rem);
    max-width: 640px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    color: #000;
    line-height: 1.0;
}

.hero-subtitle {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 1.2rem;
    color: #000;
    line-height: 1.4;
}

.hero-subtitle span {
    display: block;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.0rem;
    margin: 1.7rem 0 1.2rem;
}

.hero-date {
    font-size: clamp(2rem, 6vw, 2.4rem);
    font-weight: 500;
    color: #000;
    font-family: 'Rubik', 'Space Grotesk', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-place {
    font-size: clamp(1.8rem, 5.5vw, 2.2rem);
    font-weight: 500;
    color: #000;
    font-family: 'Rubik', 'Space Grotesk', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 0 !important;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 1rem 7.8rem;
    min-width: 230px;
    font-family: 'Rubik', 'Space Grotesk', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 1.05rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.btn.ghost {
    border-color: var(--border-color);
    color: var(--text-color);
    background: transparent;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.content-block {
    margin-bottom: 5rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block.left {
    text-align: left;
    padding-right: 40%;
}

.content-block.right {
    text-align: right;
    padding-left: 40%;
}

.content {
    padding: clamp(2rem, 3vw, 3rem);
    border-radius: 32px;
    position: relative;
}

.content p + p {
    margin-top: 1rem;
}

.content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-heading {
    margin-bottom: 1.5rem;
}

@media (min-width: 990px) {
    .content-block.right .section-heading {
        text-align: right;
    }
}

.content-block.left .section-heading {
    text-align: left;
}

#cta {
    width: 100%;
    margin: 0;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: #EEEBE4;
}

#cta .content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 2.5rem);
    background: transparent;
    border-radius: 0;
}

#cta .section-heading {
    text-align: left;
    margin-bottom: 1rem;
}

#cta .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

#cta input,
#cta .cta-note {
    font-size: 0.98rem;
    color: #36302a;
}

#cta .cta-checkbox {
    margin: 1rem 0 0.75rem;
    line-height: 1.4;
}

#cta .cta-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 0.35rem;
    appearance: none;
    border: 1px solid #2f2923;
    border-radius: 4px;
    background: #fff;
    display: inline-grid;
    place-content: center;
}

#cta .cta-checkbox input:checked {
    background: #231f20;
    border-color: #231f20;
}

#cta .cta-checkbox input:checked::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}

#cta .cta-checkbox input:focus-visible {
    outline: 2px solid #231f20;
    outline-offset: 2px;
}

#cta .cta-more-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-left: 0.25rem;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

#cta .cta-more {
    display: none;
}

#cta .cta-more.is-open {
    display: inline;
}

#cta .form-actions {
    justify-content: center;
}

#cta .form-actions .btn.primary {
    padding: 1rem 7.8rem;
    min-width: 230px;
    font-weight: 500;
}

#cta .form-status {
    text-align: center;
}

.section-heading.align-right {
    text-align: right;
}

blockquote {
    margin: 2.5rem 0 2rem;
    padding: 0;
    border: none;
    background: none;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.35;
    font-weight: 500;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--muted-color);
    font-style: italic;
    font-weight: 400;
}

blockquote cite::before {
    content: "— ";
}

.invitation-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.video-frame {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
}

.topic-grid {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    margin-top: 1.25rem;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem 2rem;
    margin-top: 2rem;
}

.info-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .info-list {
        grid-template-columns: 1fr;
    }
}

.card-plain {
    background: transparent;
    border: 1px solid #d1caca;
    border-radius: 5px;
    padding: 1.5rem;
    box-shadow: none;
    text-align: left;
}

.topic-card {
    width: 50%;
    border: none;
}

.topic-card h3,
.info-card h3 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.1;
}

.topic-card p,
.info-card p {
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
}

.topic-card:nth-child(even) {
    align-self: flex-end;
    text-align: right;
}

.topic-card:nth-child(even) h3,
.topic-card:nth-child(even) p {
    text-align: right;
}

.info-list article {
    background: transparent;
    border-radius: 5px;
    padding: 1.5rem;
    box-shadow: none;
    text-align: left;
    border: 1px solid #d1caca;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.accordion-item {
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.accordion-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.35rem 0;
    text-align: left;
    font-family: 'Rubik', 'Space Grotesk', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    color: #bdb9b4;
}

.accordion-item.is-open .accordion-trigger {
    color: var(--text-color);
}

.accordion-icon {
    display: none;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.accordion-item.is-open .accordion-icon {
    transform: rotate(225deg);
}

.accordion-panel {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.accordion-item.is-open .accordion-panel {
    padding-top: 0.35rem;
    padding-bottom: 0.75rem;
    max-height: 600px;
    opacity: 1;
}

.accordion-panel p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.about-photo {
    margin-top: 2em;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.about-photo img {
    display: block;
    width: 100%;
    height: auto;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    gap: 0.35rem;
    font-size: 0.95rem;
}

.form-grid .full {
    grid-column: 1 / -1;
}

input,
textarea {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.9rem;
}

.checkbox input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.3rem;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.form-status {
    margin-top: 1.5rem;
    min-height: 1.5rem;
    font-weight: 600;
}

.form-status.success {
    color: #0a7a3b;
}

.form-status.error {
    color: #a11f1f;
}

#alef {
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0px;
    position: relative;
    z-index: 1;
}

#alefCanvas {
    width: min(1200px, 90vw);
    height: clamp(360px, 70vh, 900px);
    pointer-events: none;
}

@media (max-width: 640px) {
    #alef {
        min-height: 50vh;
    }

    #alefCanvas {
        height: 50vh;
    }
}

.site-footer {
    padding: 3rem clamp(1.5rem, 4vw, 3rem) 4rem;
    color: var(--text-color);
    font-size: 1rem;
    background: #DBD6CC;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 3vw, 3rem);
    align-items: start;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.footer-column p {
    margin: 0.35rem 0;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    text-decoration: underline;
}

@media (min-width: 1100px) {
    #top.hero {
        display: grid;
        grid-template-columns: minmax(380px, 0.9fr) minmax(480px, 1.1fr);
        column-gap: 25vw;
        align-items: center;
        padding: 3rem clamp(2rem, 5vw, 4rem) 4.5rem;
    }

    #top.content-block {
        padding-left: clamp(2rem, 5vw, 4rem);
        padding-right: clamp(2rem, 5vw, 4rem);
    }

    #top .hero-logo {
        display: flex;
    }

    #top .hero-inner {
        grid-column: 2;
        justify-self: end;
        align-items: flex-start;
        text-align: left;
        max-width: 720px;
        min-width: 560px;
        margin-right: 2em;
    }

    #top .hero-meta {
        align-items: flex-start;
    }

    #top .hero-actions {
        justify-content: flex-start;
        width: 100%;
    }

    #top .hero-subtitle {
        font-size: 1.5rem;
    }

}

/* Zmniejsz lewy blok z logo na średnich szerokościach, by linia nie wchodziła w tekst */
@media (min-width: 1100px) and (max-width: 1400px) {
    #top.hero {
        grid-template-columns: minmax(320px, 0.75fr) minmax(540px, 1.25fr);
        column-gap: 25vw;
    }

    #top .hero-logo {
        max-width: 420px;
    }

    #top .hero-logo img {
        width: min(420px, 22vh);
    }
}

@media (max-width: 1100px) {
    .content-block.left,
    .content-block.right {
        padding-left: 20px;
        padding-right: 20px;
        text-align: left;
    }

    .content-block.right .content {
        margin-left: auto;
    }
}

@media (max-width: 1050px) {
    blockquote {
        margin: 1.5rem 0 1.25rem;
        font-size: clamp(1.2rem, 4vw, 1.6rem);
        line-height: 1.3;
    }

    blockquote cite {
        font-size: 0.95rem;
    }

    #top .hero-inner {
        gap: 1.25rem;
    }

    #top .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.3;
        gap: 0.15rem;
    }

    #top .hero-meta {
        margin: 1.2rem 0 0.9rem;
    }

    #top .hero-date {
        font-size: clamp(1.6rem, 5vw, 2.05rem);
    }

    #top .hero-place {
        font-size: clamp(1.4rem, 4.5vw, 1.9rem);
    }

    #top .hero-actions {
        margin-top: 1.2rem;
        gap: 0.75rem;
    }

    body.is-menu-open {
        overflow: hidden;
        height: 100vh;
        touch-action: none;
    }

    body {
        font-size: 18px;
    }    

    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: var(--nav-height, 96px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: var(--bg-color);
        padding: 1rem clamp(1.5rem, 5vw, 3rem);
        border-bottom: 1px solid var(--border-color);
        height: calc(100vh - var(--nav-height, 96px));
        max-height: calc(100vh - var(--nav-height, 96px));
        overflow-y: auto;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
    }

    @media (max-width: 990px) and (max-height: 520px) {
        .nav-links {
            justify-content: flex-start;
            padding-top: 1.5rem;
        }
    }

    .nav-links a {
        font-size: 2.0rem;
        padding: 0.6rem 0.15rem 1rem;
    }

    .site-nav.is-open .nav-links {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .content-block.left .content {
        margin-right: 10vw;
    }

    .content-block.right .content {
        margin-left: 10vw;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .content {
        padding: 1.75rem;
    }

    .topic-card,
    .info-list article {
        padding: 1.25rem;
    }

    #o-czym blockquote {
        text-align: right;
    }

    .topic-card {
        width: 100%;
        align-self: stretch;
        text-align: left;
    }

    .topic-card:nth-child(even) h3,
    .topic-card:nth-child(even) p {
        text-align: left;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .checkbox {
        flex-direction: column;
    }

    #top .hero-actions .btn {
        width: 50vw;
        max-width: 50vw;
        padding: 1rem 2.5rem;
        white-space: nowrap;
    }

    #logoMark {
        width: 90px;
        top: 12px;
        left: 12px;
    }

    .content-block {
        margin-bottom: 3rem;
    }

}

h1,
h2,
h3 {
    font-family: 'Rubik', 'Space Grotesk', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
}

@media (min-width: 2560px) {
    body {
        font-size: 20px;
    }

    .container {
        max-width: 2000px;
    }
}

#newsletter {
    text-align: center;
    margin-top: 3.5rem;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: #EEEBE4;
    width: 100%;
}

#newsletter .content {
    max-width: 50%;
    margin: 0 auto;
}

#newsletter .hero-actions {
    justify-content: center;
}

#newsletter .hero-actions .btn {
    display: inline-flex;
    justify-content: center;
    text-align: center;
}

@media (max-width: 768px) {
    #newsletter .content {
        max-width: 100%;
    }
}

