@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap";

/* src/styles/index.css */
@media screen and (min-width: 40em) {
  #profile {
    grid-row-start: span 2;
    height: 20rem;
  }
}

@media screen and (max-width: 40em) {
  #profile {
    visibility: hidden;
    height: 0;
  }
}

#profile {
  box-shadow: none;
  overflow: clip;
  display: inline-flex;
  border-radius: 50%;
  justify-content: center;
}

#profile img {
  height: 100%;
  transition: height 1s ease-out;
}

#profile:hover img {
  height: 190%;
}

/* src/styles/theme.css */
:root {
  --PRIMARY: #ea5940;
  --SECONDARY: #a02b17;
  --DARK: #2f3542;
  --LIGHT: #f1e9d4;
  --PRIMARY-GRADIENT: linear-gradient(to bottom right, #ff582a 0%, #e74c3c 100%);
  --SHADOW: 0 0 1rem #0000004d;
}

* {
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

body {
  background-color: #f1f1f1;
}

@media screen and (min-width: 40rem) {
  #page-title {
    --font-size: 5rem;
  }
}

@media screen and (min-width: 26rem) and (max-width: 40rem) {
  #page-title {
    --font-size: 3.5rem;
  }
}

@media screen and (max-width: 26rem) {
  #page-title {
    --font-size: 2rem;
  }
}

#page-title {
  user-select: none;
  box-shadow: none;
  border-radius: 1rem;
  padding: 50px;
}

#page-title h1 {
  font-size: VAR(--font-size);
  color: VAR(--DARK);
  margin: 0;
  transition: font-size 1s;
  font-weight: 800;
}

#page-title:hover h1 {
  font-size: CALC(1.2 * VAR(--font-size));
}

#page-title p {
  color: VAR(--DARK);
}

#page-title a {
  color: #4b4e5a;
}

span.tag {
  white-space: nowrap;
  border-radius: .25rem;
  padding: 1px .5rem;
  line-height: 1.6;
}

span.tag.orange {
  background: VAR(--LIGHT);
  color: VAR(--DARK);
  opacity: .6;
}

span.tag.dark {
  color: VAR(--LIGHT);
  background: VAR(--DARK);
}

.card-outer {
  background: VAR(--DARK);
  display: flex;
  border-radius: 1rem;
  flex-direction: column;
  padding: .5rem;
  transition: transform .3s, box-shadow .3s;
}

.card-outer.highlighted {
  background: VAR(--PRIMARY-GRADIENT);
}

a.card-outer {
  text-decoration: none;
}

a.card-outer:hover {
  box-shadow: VAR(--SHADOW);
  transform: scale(1.02);
}

.card-outer .card-inner {
  background-color: VAR(--DARK);
  color: VAR(--LIGHT);
  border-radius: .6rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
}

.card-inner h3 {
  color: VAR(--PRIMARY);
  text-align: center;
  transition: font-size 1s;
  font-size: medium;
  font-weight: 600;
}

.card-inner p {
  font-weight: 400;
}

.card-inner a {
  color: VAR(--SECONDARY);
}

footer {
  text-align: center;
  margin: 2em;
}

footer a {
  color: VAR(--SECONDARY);
}

/* src/styles/layout.css */
@media screen and (min-width: 50rem) {
  main {
    margin: 1rem calc(30% - 15rem);
  }
}

article.grid {
  display: grid;
  grid-template-rows: repeat(auto-fill, 12rem);
  gap: 1rem;
}

article.grid > * {
  box-shadow: 0 0 .5rem #0003;
}

.full-width {
  grid-column: 1 / -1;
}

@media screen and (min-width: 26rem) {
  article.grid {
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  }
}

@media screen and (max-width: 26rem) {
  article.grid {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }
}

@media screen and (min-width: 40em) {
  #page-title {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
}

@media screen and (max-width: 40em) {
  #page-title {
    grid-row: 1 / 4;
  }
}
