:root {
  --color-bg: #f5f2ea;
  --color-ink: #161616;
  --color-muted: #8e8a80;

  --font-body: 'PP Neue Montreal TT', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  font-feature-settings: 'case' 1, 'ss01' 1, 'ss03' 1;
  text-rendering: geometricPrecision;
}

@font-face {
  font-family: 'PP Neue Montreal TT';
  src: url('PPNeueMontrealTT-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  height: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

svg {
  display: block;
}

::selection {
  background: var(--color-ink);
  color: var(--color-bg);
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    'logo    .'
    'tagline email';
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.page__logo {
  grid-area: logo;
  display: block;
  width: clamp(120px, 14vw, 180px);
  color: var(--color-ink);
  transition: opacity 0.2s ease;
}

.page__logo:hover {
  opacity: 0.7;
}

.page__logo svg {
  width: 100%;
  height: auto;
}

.page__tagline {
  grid-area: tagline;
  align-self: end;
  max-width: 32ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  letter-spacing: -0.005em;
  color: var(--color-ink);
  text-wrap: balance;
}

.page__email {
  grid-area: email;
  align-self: end;
  justify-self: end;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.page__email:hover {
  color: var(--color-ink);
}

@media (max-width: 640px) {
  .page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      'logo'
      'tagline'
      'email';
    gap: 3rem;
  }

  .page__tagline {
    align-self: end;
  }

  .page__email {
    justify-self: start;
  }
}
