:root {
  --purple: #7B5EA7; --teal: #2A9D9F; --teal-dark: #1F7A7C; --pink: #E58BB0;
  --bg: #FAF7FB; --text: #3A2A4D; --ink: #1E1230;
  --serif: "Fredoka", "Trebuchet MS", Arial, sans-serif;
  --sans: "Nunito", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1.125rem; line-height: 1.7; }
a { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }
p { margin: 0 0 1.1rem; }

/* Home: glow plus rising embers */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse 70% 90% at 85% 120%, rgba(229,139,176,.8), transparent 60%),
              radial-gradient(ellipse 50% 70% at 10% 130%, rgba(42,157,159,.5), transparent 60%), var(--purple);
  padding: 1.25rem 0 5.5rem; }
.hero .wrap { position: relative; z-index: 2; }
.embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.embers i { position: absolute; bottom: -20px; border-radius: 50%; opacity: 0; animation: rise linear infinite; }
@keyframes rise {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translate(var(--drift), -26rem) scale(.4); opacity: 0; }
}
.embers i:nth-child(1)  { left: 6%;  width: 10px; height: 10px; background: var(--pink); --drift: 30px;  animation-duration: 9s;  animation-delay: 0s; }
.embers i:nth-child(2)  { left: 14%; width: 6px;  height: 6px;  background: #fff;        --drift: -20px; animation-duration: 12s; animation-delay: 2s; }
.embers i:nth-child(3)  { left: 23%; width: 14px; height: 14px; background: var(--teal); --drift: 40px;  animation-duration: 11s; animation-delay: 5s; }
.embers i:nth-child(4)  { left: 33%; width: 8px;  height: 8px;  background: var(--pink); --drift: -35px; animation-duration: 10s; animation-delay: 1s; }
.embers i:nth-child(5)  { left: 42%; width: 6px;  height: 6px;  background: #fff;        --drift: 25px;  animation-duration: 13s; animation-delay: 7s; }
.embers i:nth-child(6)  { left: 51%; width: 12px; height: 12px; background: var(--teal); --drift: -30px; animation-duration: 9s;  animation-delay: 3s; }
.embers i:nth-child(7)  { left: 60%; width: 8px;  height: 8px;  background: var(--pink); --drift: 35px;  animation-duration: 12s; animation-delay: 6s; }
.embers i:nth-child(8)  { left: 68%; width: 10px; height: 10px; background: #fff;        --drift: -25px; animation-duration: 10s; animation-delay: 4s; }
.embers i:nth-child(9)  { left: 76%; width: 6px;  height: 6px;  background: var(--teal); --drift: 20px;  animation-duration: 14s; animation-delay: 8s; }
.embers i:nth-child(10) { left: 84%; width: 12px; height: 12px; background: var(--pink); --drift: -40px; animation-duration: 11s; animation-delay: 2.5s; }
.embers i:nth-child(11) { left: 91%; width: 8px;  height: 8px;  background: #fff;        --drift: 30px;  animation-duration: 9s;  animation-delay: 5.5s; }
.embers i:nth-child(12) { left: 97%; width: 10px; height: 10px; background: var(--teal); --drift: -20px; animation-duration: 13s; animation-delay: 1.5s; }
@media (prefers-reduced-motion: reduce) { .embers i { animation: none; opacity: .6; bottom: auto; top: 40%; } }

nav { display: flex; gap: 1.5rem; flex-wrap: wrap; font-weight: 700; font-size: 1rem; }
nav a { color: #fff; text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
nav a:hover { border-bottom-color: var(--pink); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.8rem, 10vw, 5.5rem); line-height: 1.05; margin: 4rem 0 1rem; letter-spacing: -.01em; }
.hero p { font-size: 1.35rem; max-width: 30rem; margin: 0 0 2rem; }
.hero .tagline { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; max-width: none; margin: 0 0 1.25rem; }
.verse { margin: 0 0 2rem; max-width: 32rem; }
.hero .verse p { font-size: 1.25rem; margin: 0 0 .5rem; }
.verse cite { font-style: normal; font-weight: 700; font-size: 1rem; }
.sticker { position: absolute; z-index: 2; right: 7%; bottom: 2.5rem; width: 8rem; height: 8rem; border-radius: 50%; background: var(--pink); color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.15; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; transform: rotate(10deg); box-shadow: 0 0 0 5px rgba(255,255,255,.85); }
@media (max-width: 780px) { .sticker { display: none; } }

.btn { display: inline-block; background: var(--teal); color: var(--ink); font-weight: 700; font-size: 1.2rem; padding: .75rem 1.75rem; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer; font-family: var(--sans); transition: transform .15s ease, background .15s ease; }
.btn:hover { background: #3BB0B2; transform: rotate(-2deg) scale(1.05); }

section { padding: 3.5rem 0; }
h2 { font-family: var(--serif); font-weight: 500; font-size: 2rem; color: var(--purple); margin: 0 0 1rem; padding-bottom: .9rem; display: inline-block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8'%3E%3Cpath d='M0 4 Q6 0 12 4 T24 4' fill='none' stroke='%23E58BB0' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left bottom; }

.posts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.posts li { position: relative; padding: 1.25rem 1.25rem 1.25rem 3.25rem; border-radius: 18px; transition: transform .2s ease, background .2s ease; }
.posts li:hover { background: #fff; transform: translateX(8px); }
.posts li::before { content: ""; position: absolute; left: 1.1rem; top: 1.75rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--pink); }
.posts li:nth-child(3n+2)::before { background: var(--teal); }
.posts li:nth-child(3n+3)::before { background: var(--purple); }
.posts h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 0 0 .25rem; }
.posts h3 a { color: var(--purple); text-decoration: none; }
.posts h3 a:hover { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.date { font-size: .95rem; color: #6b5a80; margin: 0 0 .5rem; }
.posts p:last-child { margin: 0; }

.subscribe { background: #fff; border: 3px solid var(--purple); border-radius: 24px; padding: 2rem; box-shadow: 8px 8px 0 var(--pink); }
form { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
input[type=email] { flex: 1 1 14rem; font: inherit; padding: .75rem 1.1rem; border: 2px solid var(--teal); border-radius: 999px; background: #fff; color: var(--text); }
footer { padding: 2rem 0 3rem; font-size: 1rem; color: #6b5a80; }

/* Post pages */
.post-page { font-size: 1.15rem; line-height: 1.8; }
.post-page .wrap { max-width: 40rem; }
.post-page p { margin-bottom: 1.4rem; }
.bar { background: radial-gradient(ellipse 70% 120% at 90% 130%, rgba(229,139,176,.7), transparent 60%), var(--purple); padding: 1.25rem 0; }
.bar a { color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; text-decoration: none; }
.post-page article { padding: 3rem 0 2rem; }
.post-page h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.15; color: var(--purple); margin: 0 0 .5rem; }
.post-page .date { margin: 0 0 2rem; }
.post-page blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 6px solid var(--pink); }
.post-page blockquote p { margin: 0 0 .5rem; font-size: 1.2rem; }
.post-page h2 { display: block; font-size: 1.6rem; background: none; padding-bottom: 0; margin: 2rem 0 .75rem; }
.post-page img { max-width: 100%; height: auto; border-radius: 12px; }
.back { display: inline-block; margin: 1rem 0 3rem; font-weight: 700; }

/* Home: phoenix art bleeding off the bottom-left corner of the hero */
.hero .phoenix { --w: clamp(300px, 40vw, 600px); position: absolute; left: calc(var(--w) * -0.2); bottom: 0; z-index: 1; width: var(--w); height: auto; display: block; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%), linear-gradient(to right, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%), linear-gradient(to right, #000 78%, transparent 100%);
  mask-composite: intersect; }
@media (max-width: 780px) { .hero .phoenix { --w: 92vw; left: calc(var(--w) * -0.15); opacity: .45; } }
