/* Ziegenhof Eigelsberg farewell page. Colours and font follow the photo book (Source Sans 3, OFL, self-hosted). */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/sourcesans3-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: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/sourcesans3-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;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --text: #3a3129;
  --brown: #7a5a3a;
  --muted: #7a6a58;
  --green: #4c5a3c;
  --green-text: #f4f1e8;
  --lime: #b9cf49;
  --measure: 40rem;
  --gutter: 1.25rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 1.25rem;   /* 20px: easy to read, nothing on this page goes below 18px */
  line-height: 1.6;
}

a { color: var(--brown); text-underline-offset: 0.15em; }
a:hover { color: var(--text); }

/* Header: logo + wordmark */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 2rem var(--gutter) 1rem;
  text-align: left;
}
.brand__logo { width: 7.5rem; height: auto; display: block; }
.brand__name { margin: 0; line-height: 1.15; }
.brand__line1 { display: block; font-size: 1.5rem; font-weight: 600; color: var(--brown); }
.brand__line2 {
  display: block;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

/* Text blocks */
.text {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.intro { text-align: center; padding-bottom: 1.5rem; }
.years {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}
h1 {
  margin: 0.1em 0 0.3em;
  font-size: clamp(3rem, 9vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--brown);
}
.lead { margin: 0; font-size: 1.4rem; }

/* Photo: never cropped, full width up to its native size */
.photo { margin: 0 auto; max-width: 1404px; }
.photo img { display: block; width: 100%; height: auto; }

.thanks { padding-top: 2rem; padding-bottom: 2.5rem; }
h2 {
  margin: 0 0 0.6em;
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green);
}
.thanks p { margin: 0 0 1em; }
.signoff { margin-top: 1.5em !important; }
.signature { display: inline-block; margin-top: 0.5em; font-weight: 600; color: var(--brown); }

/* Legal accordion on the green band */
.legal {
  background: var(--green);
  color: var(--green-text);
  border-top: 6px solid var(--lime);
  padding: 1.5rem var(--gutter) 2.5rem;
}
.legal__inner { max-width: var(--measure); margin: 0 auto; }
.legal a { color: var(--green-text); }
.legal a:hover { color: var(--lime); }

details { border-bottom: 1px solid rgba(244, 241, 232, 0.35); }
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  font-size: 1.35rem;
  font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: none;
  width: 0.6em;
  height: 0.6em;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
  transition: transform 0.15s ease;
}
details[open] > summary::after { transform: translateY(0.15em) rotate(-135deg); }
summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

.legal__body { padding: 0 0 1.25rem; font-size: 1.125rem; }   /* 18px */
.legal__body p { margin: 0 0 0.9em; }
.legal__body h3 { margin: 1.2em 0 0.3em; font-size: 1.2rem; font-weight: 700; }
.legal__body h3:first-child { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  summary::after { transition: none; }
}
