@font-face {
  font-family: 'Suisse Intl';
  src: url('fonts/SuisseIntl-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-text: #1a1a1a;
  --color-text-muted: #888888;
  --color-background: #ffffff;
  --font-family: 'Suisse Intl', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-size: 15px;
  --line-height: 1.5;
  --page-margin-left: 10vw;
  --page-margin-top: calc(25vh + 10px);
  --page-margin-right: 10vw;
  --page-margin-bottom: 5vh;
  --content-max-width: 520px;
  --block-spacing: 2em;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
}

.page {
  padding-top: var(--page-margin-top);
  padding-left: var(--page-margin-left);
  padding-right: var(--page-margin-right);
  padding-bottom: var(--page-margin-bottom);
  max-width: calc(var(--content-max-width) + var(--page-margin-left) + var(--page-margin-right));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-copy,
.contact-copy {
  max-width: var(--content-max-width);
  user-select: none;
  -webkit-user-select: none;
}

.main-copy {
  margin-bottom: var(--block-spacing);
}

.contact-copy {
  margin-bottom: 0.75em;
}

/* Wrap must be relative so the cursor can be positioned reliably */
.contact-field-wrap {
  max-width: var(--content-max-width);
  min-height: 1.5em;
  position: relative;
  display: inline-block;
}

/* Make the editable area definitely interactive + selectable */
.contact-field {
  position: relative;
  z-index: 2;
  display: inline-block;
  min-width: 18ch;
  min-height: 1.2em;
  outline: none;
  border: none;
  background: transparent;
  caret-color: var(--color-text);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  user-select: text;
  -webkit-user-select: text;
  pointer-events: auto;
}

/* Custom slow-blinking cursor: must not intercept clicks */
.custom-cursor {
  display: none;
  position: absolute;
  left: 0;
  top: 0.15em;
  z-index: 1;
  width: 1px;
  height: 1em;
  background-color: var(--color-text);
  margin-left: 0;
  vertical-align: text-top;
  animation: cursor-blink 1.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cursor-blink {
  0%, 100% {
    opacity: 0;
  }
  40%, 60% {
    opacity: 1;
  }
}

.copyright {
  margin-top: auto;
  padding-top: 4em;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  user-select: none;
  -webkit-user-select: none;
}

a, button, [contenteditable] {
  transition: none;
}

:focus {
  outline: none;
}

[contenteditable]:focus {
  outline: none;
}
