/* Auxilium Profugi e.V. – stylesheet */

@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

/* Atkinson has a slashed zero – digits come from Bricolage */
@font-face { font-family: "Atkinson"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 400; font-style: normal; unicode-range: U+0030-0039; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 400; font-style: italic; unicode-range: U+0030-0039; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 700; font-style: normal; unicode-range: U+0030-0039; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 700; font-style: italic; unicode-range: U+0030-0039; font-display: swap; }

:root {
  --paper: #FFFFFF;
  --mist: #E8F3F3;
  --ink: #18292B;
  --muted: #4D6466;
  --line: #CFE2E2;
  --petrol: #0E6E73;
  --turquoise: #3FA7AC;
  --light: #6CC4C8;
  --sun: #F5C542;
  --sun-ink: #2A2205;
  --band: #0E6E73;
  --band-text: #FFFFFF;
  --footer: #18292B;
  --footer-text: #D6E6E6;
  --error: #B93A0B;

  --font-title: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-text: "Atkinson", "Segoe UI", system-ui, -apple-system, sans-serif;
  --width: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1D1E;
    --mist: #152A2B;
    --ink: #E3EFEF;
    --muted: #A6BDBE;
    --line: #2A4446;
    --petrol: #7FD3D6;
    --turquoise: #5CC0C4;
    --band: #0B4F52;
    --footer: #0A1415;
    --error: #FDBA74;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --paper: #0F1D1E;
    --mist: #152A2B;
    --ink: #E3EFEF;
    --muted: #A6BDBE;
    --line: #2A4446;
    --petrol: #7FD3D6;
    --turquoise: #5CC0C4;
    --band: #0B4F52;
    --footer: #0A1415;
    --error: #FDBA74;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--font-text);
  text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--petrol); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .16em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-title); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 780; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 720; margin-top: 2em; }
h3 { font-size: 1.3rem; font-weight: 680; }
p, ul, ol, dl, table { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--sun-ink); padding: .6em 1em; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { max-width: var(--width); margin: 0 auto; padding: .9rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.header-logo { display: block; line-height: 0; }
.logo img { height: 3.4rem; width: auto; }
.header nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; }
.header nav a { color: var(--ink); text-decoration: none; padding: .35rem 0; border-bottom: 3px solid transparent; }
.header nav a:hover { border-bottom-color: var(--light); }
.header nav a[aria-current] { border-bottom-color: var(--petrol); }

/* Home: hero */
.hero { background: var(--mist); overflow: hidden; }
.hero-inner {
  max-width: var(--width); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(3rem, 7vw, 5.5rem);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 2rem; align-items: start;
}
.hero-inner > :not(.hero-dove) { grid-column: 1; }
.hero-dove {
  grid-column: 2; grid-row: 1 / span 3; align-self: center; justify-self: end;
  width: 100%; max-width: 30rem; height: auto; margin-right: -1rem;
  animation: fly-in 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes fly-in {
  from { transform: translate(-14%, 22%) rotate(8deg) scale(.86); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.hero-title {
  position: relative;
  font-size: clamp(3.2rem, 8.4vw, 7.4rem); font-weight: 800; line-height: .92; letter-spacing: -.045em;
  color: var(--petrol); max-width: 9ch; margin: 0 0 .35em;
}
.hero-text { position: relative; max-width: 34rem; font-size: 1.2rem; }
.hero-text strong { font-weight: 700; }
.buttons { position: relative; display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 0; }
.button {
  display: inline-block; font-family: var(--font-title); font-weight: 700; font-size: 1.1rem;
  padding: .75em 1.4em; border-radius: 999px; text-decoration: none; border: 2px solid transparent;
}
.button-sun { background: var(--sun); color: var(--sun-ink); }
.button-sun:hover { background: #FFD45E; }
.button-outline { border-color: var(--petrol); color: var(--petrol); }
.button-outline:hover { background: var(--paper); }

@media (max-width: 40rem) {
  .hero-inner { padding-top: 1.5rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-dove { grid-column: 1; grid-row: auto; width: 62%; margin: 0 -.5rem .5rem auto; }
}

/* Home: sections */
.activities, .journey, .partner { padding: clamp(3rem, 7vw, 5rem) 0; }
.activities h2, .journey h2, .partner h2, .donate-band h2 { margin-top: 0; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem 3rem; margin-top: 1.5rem; }
.three h3 { color: var(--petrol); }
.three p { color: var(--ink); }

.donate-band { background: var(--band); color: var(--band-text); padding: clamp(3rem, 7vw, 4.5rem) 0; }
.donate-band a { color: var(--band-text); }
.donate-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 4rem; align-items: start; }
@media (max-width: 52rem) { .donate-band-inner { grid-template-columns: 1fr; } }

.account { background: var(--mist); border-radius: 1rem; padding: 1.5rem 1.6rem; margin: 2rem 0; }
.account-band { background: rgba(255, 255, 255, .1); margin: 0; }
.account-title { font-family: var(--font-title); font-weight: 700; margin-bottom: .2em; }
.account-name, .account-purpose { margin-bottom: .4em; }
.account-purpose, .more { font-size: 1rem; }
.iban { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: .6rem 0; }
.iban-number { font-family: var(--font-title); font-weight: 650; font-size: clamp(1.35rem, 3.6vw, 2rem); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.copy {
  font: 600 .95rem var(--font-title); cursor: pointer; padding: .45em 1em; border-radius: 999px;
  border: 2px solid currentColor; background: transparent; color: inherit;
}
.copy[data-done] { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.account .copy { color: var(--petrol); }
.account-band .copy { color: var(--band-text); }

.journey { border-bottom: 1px solid var(--line); }
.journey-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem 4rem; }
@media (max-width: 52rem) { .journey-inner { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--light); }
.timeline li { position: relative; padding: 0 0 1.3rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -.6rem; top: .35rem; width: .9rem; height: .9rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--petrol); }
.timeline li:last-child { padding-bottom: 0; }
.timeline time { display: block; font-family: var(--font-title); font-weight: 650; font-size: .95rem; color: var(--muted); }
.timeline a { color: var(--ink); text-decoration-color: var(--light); }

.partner-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; align-items: center; }
.partner-list img { max-height: 3.5rem; width: auto; display: block; }
@media (prefers-color-scheme: dark) { .partner-list a { background: #fff; padding: .6rem .9rem; border-radius: .5rem; display: block; } }

/* Content pages */
.page { max-width: var(--width); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 5rem); }
.page-header { max-width: 44rem; margin-bottom: 2rem; }
.page-header h1 { color: var(--petrol); }
.text { max-width: 42rem; }
.lead { font-size: 1.3rem; line-height: 1.55; }
.note { color: var(--muted); font-size: 1rem; }
.text h3 { margin-top: 1.6em; }
.text ol, .text ul { padding-left: 1.4em; }
.text li { margin-bottom: .45em; }
.text ol ol { margin-top: .45em; }
.text img { border-radius: .5rem; }
.text .logo-image { max-height: 5rem; width: auto; border-radius: 0; }
.text figure { margin: 0 0 1em; }
.text figure.right { float: right; width: min(40%, 15rem); margin: .3rem 0 1rem 1.5rem; }
.text::after { content: ""; display: block; clear: both; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--mist); }

.people dt { font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; color: var(--petrol); margin-top: 1.4rem; }
.people dd { margin: .2rem 0 0; }
.types dt { font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; margin-top: 1rem; }
.types dd { margin: .2rem 0 0; }
.fee-table { border-collapse: collapse; min-width: 16rem; }
.fee-table th, .fee-table td { text-align: left; padding: .5rem 2rem .5rem 0; border-bottom: 1px solid var(--line); }
.fee-table td { font-family: var(--font-title); font-weight: 650; font-variant-numeric: tabular-nums; }
.steps li::marker { font-family: var(--font-title); font-weight: 700; color: var(--petrol); }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem 3rem; }
.columns h2 { margin-top: 0; }
.large { font-family: var(--font-title); font-weight: 650; font-size: clamp(1.25rem, 3vw, 1.6rem); word-break: break-word; }

/* Posts */
.back { font-family: var(--font-title); font-weight: 600; margin-bottom: .6rem; }
.back a { text-decoration: none; }
.back a::before { content: "‹ "; }
.meta { color: var(--muted); }
.post h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.archive-note { max-width: 42rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.neighbours { max-width: 42rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.prev-next { display: block; padding: 1rem 1.2rem; border-radius: .75rem; background: var(--mist); text-decoration: none; color: var(--ink); font-family: var(--font-title); font-weight: 650; line-height: 1.3; }
.prev-next span { display: block; font-weight: 500; font-size: .9rem; color: var(--muted); margin-bottom: .25rem; }
.prev-next.newer { grid-column: 2; text-align: right; }
.prev-next:hover { background: var(--line); }
@media (max-width: 36rem) { .neighbours { grid-template-columns: 1fr; } .prev-next.newer { grid-column: 1; text-align: left; } }

/* Archive */
.year { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 1.5rem; }
.year h2 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--light); letter-spacing: -.03em; }
.entries { list-style: none; padding: 0; margin: 0; }
.entries li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .2rem 1.5rem; padding: .3rem 0 1.4rem; }
.entries time { color: var(--muted); font-size: 1rem; padding-top: .2rem; }
.entries h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.entries h3 a { color: var(--ink); text-decoration-color: var(--light); }
.entries p { margin: 0; color: var(--muted); font-size: 1rem; max-width: 40rem; }
@media (max-width: 44rem) {
  .year { grid-template-columns: 1fr; }
  .entries li { grid-template-columns: 1fr; }
}

/* Footer */
.footer { background: var(--footer); color: var(--footer-text); font-size: 1rem; }
.footer a { color: #fff; }
.footer-inner { max-width: var(--width); margin: 0 auto; padding: 3rem var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem 3rem; align-items: start; }
.footer-logo { height: 3rem; width: auto; margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .3rem; }

@media (prefers-reduced-motion: reduce) {
  .hero-dove { animation: none; }
}
@media print {
  .header nav, .footer, .buttons, .copy, .neighbours, .hero-dove { display: none; }
  body { font-size: 11pt; }
}

/* Form */
.form { max-width: 42rem; margin-top: 1.5rem; }
.form fieldset { border: 0; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form legend { font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; line-height: 1.3; margin-bottom: 1rem; padding: 0; }
.form .field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.form .wide, .form .choice, .form fieldset > p { grid-column: 1 / -1; }
.form label { font-weight: 700; font-size: 1rem; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=date], .form textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: .5rem; padding: .6rem .75rem; width: 100%;
}
.form input:focus, .form textarea:focus { border-color: var(--petrol); outline: none; box-shadow: 0 0 0 3px var(--light); }
.form .choice { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .6rem; align-items: start; }
.form .choice input { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--petrol); }
.form .choice label { font-weight: 400; font-size: 1.05rem; }
.form.validated :invalid:not(fieldset) { border-color: var(--error); }
.form.validated .choice input:invalid + label { color: var(--error); }
.field-error, .form-error { color: var(--error); font-weight: 700; font-size: 1rem; margin: 0; }
.form-error { margin-bottom: 1rem; }
.small { font-size: .95rem; color: var(--muted); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form button { border: 0; cursor: pointer; }
@media (max-width: 36rem) { .form fieldset { grid-template-columns: 1fr; } }
.response-list { padding-left: 1.4em; }
