:root {
  color-scheme: light;
  --page: #1c302a;
  --paper: #fbf7ef;
  --ink: #1c302a;
  --muted: #6f6353;
  --rule: #e7ddc9;
  --accent: #b18a4e;
  --accent-soft: #efe7d6;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--page);
  color: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
}

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

a:hover {
  color: var(--accent);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 72px);
}

.contact-card {
  width: min(100%, 760px);
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  grid-template-areas:
    "portrait identity"
    "details details";
  gap: 46px 44px;
  padding: clamp(30px, 6vw, 56px);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.portrait-wrap {
  grid-area: portrait;
  width: 100%;
  margin: 0;
  align-self: start;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.identity {
  grid-area: identity;
  min-width: 0;
  align-self: center;
}

.kicker,
.specialty,
.detail-label,
.detail-value,
.degree,
.name-line {
  letter-spacing: 0;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 7vw, 4.5rem);
  line-height: 1;
  font-weight: 500;
  text-wrap: balance;
}

.degree {
  display: block;
  margin-bottom: 0.22em;
  color: var(--accent);
  font-size: 0.4em;
  font-style: italic;
  line-height: 1.1;
  font-weight: 500;
}

.name-line {
  display: block;
  overflow-wrap: normal;
}

.specialty {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.details {
  grid-area: details;
  display: grid;
  grid-template-columns: minmax(86px, 0.28fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px 28px;
  margin: 0;
  padding-top: 34px;
  border-top: 1px solid var(--rule);
  font-style: normal;
}

.detail-label {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-transform: uppercase;
}

.detail-value {
  min-width: 0;
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

a.detail-value {
  justify-self: start;
  border-bottom: 1px solid rgba(177, 138, 78, 0.6);
}

@media (max-width: 620px) {
  .page-shell {
    align-items: stretch;
    padding: 16px;
  }

  .contact-card {
    min-height: calc(100vh - 32px);
    grid-template-columns: 1fr;
    grid-template-areas:
      "portrait"
      "identity"
      "details";
    gap: 28px;
    padding: clamp(24px, 8vw, 30px);
  }

  .portrait-wrap {
    width: min(100%, 260px);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 10.5vw, 3.7rem);
  }

  .details {
    grid-template-columns: 1fr;
    gap: 8px;
    align-content: end;
  }

  .detail-value:not(:last-child) {
    margin-bottom: 12px;
  }
}
