:root {
  color-scheme: light dark;
  --bg: #f5f9fc;
  --text: #15212c;
  --muted: #4a5a69;
  --accent: #0a5a8c;
  --code: #eaf1f7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1620;
    --text: #e4edf4;
    --muted: #a5b6c4;
    --accent: #7cc4f2;
    --code: #192b3b;
  }
  .ice { fill: #1e4566; }
  .shadow { fill: #0b1824; }
  .coat { fill: #0f171f; }
}

body {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header { text-align: center; }
h1 { margin: 0.5rem 0 0; font-size: 2.4rem; letter-spacing: -0.02em; }
h2 { margin-top: 2.25rem; font-size: 1.25rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
code, pre, .fpr { font-family: ui-monospace, "Cascadia Mono", "DejaVu Sans Mono", Menlo, monospace; }
pre { padding: 0.75rem 1rem; background: var(--code); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
li { margin: 0.35rem 0; }
.slogan { margin: 0; color: var(--muted); font-size: 1.2rem; font-style: italic; }
.addresses { font-size: 1.3rem; font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; }
.fpr { font-weight: 600; }
.key { font-size: 0.75rem; }
summary { cursor: pointer; }
.fpr span { white-space: nowrap; }
.small { color: var(--muted); font-size: 0.95rem; }

.pingu { display: block; width: min(200px, 55vw); height: auto; margin: 0 auto; }
.bird { transform-origin: 122px 248px; animation: sway 6s ease-in-out infinite; }
.eye { transform-box: fill-box; transform-origin: center; animation: blink 7s infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes blink { 0%, 93%, 97%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }

@media (prefers-reduced-motion: reduce), print {
  .bird, .eye { animation: none; }
}

@media print {
  :root { --bg: #fff; --text: #000; --muted: #333; --accent: #000; --code: #fff; }
  .pingu { width: 90px; }
  .ice, .shadow { display: none; }
  a[href^="/"]::after { content: " (https://pingumail.com" attr(href) ")"; font-size: 0.85em; }
}
