/* mailsky.eu docs: system fonts only, no external resources, works without JavaScript */
:root {
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #5f6368;
  --accent: #1a5fb4;
  --box: #f4f5f7;
  --line: #dcdfe4;
  --warn-bg: #fff6e0;
  --warn-line: #e5b23a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181a;
    --fg: #e8e8ea;
    --muted: #a3a7ad;
    --accent: #8cb8ff;
    --box: #222427;
    --line: #34373c;
    --warn-bg: #2e2715;
    --warn-line: #a07d22;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 1rem; }

header.site { border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
header.site .brand { display: flex; align-items: center; gap: 0.6rem; color: var(--fg); text-decoration: none; font-weight: 600; }
header.site .brand img { height: 32px; width: auto; }
header.site nav a { margin-left: 1rem; }
header.site nav a:first-child { margin-left: 0; }

main { padding: 1.5rem 0 3rem; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

.box { background: var(--box); border-radius: 10px; padding: 1rem 1.25rem; margin: 1rem 0; }
.notice { background: var(--warn-bg); border-left: 4px solid var(--warn-line); border-radius: 6px; padding: 0.8rem 1rem; margin: 1rem 0; }

ol.steps { padding-left: 1.4rem; }
ol.steps > li { margin: 0.5rem 0; }
.ui { font-weight: 600; }               /* text the reader taps or sees on screen */
code, .val { font-family: ui-monospace, "SF Mono", Consolas, monospace; background: var(--box); padding: 0.1rem 0.35rem; border-radius: 5px; font-size: 0.95em; }

table.settings { border-collapse: collapse; width: 100%; margin: 0.5rem 0 1rem; }
table.settings th, table.settings td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.settings th { width: 45%; font-weight: 500; color: var(--muted); }

ul.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.75rem; }
ul.cards li a { display: block; height: 100%; background: var(--box); border-radius: 10px; padding: 0.9rem 1rem; text-decoration: none; color: var(--fg); }
ul.cards li a strong { color: var(--accent); display: block; }
ul.cards li a span { color: var(--muted); font-size: 0.95rem; }

footer.site { border-top: 1px solid var(--line); padding: 1rem 0 2rem; color: var(--muted); font-size: 0.95rem; }

.hero { text-align: center; padding: 1rem 0 0.5rem; }
.hero img { max-width: 240px; width: 70%; height: auto; }

/* Front page: one language at a time (see lang.js). Without JS: Danish, and the #da/#en links still switch. */
.lang { display: none; }
html:not(.pref-en) .lang-da, html.pref-en .lang-en { display: block; }
html body:has(#da:target) .lang-da, html body:has(#en:target) .lang-en { display: block; }
html body:has(#da:target) .lang-en, html body:has(#en:target) .lang-da { display: none; }
.langswitch { text-align: right; margin: 0; }
