:root {
  --paper: #f7f4ed;
  --white: #fffdf9;
  --ink: #201c19;
  --dark: #241f1b;
  --muted: #5b5149;
  --line: #ddd3c5;
  --rust: #9e351f;
  --glow: #ffb58f;
  --focus: #23639d;
  --radius: 20px;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans); }
:where(h1, h2, h3, h4, p, figure, dd, dl) { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; width: 100%; object-fit: cover; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
:where(section, article, .payment)[id] { scroll-margin-top: 24px; }
.wrap { width: min(calc(100% - 80px), 1280px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; inset: 12px auto auto 12px; padding: 12px 18px; background: var(--white); transform: translateY(calc(-100% - 20px)); }
.skip-link:focus { transform: none; }

.masthead { display: flex; justify-content: space-between; align-items: center; min-height: 85px; gap: 12px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 9px; font-size: .95rem; font-weight: 850; letter-spacing: .07em; line-height: 1; text-decoration: none; }
.mark { width: 36px; height: 36px; border-radius: 8px; }
.masthead nav { display: flex; align-items: center; gap: clamp(12px, 2.6vw, 35px); font-size: .93rem; font-weight: 650; }
.masthead nav > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.masthead nav > a:not(.button):hover { text-decoration: underline; }
.masthead .language-link { color: var(--muted); }

h1, h2, h3, summary { font-weight: 750; }
h1, h2, h3 { overflow-wrap: anywhere; text-wrap: balance; }
h1 { font-size: clamp(3.1rem, 4.65vw, 4.3rem); line-height: 1.02; letter-spacing: -.057em; }
h2 { font-size: clamp(2.25rem, 4vw, 3.65rem); line-height: 1.05; letter-spacing: -.053em; }
h3, summary { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.2; letter-spacing: -.028em; }
.eyebrow { font-size: .76rem; letter-spacing: .13em; line-height: 1.35; font-weight: 760; text-transform: uppercase; }
.eyebrow span { margin-inline-end: .35em; color: var(--rust); }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: .65em; min-height: 44px; font-weight: 700; }
.button { min-height: 48px; padding: 11px 17px; border: 1px solid transparent; border-radius: 10px; text-align: center; text-decoration: none; font: 700 .94rem/1.2 var(--sans); cursor: pointer; transition: background-color .16s, color .16s; }
.compact { min-height: 44px; }
.primary { color: #fff; background: var(--rust); }
.primary:hover { background: #792814; }
.ink { color: #fff; background: var(--ink); }
.ink:hover { background: #493b31; }
.clear { color: var(--glow); border-color: currentColor; background: transparent; }
.clear:hover { color: var(--ink); background: var(--glow); border-color: var(--glow); }
.text-link:hover { text-decoration-thickness: 2px; }
.button span, .text-link span { flex: none; }

.hero, .featured-mural, .artist, .footer { --focus: #ffb58f; color: var(--paper); background: var(--dark); }
.hero { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); border-radius: 24px; overflow: clip; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: start; padding: clamp(30px, 4vw, 53px); }
.hero .eyebrow { margin-bottom: 22px; color: #e8d1bd; }
.hero .eyebrow span, .hero em { color: var(--glow); }
.hero em { font-style: normal; }
.intro { max-width: 43ch; margin-top: 23px; color: #e0d7ca; font-size: clamp(1rem, 1.35vw, 1.15rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 18px; margin-top: 24px; }
.hero .primary { color: var(--ink); background: var(--glow); }
.hero .primary:hover { background: #ffd1b9; }
.hero .primary:focus-visible { outline-color: #fff; }
.hero .text-link { color: #f0ded1; }
.hero-photo { position: relative; min-height: clamp(420px, 43vw, 550px); background: #614534; }
.hero-photo img { position: absolute; inset: 0; height: 100%; object-position: 53% center; }
.hero-photo figcaption { position: absolute; inset: auto 16px 16px; width: fit-content; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 9px; padding: 3px 4px 3px 12px; border-radius: 9px; background: var(--white); color: var(--ink); font-size: .83rem; font-weight: 750; }
.hero-photo figcaption a { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 6px; color: #fff; background: var(--ink); text-decoration: none; font-size: 1.15rem; }

.donation { margin-top: clamp(42px, 7vw, 96px); padding-block: clamp(42px, 6vw, 78px); background: #eee6da; }
.donation-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: start; gap: clamp(26px, 5vw, 76px); }
.donation-copy > .eyebrow, .section-head .eyebrow { color: var(--rust); }
.donation-copy h2 { max-width: 14ch; margin-block: 9px 16px; }
.donation-copy > p:not(.eyebrow) { max-width: 38ch; color: var(--muted); }
.donation-copy .donation-destination { margin-top: 18px; color: var(--ink); font-weight: 670; }
.donation-copy .source { margin-top: 9px; color: var(--rust); }
.payment-methods { display: grid; min-width: 0; gap: 12px; }
.payment { min-width: 0; padding: clamp(18px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.payment-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 14px; }
.payment-heading .text-link, .manual-link { color: var(--rust); font-size: .89rem; }
.payment h3 + p, .manual-content { margin-top: 10px; color: var(--muted); }
.payment-actions { display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: center; margin-top: 17px; }
.amounts { min-width: 0; border: 0; padding: 0; margin: 15px 0 16px; }
.amounts legend { margin-bottom: 7px; padding: 0; font-weight: 700; font-size: .91rem; }
.amount-options { display: flex; flex-wrap: wrap; gap: 7px; }
.amount-options label { position: relative; min-width: 0; cursor: pointer; }
.amount-options input { position: absolute; opacity: 0; }
.amount-options span { display: grid; place-items: center; min-height: 44px; border: 1px solid #9b8b7d; border-radius: 8px; padding: 6px 11px; font-size: .87rem; font-weight: 730; }
.amount-options input:checked + span { color: #fff; background: var(--ink); border-color: var(--ink); }
.amount-options input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.qr-method { display: grid; grid-template-columns: minmax(116px, 164px) minmax(0, 1fr); gap: clamp(13px, 3vw, 26px); align-items: center; }
.qr-method img { height: auto; border: 1px solid var(--line); border-radius: 9px; }
.qr-method ol { margin: 0; padding-inline-start: 1.3rem; font-size: .9rem; color: var(--muted); }
.qr-method li + li { margin-top: .36em; }
.payment.manual { padding-block: 11px; }
.manual summary { min-height: 44px; padding-block: 9px; cursor: pointer; }
.manual-content { padding-bottom: 13px; }
.payment dl { margin-block: 15px; }
.payment dl > div { padding: 8px 0; border-top: 1px solid var(--line); }
.payment dt { font-size: .83rem; }
.payment dd { color: var(--ink); font-weight: 700; }
.payment #racun, .international #eur-iban { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.international h4 { margin-top: 14px; }
.international .button { margin-top: 13px; }
.international .text-link { color: var(--rust); }
.international dd { white-space: pre-line; }
.micro { margin-top: 10px; font-size: .85rem; }
.micro:empty { margin: 0; }

.works { padding-block: clamp(50px, 8vw, 104px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 25px; margin-bottom: clamp(20px, 3vw, 35px); }
.section-head h2 { margin-top: 8px; }
.section-head .text-link { color: var(--rust); }
.featured-mural { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px clamp(26px, 6vw, 90px); align-items: center; padding: clamp(23px, 5vw, 60px); border-radius: var(--radius); }
.featured-mural h3 { margin-block: 8px 4px; color: var(--glow); font-size: clamp(3.35rem, 8vw, 6.25rem); line-height: .95; letter-spacing: -.07em; }
.featured-location { color: #e0d7ca; font-size: .92rem; }
.featured-story { max-width: 55ch; }
.featured-story p + p { margin-top: .65rem; color: #e0d7ca; }
.featured-links, .artist-links, .footer-actions { display: flex; flex-wrap: wrap; gap: 5px 15px; align-items: center; margin-top: 15px; }
.comparison-story { display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, 1.55fr); align-items: center; gap: 15px clamp(18px, 4vw, 55px); margin-top: 22px; padding: clamp(14px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.comparison-copy { padding: 6px; }
.comparison-copy p { margin-top: 5px; color: var(--muted); }
.comparison-help { font-size: .88rem; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.comparison figure { position: relative; overflow: hidden; border-radius: 12px; }
.comparison img { aspect-ratio: 1.35; }
.comparison figcaption { position: absolute; inset: 9px auto auto 9px; border-radius: 6px; padding: 5px 9px; color: var(--ink); background: var(--white); font-size: .82rem; font-weight: 750; }
.comparison.is-interactive { --split: 50%; position: relative; display: block; aspect-ratio: 1.75; overflow: hidden; isolation: isolate; border-radius: 12px; background: var(--ink); }
.comparison.is-interactive figure { position: absolute; inset: 0; border-radius: 0; }
.comparison.is-interactive figure:first-child { z-index: 1; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.comparison.is-interactive img { height: 100%; }
.comparison.is-interactive figure:nth-child(2) figcaption { inset: 9px 9px auto auto; }
.comparison-divider { position: absolute; inset: 0 auto 0 clamp(1px, var(--split), calc(100% - 1px)); z-index: 2; pointer-events: none; width: 2px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 6px #0009; }
.comparison-divider span { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; gap: 7px; width: 44px; height: 44px; transform: translate(-50%, -50%); background: var(--white); color: var(--ink); box-shadow: 0 2px 10px #0008; border-radius: 50%; }
.comparison-divider span::before, .comparison-divider span::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; }
.comparison-divider span::before { transform: rotate(135deg); }
.comparison-divider span::after { transform: rotate(-45deg); }
.comparison-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.comparison:has(.comparison-range:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.project { display: flex; flex-direction: column; align-items: start; justify-content: space-between; padding: clamp(17px, 2.5vw, 28px); border: 1px solid var(--line); border-radius: 14px; }
.project .eyebrow { color: var(--rust); }
.project h3 { margin-block: 8px; }
.project p:not(.eyebrow) { color: var(--muted); }
.project > .text-link { margin-top: 8px; color: var(--rust); }

.artist { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); align-items: start; gap: 22px clamp(24px, 5vw, 70px); border-radius: var(--radius); padding: clamp(24px, 5vw, 62px); }
.artist .eyebrow { color: var(--glow); }
.artist h2 { margin-top: 8px; }
.artist p:not(.eyebrow) { max-width: 59ch; color: #e0d7ca; }
.artist p + p { margin-top: .8em; }
.artist .button { color: var(--ink); background: var(--glow); }
.artist .button:hover { background: #ffd1b9; }
.practice { grid-column: 1 / -1; padding-top: clamp(18px, 3vw, 34px); border-top: 1px solid #665448; }
.practice > h3 { margin-bottom: 15px; color: var(--glow); }
.practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.practice-grid article { padding: clamp(14px, 2.4vw, 25px); border-radius: 12px; background: #322925; }
.practice-grid h4 { margin-bottom: 5px; font-size: 1.12rem; line-height: 1.35; }
.practice-grid .text-link { margin-top: 3px; }
.footer { margin-top: clamp(45px, 7vw, 92px); padding-block: clamp(30px, 5vw, 60px); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 15px 32px; justify-content: space-between; align-items: end; }
.footer h2 { margin-block: 8px 12px; font-size: clamp(1.85rem, 3.3vw, 2.8rem); }
.footer p { max-width: 54ch; color: #e0d7ca; }
.footer-actions p:not(:empty) { flex-basis: 100%; }
.footer-actions p:empty { display: none; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 52px); }
  .hero-copy { padding: clamp(22px, 3.6vw, 44px); }
  h1 { font-size: clamp(2.65rem, 6.05vw, 4.3rem); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .masthead { min-height: 72px; }
  .masthead nav { gap: 12px; font-size: .88rem; }
  .hero, .donation-grid, .featured-mural, .comparison-story, .artist { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: clamp(22px, 5.5vw, 39px); }
  .hero .eyebrow { margin-bottom: 13px; }
  .hero h1 { font-size: clamp(2.35rem, 8.2vw, 3.85rem); }
  .intro { margin-top: 15px; }
  .hero-actions { margin-top: 15px; }
  .hero-photo { min-height: 0; aspect-ratio: 1.42; }
  .hero-photo figcaption { inset: auto 10px 10px; max-width: calc(100% - 20px); }
  .featured-mural { gap: 16px; }
  .comparison-copy { padding-bottom: 0; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .practice-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .masthead nav { gap: 7px; }
  .masthead .artist-nav { display: none !important; }
  .masthead .compact { padding-inline: 10px; }
  .brand { font-size: .82rem; }
  .mark { width: 31px; height: 31px; }
  .hero-photo figcaption { font-size: .78rem; }
  .qr-method { grid-template-columns: minmax(86px, .8fr) minmax(0, 1.2fr); gap: 10px; }
}

@media (max-width: 350px) {
  .masthead { gap: 8px; }
  .masthead nav { gap: 6px; font-size: .82rem; }
  .masthead .compact { padding-inline: 8px; font-size: .86rem; }
  .masthead .compact span { display: none; }
  .brand { gap: 7px; }
  .mark { width: 28px; height: 28px; }
  .hero .hero-actions { flex-direction: column; align-items: start; gap: 0; }
  .qr-method { grid-template-columns: minmax(0, 1fr); }
  .qr-method img { width: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
