:root {
  --fz: 18px;
  --lh: 1.4;
  --bg: #fff;
  --text: #000;
  --link: #5574ff;
  --link-h: #dc4628;
}

* {
  box-sizing: border-box;
  -webkit-text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
  text-decoration-thickness: 0.025em;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-size: var(--fz);
  line-height: var(--lh);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "SF UI Text",
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Fira Sans",
    "Droid Sans",
    "Helvetica Neue",
    "Helvetica",
    "Arial",
    sans-serif;
  margin: 0;
  padding: 20px 40px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }
}

main {
  flex-grow: 1;
  text-wrap: balance;
}

.pre-h {
  margin: -1.5em 0 2em;
  font-size: 0.67em;
  color: color-mix(in srgb, var(--text), var(--bg));
  a { color: inherit; }
}

h1 { line-height: 1.1; }

p {
  margin: 0 0 1em 0;
}

a {
  cursor: pointer;
  color: var(--link);
}
a:hover,
a.hover {
  color: var(--link-h);
}

.mailsnail {
  position: relative;
  display: inline-block;
  -webkit-mask-image: url("/img/mailsnail.png");
  mask-image: url("/img/mailsnail.png");
  -webkit-mask-size: 100% auto;
  mask-size: 100% auto;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  width: 1.81em;
  margin: 0 0.05em 0 -0.35em;
  background: currentcolor;
}

footer {
  display: flex;
  justify-content: space-between;
  align-content: baseline;
  padding-top: 2em;
  gap: 1em;
}

ul.footer-links {
  padding: 0;
  margin: 0;
  list-style-type: none;
  -moz-columns: 2;
  columns: 2;
  -moz-column-gap: 1em;
  column-gap: 1em;
}
