@font-face {
  font-family: Figtree;
  src: url("assets/figtree-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #110808;
  --muted: #727272;
  --coffee: #70583b;
  --cream: #ebe4c7;
  font-family: Figtree, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .01em;
  color: var(--ink);
  background: #f7f5ef;
}

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

.card {
  container-type: inline-size;
  width: min(100%, 440px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  background: white;
}

.banner {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(to bottom, var(--cream) 90%, #e2dbc0);
}
.wordmark { display: block; width: 67.1%; }
.portrait {
  position: relative;
  display: block;
  width: 28%;
  height: auto;
  aspect-ratio: 1;
  margin: -14% 0 0 5.45%;
  border: 3px solid #fafafa;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 2px #291d131c;
}

.identity, .links { margin-inline: 5.45%; }
.identity { margin-top: 6.25%; }
h1, p { margin: 0; }
h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 565;
  letter-spacing: .01em;
}
h1 span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 420;
  white-space: nowrap;
}
.identity p {
  margin-top: .25rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 565;
  letter-spacing: .01em;
}

.links { margin-top: 1.45rem; }
.links ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
.links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: .25rem;
  border-radius: .35rem;
  line-height: 1.25;
  font-weight: 580;
  overflow-wrap: anywhere;
}
.links a > :last-child { min-width: 0; }
.icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--coffee);
  color: white;
}
.icon svg { display: block; width: 1.25rem; height: 1.25rem; }
li:first-child .icon svg { width: 1.04rem; }
small { display: block; margin-top: .1rem; color: var(--muted); font-size: .875rem; font-weight: 420; }

footer {
  margin-top: auto;
  padding: 2rem 5.45% max(2.625rem, env(safe-area-inset-bottom));
  text-align: center;
}
.save {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.45rem;
  max-width: 100%;
  padding: .5rem 2.05rem;
  border-radius: 4rem;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 565;
  color: white;
  background: var(--coffee);
}
a:focus-visible { outline: 3px solid #235d81; outline-offset: 2px; }
@media (hover: hover) {
  .links a:hover > :last-child { text-decoration: underline; text-underline-offset: .15em; }
  .save:hover { background: #59452e; }
}
.save:active, .links a:active .icon { background: #59452e; }

@container (max-width: 400px) {
  .identity p { font-size: 1.125rem; }
  .links a { gap: .8rem; }
}
@media (forced-colors: active) {
  .icon, .save { border: 1px solid ButtonText; }
  .icon { color: LinkText; }
}
