html {
  background: #CCBAA6;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

.wrapper {
  max-width: 30rem;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

.header-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
}

.logo-area {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.pettitle {
  font-family: 'Geomancy', sans-serif;
  font-size: 1.8rem;
  color: #743014;
  text-shadow: 0.2rem 0.2rem 0.2rem #0000006b;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.pawlogo {
  max-width: 3.75rem;
  width: 100%;
  height: auto;
}

.main-nav {
  width: 100%;
  margin-top: 0.3125rem;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
}

.main-nav a {
  color: #b87121;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #fbe9d8;
  text-shadow: 0.2rem 0.2rem 0.2rem #0000006b;
}

img {
  object-fit: cover;
}

.diagonal {
  position: fixed;
  top: 20%;
  left: 0;
  width: 70%;
  height: 100vh;
  background: #8a4021ce;
  clip-path: polygon(0 0, 100% 79%, 100% 100%, 0 100%);
  z-index: -1;
}

#main-content-display {
  margin: 1rem auto;
  max-width: 95%;
}

.content-article {
  display: block;
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 4rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(0.3125rem);
  border-radius: 1.25rem;
  box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.05);
}

.magazine-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

@media (min-width: 48rem) {
  .magazine-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

@media (min-width: 75rem) {
  .magazine-grid {
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
  }
}

.mag-main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mag-featured {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0.9375rem;
  padding: 1.5rem;
}

.mag-image-placeholder {
  width: 100%;
  height: 12.5rem;
  background: #d4b595;
  border-radius: 0.625rem;
  margin-bottom: 1rem;
}

.mag-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 37.5rem) {
  .mag-sub-grid {
    grid-template-columns: 1fr;

  }
}

.mag-sub-card {
  background: #fff8f0;
  padding: 1rem;
  border-radius: 0.625rem;
  box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.05);
}

.mag-sub-card button {
  background: #743014;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 1.25rem;
  cursor: pointer;
  font-weight: bold;
}

.mag-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 1rem;
}

.sidebar-ad {
  background: #743014;
  color: white;
  padding: 1.5rem;
  border-radius: 0.9375rem;
  text-align: center;
}

.sidebar-ad h4 {
  margin-top: 0;
  color: #fff;
}

.sidebar-ad button {
  background: #fff;
  color: #743014;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 1.25rem;
  cursor: pointer;
  font-weight: bold;
}

.sidebar-note {
  background: #fffae6;
  border: 0.0625rem solid #e0d0a0;
  padding: 1rem;
  border-radius: 0.3125rem;
  box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1);
  transform: none;
  margin-bottom: 2rem;
  width: 100%;
}

.main-nav a.active {
  border-bottom: 0.125rem solid #743014;
  color: #743014;
}

@media (min-width: 48rem) {
  .wrapper {
    max-width: 40rem;
    padding: 2rem;
  }

  .pettitle {
    font-size: 3rem;
  }

  .pawlogo {
    max-width: 6.25rem;
  }

  .main-nav a {
    font-size: 1rem;
  }

  .main-nav ul {
    gap: 2rem;
  }
}

@media (min-width: 75rem) {
  .wrapper {
    max-width: 50rem;
  }

  .pettitle {
    font-size: 5rem;
    white-space: nowrap;
  }

  .pawlogo {
    max-width: 9.375rem;
  }

  .main-nav a {
    font-size: 1.2rem;
  }

  .main-nav ul {
    gap: 4rem;
  }

  .wrapper {
    padding: 3rem;
  }

  #main-content-display {
    margin: 1rem auto;
    max-width: 80%;
  }
}

.column-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.content-block {
}

.grid-footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 48rem) {
  .grid-footer {
    grid-template-columns: 1fr;
  }
}