
/* CSS Reset */

html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  /* set relative sizing to go off of the border box, not the content box. explanation: https://www.joshwcomeau.com/css/custom-css-reset/ */
  box-sizing: inherit;
}

* {
  /* remove default margin */
  margin: 0;
  /* remove default padding */
  padding: 0;
}

body {
  /* disable subpixel antialiasing on macs https://www.joshwcomeau.com/css/custom-css-reset/#four-font-smoothing-5 */
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  /* convert media elements from inline to block */
  display: block;
  /* prevent media elements from spilling out of container */
  max-width: 100%;
}

input,
button,
textarea,
select {
  /* prevent input areas from having their own separate style */
  font: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

/* stop browsers from adding quotes around quote elements */
q:before,
q:after {
  content: "";
}

/* ------------ */

/* hanken-grotesk-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/hanken-grotesk-v12-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* crimson-pro-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/crimson-pro-v28-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


:root {
  --font-sans: "Hanken Grotesk", Helvetica, Arial, sans-serif;
  --font-serif: "Crimson Pro", Georgia, Times, serif;
}

html {
  background-color: #293029;
}

body {
  font-family: var(--font-serif);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-size: 1.5em;
  color: #fff;
}

footer {
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

a:link {
  color: #fff;
}

code {
  font-family: "Source Code Pro", sans-serif;
}

header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

nav {
  display: flex;
  margin-top: 0.75rem;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  width: 50ch;
}

nav svg {
 width: 2.5em;
 height: 2.5em;
 margin-left: 0.4em;
 margin-top: 0.4em;
 margin-bottom: 0.4em;
}

nav ul {
  display: flex;
  flex-direction: row;
  margin-bottom: 0.5em;
  list-style-type: none;
  align-self: flex-end;
}

nav .spacer {
flex-grow: 1;
}

nav ul a {
  color: inherit;
  text-decoration: none;
  padding: 0.5rem;
}

h1 {
  font-family: "Hanken Grotesk", sans-serif;
}

.flex-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  height: 100%;
  width: 100%;
}

/* Portfolio styles */

.portfolio-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: start;
  justify-self: center;
  align-items: center;
  border-top: 1px solid #fff;
  padding-top: 0.5ch;
  width: 50ch;
  height: 100%;
}

.portfolio-wrapper main {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border: none;
  justify-items: end;
  text-align: center;
}

.portfolio-wrapper main a {
  text-decoration: none;
}

.portfolio-wrapper main img {
  border: solid;
  border-radius: 0.25em;
  padding: 1%;
  line-height: 1.5;
}

main p:last-child {
  margin-bottom: 0px;
}

main {
  width: 50ch;
  border: solid;
  border-radius: 0.25em;
  padding: 1%;
  line-height: 1.5;
}

.profileimage {
  width: 10rem;
  border-radius: 50%;
  border: 3px solid #000;
  margin-bottom: 0.1em;
  margin-left: auto;
  margin-right: auto;
}

p {
  margin-bottom: 0.7em;
}

/* MOBILE */

@media only screen and (max-width: 768px) {

  main, nav, .portfolio-wrapper {
    width: 20rem;
  }

  body {
    font-size: 1.2em;
  }

  .portfolio-wrapper main {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
}
