@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/fraunces-normal-latin-ext.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: 300 700; font-display: swap;
  src: url(/fonts/fraunces-normal-latin.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: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url(/fonts/instrument-sans-normal-latin-ext.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: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url(/fonts/instrument-sans-normal-latin.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 {
  --teal: #007a74;
  --teal-dark: #005b57;
  --teal-soft: #e6f3f2;
  --amber: #f5a31a;
  --text: #1c2625;
  --muted: #4d5b5a;
  --bg: #fbfaf7;
  --card: #ffffff;
  --line: #d9e3e2;
  --radius: 1rem;
  --width: 72rem;
  --serif: Fraunces, Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-underline-offset: .18em; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { max-inline-size: var(--width); margin-inline: auto; padding-inline: 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text); font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; }
.brand strong { display: block; font-weight: 700; letter-spacing: .02em; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .5rem .8rem; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 500; }
.nav a:hover { background: var(--teal-soft); }
.nav a[aria-current="page"] { background: var(--teal); color: #fff; }

/* page head */
.pagehead { background: var(--teal-soft); padding-block: 2.5rem 2rem; border-bottom: 1px solid var(--line); }
.pagehead h1 { margin-bottom: .3em; max-inline-size: 22ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-inline-size: 48rem; margin: 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

/* hero */
.hero { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff; padding-block: 4rem 4.5rem; }
.hero h1 { max-inline-size: 18ch; }
.hero p { font-size: 1.25rem; max-inline-size: 40rem; opacity: .95; }
.hero__kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 600; color: var(--amber); margin-bottom: 1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* sections */
.section { padding-block: 3rem; }
.section--alt { background: #fff; border-block: 1px solid var(--line); }
.prose { max-inline-size: 46rem; }
.prose ul, .list { padding-left: 0; list-style: none; margin: 0 0 1.25em; }
.prose li, .list li { position: relative; padding-left: 1.6rem; margin-bottom: .55em; }
.prose li::before, .list li::before { content: "→"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: .75rem; font-weight: 600; }
.note { background: #fff7e6; border-left: 4px solid var(--amber); padding: 1rem 1.25rem; border-radius: .5rem; max-inline-size: 46rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; background: var(--teal-soft); color: var(--teal-dark); border-radius: 999px; padding: .15rem .7rem; margin-bottom: .6rem; }

/* buttons */
.btn { display: inline-block; padding: .8rem 1.5rem; border-radius: 999px; background: var(--amber); color: #1c1400; font-weight: 600; text-decoration: none; border: 2px solid var(--amber); }
.btn:hover { background: #ffb940; border-color: #ffb940; color: #1c1400; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.15); color: inherit; border-color: currentColor; }
.section .btn--ghost, .pagehead .btn--ghost { color: var(--teal-dark); }
.section .btn--ghost:hover { background: var(--teal-soft); }

/* workshop schedule */
.event { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.event h3 { margin-bottom: .3em; }
.event dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: .75rem 0 0; font-size: .98rem; }
.event dt { font-weight: 600; color: var(--muted); }
.event dd { margin: 0; }

/* contact */
.contact { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.contact h2 { font-size: 1.4rem; }
.contact address { font-style: normal; }

/* footer */
.foot { background: #12302e; color: #dcebea; margin-top: 3rem; }
.foot a { color: #fff; }
.cta { background: var(--teal); }
.cta__in { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; padding-block: 1.5rem; color: #fff; }
.foot__in { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); padding-block: 2.5rem; }
.foot__h { font-size: 1.1rem; color: #fff; }
.foot__nav { list-style: none; margin: 0; padding: 0; }
.foot__nav li { margin-bottom: .4rem; }
.foot p { margin-bottom: .5em; }

@media (max-width: 40rem) {
  .nav { gap: 0; }
  .nav a { padding: .45rem .6rem; font-size: .95rem; }
  .event dl { grid-template-columns: 1fr; }
  .event dt { margin-top: .4rem; }
  .hero { padding-block: 2.5rem 3rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* logo height = the two text lines beside it */
.brand img { height: 2.2em; width: auto; }

/* ---------- Mobile menu: floating frosted drawer (as on psyche.wroclaw.pl) ---------- */
.menu-button, .drawer, .drawer-overlay { display: none; }

@media (max-width: 48rem) {
  .nav-desktop { display: none; }
  .top__in { flex-wrap: nowrap; }

  .menu-button {
    display: block; appearance: none; border: 0; background: transparent; cursor: pointer;
    inline-size: 2.75rem; aspect-ratio: 1; border-radius: .75rem; color: var(--text);
    font-size: 1.75rem; line-height: 1;
  }
  .menu-button::before { content: "\2630"; }
  .menu-button:hover { background: var(--teal-soft); }

  .drawer-overlay {
    display: block; position: fixed; inset: 0; z-index: 40;
    background: rgb(20 24 27 / .28);
    opacity: 0; visibility: hidden;
    transition: opacity 250ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 250ms;
  }
  .drawer-overlay.open { opacity: 1; visibility: visible; backdrop-filter: blur(5px); transition: opacity 250ms cubic-bezier(.2,.8,.2,1), visibility 0s; }

  .drawer {
    --gap: 1.25rem;
    display: flex; flex-direction: column;
    position: fixed; z-index: 50; top: var(--gap); bottom: var(--gap); left: var(--gap);
    inline-size: min(400px, calc(100vw - 2 * var(--gap)));
    padding: .5rem; overflow-y: auto; overscroll-behavior: contain;
    color: #fff; background: rgb(18 48 46 / .78);
    border: 1px solid rgb(255 255 255 / .12); border-radius: 1.25rem;
    -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 24px 60px rgb(0 0 0 / .28);
    translate: calc(-100% - 2 * var(--gap)) 0; visibility: hidden;
    transition: translate 350ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 350ms;
  }
  .drawer.open { translate: 0 0; visibility: visible; transition: translate 350ms cubic-bezier(.2,.8,.2,1), visibility 0s; }

  .drawer__bar { display: flex; justify-content: flex-end; padding: .25rem; }
  .menu-close {
    appearance: none; border: 0; background: transparent; color: #fff; cursor: pointer;
    inline-size: 2.5rem; aspect-ratio: 1; border-radius: 50%; font-size: 2rem; line-height: 1;
  }
  .menu-close::before { content: "\00D7"; }
  .menu-close:hover { background: rgb(255 255 255 / .12); }

  .drawer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
  .drawer__list a {
    display: flex; align-items: center; min-block-size: 2.75rem; padding: .25rem 1rem;
    border-radius: 999px; color: #fff; text-decoration: none;
    font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .9375rem;
  }
  .drawer__list a:hover { background: rgb(255 255 255 / .08); }
  .drawer__list a[aria-current="page"] { background: rgb(255 255 255 / .2); }
  .drawer__call { margin: auto 0 .5rem; text-align: center; }
  .drawer__call { display: block; padding: .8rem 1rem; border-radius: 999px; background: var(--amber); color: #1c1400; font-weight: 600; text-decoration: none; }

  body.nav-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-overlay { transition: none; } }

/* two columns by default (2x2 with four cards), one column on phones */
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 40rem) { .grid--2 { grid-template-columns: 1fr; } }

/* contact form */
.lead-sm { color: var(--muted); max-inline-size: 40rem; }
.form { max-inline-size: 40rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.form label { font-weight: 600; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  font: inherit; color: inherit; inline-size: 100%; padding: .7rem .9rem;
  background: #fff; border: 1.5px solid #9db3b1; border-radius: .6rem;
}
.form input:not([type="checkbox"]):focus, .form select:focus, .form textarea:focus { border-color: var(--teal); outline: 3px solid rgb(0 122 116 / .25); outline-offset: 0; }
.form textarea { resize: vertical; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.field--check input { inline-size: 1.25rem; block-size: 1.25rem; margin-top: .2rem; accent-color: var(--teal); }
.field--check label { font-weight: 400; }
.form__note { font-size: .9rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* select: same height as the inputs, own dropdown arrow */
.form input:not([type="checkbox"]), .form select { block-size: 3rem; line-height: 1.4; }
.form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005b57' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem;
}

/* hide the Netlify badge */
#nl-badge-frame { display: none !important; }
