/* Shared by index.html and credits.html. Same paper, ink and type as the map page. */
:root {
  --paper: #e8e5dd; --card: #f4f2ec; --ink: #1c1c1a; --soft: #5a584f; --line: rgba(28, 28, 26, .16);
  --link: #0b4f8a; --mark: #fff3bf; --todo: #8a4b00; --todo-bg: #fbe9c8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1c1a; --card: #262724; --ink: #ebe8df; --soft: #a9a69b; --line: rgba(235, 232, 223, .18);
    --link: #8cc4f2; --mark: #4a4220; --todo: #ffc978; --todo-bg: #40321a;
  }
}
* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
main, header.top, footer { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header.top { padding-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; margin: 28px 0 10px; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: 24px; line-height: 1.2; margin: 52px 0 10px; text-wrap: balance; }
h3 { font-size: 18px; margin: 28px 0 6px; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 7px; }
.lead { font-size: 20px; line-height: 1.45; color: var(--soft); text-wrap: pretty; }
code { font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card); padding: 1px 5px; border-radius: 4px; }
small, .note { font-size: 14px; color: var(--soft); }

figure { margin: 26px 0; }
figure.wide { margin-left: -20px; margin-right: -20px; }
@media (min-width: 1000px) { figure.wide { margin-left: -110px; margin-right: -110px; } }
figure img { display: block; width: 100%; height: auto; background: var(--card); }
figure img.bare { background: none; border-radius: 0 !important; padding: 0 8px; }
figure:not(.wide) img, .pair img { border-radius: 6px; }
@media (min-width: 800px) { figure.wide img { border-radius: 8px; } }
figcaption { font-size: 14px; color: var(--soft); margin-top: 8px; }
figure.wide figcaption { padding: 0 20px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair > div { position: relative; }
.pair span { position: absolute; left: 6px; top: 6px; font-size: 12px; line-height: 1; padding: 5px 7px; border-radius: 4px;
             background: rgba(255, 255, 255, .88); color: #1c1c1a; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.facts li { background: var(--card); border-radius: 8px; padding: 12px 14px; margin: 0; font-size: 14px; color: var(--soft); }
.facts b { display: block; font-size: 24px; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }

.scroll { overflow-x: auto; margin: 0 -20px 18px; padding: 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
th { font-size: 13px; font-weight: 600; color: var(--soft); }
td.n, th.n { text-align: right; padding-right: 0; white-space: nowrap; }
tr.sum td { font-weight: 700; border-bottom: 0; }

/* the list of recordings (credits.html): scrolls sideways on a phone instead of squeezing */
.sounds { overflow-x: auto; }
.sounds table { min-width: 560px; font-size: 14px; }
.sounds td { vertical-align: top; }
.todo { background: var(--todo-bg); color: var(--todo); font-size: 12px; font-weight: 700; letter-spacing: .04em;
        padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.box { background: var(--card); border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; }
.box p:last-child { margin-bottom: 0; }
dl.src { margin: 0 0 18px; }
dl.src dt { font-weight: 700; margin-top: 18px; }
dl.src dd { margin: 2px 0 0; }
footer { margin-top: 56px; padding-top: 18px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }
footer p { margin-bottom: 8px; }

/* Maker: a byline right under the lead (seen without scrolling on a phone) and the full card at the end. */
.face { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
        background: var(--ink); color: var(--paper); font-weight: 700; font-size: 16px; letter-spacing: .02em; text-decoration: none; }
.face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.face.big { width: 88px; height: 88px; font-size: 30px; margin: 0 auto 10px; }
.maker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--card); border-radius: 12px; padding: 10px 12px; margin: 18px 0 4px; }
.maker p { margin: 0; }
.maker .who { flex: 1 1 150px; line-height: 1.25; }
.maker .who a { color: inherit; text-decoration: none; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 18px; border: 1px solid var(--line);
        color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .15s ease; }
.pill.warm { background: #ffdd00; border-color: #ffdd00; color: #1c1c1a; }
.pill:active { transform: scale(.97); }
@media (hover: hover) { .pill:hover { transform: translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .pill, .coffee .bmc { transition: none; } }

.coffee { text-align: center; background: var(--card); border-radius: 12px; padding: 24px 16px 26px; margin: 14px 0 18px; }
.coffee p { margin: 0 0 14px; }
.coffee .name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.coffee .acts { justify-content: center; margin-bottom: 20px; }
.coffee .bmc { display: inline-block; border-radius: 12px; transition: transform .15s ease; }
.coffee .bmc:hover { transform: translateY(-1px); }
.coffee .bmc:active { transform: scale(.97); }
.coffee .bmc img { display: block; width: 218px; height: auto; border-radius: 12px; }

/* Folds: short rows that open (Was die Karte kann, Events, Wie es gemacht wurde). */
.intro { color: var(--soft); margin-top: -2px; }
.folds { background: var(--card); border-radius: 12px; margin: 14px 0 22px; overflow: hidden; }
.folds details + details { border-top: 1px solid var(--line); }
.folds summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px;
  padding: 13px 44px 13px 16px; position: relative; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.folds summary::-webkit-details-marker { display: none; }
.folds summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); transition: transform .2s ease; }
.folds details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.folds summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 12px; }
@media (hover: hover) { .folds summary:hover { background: rgba(127, 127, 127, .07); } }
.folds .when { font-weight: 400; font-size: 14px; color: var(--soft); }
.folds details > :not(summary) { margin-left: 16px; margin-right: 16px; }
.folds details > :last-child { margin-bottom: 18px; }
.folds details > figure.wide, .folds details > figure { margin-left: 16px; margin-right: 16px; }
.folds details .box { background: var(--paper); }
.folds details .scroll { margin: 0 16px 18px; padding: 0; }
.folds details figure.wide figcaption { padding: 0; }
@media (prefers-reduced-motion: reduce) { .folds summary::after { transition: none; } }
