:root {
  --ink: #111;
  --paper: #fafaf7;
  --muted: #6b6b66;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ececea;
    --paper: #0e0e0d;
    --muted: #8b8b85;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Hoefler Text", Georgia, serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: grid;
  place-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
}

main {
  max-width: 520px;
  width: 100%;
  text-align: left;
}

@media (prefers-reduced-motion: no-preference) {
  .sss-load-item {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  body.sss-page-load-ready .sss-load-item {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
      opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--sss-load-delay, 0s),
      transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--sss-load-delay, 0s);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sss-load-item {
    opacity: 1;
    transform: none;
  }
}

.intro-header {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.name-heading {
  margin: 0;
  font: inherit;
  font-weight: inherit;
}

.name-group {
  position: relative;
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.name {
  display: block;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
  transition: opacity 0.2s ease;
}

.name-group:hover .name,
.name-group.is-open .name {
  opacity: 0.72;
}

.name-note {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 4px;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.name-group:hover .name-note,
.name-group.is-open .name-note {
  opacity: 1;
  transform: translateY(0);
}

.email-copy {
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.email-copy:hover {
  opacity: 0.7;
}

.tagline {
  margin: 0;
  color: var(--muted);
}

.rule {
  width: 24px;
  height: 1px;
  background: var(--ink);
  opacity: 0.35;
  margin: 18px 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 12px));
  transform: translate(-50%, 12px);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible {
  opacity: 0.92;
  transform: translate(-50%, 0);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

a:hover {
  opacity: 0.7;
}

.links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  border-bottom-color: transparent;
}

.links a::after {
  content: "\2197\FE0E";
  font-family: "Times New Roman", "Apple Symbols", serif;
  font-variant-emoji: text;
  font-size: 11px;
  color: var(--muted);
  line-height: 1;
  flex-shrink: 0;
  transform: translateY(-1px);
}

.links a:hover {
  border-bottom-color: currentColor;
}

@media (hover: none) {
  .name-group:hover .name {
    opacity: 1;
  }

  .name-group:hover .name-note {
    opacity: 0;
    transform: translateY(4px);
  }

  .name-group.is-open .name {
    opacity: 0.72;
  }

  .name-group.is-open .name-note {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 540px) {
  .intro-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .email-copy {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .name-note {
    white-space: normal;
    max-width: min(280px, calc(100vw - 48px));
  }
}
