:root {
  --main-color: #e3bfd1;
  --second-color: white;
  --third-color: #FF3284;
  --text-color: black;
  --border: 2px solid var(--text-color);
  --dotted : fixed radial-gradient(circle at center, var(--third-color) 25%, var(--second-color) 20%) repeat center/5px 5px
}

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

::selection {
  color: var(--second-color);
  background-color: var(--third-color);
}

body {
  background: var(--main-color);
  font-family: "Anonymous Pro", monospace;
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: var(--border);
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 380px) {
  .site-header {
    min-height: 210px;
  }
}

.site-title {
  text-decoration: none;
  color: var(--text-color);
  font-size: 3rem;
  font-weight: 300;
}

.site-subtitle { font-size: 1.7rem; }

@media (max-width: 600px) {
  .site-subtitle { padding: 0.5rem 0 0 0; }
}

.site-subtitle .typewriter-text {
  white-space: pre;
}

.header-nav {
  display: flex;
  gap: 2rem;
}

.header-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.5rem;
}

.header-nav a:hover {
  text-decoration: underline;
  color: var(--text-color);
}

.articles-grid {
  width: min(900px, 95%);
  margin: 4rem auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 4rem;
  column-gap: 3rem;
  justify-items: center;
}

@media (max-width: 900px) {
  .articles-grid { 
    margin: 2rem auto;
    grid-template-columns: 1fr; 
    row-gap: 2rem;
  }
}

.article-wrapper {
  max-width: 500px;
  min-height: 420px;
  height: auto;
}

.article-outline:hover{
  background: var(--dotted);
}

.article-outline {
  display: flex;
  flex-direction: column;
  height: 100;
}

.article-outline img {
  width: 90%;
  display: block;
  margin: 1rem;
}

.article-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.article-content h2 {
  flex: 1;
  display: flex;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  margin: 0;
  padding-inline: 0.5rem;
}

.article-description {
  padding-bottom: 2rem;
}

.article-description h3 {
  margin: 0.5rem auto;
}

.photo-wrapper {
  position: relative;
}

.photo-credit {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  font-size: 0.5rem;
  color: var(--second-color);
}

.content-frame-wrapper {
  width: min(900px, 90%);
  margin: 4rem auto;
}

@media (max-width: 900px) {
  .content-frame-wrapper { 
    margin: 2rem auto;
  }
}

.content-frame-outline {
  font-size: 1.5rem;
  padding: 1.5rem;
}

@media (max-width: 380px) {
  .content-frame-outline { 
    font-size: 1.3rem;
  }
}

.frame-wrapper {
  position: relative;
}

.frame-shadow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--second-color);
  top: -0.5rem;
  left: -0.5rem;
  z-index: 1;
}

.frame-outline {
  position: relative;
  width: 100%;
  height: 100%;
  border: var(--border);
  z-index: 2;
}

.burger {
  display: none;
}

@media (max-width: 600px) {

  .header-nav--desktop {
    display: none;
  }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2rem;
    height: 1.4rem;
    cursor: pointer;
    position: absolute;
    top: 2.5rem;
    right: 1.5rem;
  }

  .burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: black;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  min-height: 60vh;
}

.mobile-menu__link {
  font-size: 2.5rem;
  font-weight: 300;
  color: black;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  text-decoration: underline;
}

.site-footer {
  text-align: center;
  padding: 1rem;
}