html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.hero-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 60px;
  transform: translateY(-15px);
}

.logo-circle {
  width: 300px;
  height: 300px;
  background-color: #f1dfd2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.logo-circle img {
  width: 275px;
  height: 275px;
  object-fit: contain;
}

.brand-title {
  font-family: "Special Elite", monospace;
  font-size: 80px;
  font-weight: 700;
  color: #2f2f2f;
  margin: 0;
  letter-spacing: 1px;
}

/* Google Font */

/* IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600&family=Lora:wght@400;500;600&display=swap');

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

body {
  font-family: 'Special Elite', cursive;
  background: #e8dbd2;
  color: #222;
}

/* LAYOUT */
.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
}

/* Header */

/* HEADER */
.site-header {
  text-align: center;
  margin-bottom: 25px;
}

.site-header h1 {
  font-size: 48px;
  color: #304534;
}

/* Toolbar */

/* TOOLBAR */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-buttons,
.view-buttons {
  display: flex;
  gap: 10px;
}

.toolbar button {
  padding: 10px 18px;
  border: 1px solid #666;
  border-radius: 16px;
  background: #f5eee7;
  cursor: pointer;
  font-family: inherit;
  transition: 0.3s;
}

.toolbar button:hover {
  transform: translateY(-2px);
}

.filter-buttons .active {
  background: #e7bcc5;
}

/* Cards */

/* CARDS */
.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Grid View (default) */

.cards-container.grid-view {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* List View */

.cards-container.list-view {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.cards-container.list-view .blog-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr auto;
  background: #f7f6f4;
}

.cards-container.list-view .blog-card img {
  grid-row: 1 / span 3;

  width: 280px;
  height: 100%;

  object-fit: cover;
}

.cards-container.list-view .categories {
  grid-column: 2;

  justify-self: end;

  padding: 20px;
  margin: 0;
}

.cards-container.list-view .card-content {
  grid-column: 2;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 0 30px;
}

.cards-container.list-view .card-footer {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

/* blog card */
.blog-card {
  background: #f7f6f4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);

  display: flex;
  flex-direction: column;
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px 0;
}

.category {
  display: inline-block;
  width: fit-content;

  padding: 8px 12px;
  border-radius: 10px;
  font-size: 15px;
}

.category.informative {
  background: #b9cdb4;
}

.category.opinion {
  background: #e0bb48;
}

.category.personal {
  background: #88bddf;
}

.card-content {
  padding: 12px 18px 18px;

  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h2 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.card-footer {
  margin-top: auto;

  display: flex;
  justify-content: center;
}

.read-btn {
  display: inline-block;

  padding: 12px 24px;

  background: #e7bcc5;
  color: #222;

  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;

  border: 1px solid #b88d96;
  border-radius: 12px;

  box-shadow: 0 2px 6px rgba(0,0,0,0.12);

  transition: all 0.2s ease;
}

/* Footer */

/* FOOTER */
.footer {
  text-align: center;
  margin-top: 25px;
  color: #333;
}

/* Responsive */
@media (max-width: 992px) {
  .cards-container.grid-view {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards-container.grid-view {
    grid-template-columns: 1fr;
  }

  .cards-container.list-view .blog-card {
    grid-template-columns: 1fr;
  }

  .cards-container.list-view .blog-card img {
    width: 100%;
    height: 220px;
  }

  .site-header h1 {
    font-size: 36px;
  }
}

.view-buttons .active {
  background: #e7bcc5;
}

/* SCIENCE */
.science-page {
  font-family: 'Inter', sans-serif;
  background: #f3eadf;
  color: #222;
  min-height: 100vh;
}

.science-page h1,
.science-page h2,
.science-page h3 {
  font-family: 'Cormorant Garamond', serif;
}
.science-page .card-content {
  font-family: 'Inter', sans-serif;
}

.science-page .card-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
}
.home-page {
  background: white;
  min-height: 100vh;
  margin: 0;
}
.science-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;

  padding: 30px 0;
  margin-bottom: 35px;
}

.science-logo {
  width: 190px;
  height: auto;
}

.science-page .site-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  font-weight: 600;
  color: #304534;
  margin: 0;
  line-height: 1;
}

/* COSY */
/* ==========================================================
   A CUP OF COSY
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Quicksand:wght@400;500;600;700&display=swap');

.cosy-page {
  background: #e5e9da;
  color: #5d5048;
  font-family: 'Quicksand', sans-serif;
  min-height: 100vh;
}

.cosy-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 30px 0;
  margin-bottom: 35px;
}

.cosy-logo {
  width: 190px;
  height: auto;
}

.cosy-page .site-header h1 {
  font-family: 'Pacifico', cursive;
  font-size: 4.5rem;
  color: #304534;
  margin: 0;
  line-height: 1;
}

/* Toolbar */

.cosy-page .toolbar button {
  border: none;
  border-radius: 999px;
  background: #fffdfb;
  color: #6b574d;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: .25s;
}

.cosy-page .toolbar button:hover {
  background: #f2e7df;
  transform: translateY(-2px);
}

.cosy-page .filter-buttons .active,
.cosy-page .view-buttons .active {
  background: #c89f7a;
  color: white;
}

/* Cards */

.cosy-page .blog-card {
  background: #fffdfb;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  transition: .25s ease;
}

.cosy-page .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(0,0,0,.12);
}

.cosy-page .blog-card img {
  height: 230px;
  object-fit: cover;
}

.cosy-page .card-content {
  padding: 22px;
}

.cosy-page .card-content h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #6c4f3d;
  margin-bottom: 15px;
}

.cosy-page .card-content p {
  color: #847971;
  line-height: 1.6;
}

/* Category Tags */

.cosy-page .category {
  border-radius: 999px;
  padding: 7px 15px;
  font-size: .9rem;
  font-weight: 700;
}

.cosy-page .category.personal {
  background: #f6d8de;
  color: #8c5d68;
}

.cosy-page .category.books {
  background: #dce8ca;
  color: #5b724d;
}

.cosy-page .category.gaming {
  background: #dbe3fb;
  color: #516396;
}

/* Read Button */

.cosy-page .read-btn {
  background: #c89f7a;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(0,0,0,.12);
  transition: .25s;
}

.cosy-page .read-btn:hover {
  background: #b98967;
  transform: scale(1.04);
}

/* Footer */

.cosy-page .footer {
  color: #8b8179;
  margin-top: 40px;
}

/* HOME */
/* Home Landing Page */

.landing-page {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
}

.landing-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 50px;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.landing-card {
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 25px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  transition: .25s;
}

.landing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.landing-card img {
  width: 220px;
  max-width: 100%;
  margin-bottom: 25px;
}

.landing-card h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.landing-card p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.landing-card.cosy {
  background: #e5e9da;
}

.landing-card.science {
  background: #e8dbd2;
}

@media (max-width: 768px) {
  .landing-grid {
    grid-template-columns: 1fr;
  }
}

/* NAVIGATION */
/* Navigation */

.nav-link {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #6c4f3d !important;
  background: #fffdfb;
  border-radius: 999px;
  padding: 10px 22px !important;
  margin-right: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: .25s ease;
}

.nav-link:hover {
  background: #f2e7df;
  transform: translateY(-2px);
}

.nav-link.active {
  background: #c89f7a;
  color: white !important;
}
.landing-card.cosy {
  background: #edf2e5;     /* light olive */
}

.landing-card.science {
  background: #f3eadf;     /* warm sand */
}

.landing-card.curiosity {
  background: #eef5fb;     /* pale blue */
}

.landing-card.about {
  background: #f6e9f0;     /* dusty pastel rose */
}

     /* ==========================================================
        ABOUT ME
        ========================================================== */

   .about-page {
     background: #f6e9f0;
     color: #5d5048;
     min-height: 100vh;
   }

/* Header - matches Science & Cosy */

.about-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 30px 0;
  margin-bottom: 35px;
}

.about-logo {
  width: 190px;
  height: auto;
}


   .about-page .site-header h1 {
     font-family: 'Special Elite', monospace;
     font-size: 4.5rem;
     font-weight: 400;
     color: #304534;
     margin: 0;
     line-height: 1;
   }



/* ==========================================================
   ABOUT CONTENT
   ========================================================== */

.about-content {
  width: min(900px, 90%);
  margin: 0 auto 80px;
  padding: 45px 55px;

  background: rgba(255, 255, 255, 0.55);
  border-radius: 18px;

  font-family: 'Special Elite', monospace;
  font-size: 1.05rem;
  line-height: 1.9;

  box-sizing: border-box;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.about-content p {
  margin: 0 0 1.7em;
}

.about-emphasis {
  font-size: 1.35rem;
  text-align: center;
  margin: 2em 0 !important;
}

.about-signoff {
  text-align: right;
  margin-top: 2.5em !important;
  margin-bottom: 0 !important;
  font-size: 1.15rem;
}


/* ==========================================================
   ABOUT FOOTER
   ========================================================== */

.about-page .footer {
  color: #8b8179;
  margin-top: 40px;
}