/* Xylocopadream website: one stylesheet for every page. System fonts only: no third-party request from the visitor. */
:root {
  --bg: #fbf8f2; --surface: #ffffff; --text: #1f1c17; --muted: #6a6358; --border: #e6dfd2;
  --accent: #b86a12; --accent-soft: #f7e8d2; --focus: #b86a12;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14130f; --surface: #1d1b17; --text: #eeeae2; --muted: #a8a194; --border: #34302a;
    --accent: #f0a845; --accent-soft: #3a2b16; --focus: #f0a845;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14130f; --surface: #1d1b17; --text: #eeeae2; --muted: #a8a194; --border: #34302a;
  --accent: #f0a845; --accent-soft: #3a2b16; --focus: #f0a845;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.top { padding: 20px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.05rem; }
.brand img { width: 28px; height: 28px; }
.tools { display: inline-flex; align-items: center; gap: 8px; }
.langs { display: inline-flex; gap: 2px; font-size: .88rem; }
.langs a { padding: 4px 8px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.langs a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.theme { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; width: 34px; height: 34px; font-size: 1rem; cursor: pointer; }

main { flex: 1; padding: 48px 0 64px; }
h1 { font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 2.4em; max-width: 34em; }
h2 { font-size: 1.25rem; margin: 2.2em 0 .5em; }
p { max-width: 38em; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; margin: 16px 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.mail { font-weight: 600; font-size: 1.1rem; overflow-wrap: anywhere; }
.note { color: var(--muted); font-size: .95rem; }

footer { border-top: 1px solid var(--border); padding: 20px 0 28px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* language chooser (/index.html, shown only when the redirect of nginx did not happen) */
.choose { list-style: none; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.choose a { display: inline-block; padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); text-decoration: none; }

@media print {
  .tools { display: none; }
  body { background: #fff; color: #000; }
}
