/* ============================================
   DREAMY PIXELS — Kawaii Pastel Diary Template
   ============================================
   Colors, fonts, and layout are easy to customize.
   Look for comments marked "EDIT:" for quick changes.

   EDIT: To change colors, update the values in :root below.
   EDIT: To change fonts, update the Google Fonts @import URL.
*/

/* EDIT: Change fonts by replacing the Google Fonts URL below */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700&family=Caveat:wght@400;700&family=Quicksand:wght@400;500&display=swap');

/* EDIT: Change your color palette here — update any color value */
/* Each color has three versions: main, light (backgrounds), and dark (text/accents) */
:root {
  --pink: #f7a7c8;
  --pink-light: #fde8f1;
  --pink-dark: #e875a5;
  --mint: #a8dcd1;
  --mint-light: #dff5ef;
  --mint-dark: #6bb8a8;
  --yellow: #fdd87a;
  --yellow-light: #fff3c8;
  --yellow-dark: #d4a830;
  --lilac: #c8b6e2;
  --lilac-light: #e9ddff;
  --lilac-dark: #9a7cc0;
  --text: #4c4668;
  --text-light: #7a7490;
  --text-muted: #9b8fb5;
  --bg: #fffaf6;
  --white: #ffffff;
  --border: #f4c9dc;
  --shadow: 0 4px 20px rgba(216,150,180,0.12);
  --shadow-hover: 0 12px 32px rgba(216,150,180,0.22);
  --radius: 18px;
  --radius-sm: 12px;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  color-scheme: light !important;
  scroll-behavior: smooth;
}
body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background:
    radial-gradient(circle at 20px 20px, rgba(247,167,200,0.08) 1.5px, transparent 1.5px),
    linear-gradient(180deg, #fffafc 0%, var(--bg) 100%);
  background-size: 34px 34px, 100% 100%;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === GLOBAL FOCUS STATES (accessibility) === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--pink-dark);
  outline-offset: 3px;
}

/* === TOPBAR === */
.topbar {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  background: linear-gradient(90deg, var(--pink-light), #fef0f5, var(--pink-light));
  font-size: .75em;
  color: var(--pink-dark);
  font-weight: 600;
  letter-spacing: .5px;
}

/* === HEADER === */
.header {
  text-align: center;
  padding: 38px 20px 28px;
  background: rgba(255,255,255,.88);
  border-bottom: 2px solid var(--pink-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.6em;
  font-weight: 700;
  color: var(--pink-dark);
  letter-spacing: -1px;
}
.logo-accent {
  font-family: 'Caveat', cursive;
  font-size: .45em;
  display: block;
  color: var(--mint-dark);
  font-weight: 400;
  margin-top: -4px;
  letter-spacing: 2px;
}

/* === NAVIGATION === */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  min-height: 38px;
  gap: 2px 0;
  padding: 2px 0;
  background: rgba(255,252,250,.92);
  border-top: 1px solid #f5cdd8;
  border-bottom: 1px solid #f5e8ec;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav a {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: .72em;
  color: #b98da6;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 1.5px;
  padding: 7px 14px;
  line-height: 1;
  border-right: 1px solid #f5e8ec;
  border-radius: 0;
  transition: color .3s ease, background .3s ease, border-radius .3s ease;
}
.nav a:last-child { border-right: none }
.nav a:hover {
  color: var(--pink-dark);
  background: rgba(253,232,241,0.55);
  border-radius: 20px;
}
.nav a.active {
  color: var(--pink-dark);
  font-weight: 500;
  background: rgba(253,232,241,0.55);
  border-radius: 20px;
}

/* === WELCOME CARD (index.html) === */
.welcome {
  max-width: 1000px;
  margin: 30px auto 0;
  padding: 0 20px;
}
.welcome-card {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--pink-light) 0%, #fef0f5 50%, var(--mint-light) 100%);
  padding: 30px 34px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .4s ease, transform .4s ease;
}
.welcome-card:hover {
  box-shadow: var(--shadow-hover);
}
/* Washi tape decoration */
.welcome-card::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 20px;
  width: 48px;
  height: 14px;
  background: rgba(255,220,235,0.75);
  border: 1px solid rgba(247,167,200,0.3);
  border-radius: 999px;
  transform: rotate(3deg);
  opacity: .8;
}
.welcome-label {
  font-family: 'Caveat', cursive;
  font-size: 1.15em;
  color: var(--mint-dark);
}
.welcome-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.8em;
  font-weight: 700;
  color: var(--pink-dark);
  line-height: 1.3;
  margin: 6px 0 12px;
}
.welcome-text {
  font-size: .92em;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 600px;
}
.welcome-decos {
  position: absolute;
  right: 80px;
  top: 16px;
  font-size: 1.6em;
  opacity: .2;
  letter-spacing: 6px;
}

/* === MAIN LAYOUT (index.html) === */
.main {
  max-width: 1000px;
  margin: 26px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 26px;
}

/* === POST CARDS === */
.posts {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.post-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(244,201,220,0.5);
  transition: transform .4s cubic-bezier(.25,.46,.45,.94), box-shadow .4s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
/* Washi tape decoration */
.post-card::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 13px;
  background: rgba(255,220,235,0.7);
  border: 1px solid rgba(247,167,200,0.3);
  border-radius: 999px;
  transform: rotate(3deg);
  opacity: .75;
  z-index: 2;
}
.post-img {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em;
  overflow: hidden;
}
.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-content {
  padding: 22px;
}
.post-tag {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 10px;
  font-size: .7em;
  font-weight: 700;
  margin-bottom: 10px;
  transition: transform .3s ease;
}
.post-tag:hover {
  transform: scale(1.05);
}
.pt-pink { background: var(--pink-light); color: var(--pink-dark) }
.pt-mint { background: var(--mint-light); color: var(--mint-dark) }
.pt-yellow { background: var(--yellow-light); color: var(--yellow-dark) }
.pt-lilac { background: var(--lilac-light); color: var(--lilac-dark) }
.post-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.post-excerpt {
  font-size: .9em;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 14px;
}
.post-meta {
  font-size: .78em;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.post-read {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--pink-light);
  color: var(--pink-dark);
  font-weight: 700;
  font-size: .82em;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(247,167,200,0.15);
  transition: all .35s ease;
}
.post-read:hover {
  background: var(--pink);
  color: var(--white);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(247,167,200,0.3);
}
.post-read:active {
  transform: translateY(0) scale(0.98);
}

/* === SIDEBAR (index.html) === */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(244,201,220,0.45);
  transition: box-shadow .4s ease, transform .4s cubic-bezier(.25,.46,.45,.94);
}
.widget:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.widget-header {
  padding: 13px 18px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: .88em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wh-pink { background: var(--pink-light); color: var(--pink-dark) }
.wh-mint { background: var(--mint-light); color: var(--mint-dark) }
.wh-yellow { background: var(--yellow-light); color: var(--yellow-dark) }
.wh-lilac { background: var(--lilac-light); color: var(--lilac-dark) }
.widget-body {
  padding: 18px;
}

/* Profile widget */
.w-profile { text-align: center }
.w-avatar {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-light), var(--mint-light), var(--yellow-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  margin: 0 auto 12px;
  border: 4px solid var(--white);
  box-shadow: 0 4px 16px rgba(200,150,180,0.2);
  transition: transform .4s ease;
  overflow: hidden;
}
.w-avatar:hover {
  transform: scale(1.05) rotate(3deg);
}
.w-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.w-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.1em;
  color: var(--pink-dark);
}
.w-bio {
  font-size: .84em;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.6;
}
.w-follow {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--pink), #f8c4d8);
  color: var(--white);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: .85em;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(247,167,200,0.25);
  text-decoration: none;
  transition: all .35s ease;
}
.w-follow:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 22px rgba(247,167,200,0.35);
}
.w-follow:active {
  transform: translateY(0) scale(0.97);
}

/* Status widget */
.w-status {
  font-size: .84em;
  color: var(--text-light);
  line-height: 2;
}
.w-status span {
  color: var(--pink-dark);
  font-weight: 600;
}

/* Favorites widget */
.fave-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: .85em;
  color: var(--text-light);
}
.fave-item .emoji {
  font-size: 1.4em;
  width: 28px;
  text-align: center;
}

/* Tags widget */
.w-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.w-tag {
  font-size: .72em;
  padding: 5px 13px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: default;
  transition: transform .3s ease, box-shadow .3s ease;
}
.w-tag:hover {
  transform: scale(1.06);
  box-shadow: 0 2px 8px rgba(216,150,180,0.15);
}

/* Subscribe widget */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subscribe-form input {
  border: 1.5px solid rgba(244,201,220,0.8);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: .88em;
  outline: none;
  background: rgba(255,255,255,.85);
  color: var(--text);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.subscribe-form input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(247,167,200,0.14);
}
.subscribe-form button {
  padding: 11px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--mint-dark));
  color: var(--white);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: .88em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(168,220,209,0.25);
  transition: all .35s ease;
}
.subscribe-form button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(168,220,209,0.35);
}
.subscribe-form button:active {
  transform: translateY(0) scale(0.97);
}

/* === INNER PAGE CONTAINER === */
.container {
  max-width: 720px;
  margin: 30px auto;
  padding: 0 24px;
}

/* === PAGE HEADER (inner pages) === */
.page-head {
  text-align: center;
  margin-bottom: 28px;
}
.page-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 2em;
  font-weight: 700;
  color: var(--pink-dark);
  line-height: 1.3;
}
.page-sub {
  font-size: .9em;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.6;
}

/* === CARDS (about, contact) === */
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(244,201,220,0.5);
  margin-bottom: 22px;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94), box-shadow .4s ease;
}
/* Washi tape decoration */
.card::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 13px;
  background: rgba(255,220,235,0.7);
  border: 1px solid rgba(247,167,200,0.3);
  border-radius: 999px;
  transform: rotate(3deg);
  opacity: .75;
  z-index: 2;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card-head {
  padding: 13px 18px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: .9em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ch-pink { background: var(--pink-light); color: var(--pink-dark) }
.ch-mint { background: var(--mint-light); color: var(--mint-dark) }
.ch-yellow { background: var(--yellow-light); color: var(--yellow-dark) }
.ch-lilac { background: var(--lilac-light); color: var(--lilac-dark) }
.card-body {
  padding: 22px;
}
.card-body h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.card-body p {
  font-size: .92em;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 10px;
}
.card-body a {
  color: var(--pink-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color .3s ease;
}
.card-body a:hover {
  color: var(--lilac-dark);
}

/* === ABOUT PAGE === */
.fun-facts {
  list-style: none;
}
.fun-facts li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--pink-light);
  font-size: .9em;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.6;
}
.fun-facts li:last-child { border-bottom: none }
.fun-facts .emoji { font-size: 1.3em }

/* Timeline */
.timeline {
  border-left: 3px solid var(--pink);
  padding-left: 18px;
  margin-left: 8px;
}
.tl-item {
  margin-bottom: 16px;
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--pink);
  transition: transform .3s ease;
}
.tl-item:hover::before {
  transform: scale(1.3);
}
.tl-pink::before { background: var(--pink) }
.tl-mint::before { background: var(--mint) }
.tl-yellow::before { background: var(--yellow) }
.tl-lilac::before { background: var(--lilac) }
.tl-item .year {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  color: var(--pink-dark);
  font-size: .84em;
}
.tl-item .desc {
  font-size: .9em;
  color: var(--text-light);
  margin-top: 3px;
  line-height: 1.6;
}

/* === LIBRARY PAGE === */
.section {
  margin-bottom: 30px;
}
.section-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  margin: 8px 0 0;
  background: linear-gradient(90deg, var(--pink), var(--lilac-light), var(--mint-light));
  border-radius: 999px;
  opacity: .55;
}
.section-tag {
  font-size: .65em;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.st-pink { background: var(--pink-light); color: var(--pink-dark) }
.st-mint { background: var(--mint-light); color: var(--mint-dark) }
.st-lilac { background: var(--lilac-light); color: var(--lilac-dark) }
.st-yellow { background: var(--yellow-light); color: var(--yellow-dark) }

/* Currently reading */
.book-now {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(244,201,220,0.5);
  padding: 22px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94), box-shadow .4s ease;
}
/* Washi tape decoration */
.book-now::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 13px;
  background: rgba(255,220,235,0.7);
  border: 1px solid rgba(247,167,200,0.3);
  border-radius: 999px;
  transform: rotate(3deg);
  opacity: .75;
  z-index: 2;
}
.book-now:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.book-cover {
  width: 90px;
  height: 130px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8em;
  flex-shrink: 0;
  overflow: hidden;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.book-info { flex: 1 }
.book-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.05em;
  color: var(--text);
}
.book-author {
  font-size: .84em;
  color: var(--text-muted);
  margin-top: 3px;
}
.book-thoughts {
  font-size: .86em;
  color: var(--text-light);
  margin-top: 10px;
  line-height: 1.7;
  font-style: italic;
}
.book-progress {
  margin-top: 12px;
  height: 7px;
  border-radius: 4px;
  background: #f0eaf2;
  overflow: hidden;
}
.book-progress-bar {
  height: 100%;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.book-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: progressShine 2.8s ease-in-out infinite;
}
@keyframes progressShine {
  0% { transform: translateX(-100%) }
  100% { transform: translateX(100%) }
}
.book-progress-text {
  font-size: .72em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Book grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}
.book-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(244,201,220,0.45);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94), box-shadow .4s ease;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.book-card-cover {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  overflow: hidden;
}
.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-card-info { padding: 14px }
.book-card-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: .84em;
  color: var(--text);
  line-height: 1.4;
}
.book-card-author {
  font-size: .74em;
  color: var(--text-muted);
  margin-top: 3px;
}
.book-rating {
  margin-top: 6px;
  font-size: .75em;
  letter-spacing: 1px;
}

/* Quote card */
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(244,201,220,0.5);
  padding: 28px;
  text-align: center;
  margin-bottom: 22px;
  transition: transform .4s ease, box-shadow .4s ease;
}
.quote-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.quote-text {
  font-family: 'Caveat', cursive;
  font-size: 1.35em;
  color: var(--lilac-dark);
  line-height: 1.6;
}
.quote-source {
  font-size: .8em;
  color: var(--text-muted);
  margin-top: 10px;
}

/* === GALLERY PAGE === */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gi {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  border: 2px solid var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94), box-shadow .4s ease;
}
.gi:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-hover);
}
.gi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gi .cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 10px 12px;
  font-size: .35em;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s ease, transform .35s ease;
  font-family: 'Fredoka', sans-serif;
}
.gi:hover .cap {
  opacity: 1;
  transform: translateY(0);
}

/* === LINKS PAGE === */
.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-light), var(--mint-light), var(--yellow-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5em;
  margin: 0 auto 12px;
  border: 4px solid var(--white);
  box-shadow: 0 4px 16px rgba(200,150,180,0.2);
  transition: transform .4s ease;
  overflow: hidden;
}
.avatar:hover {
  transform: scale(1.06) rotate(3deg);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.25em;
  color: var(--pink-dark);
}
.bio {
  font-size: .88em;
  color: var(--text-light);
  margin: 6px 0 22px;
  line-height: 1.6;
}
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: .9em;
  border: 2px solid transparent;
  transition: transform .35s cubic-bezier(.25,.46,.45,.94), box-shadow .35s ease;
}
.link-btn:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 8px 22px rgba(216,150,180,0.2);
}
.link-btn:active {
  transform: translateY(0) scale(0.98);
}
.link-btn .icon {
  font-size: 1.3em;
  width: 28px;
  text-align: center;
}
.lb-grad {
  background: linear-gradient(135deg, var(--pink), var(--mint));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(249,168,201,0.25);
}
.lb-pink { background: var(--pink-light); color: var(--pink-dark); border-color: var(--pink-light) }
.lb-pink:hover { box-shadow: 0 6px 16px rgba(249,168,201,0.3) }
.lb-mint { background: var(--mint-light); color: var(--mint-dark); border-color: var(--mint-light) }
.lb-mint:hover { box-shadow: 0 6px 16px rgba(168,220,209,0.3) }
.lb-yellow { background: var(--yellow-light); color: var(--yellow-dark); border-color: var(--yellow-light) }
.lb-yellow:hover { box-shadow: 0 6px 16px rgba(253,216,122,0.3) }
.lb-lilac { background: var(--lilac-light); color: var(--lilac-dark); border-color: var(--lilac-light) }
.lb-lilac:hover { box-shadow: 0 6px 16px rgba(200,182,226,0.3) }

/* === CONTACT PAGE — GUESTBOOK === */
.gb-entry {
  padding: 12px 0;
  border-bottom: 1px dashed var(--pink-light);
  font-size: .88em;
}
.gb-entry:last-child { border-bottom: none }
.gb-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  color: var(--pink-dark);
}
.gb-date {
  font-size: .75em;
  color: var(--text-muted);
}
.gb-msg {
  color: var(--text-light);
  margin-top: 5px;
  line-height: 1.6;
}
.gb-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gb-form input,
.gb-form textarea {
  border: 1.5px solid rgba(244,201,220,0.8);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: .9em;
  background: var(--bg);
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.gb-form input:focus,
.gb-form textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(247,167,200,0.14);
}
.gb-form button {
  padding: 13px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), #f8c4d8);
  color: var(--white);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: .95em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(249,168,201,0.25);
  transition: all .35s ease;
}
.gb-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(249,168,201,0.35);
}
.gb-form button:active {
  transform: translateY(0) scale(0.97);
}

/* === FOOTER === */
.footer {
  max-width: 1000px;
  margin: 44px auto 0;
  padding: 0 24px 44px;
  text-align: center;
}
.footer-bar {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 26px;
  background: repeating-linear-gradient(
    90deg,
    var(--pink) 0 30px,
    var(--mint) 30px 60px,
    var(--yellow) 60px 90px,
    var(--lilac) 90px 120px
  );
}
.footer-logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--pink-dark);
}
.footer-text {
  font-size: .84em;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.7;
}
.footer-text a {
  color: var(--pink-dark);
  text-decoration: none;
  transition: color .3s ease;
}
.footer-text a:hover {
  color: var(--lilac-dark);
}
.footer-decos {
  margin-top: 10px;
  font-size: 1em;
  letter-spacing: 6px;
  opacity: .25;
}

/* === ANIMATIONS === */
.sticker {
  display: inline-block;
  animation: softWiggle 4s ease-in-out infinite;
}
.twinkle {
  display: inline-block;
  animation: twinkle 3s ease-in-out infinite;
}
.fade-in {
  opacity: 0;
  animation: fadeInUp .8s cubic-bezier(.25,.46,.45,.94) both;
}
@keyframes softWiggle {
  0%, 100% { transform: rotate(0) scale(1) }
  25% { transform: rotate(2deg) scale(1.02) }
  75% { transform: rotate(-2deg) scale(1.02) }
}
@keyframes twinkle {
  0%, 100% { opacity: .4; transform: scale(.95) }
  50% { opacity: 1; transform: scale(1.12) }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px) }
  to { opacity: 1; transform: translateY(0) }
}

/* Cursor sparkle */
.cursor-sparkle {
  position: absolute;
  pointer-events: none;
  color: var(--pink);
  font-size: 13px;
  z-index: 9999;
  animation: sparkleFloat .9s ease-out forwards;
}
@keyframes sparkleFloat {
  0% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg) }
  100% { opacity: 0; transform: translateY(-18px) scale(.5) rotate(20deg) }
}

/* === SELECTION COLOR === */
::selection {
  background: var(--pink-light);
  color: var(--pink-dark);
}

/* === RESPONSIVE — TABLET === */
@media (max-width: 900px) {
  .main {
    grid-template-columns: 1fr;
  }
  .sidebar {
    max-width: 100%;
  }
}

/* === RESPONSIVE — SMALL TABLET / LARGE PHONE === */
@media (max-width: 768px) {
  .header {
    padding: 30px 16px 24px;
  }
  .logo {
    font-size: 2.1em;
  }
  .nav {
    padding: 6px 8px;
  }
  .nav a {
    padding: 7px 10px;
    font-size: .7em;
    border-right: none;
  }
  .welcome,
  .main,
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .welcome-card {
    padding: 24px;
  }
  .welcome-title {
    font-size: 1.4em;
  }
  .welcome-text {
    font-size: .88em;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .book-now {
    flex-direction: column;
    text-align: center;
  }
  .book-cover {
    width: 80px;
    height: 115px;
    margin: 0 auto;
  }
  .post-content { padding: 18px }
  .card-body { padding: 18px }
  .widget-body { padding: 16px }
  .page-title { font-size: 1.7em }
  .link-btn { padding: 13px 16px }
  .post-meta {
    gap: 10px;
    flex-wrap: wrap;
  }
  .footer {
    padding: 0 16px 36px;
  }
}

/* === RESPONSIVE — PHONE === */
@media (max-width: 480px) {
  .header {
    padding: 28px 14px 22px;
  }
  .logo {
    font-size: 1.85em;
  }
  .logo-accent {
    font-size: .5em;
  }
  .welcome {
    padding: 0 14px;
  }
  .welcome-card {
    padding: 20px 18px;
  }
  .welcome-title,
  .page-title {
    font-size: 1.55em;
  }
  .main {
    padding: 0 14px;
  }
  .container {
    padding: 0 14px;
  }
  .footer {
    padding: 0 14px 36px;
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gi {
    font-size: 2.5em;
  }
  .books-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .post-img {
    height: 160px;
    font-size: 3em;
  }
  .card-body,
  .post-content,
  .widget-body {
    padding: 18px;
  }
  .link-btn {
    padding: 13px 16px;
  }
}

/* === ACCESSIBILITY: REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
