:root {
  --paper: #d2efdd;
  --ink: #065267;
  --display-font: Arial, Helvetica, sans-serif;
  --display-weight: 900;
  --companion-font: Arial, Helvetica, sans-serif;
  --companion-weight: 500;
  --tracking: -0.067em;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--paper);
}

body {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--companion-font);
  font-weight: var(--companion-weight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: color-mix(in srgb, var(--ink) 16%, transparent);
  color: var(--ink);
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background: var(--paper);
}

main {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  pointer-events: none;
}

.line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.06em 0.32em;
  max-width: min(94vw, 56rem);
  margin: 0;
  font-family: var(--display-font);
  font-weight: var(--companion-weight);
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  letter-spacing: var(--tracking);
  line-height: 0.98;
  text-align: center;
  text-shadow:
    0 0 1px var(--paper),
    0 0 16px color-mix(in srgb, var(--paper) 88%, transparent);
}

.name {
  font-weight: var(--display-weight);
}

.part,
.dash,
.contact {
  white-space: nowrap;
}

.dash {
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}

.contact {
  display: inline-block;
  margin: -0.45rem -0.15rem;
  padding: 0.45rem 0.15rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: center;
  text-decoration-line: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.14em;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.contact:hover {
  text-decoration-thickness: 0.08em;
  text-decoration-color: currentColor;
}

.mail {
  user-select: text;
}

.contact:focus {
  outline: none;
}

.contact:focus-visible {
  outline: 1.5px solid currentColor;
  outline-offset: 0.16em;
  border-radius: 0.12em;
}

.fallback {
  margin: 0.8rem 0 0;
  max-width: 16rem;
  font-family: var(--companion-font);
  font-size: 0.95rem;
  font-weight: var(--companion-weight);
  letter-spacing: -0.02em;
  line-height: 1.4;
  text-align: center;
  pointer-events: auto;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .line {
    flex-direction: column;
    align-items: center;
    gap: 0.16em;
    font-size: clamp(1.65rem, 7.8vw, 2.25rem);
  }

  .dash {
    font-size: 0.72em;
    line-height: 1;
  }

  .mail {
    white-space: normal;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact {
    transition: none;
  }
}
