/* COLORS */

:root {
  --bg-dark: #760f16;
  --bg-deep: #4f090e;

  --red: #a5252e;
  --red-dark: #70151d;
  --red-light: #d4575f;

  --cream: #fff2dd;
  --cream-dark: #f3d9bf;

  --pink: #f6c2bb;
  --pink-light: #ffe1d8;

  --text: #52191c;
  --white: #fffaf0;

  --shadow: rgba(44, 0, 4, 0.35);
}


/* RESET */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family: "Courier New", Courier, monospace;
  color: var(--text);

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(210, 67, 72, 0.25),
      transparent 45%
    ),
    linear-gradient(
      -45deg,
      #3d060b,
      #701018,
      #a52630,
      #641019,
      #8f1e27
    );

  background-size: 100% 100%, 400% 400%;
  animation: redGradient 20s ease infinite;

  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}


/* SITE WRAPPER */

.site-wrapper {
  position: relative;
  z-index: 2;

  width: min(1400px, 94%);
  margin: 0 auto;

  padding:
    32px
    0
    40px;
}


/*HEADER */

.site-header {
  margin-bottom: 24px;
}

.branding {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;

  text-align: center;

  color: var(--cream);
}

.branding h1 {
  margin: 0;

  font-size: clamp(
    1.8rem,
    4vw,
    3rem
  );

  letter-spacing: 0.05em;
}

.branding p {
  margin: 5px 0 0;

  font-size: 0.9rem;
}

.brand-star {
  font-size: 3rem;
}


/* NAVIGATION */

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 10px 24px;

  margin-top: 24px;
}

.main-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;

  min-width: 70px;

  padding: 8px;

  color: var(--cream);

  font-size: 0.8rem;
  font-weight: bold;

  text-decoration: none;

  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.main-nav a span {
  margin-bottom: 5px;

  font-size: 1.5rem;
}

.main-nav a:hover {
  color: white;
  transform: translateY(-3px);
}


/* MAIN GRID */

.homepage-grid {
  display: grid;

  grid-template-columns:
    minmax(220px, 0.8fr)
    minmax(400px, 1.5fr)
    minmax(220px, 0.8fr);

  gap: 18px;

  align-items: start;
}

.left-column,
.center-column,
.right-column {
  display: grid;
  gap: 18px;
}


/* WINDOWS */

.window {
  overflow: hidden;

  border:
    2px solid
    var(--red-dark);

  border-radius: 5px;

  background:
    var(--cream);

  box-shadow:
    5px
    6px
    0
    var(--shadow);
}

.window-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  min-height: 38px;

  padding:
    7px
    10px;

  border-bottom:
    2px solid
    var(--red-dark);

  background:
    linear-gradient(
      180deg,
      var(--pink-light),
      var(--pink)
    );
}

.window-bar h2 {
  margin: 0;

  font-size: 0.82rem;
}

.window-buttons {
  display: flex;
  gap: 4px;
}

.window-buttons span {
  display: grid;
  place-items: center;

  width: 19px;
  height: 19px;

  border:
    1px solid
    var(--red-dark);

  background:
    var(--cream);

  font-size: 0.75rem;
  line-height: 1;
}

.window-content {
  padding: 18px;
}


/* ABOUT */

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.avatar {
  width: 150px;
  aspect-ratio: 1;

  object-fit: cover;

  border: 3px solid var(--red);
  border-radius: 50%;

  margin: 0 auto;
}

.avatar {
  width: 120px;
  aspect-ratio: 1;

  object-fit: cover;

  border:
    3px solid
    var(--red);

  border-radius: 50%;
}


/* BUTTONS */

.small-button,
.main-button {
  display: inline-block;

  border:
    2px solid
    var(--red);

  background:
    var(--pink-light);

  color:
    var(--red-dark);

  font-weight: bold;

  text-decoration: none;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.small-button {
  padding:
    7px
    10px;

  font-size: 0.75rem;
}

.main-button {
  padding:
    10px
    15px;

  margin-top: 8px;
}

.small-button:hover,
.main-button:hover {
  background:
    var(--cream);

  transform:
    translate(-2px, -2px);

  box-shadow:
    3px
    3px
    0
    var(--red);
}


/* CURRENTLY / STATUS */

.currently-list p,
.status-list p {
  margin:
    0
    0
    13px;
}

.currently-list p:last-child,
.status-list p:last-child {
  margin-bottom: 0;
}

.currently-list span,
.status-list span {
  color: var(--red);

  margin-right: 7px;
}


/* WELCOME */

.welcome-content {
  text-align: center;

  padding:
    30px
    24px;
}

.welcome-title {
  margin:
    0
    auto
    8px;

  font-size:
    clamp(
      1.6rem,
      3vw,
      2.5rem
    );

  line-height: 1.25;
}

.welcome-title span {
  display: block;

  color:
    var(--red);
}

.star-divider {
  margin:
    14px
    0;

  color:
    var(--red);

  font-weight: bold;

  letter-spacing:
    0.15em;
}

.welcome-image {
  width: 100%;

  max-height: 400px;

  margin:
    18px
    auto;

  object-fit: cover;

  border:
    3px solid
    var(--red-dark);
}

.welcome-text {
  max-width: 600px;

  margin:
    12px
    auto;

  line-height: 1.6;
}


/* UPDATES */

.update-list {
  display: grid;
  gap: 0;
}

.update {
  display: grid;

  grid-template-columns:
    60px
    1fr;

  gap: 12px;

  padding:
    12px
    0;

  border-bottom:
    1px dashed
    var(--red-light);
}

.update time {
  height: fit-content;

  padding: 4px;

  border:
    1px solid
    var(--red-light);

  background:
    var(--pink-light);

  color:
    var(--red);

  text-align: center;
}

.update p {
  margin: 0;

  line-height: 1.5;
}

.text-link {
  justify-self: end;

  margin-top: 14px;

  color:
    var(--red);

  font-weight: bold;

  text-decoration: none;
}


/* BIRD CARD */

.bird-card {
  display: grid;

  grid-template-columns:
    minmax(90px, 1fr)
    1fr;

  gap: 14px;
}

.bird-card img {
  width: 100%;
  height: 160px;

  object-fit: cover;

  border:
    2px solid
    var(--red);
}

.bird-card h3 {
  margin-top: 0;
}


/* TEMPLATE CARD */

.template-card {
  text-align: center;
}

.template-preview {
  display: grid;
  place-items: center;

  min-height: 180px;

  border:
    2px solid
    var(--red-light);

  background:
    linear-gradient(
      135deg,
      #ffe0dc,
      #f8c1c2
    );

  color:
    var(--red);

  font-weight: bold;
}

.template-card .small-button {
  margin:
    4px;
}


/* SOCIAL LINKS*/

.social-links {
  display: grid;
  gap: 9px;
}

.social-links a {
  font-weight: bold;

  text-decoration: none;
}

.social-links a:hover {
  color: var(--red);
}


/* FOOTER */

.site-footer {
  margin-top: 30px;

  padding-top: 25px;

  border-top:
    1px dashed
    rgba(255, 242, 221, 0.5);

  color:
    var(--cream);

  text-align: center;
}


/* FALLING STARS */

.star-field {
  position: fixed;

  inset: 0;

  overflow: hidden;

  pointer-events: none;

  z-index: 0;
}

.falling-star {
  position: absolute;
  top: -30px;

  color: var(--cream);
  opacity: 0.8;
  pointer-events: none;

  text-shadow: 0 0 6px rgba(255, 238, 190, 0.8);

  animation: fallSway linear forwards;
}

@keyframes fallSway {
  0% {
    transform: translate(0, -30px) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.9;
  }

  25% {
    transform: translate(calc(var(--sway) * -1), 25vh) rotate(45deg);
  }

  50% {
    transform: translate(var(--sway), 50vh) rotate(90deg);
  }

  75% {
    transform: translate(calc(var(--sway) * -0.75), 75vh) rotate(135deg);
  }

  90% {
    opacity: 0.9;
  }

  100% {
    transform: translate(calc(var(--sway) * 0.5), 110vh) rotate(180deg);
    opacity: 0;
  }
}


/* TABLET */

@media (max-width: 1050px) {

  .homepage-grid {
    grid-template-columns:
      1fr
      1.5fr;
  }

  .right-column {
    grid-column:
      1 / -1;

    grid-template-columns:
      repeat(3, 1fr);
  }

}


/* CENTER MINI GRID */

.center-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}


/* MOBILE */

@media (max-width: 700px) {

  .site-wrapper {
    width: 92%;

    padding-top: 20px;
  }

  .branding {
    gap: 8px;
  }

  .brand-star {
    font-size: 1.8rem;
  }

  .main-nav {
    gap: 5px;
  }

  .main-nav a {
    min-width: 60px;

    font-size: 0.68rem;
  }


  .homepage-grid {
    display: flex;
    flex-direction: column;
  }


  .left-column,
  .center-column,
  .right-column {
    display: contents;
  }


  

  .welcome-window {
    order: -10;
  }


  .about-content {
    grid-template-columns:
      90px
      1fr;
  }

  .avatar {
    width: 90px;
  }


  .bird-card {
    grid-template-columns:
      110px
      1fr;
  }


  .window-content {
    padding: 14px;
  }


  .welcome-content {
    padding:
      22px
      15px;
  }

}


@media (max-width: 700px) {
  .center-mini-grid {
    grid-template-columns: 1fr;
  }
  
   .origins-content {
    grid-template-columns: 1fr;
  }

  @media (max-width: 700px) {

  .origins-media {
    width: 75%;
    max-width: 280px;
    margin: 0 auto;
  }

}
}


@media (max-width: 450px) {

  .about-content,
  .bird-card {
    grid-template-columns: 1fr;
  }

  .avatar {
    margin: auto;
  }

  .bird-card img {
    height: 190px;
  }

}





/* =========================================
   TEMPLATE CATALOG
========================================= */

.catalog-intro {
  max-width: 900px;
  margin:
    0 auto
    24px;
}

.catalog-intro-content {
  text-align: center;

  padding:
    30px
    25px;
}

.catalog-intro-content h2 {
  margin:
    8px
    0
    14px;

  color:
    var(--red-dark);

  font-size:
    clamp(
      1.4rem,
      3vw,
      2.2rem
    );
}

.catalog-intro-content p {
  max-width: 680px;

  margin:
    10px
    auto;

  line-height: 1.6;
}

.catalog-kicker {
  color:
    var(--red);

  font-weight: bold;

  letter-spacing:
    0.08em;
}

.catalog-note {
  color:
    var(--red);

  font-weight: bold;
}


/* =========================================
   CATALOG GRID
========================================= */

.template-catalog {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 22px;

  max-width: 1100px;

  margin:
    0 auto
    24px;
}


/* =========================================
   TEMPLATE CARDS
========================================= */

.catalog-card {
  display: flex;
  flex-direction: column;
}

.catalog-card .window-content {
  display: flex;
  flex-direction: column;

  height: 100%;
}


/* =========================================
   PREVIEW IMAGE
========================================= */

.catalog-preview {
  overflow: hidden;

  width: 100%;

  aspect-ratio: 16 / 10;

  margin-bottom: 18px;

  border:
    2px solid
    var(--red-dark);

  background:
    var(--pink-light);
}

.catalog-preview img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* =========================================
   PLACEHOLDER PREVIEW
========================================= */

.placeholder-preview {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 20px;

  padding: 20px;

  color:
    var(--red);

  background:
    repeating-linear-gradient(
      45deg,
      var(--pink-light),
      var(--pink-light) 12px,
      var(--cream) 12px,
      var(--cream) 24px
    );

  text-align: center;

  font-weight: bold;
}

.placeholder-preview span {
  font-size: 2rem;
}


/* =========================================
   TITLE + PRICE
========================================= */

.catalog-card-header {
  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 15px;

  margin-bottom: 10px;
}

.catalog-card-header h3 {
  margin: 0;

  color:
    var(--red-dark);

  font-size: 1.15rem;
}


/* =========================================
   PRICE BADGE
========================================= */

.price-badge {
  flex-shrink: 0;
  display: inline-block;

  padding: 6px 10px;

  border: 2px solid var(--red);

  background: var(--cream);

  color: var(--red-dark);

  font-weight: bold;
  font-size: 0.8rem;

  box-shadow:
    2px
    2px
    0
    var(--red);
}


/* =========================================
   DESCRIPTION
========================================= */

.catalog-description {
  margin:
    0
    0
    15px;

  line-height: 1.6;
}


/* =========================================
   FEATURES
========================================= */

.template-features {
  margin:
    0
    0
    20px;

  padding: 0;

  list-style: none;

  line-height: 1.7;
}

.template-features li {
  border-bottom:
    1px dashed
    var(--pink);

  padding:
    4px
    0;
}


/* =========================================
   BUTTONS
========================================= */

.catalog-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: auto;
}

.catalog-buttons .main-button {
  margin-top: 0;
}

.disabled-button {
  cursor: default;

  opacity: 0.6;

  pointer-events: none;
}


/* =========================================
   INFO BOX
========================================= */

.catalog-info {
  max-width: 900px;

  margin:
    0 auto;
}

.catalog-info p {
  line-height: 1.6;
}


/* =========================================
   TABLET / MOBILE
========================================= */

@media (max-width: 800px) {

  .template-catalog {
    grid-template-columns:
      1fr;

    max-width:
      620px;
  }

}


@media (max-width: 500px) {

  .catalog-intro-content {
    padding:
      22px
      16px;
  }

  .catalog-card-header {
    align-items:
      flex-start;
  }

  .catalog-buttons {
    flex-direction:
      column;
  }

  .catalog-buttons .main-button {
    width: 100%;

    text-align: center;
  }

}

/* =========================================
   FAVORITE BIRDS PAGE
========================================= */

.bird-gallery-intro {
  max-width: 900px;

  margin:
    0 auto
    24px;
}

.bird-gallery-intro-content {
  padding:
    30px
    25px;

  text-align: center;
}

.bird-gallery-intro-content h2 {
  margin:
    8px
    0
    14px;

  color:
    var(--red-dark);

  font-size:
    clamp(
      1.4rem,
      3vw,
      2.2rem
    );
}

.bird-gallery-intro-content p {
  max-width: 650px;

  margin:
    10px
    auto;

  line-height: 1.6;
}

.bird-gallery-kicker {
  color:
    var(--red);

  font-weight: bold;

  letter-spacing:
    0.06em;
}


/* =========================================
   BIRD GRID
========================================= */

.favorite-bird-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 22px;

  max-width: 1200px;

  margin:
    0 auto
    24px;
}


/* =========================================
   BIRD CARDS
========================================= */

.favorite-bird-card {
  display: flex;
  flex-direction: column;
}

.favorite-bird-card .window-content {
  display: flex;
  flex-direction: column;

  height: 100%;
}

.favorite-bird-card h3 {
  margin:
    16px
    0
    3px;

  color:
    var(--red-dark);

  font-size: 1.2rem;
}

.favorite-bird-card p {
  line-height: 1.55;
}


/* =========================================
   BIRD IMAGES
========================================= */

.favorite-bird-image {
  width: 100%;

  aspect-ratio: 4 / 3;

  object-fit: cover;

  border:
    2px solid
    var(--red-dark);

  background:
    var(--pink-light);
}


/* =========================================
   SCIENTIFIC NAME
========================================= */

.bird-scientific-name {
  margin:
    0
    0
    12px;

  color:
    var(--red);

  font-size: 0.85rem;
}


/* =========================================
   LITTLE TAGS
========================================= */

.bird-tags {
  display: flex;
  flex-wrap: wrap;

  gap: 6px;

  margin-top: auto;

  padding-top: 12px;
}

.bird-tags span {
  display: inline-block;

  padding:
    4px
    8px;

  border:
    1px solid
    var(--red);

  background:
    var(--pink-light);

  color:
    var(--red-dark);

  font-size: 0.72rem;

  font-weight: bold;
}


/* =========================================
   BOTTOM NOTE
========================================= */

.bird-gallery-note {
  max-width: 900px;

  margin:
    0 auto;
}

.bird-gallery-note .window-content {
  text-align: center;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

  .favorite-bird-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .favorite-bird-grid {
    grid-template-columns:
      1fr;
  }

  .bird-gallery-intro-content {
    padding:
      22px
      16px;
  }

}

/* =========================================
   SITE ORIGINS
========================================= */

.site-origins {
  margin-bottom: 18px;
}

.origins-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.origins-media {
  overflow: hidden;
  width: 100%;
  border: 2px solid var(--red-dark);

  background: var(--pink-light);
}

.origins-media img {
  display: block;

  width: 100%;
  height: auto;
}

.origins-text h3 {
  margin:
    6px
    0
    14px;

  color: var(--red-dark);

  font-size: 1.3rem;
}

.origins-text p {
  line-height: 1.6;
}

.origins-kicker {
  margin-top: 0;

  color: var(--red);

  font-weight: bold;

  font-size: 0.8rem;

  letter-spacing: 0.05em;
}


/* MOBILE */

@media (max-width: 700px) {

  .origins-content {
    grid-template-columns: 1fr;
  }

}
