/* YETI LIFE — site styles v2. Warm watercolor book style: cream paper, sky blue, orange accents. */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-600.ttf") format("truetype");
  font-weight: 600;
}
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-700.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Andika";
  src: url("fonts/Andika-400.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Andika";
  src: url("fonts/Andika-700.ttf") format("truetype");
  font-weight: 700;
}

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

body {
  font-family: "Andika", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(900px 500px at 15% -5%, rgba(255, 214, 150, 0.55) 0%, rgba(255,214,150,0) 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(255, 190, 170, 0.35) 0%, rgba(255,190,170,0) 60%),
    linear-gradient(180deg, #fff6e8 0%, #fdf1dc 18%, #e8f4fd 45%, #f4fbff 75%, #ffffff 100%);
  color: #16324F;
  min-height: 100vh;
  overflow-x: hidden;
}

#snow { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

/* Top navigation */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 243, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid #f0dfC4;
  box-shadow: 0 4px 16px rgba(22, 50, 79, 0.08);
}
.topnav .inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.topnav .logo {
  font-family: "Fredoka", sans-serif;
  font-size: 26px; font-weight: 700; letter-spacing: 1px;
  color: #1B7EC2; text-decoration: none;
  text-shadow: 0 1px 0 #ffffff;
  white-space: nowrap;
}
.topnav nav { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.topnav nav a {
  font-family: "Fredoka", sans-serif;
  font-size: 15px; font-weight: 600;
  color: #16324F; text-decoration: none;
  padding: 7px 12px; border-radius: 999px;
}
.topnav nav a:hover { background: #fdeeda; }
.topnav nav a.active { background: #1B7EC2; color: #ffffff; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 0; position: relative; z-index: 2; }
.wrap.narrow { max-width: 680px; }

/* Hero — big Snowville watercolor with title overlay */
.hero {
  position: relative;
  margin: 22px 0 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(22, 50, 79, 0.22);
  border: 5px solid #ffffff;
}
.hero img { display: block; width: 100%; height: auto; }
.hero .hero-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 56px 28px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,250,240,0.82) 55%, rgba(255,250,240,0.96) 100%);
  text-align: center;
}
.hero .hero-title .logo {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(40px, 7vw, 68px); font-weight: 700; letter-spacing: 2px; color: #1B7EC2;
  text-shadow: 0 2px 0 #ffffff, 0 6px 18px rgba(27,126,194,0.30);
  line-height: 1.05;
}
.hero .hero-title .tag {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(17px, 2.6vw, 24px); font-weight: 600; color: #16324F; margin-top: 4px;
}

/* Snowdrift divider under hero / above footer */
.drift {
  display: block; width: 100%; height: 34px; margin-top: -6px;
}
.drift.flip { transform: scaleY(-1); margin-top: 26px; margin-bottom: -6px; }

.brand { text-align: center; margin-top: 26px; }
.brand .logo {
  font-family: "Fredoka", sans-serif;
  font-size: 48px; font-weight: 700; letter-spacing: 1px; color: #1B7EC2;
  text-shadow: 0 2px 0 #ffffff, 0 4px 14px rgba(27,126,194,0.25);
}
.brand .tag {
  font-family: "Fredoka", sans-serif;
  font-size: 20px; font-weight: 600; color: #16324F; margin-top: 4px;
}

.speech {
  position: relative;
  background: #ffffff;
  border: 2px solid #f0dfc4;
  border-radius: 22px;
  padding: 18px 22px;
  margin: 22px auto 0;
  max-width: 620px;
  font-size: 17px; line-height: 1.55;
  box-shadow: 0 8px 24px rgba(22, 50, 79, 0.10);
  text-align: center;
}
.speech b { color: #1B7EC2; }

h1.page {
  font-family: "Fredoka", sans-serif;
  font-size: 38px; font-weight: 700; color: #16324F;
  text-align: center; margin: 30px 0 6px; letter-spacing: 1px;
}
.sub { text-align: center; font-size: 16px; color: #3d5a73; margin-bottom: 8px; }

.divider {
  text-align: center; color: #8fc3e8; font-size: 15px; letter-spacing: 10px;
  margin: 26px 0 2px; user-select: none;
}

/* Cards & sections */
.card {
  background: rgba(255,255,255,0.94);
  border: 2px solid #f0dfc4;
  border-radius: 22px;
  padding: 22px;
  margin-top: 22px;
  box-shadow: 0 8px 24px rgba(22, 50, 79, 0.10);
}
.card h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 22px; font-weight: 600; color: #16324F;
  margin-bottom: 10px;
}
.card p { font-size: 16px; line-height: 1.6; color: #2c4a63; }
.card p + p { margin-top: 10px; }

.grid { display: grid; gap: 18px; margin-top: 22px; }
.grid.cols2 { grid-template-columns: 1fr 1fr; }
.grid.cols3 { grid-template-columns: 1fr 1fr 1fr; }
.grid.cols4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
@media (max-width: 860px) {
  .grid.cols4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .grid.cols2, .grid.cols3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid.cols4 { grid-template-columns: 1fr; }
}

.tile {
  display: block; text-decoration: none; color: inherit;
  background: rgba(255,255,255,0.94);
  border: 2px solid #f0dfc4;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(22, 50, 79, 0.10);
  transition: transform 0.15s ease;
}
.tile:hover { transform: translateY(-3px); }
.tile img { display: block; width: 100%; height: auto; }
.tile .body { padding: 16px 18px 18px; }
.tile h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 20px; font-weight: 700; color: #16324F; margin-bottom: 6px;
}
.tile p { font-size: 15px; line-height: 1.55; color: #3d5a73; }
.tile .go {
  font-family: "Fredoka", sans-serif;
  font-weight: 700; color: #F5820B; font-size: 15px; margin-top: 10px; display: inline-block;
}

.btn {
  display: inline-block;
  font-family: "Fredoka", sans-serif;
  padding: 13px 26px; border-radius: 14px; border: none;
  background: linear-gradient(180deg, #ff9a2e, #F5820B);
  color: #fff; font-weight: 700; font-size: 16px; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 0 #c96a06, 0 8px 16px rgba(245,130,11,0.35);
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #c96a06; }
.btn.blue {
  background: linear-gradient(180deg, #57b6ec, #1B7EC2);
  box-shadow: 0 4px 0 #14608f, 0 8px 16px rgba(27,126,194,0.35);
}
.btn.disabled {
  background: #eef3f8; color: #7fa3bd; cursor: not-allowed; box-shadow: none;
}

/* Shop & merch badges */
.badge {
  display: inline-block; margin-top: 10px;
  font-family: "Fredoka", sans-serif; font-size: 13px; font-weight: 600;
  color: #1B7EC2; background: #e8f4fc;
  border: 1px solid #bcd9ee; border-radius: 999px; padding: 4px 10px;
}

/* Books on a shelf */
.shelf {
  margin-top: 26px;
  background: rgba(255,255,255,0.55);
  border: 2px solid #f0dfc4;
  border-radius: 24px;
  padding: 26px 22px 0;
  box-shadow: 0 8px 24px rgba(22, 50, 79, 0.08);
}
.shelf .shelf-row {
  display: flex; gap: 26px; justify-content: center; align-items: flex-end; flex-wrap: wrap;
}
.shelf .shelf-book { text-align: center; max-width: 240px; }
.shelf .shelf-book img {
  display: block; width: 100%; height: auto; border-radius: 10px;
  border: 3px solid #ffffff;
  box-shadow: 0 14px 28px rgba(22, 50, 79, 0.30);
  transition: transform 0.18s ease;
}
.shelf .shelf-book:nth-child(odd) img { transform: rotate(-2deg); }
.shelf .shelf-book:nth-child(even) img { transform: rotate(1.6deg); }
.shelf .shelf-book:hover img { transform: rotate(0deg) translateY(-6px); }
.shelf .shelf-book .cap {
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 15px; color: #16324F;
  margin-top: 12px;
}
.shelf .shelf-book .cap span { display: block; font-weight: 600; font-size: 12px; color: #1B7EC2; letter-spacing: 1px; }
.shelf .board {
  height: 16px; margin: 14px -22px 0;
  background: linear-gradient(180deg, #c98d54, #a96f38);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 6px 10px rgba(120, 74, 30, 0.35), inset 0 2px 0 rgba(255,255,255,0.35);
}
.shelf .shelf-soon span { display: block; margin-top: 6px; }
.shelf .shelf-soon {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 240px; max-width: 240px; aspect-ratio: 1 / 1;
  border: 3px dashed #bcd9ee; border-radius: 10px; background: rgba(255,255,255,0.7);
  font-family: "Fredoka", sans-serif; font-weight: 700; color: #1B7EC2; font-size: 17px;
  padding: 18px; transform: rotate(-1deg);
}

/* Books list */
.book {
  display: grid; grid-template-columns: 280px 1fr; gap: 24px;
  background: rgba(255,255,255,0.94);
  border: 2px solid #f0dfc4; border-radius: 22px;
  padding: 22px; margin-top: 22px;
  box-shadow: 0 8px 24px rgba(22, 50, 79, 0.10);
}
.book .cover img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  border: 3px solid #ffffff;
  box-shadow: 0 14px 30px rgba(22, 50, 79, 0.28);
  transform: rotate(-1.5deg);
}
.book h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 27px; font-weight: 700; color: #16324F;
}
.book .meta {
  font-family: "Fredoka", sans-serif;
  font-size: 14px; font-weight: 600; color: #1B7EC2; margin: 4px 0 10px;
}
.book p { font-size: 16px; line-height: 1.6; color: #2c4a63; }
.book .actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.book .secret {
  font-size: 14px; color: #3d5a73; margin-top: 12px;
  background: #fdf6e9; border: 1px dashed #ecd9b8; border-radius: 12px; padding: 10px 12px;
}
@media (max-width: 620px) {
  .book { grid-template-columns: 1fr; }
  .book .cover { max-width: 280px; margin: 0 auto; }
}

.coming {
  text-align: center;
  background: rgba(255,255,255,0.75);
  border: 2px dashed #ecd9b8;
  border-radius: 22px;
  padding: 22px;
  margin-top: 22px;
}
.coming h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 20px; font-weight: 700; color: #16324F;
}
.coming p { font-size: 15px; color: #3d5a73; margin-top: 6px; line-height: 1.55; }

/* Friends with round portraits */
.friend { text-align: center; padding-top: 20px; }
.friend .portrait {
  width: 150px; height: 150px; margin: 0 auto;
  border-radius: 50%; object-fit: cover;
  border: 5px solid #ffffff;
  box-shadow: 0 10px 22px rgba(22, 50, 79, 0.22);
}
.friend.ring-blue .portrait { outline: 4px solid #57b6ec; }
.friend.ring-brown .portrait { outline: 4px solid #c98d54; }
.friend.ring-pink .portrait { outline: 4px solid #f28bb4; }
.friend.ring-orange .portrait { outline: 4px solid #ffb04d; }
.friend .body { padding: 14px 16px 18px; }

/* Parents page */
.ladder { list-style: none; margin-top: 8px; }
.ladder li {
  padding: 10px 0; border-bottom: 1px solid #f3e7d2;
  font-size: 15px; line-height: 1.55; color: #2c4a63;
}
.ladder li:last-child { border-bottom: none; }
.ladder b { color: #16324F; }

form.signup { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
form.signup input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 13px 16px; border-radius: 14px;
  border: 2px solid #ecd9b8;
  font-family: "Andika", sans-serif; font-size: 16px;
  color: #16324F; background: #fffdf7;
}
form.signup input[type="email"]:focus { outline: none; border-color: #1B7EC2; background: #ffffff; }
.note { font-size: 13px; color: #7fa3bd; margin-top: 10px; line-height: 1.5; }

/* Footer — snowy navy band */
.foot {
  margin: 44px -16px 0;
  padding: 30px 20px 34px;
  background: linear-gradient(180deg, #1d4a73 0%, #16324F 100%);
  color: #cfe6f7;
  text-align: center;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -8px 24px rgba(22, 50, 79, 0.18);
  font-size: 14px; line-height: 1.7;
}
.foot .flogo {
  font-family: "Fredoka", sans-serif; font-size: 26px; font-weight: 700; letter-spacing: 1px;
  color: #ffffff;
}
.foot .fnav { margin-top: 8px; }
.foot .fnav a {
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 1px;
  color: #a8d4f2; text-decoration: none; margin: 0 8px; white-space: nowrap;
}
.foot .fnav a:hover { color: #ffffff; }
.foot .fcontact { margin-top: 12px; }
.foot .fcontact a { color: #ffd9a0; font-weight: 700; text-decoration: none; }
.foot .fcontact a:hover { text-decoration: underline; }
.foot .fyt {
  display: inline-block; margin-top: 12px;
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 14px;
  color: #ffffff; background: #e62117; padding: 9px 20px; border-radius: 999px;
  text-decoration: none; box-shadow: 0 4px 12px rgba(230,33,23,0.4);
}
.foot .fcopy { margin-top: 14px; font-size: 12px; color: #7fa3bd; }
