/* Isaac Leibowitz, Real Estate Agent. One screen, no dependencies. */

:root {
  --ink: #17191b;
  --muted: #5f6468;
  --paper: #fbfaf8;
  --gap: clamp(0.75rem, 5vh, 2.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1rem, 4vh, 3rem) clamp(1.5rem, 5vw, 3rem);
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 34rem;
}

/* Sized from the viewport height so the page still fits one screen on short displays. */
.portrait {
  display: block;
  width: clamp(3.5rem, 16vh, 7rem);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto clamp(0.75rem, 3vh, 1.75rem);
  border-radius: 50%;
  object-fit: cover;
}

h1 {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(2.25rem, 1.5rem + 3.6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

.role {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.line,
address,
.links {
  margin-top: var(--gap);
}

.line {
  text-wrap: balance;
}

address {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-style: normal;
}

a {
  display: inline-block;
  padding: 0.55rem 0.25rem;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(23, 25, 27, 0.35);
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

@media print {
  body {
    min-height: 0;
  }
}
