@font-face {
  font-family: Geist;
  src: url('./geist-regular.ttf') format('truetype');
  font-display: swap;
  font-weight: 400;
}

:root {
  color-scheme: dark;
  font-family: Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f6f5f2;
  background: #000;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #bcd8ec; outline-offset: 4px; }

svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }

.card {
  width: min(100%, 488px);
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right))
           max(18px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
}
.masthead { display: flex; align-items: center; justify-content: space-between; }
.brand, .save, .row, .address, .copy { display: flex; align-items: center; }
.brand { margin-left: -3px; gap: 7px; font-size: 21px; letter-spacing: -.065em; }
.brand img { filter: drop-shadow(0 0 5px #adcddd33); }
.save { min-height: 44px; gap: 7px; font-size: 13px; color: #c2c1bf; }
.save svg { width: 17px; height: 17px; }
.save:hover, .address:hover, .copy:hover { color: #fff; }

.portrait {
  position: relative;
  isolation: isolate;
  margin-top: 12px;
  min-height: clamp(220px, 62vw, 286px);
  display: flex;
  align-items: flex-end;
}
.photo {
  position: absolute;
  z-index: -1;
  top: 0;
  right: -12px;
  width: 67%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: grayscale(1);
  mask-image: linear-gradient(to right, transparent, #000 13%, #000 95%, transparent),
              linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-composite: intersect;
}
.greeting { padding: 15px 0 23px; }
h1 {
  margin: 0;
  font-size: clamp(53px, 14vw, 72px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.06em;
}
.greeting p { margin: 13px 0 0; color: #b3b3af; font-size: 15px; letter-spacing: -.02em; }

.actions { margin-top: 13px; min-width: 0; }
.links { display: grid; gap: 8px; }
.row {
  gap: 16px;
  min-height: 55px;
  padding: 10px 17px;
  border: 1px solid #2f2f30;
  border-top-color: #444446;
  border-radius: 14px;
  background: linear-gradient(165deg, #202022 0%, #151516 35%, #101011 80%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .035);
  font-size: 16px;
  letter-spacing: -.026em;
}
.icon { flex: none; width: 21px; height: 21px; color: #d2d2cf; }
.primary { background: linear-gradient(160deg, #343436, #202022 53%, #171719); border-top-color: #59595b; }
.number { margin-left: auto; text-align: right; color: #c4c4c1; font-size: 12px; letter-spacing: 0; }
.out { width: 17px; height: 17px; margin-left: auto; color: #9a9a98; }
@media (hover: hover) {
  .row:hover { border-color: #68686a; background: linear-gradient(165deg, #2a2a2c, #181819 65%); }
}
.row:active { background: #28282a; }

.email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 0 0;
  border-top: 1px solid #292929;
}
.address { gap: 11px; min-height: 44px; min-width: 0; font-size: 14px; letter-spacing: -.015em; color: #c6c6c2; }
.address span { overflow-wrap: anywhere; }
.address .icon { width: 17px; height: 17px; color: #a0a09c; }
.copy {
  gap: 6px;
  justify-content: center;
  min-width: 61px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  font-size: 13px;
}
.copy svg { width: 15px; height: 15px; }
.status { margin: 0; color: #b9cad6; font-size: 13px; }
.status:not(:empty) { margin-top: 5px; }
.manual { width: 100%; margin-top: 10px; padding: 10px; border: 1px solid #888; border-radius: 6px; background: #161616; color: #fff; font-size: 16px; }

@media (min-width: 760px) {
  body { min-height: 100svh; display: grid; align-items: center; }
  .card {
    width: min(100%, 1020px);
    padding: 38px clamp(32px, 5vw, 70px) 64px;
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    grid-template-areas: "mast mast" "portrait actions";
    column-gap: clamp(35px, 7vw, 100px);
    align-items: center;
  }
  .masthead { grid-area: mast; padding-bottom: 17px; border-bottom: 1px solid #2a2a2a; }
  .portrait { grid-area: portrait; height: clamp(380px, 43vw, 508px); margin-top: 24px; }
  .photo { width: 85%; height: 94%; right: -3%; object-position: center 0%; }
  .greeting { padding: 16px 0 12px; }
  h1 { font-size: clamp(68px, 6.6vw, 90px); }
  .greeting p { font-size: 18px; margin-top: 18px; }
  .actions { grid-area: actions; margin: 30px 0 0; }
  .row { min-height: 61px; padding-inline: 19px; }
  .links { gap: 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand img { animation: wake 950ms ease-out both; }
  .greeting { animation: greet 600ms ease-out both; }
  @keyframes wake { from { transform: scale(.82); filter: drop-shadow(0 0 8px #d7eaffaa); } }
  @keyframes greet { from { opacity: .7; transform: translateY(4px); } }
}
