@font-face {
  font-family: Literata;
  src: url('literata.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans Pro';
  src: url('source-sans-pro-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #eeeae3;
  --ink: #39352f;
  --link-active: #a74d4a;
  --inset: clamp(2rem, 5vw, 6rem);
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scrollbar-color: #a69d90 var(--paper);
  overscroll-behavior-y: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }
.presence {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 44% 56%;
  grid-template-rows: 1fr auto;
}
.identity { display: contents; }
h1 {
  grid-area: 1 / 1;
  align-self: center;
  margin: 0;
  padding: 4rem var(--inset) 0;
  font-family: Literata, Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 5.85vw, 6rem);
  line-height: 1.16;
  letter-spacing: -.035em;
}
.portrait {
  grid-area: 1 / 2 / 3 / 3;
  min-width: 0;
  height: max(100svh, 36rem);
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
nav {
  grid-area: 2 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem var(--inset) 3.5rem;
}
a {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  color: inherit;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
a span { text-decoration: underline; }
a:hover, a:focus-visible { color: var(--link-active); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
svg { width: 1rem; height: 1rem; flex: 0 0 auto; transform: translateY(-.5px); }
@media (max-width: 760px) {
  :root { --inset: min(1.5rem, 24px); }
  .presence {
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(12rem, 1fr) auto;
    min-height: max(100svh, 36rem);
    min-height: max(100dvh, 36rem);
    padding: max(1.5rem, env(safe-area-inset-top))
      max(var(--inset), env(safe-area-inset-right))
      max(1.25rem, env(safe-area-inset-bottom))
      max(var(--inset), env(safe-area-inset-left));
    color: #fff;
    background: #172124;
  }
  .portrait {
    position: absolute;
    inset: 0;
    z-index: -2;
    height: 100%;
    grid-area: auto;
  }
  .portrait img { object-position: 50% 24%; }
  .identity {
    display: block;
    position: relative;
    grid-area: 2 / 1;
    z-index: 0;
    min-width: 0;
  }
  .identity::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -5rem;
    right: calc(-1 * max(var(--inset), env(safe-area-inset-right)));
    bottom: calc(-1 * max(1.25rem, env(safe-area-inset-bottom)));
    left: calc(-1 * max(var(--inset), env(safe-area-inset-left)));
    background: linear-gradient(to bottom, transparent,
      rgb(8 15 20 / .46) 5rem, rgb(8 15 20 / .70));
    pointer-events: none;
  }
  h1 {
    grid-area: 2 / 1;
    align-self: end;
    font-size: clamp(2.5rem, 11vw, 3.25rem);
    line-height: 1.06;
    padding: 0;
    letter-spacing: -.025em;
    text-shadow: 0 1px 3px rgb(0 0 0 / .24);
    overflow-wrap: anywhere;
  }
  nav {
    grid-area: 3 / 1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .25rem .5rem;
    padding: .875rem 0 0;
  }
  a {
    font-size: 1rem;
    text-shadow: 0 1px 3px rgb(0 0 0 / .45);
  }
  a:hover, a:focus-visible { color: #fff; }
  a:hover span { text-decoration-thickness: 2px; }
  a:focus-visible { outline-color: #fff; outline-offset: 4px; }
}
@media (max-width: 350px) {
  :root { --inset: min(1rem, 16px); }
  a { font-size: .875rem; gap: .25rem; }
  svg { width: .875rem; height: .875rem; }
}
@media (min-width: 761px) and (max-height: 600px) {
  h1 { padding-top: 2rem; }
  nav { padding-bottom: 2rem; }
}
