@font-face {
  font-family: "ABC Oracle:Book";
  src: url("fonts/ABC_Oracle-Book.woff2") format("woff2");
  font-style: normal;
  font-weight: 350;
  font-display: swap;
}

@font-face {
  font-family: "Herbik:Regular";
  src: url("fonts/Herbik-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body,
h1,
p,
figure {
  margin: 0;
}

body {
  background: #fff;
  color: #000;
}

img {
  display: block;
}

a {
  color: inherit;
}


.portfolio {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 24px;
}

/* Top bar */
.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.brand {
  font-family: "ABC Oracle:Book", sans-serif;
  font-size: 28px;
  font-weight: 350;
  line-height: 34px;
  letter-spacing: -1.5px;
  text-decoration: none;
}

.brand sup {
  display: inline-block;
  margin-left: 1px;
  vertical-align: top;
  font-size: 16px;
  line-height: 23px;
}

.brand-note {
  font-family: "Herbik:Regular", serif;
  font-size: 16px;
  line-height: 1.2;
  text-align: right;
}

/* Main copy, pushed into the middle of the remaining space */
.about {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about h1 {
  font-family: "ABC Oracle:Book", sans-serif;
  font-size: 28px;
  font-weight: 350;
  line-height: 1;
  letter-spacing: -1.5px;
}

.bio {
  margin-top: 24px;
  font-family: "Herbik:Regular", serif;
  font-size: 18px;
  line-height: 1.2;
}

.bio p + p {
  margin-top: 21.6px;
}

.bio a {
  text-decoration-line: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
}

.signature {
  width: 101px;
  height: 57px;
  margin-top: 32px;
}

.portrait {
  margin: 48px auto 0;
  width: 392px;
  max-width: 100%;
  aspect-ratio: 392 / 477;
  overflow: hidden;
  border-radius: 4px;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

/* Footer pinned to the bottom */
.footer {
  margin-top: auto;
  padding-top: 48px;
  font-family: "Herbik:Regular", serif;
  font-size: 16px;
  line-height: 1.2;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .portfolio {
    padding: 20px 16px;
  }

  .about {
    margin-top: 72px;
  }
}


.content {
  display: contents;
}

@media (min-width: 1280px) {
  .portfolio {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: 24px;
  }

  .content {
    display: grid;
    grid-template-columns: 504px 392px;
    column-gap: 80px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: auto auto;
  }

  .about {
    margin-top: 0;
    align-items: flex-start;
    text-align: left;
  }

  .portrait {
    margin: 0;
    align-self: center;
  }

  .footer {
    margin-top: 0;
  }
}
