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

:root {
  color-scheme: light;
  font-family: Montserrat, Arial, sans-serif;
  color: #243950;
  --navy: #163871;
  --muted: #536577;
  --line: #dce5eb;
  --inset: clamp(1.15rem, 5.65vw, 1.8rem);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: #eaf0f4;
  line-height: 1.45;
}
.card {
  width: 100%;
  max-width: 29rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  background: white;
  box-shadow: 0 0 48px #334d6417;
  padding-bottom: max(.7rem, env(safe-area-inset-bottom));
}
a { color: inherit; -webkit-tap-highlight-color: #d8e9f6; }
a:focus-visible { outline: 3px solid #2275ad; outline-offset: 3px; }
h1, h2, p { margin: 0; }
.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 4.2rem;
  padding: max(.55rem, env(safe-area-inset-top)) var(--inset) .55rem;
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(107deg, white 14%, #f4f8fa 49%, #e1edf4);
}
.masthead::before {
  position: absolute;
  inset: 0 0 0 32%;
  z-index: -1;
  content: "";
  background: repeating-radial-gradient(ellipse 106% 300% at 108% -208%,
    transparent 0 8px, #779bb83f 8.5px 9.5px, transparent 10px 14px);
  mask-image: linear-gradient(90deg, transparent, black 46%);
}
.company-logo { display: inline-flex; align-items: center; min-height: 44px; }
.company-logo img { display: block; width: 4.3rem; height: auto; }
.identity {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 3.9vw, 1.15rem);
  padding: clamp(1rem, 2.9svh, 1.68rem) var(--inset) clamp(.9rem, 2.3svh, 1.35rem);
}
.portrait {
  flex: none;
  width: clamp(4.4rem, 22vw, 6.65rem);
  height: auto;
  border-radius: .7rem;
}
.identity-copy { min-width: 0; }
h1 {
  color: #122f59;
  font-size: clamp(1.42rem, 6.7vw, 1.95rem);
  line-height: 1.09;
  letter-spacing: -.047em;
  font-weight: 650;
}
h1 span { white-space: nowrap; }
.role {
  margin-top: .34rem;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.33;
}
.organization {
  margin-top: .18rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}
.action-area, .details, .expertise { margin-inline: var(--inset); }
.save-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .62rem;
  min-height: 2.95rem;
  padding: .65rem 1rem;
  border-radius: .58rem;
  color: white;
  background: var(--navy);
  font-weight: 650;
  text-decoration: none;
}
.save-contact:hover { background: #234b83; }
.icon {
  display: inline-block;
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  background: currentColor;
  mask: url("./assets/card-icons.png") 0 center / 300% 100% no-repeat;
}
.icon-save { width: 1.25rem; height: 1.25rem; }
.icon-mail { mask-position: 50% center; }
.icon-phone { mask-position: 100% center; }
.icon-linkedin {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  mask: none;
  background: transparent;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  font: bold .91rem/1 Arial, sans-serif;
}
.details { margin-top: clamp(1rem, 2.9svh, 1.6rem); }
h2 {
  color: #17365c;
  font-size: 1.055rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.028em;
}
.contact-links { margin-top: .35rem; font-style: normal; }
.contact-link {
  display: grid;
  grid-template-columns: 2.55rem minmax(0, 1fr);
  align-content: center;
  column-gap: .7rem;
  min-height: 3.05rem;
  padding: .33rem 0;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.icon-tile {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  align-self: center;
  width: 2.55rem;
  height: 2.55rem;
  background: #edf3f8;
  color: #2c4d86;
  border-radius: .6rem;
}
.icon-tile .icon:not(.icon-linkedin) { width: 1.4rem; height: 1.4rem; }
.field { grid-column: 2; align-self: end; color: var(--muted); font-size: .875rem; line-height: 1.25; }
.value {
  grid-column: 2;
  color: #163b65;
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.36;
  overflow-wrap: anywhere;
}
.contact-link:hover .value { text-decoration: underline; text-underline-offset: .16em; }
.expertise { margin-top: clamp(.85rem, 2.5svh, 1.45rem); }
.expertise ul {
  display: grid;
  gap: .28rem;
  margin: .45rem 0 0;
  padding: 0;
  list-style: none;
}
.expertise li {
  position: relative;
  padding-left: .85rem;
  font-size: 1rem;
  line-height: 1.42;
}
.expertise li::before {
  position: absolute;
  top: .59em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: #5686a9;
}
@media (min-width: 30rem) and (pointer: coarse) {
  .card { max-width: none; }
}
@media (min-height: 45rem) {
  .card { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
  .masthead { min-height: 5rem; }
  .contact-link { padding-block: .63rem; }
  .expertise ul { gap: .4rem; }
}
@media (max-height: 42rem) {
  .masthead { min-height: 3.85rem; padding-block: .38rem; }
  .identity { padding-block: .9rem .8rem; }
  .details { margin-top: .9rem; }
  .expertise { margin-top: .78rem; }
}
@media (max-width: 21rem) {
  :root { --inset: .95rem; }
  .identity { gap: .7rem; }
  h1 span { white-space: normal; }
}
@media (max-width: 21rem) and (max-height: 38rem) {
  .masthead { min-height: 3.3rem; padding-block: .25rem; }
  .company-logo img { width: 3.6rem; }
  .identity { padding-block: .7rem .65rem; }
  .details { margin-top: .7rem; }
  .contact-link { min-height: 2.75rem; padding-block: .2rem; }
  .value { letter-spacing: -.035em; }
  .expertise { margin-top: .68rem; }
  .expertise ul { gap: .14rem; }
  .expertise li { line-height: 1.35; }
}
@media (forced-colors: active) {
  .save-contact { border: 1px solid ButtonText; }
  .icon:not(.icon-linkedin) { background: ButtonText; forced-color-adjust: none; }
}
