:root {
  --ink: #111113;
  --muted: #6b6b73;
  --faint: #a1a1a8;
  --line: #e8e8eb;
  --accent: #d9581f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: #fff;
  color: var(--ink);
  font: 400 15px/1.6 Geist, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

:is(a, button):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

.card {
  width: min(440px, 100%);
  padding: 34px 34px 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgb(17 17 19 / 3%),
    0 16px 40px -24px rgb(17 17 19 / 14%);
}

.name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.mark {
  flex: 0 0 auto;
}

h1 {
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.more,
.reply {
  text-wrap: pretty;
}

.more {
  margin-top: 12px;
  color: var(--muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0 20px;
}

.label {
  font-size: 12.5px;
  color: var(--faint);
}

.mail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.mail a {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  transition: border-color 150ms ease;
}

.mail a:hover {
  border-color: var(--ink);
}

.copy {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 12.5px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease;
}

.copy:hover {
  color: var(--ink);
  border-color: #d4d4d9;
}

.reply {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .card {
    padding: 28px 22px 24px;
  }

  h1 {
    font-size: 19px;
  }
}

@media (max-width: 380px) {
  .mail {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
