/* ethanjlewis.com. Colors, type and spacing come from tokens.css (generated from the design system). No raw colors here. */

@font-face {
  font-family: "IBM Plex Serif";
  src: url(/plex-serif-600.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url(/plex-sans-400.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url(/plex-sans-500.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html {
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--space-6) var(--space-5);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--type-body-family);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
}

.card {
  width: 100%;
  max-width: 36rem;
  text-align: center;
}

.headshot {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto var(--space-6);
  object-fit: cover;
  border-radius: var(--radius-full);
  border: 1px solid var(--rule);
}

h1 {
  margin: 0;
  font-family: var(--type-name-family);
  font-size: var(--type-name-size);
  line-height: var(--type-name-line);
  font-weight: var(--type-name-weight);
  letter-spacing: var(--type-name-tracking);
  color: var(--ink);
}

.tagline {
  max-width: 30rem;
  margin: var(--space-4) auto 0;
  font-family: var(--type-tagline-family);
  font-size: var(--type-tagline-size);
  line-height: var(--type-tagline-line);
  font-weight: var(--type-tagline-weight);
  color: var(--ink-muted);
  text-wrap: balance;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--accent);
  font-family: var(--type-link-family);
  font-size: var(--type-link-size);
  line-height: var(--type-link-line);
  font-weight: var(--type-link-weight);
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.button.email {
  overflow-wrap: anywhere;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .headshot {
    width: 176px;
  }

  h1 {
    font-size: 36px;
    line-height: 44px;
  }
}
