/* KatElton.com: ocean colors from her old site (navy, sky, sea, lime), made brighter and playful. */
:root {
  --navy: #1a2b6d;
  --navy-deep: #0f1a4a;
  --sky: #9fdcf6;
  --sky-soft: #e7f7fe;
  --aqua: #14b8d4;
  --sea: #0e8ea8;
  --lime: #86c540;
  --lime-deep: #5d9a1c;
  --sand: #fff8ec;
  --ink: #16224a;
  --muted: #4a5878;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(15, 26, 74, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--sea); }
h1, h2, h3, h4 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); box-shadow: 0 2px 20px rgba(15,26,74,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 8px; padding-bottom: 8px; }
.logo img { height: 86px; width: auto; transition: transform .3s ease; }
.logo:hover img { transform: rotate(-3deg) scale(1.03); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font-family: "Fredoka", sans-serif; font-weight: 500; font-size: 1.05rem; text-decoration: none;
  color: var(--navy); padding: 8px 16px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--sky-soft); color: var(--sea); }
.nav a.nav-cta { background: var(--lime); color: #fff; }
.nav a.nav-cta:hover { background: var(--lime-deep); color: #fff; }

/* ---------- Buttons, stickers ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem;
  padding: 13px 26px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer;
  background: var(--lime); color: #fff; box-shadow: 0 6px 0 var(--lime-deep); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--lime-deep); }
.btn.blue { background: var(--aqua); box-shadow: 0 6px 0 var(--sea); }
.btn.blue:hover { box-shadow: 0 4px 0 var(--sea); }
.btn.white { background: #fff; color: var(--navy); box-shadow: 0 6px 0 rgba(15,26,74,.25); }
.sticker {
  display: inline-block; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  padding: 6px 14px; border-radius: 999px; background: var(--sky-soft); color: var(--sea);
}
.sticker.lime { background: #eef8e1; color: var(--lime-deep); }
.sticker.navy { background: var(--navy); color: #fff; }

/* ---------- Ocean hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, rgba(20,184,212,.15) 0%, rgba(26,43,109,.10) 45%, rgba(15,26,74,.82) 100%), url("/img/ocean.jpg") center 70% / cover no-repeat;
  padding: 70px 0 150px;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero-card {
  background: rgba(15,26,74,.72); backdrop-filter: blur(6px); border-radius: 28px; padding: 40px 42px;
  border: 2px solid rgba(255,255,255,.25); box-shadow: 0 24px 60px rgba(15,26,74,.35);
}
.hero-card .stickers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: .3em; }
.hero h1 .pop { color: var(--sky); }
.hero h1 .pop2 { color: #b8e986; }
.hero p.lede { font-size: 1.2rem; color: #e8f4ff; margin: 0 0 28px; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 16px; }
.polaroid {
  margin: 0;
  background: #fff; padding: 14px 14px 18px; border-radius: 6px; box-shadow: var(--shadow);
  transform: rotate(3deg); transition: transform .35s ease;
}
.polaroid:hover { transform: rotate(0deg) scale(1.02); }
.polaroid figcaption { font-family: "Fredoka", sans-serif; color: var(--navy); text-align: center; margin-top: 10px; font-size: 1.05rem; }
.hero .polaroid { max-width: 400px; justify-self: center; position: relative; }
.hero .polaroid .badge {
  position: absolute; top: -26px; left: -30px; width: 116px; height: 116px; border-radius: 50%;
  background: var(--lime); color: #fff; display: grid; place-items: center; text-align: center;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .95rem; line-height: 1.15; padding: 12px;
  transform: rotate(-12deg); box-shadow: 0 8px 20px rgba(0,0,0,.25); border: 4px solid #fff;
}
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.wave svg { width: 100%; height: 110px; display: block; }

.bubbles span {
  position: absolute; bottom: -40px; border-radius: 50%; background: rgba(255,255,255,.35); border: 2px solid rgba(255,255,255,.6);
  animation: rise 14s linear infinite; z-index: 1;
}
.bubbles span:nth-child(1) { left: 8%; width: 18px; height: 18px; animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 22%; width: 30px; height: 30px; animation-delay: 4s; animation-duration: 18s; }
.bubbles span:nth-child(3) { left: 46%; width: 14px; height: 14px; animation-delay: 2s; }
.bubbles span:nth-child(4) { left: 63%; width: 24px; height: 24px; animation-delay: 7s; animation-duration: 16s; }
.bubbles span:nth-child(5) { left: 81%; width: 16px; height: 16px; animation-delay: 1s; animation-duration: 12s; }
.bubbles span:nth-child(6) { left: 92%; width: 34px; height: 34px; animation-delay: 9s; animation-duration: 20s; }
@keyframes rise { 0% { transform: translateY(0) scale(1); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-900px) scale(1.3); opacity: 0; } }

/* ---------- Sections ---------- */
section { position: relative; padding: 90px 0; }
.kicker { font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--aqua); text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; margin: 0 0 6px; }
.title { font-size: clamp(2.1rem, 4vw, 3rem); }
.title .squiggle { background: linear-gradient(transparent 62%, rgba(134,197,64,.45) 62%); padding: 0 4px; }
.center { text-align: center; }

/* About */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.collage .polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.collage .p1 { grid-column: 1 / 3; width: 82%; justify-self: center; transform: rotate(-3deg); }
.collage .p1 img { aspect-ratio: 16 / 10; }
.collage .p2 { transform: rotate(4deg); margin-top: -10px; }
.collage .p3 { transform: rotate(-4deg); margin-top: 6px; }
.collage .p3 img { object-position: center 20%; }
.about p { margin: 0 0 1.05em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.fact { background: var(--sky-soft); border-radius: 18px; padding: 16px; text-align: center; }
.fact strong { display: block; font-family: "Fredoka", sans-serif; font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.fact span { font-size: .92rem; color: var(--muted); }
.fact:nth-child(2) { background: #eef8e1; }
.fact:nth-child(2) strong { color: var(--lime-deep); }
.fact:nth-child(3) { background: #e3f0ff; }

/* Quote band */
.quote-band { background: linear-gradient(120deg, var(--aqua), #3a8ee6 60%, var(--navy)); color: #fff; padding: 80px 0; overflow: hidden; }
.quote-band blockquote { margin: 0 auto; max-width: 900px; text-align: center; font-family: "Fredoka", sans-serif; font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.4; position: relative; }
.quote-band blockquote::before { content: "\201C"; position: absolute; top: -70px; left: -10px; font-size: 9rem; color: rgba(255,255,255,.25); line-height: 1; }
.quote-band cite { display: block; margin-top: 18px; font-style: normal; font-size: 1.1rem; color: #d9fbff; }

/* Books */
.books { background: var(--sand); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 44px; }
.book-card { border-radius: 28px; padding: 36px; color: #fff; display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.book-card.th { background: linear-gradient(150deg, #0f9fb8, #0b6f8c 70%, #0d4f78); }
.book-card.arl { background: linear-gradient(150deg, #4a86d8, #23439a 65%, var(--navy-deep)); }
.book-card::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; border: 26px solid rgba(255,255,255,.08); }
.book-card img { border-radius: 6px; box-shadow: 0 18px 30px rgba(0,0,0,.35); transform: rotate(-4deg); transition: transform .35s; }
.book-card:hover img { transform: rotate(0deg) translateY(-4px); }
.book-card h3 { color: #fff; font-size: 1.8rem; margin-bottom: .15em; }
.book-card .sub { color: #d6f4ff; font-weight: 700; margin: 0 0 14px; }
.book-card p { margin: 0 0 14px; font-size: 1.02rem; }
.book-card .meta { font-size: .88rem; color: #cfe9f7; margin-top: 14px; }

/* Blog cards */
.blog-teaser { background: #fff; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.post-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; border-top: 8px solid var(--aqua);
}
.post-card:nth-child(3n+2) { border-top-color: var(--lime); }
.post-card:nth-child(3n+3) { border-top-color: var(--navy); }
.post-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 22px 50px rgba(15,26,74,.2); }
.post-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky-soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 1.35rem; margin: 0; }
.post-card .date { font-size: .9rem; color: var(--muted); font-weight: 700; }
.post-card p { margin: 0; font-size: 1rem; color: var(--muted); }
.post-card .more { margin-top: auto; font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--sea); padding-top: 8px; }

/* Page hero (blog) */
.page-hero {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(15,26,74,.25), rgba(15,26,74,.78)), url("/img/ocean.jpg") center 60% / cover no-repeat;
  padding: 80px 0 140px;
}
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); position: relative; z-index: 2; }
.page-hero p { color: #e6f6ff; font-size: 1.2rem; max-width: 640px; margin: 0 auto; position: relative; z-index: 2; }
.page-hero .sticker { position: relative; z-index: 2; margin-bottom: 14px; }

.series-box { background: linear-gradient(135deg, #eef8e1, var(--sky-soft)); border-radius: 28px; padding: 34px 38px; margin: 0 0 50px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; align-items: center; }
.series-box h2 { font-size: 2rem; margin-bottom: .2em; }
.series-box ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: part; }
.series-box li a { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 12px 16px; text-decoration: none; color: var(--navy); font-family: "Fredoka", sans-serif; font-weight: 500; font-size: 1.1rem; box-shadow: 0 4px 12px rgba(15,26,74,.07); transition: transform .2s; }
.series-box li a:hover { transform: translateX(6px); }
.series-box li a::before { counter-increment: part; content: counter(part); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: #fff; display: grid; place-items: center; font-weight: 600; }
.series-box li a[aria-current="page"] { outline: 3px solid var(--lime); }

/* Post */
.post-wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.post-head { text-align: center; }
.post-head .meta { color: #e6f6ff; font-weight: 700; position: relative; z-index: 2; }
.post-figure { margin: -110px auto 40px; max-width: 620px; position: relative; z-index: 4; }
.post-figure .polaroid { transform: rotate(-1.5deg); }
.prose { font-size: 1.14rem; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; color: var(--sea); }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; display: grid; gap: 8px; }
.prose ul li { background: var(--sky-soft); border-radius: 14px; padding: 10px 16px 10px 46px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); }
.prose blockquote { margin: 0 0 1.6em; padding: 26px 30px; border-radius: 22px; background: linear-gradient(135deg, var(--navy), #2b5cc8); color: #fff; font-family: "Fredoka", sans-serif; font-size: 1.3rem; line-height: 1.45; }
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: 1rem; color: var(--sky); }
.prose .callout { background: #eef8e1; border-left: 6px solid var(--lime); border-radius: 0 18px 18px 0; padding: 18px 22px; font-weight: 700; color: #2f4d0d; }
.sign-off { font-family: "Fredoka", sans-serif; font-size: 1.4rem; color: var(--navy); margin-top: 10px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 50px 0 10px; }
.post-nav a { display: block; background: var(--sky-soft); border-radius: 18px; padding: 16px 20px; text-decoration: none; color: var(--navy); font-family: "Fredoka", sans-serif; font-weight: 500; }
.post-nav a small { display: block; color: var(--muted); font-family: "Nunito", sans-serif; font-weight: 700; }
.post-nav .next { text-align: right; grid-column: 2; }

/* Footer */
.site-footer { position: relative; background: var(--navy-deep); color: #c8d3f0; padding: 120px 0 40px; margin-top: 40px; }
.site-footer .wave-top { position: absolute; top: -1px; left: 0; right: 0; line-height: 0; }
.site-footer .wave-top svg { width: 100%; height: 90px; display: block; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #b8e986; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-logo { background: #fff; border-radius: 20px; padding: 12px 16px; display: inline-block; }
.footer-logo img { height: 74px; width: auto; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .92rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .about .wrap, .series-box { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .collage { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .logo img { height: 52px; }
  .nav { gap: 0; flex-wrap: nowrap; }
  .nav a { padding: 6px 8px; font-size: .92rem; }
  .site-header .wrap { padding-left: 14px; padding-right: 10px; gap: 6px; }
  .nav a.nav-cta { display: none; }
  .hero { padding: 36px 0 120px; }
  .hero-card { padding: 28px 24px; }
  .hero .polaroid .badge { width: 92px; height: 92px; font-size: .8rem; left: -10px; }
  section { padding: 64px 0; }
  .book-card { grid-template-columns: 1fr; padding: 28px; }
  .book-card img { max-width: 170px; }
  .card-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .fact strong { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: 1; }
  .series-box { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .bubbles { display: none; }
  * { transition: none !important; scroll-behavior: auto !important; }
}
