/*
Theme Name: Bright Makers Studio
Theme URI: https://brightmakers.ca/
Description: One-page landing theme for Bright Makers Studio — online arts & crafts classes for kids. All copy, prices, contact details and photos are editable in Appearance → Customize → Bright Makers.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: brightmakers
*/

*, ::before, ::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

:root {
  --bg: #FFFBF4; --paper: #FFFFFF; --ink: #1D2852; --ink-soft: #4A5378;
  --coral: #EE4A2C; --coral-deep: #D23A1E; --sun: #FFC93C; --teal: #13A3B5;
  --grape: #8E5BD8; --pink: #F06A9A; --line: #EDE4D3; --field: #FFFFFF;
  --tint-sun: #FFF3CF; --tint-teal: #DDF4F6; --tint-grape: #EFE6FB; --tint-pink: #FDE6EE;
  --on-coral: #FFFFFF;
  --shadow: 0 2px 0 rgba(29,40,82,.08), 0 10px 28px -12px rgba(29,40,82,.25);
  --display: "Baloo 2","Nunito",ui-rounded,system-ui,sans-serif;
  --body: "Nunito",ui-rounded,system-ui,-apple-system,"Segoe UI",sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17192B; --paper: #20233A; --ink: #F6F1E7; --ink-soft: #B9BCD4;
    --coral: #FF6A4D; --coral-deep: #FF8266; --sun: #FFD25E; --teal: #3CC3D3;
    --grape: #B08BF0; --pink: #FF8DB4; --line: #33375A; --field: #1A1D31;
    --tint-sun: #3A3320; --tint-teal: #173740; --tint-grape: #2D2648; --tint-pink: #3E2232;
    --on-coral: #1A1220;
    --shadow: 0 2px 0 rgba(0,0,0,.3), 0 12px 30px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17192B; --paper: #20233A; --ink: #F6F1E7; --ink-soft: #B9BCD4;
  --coral: #FF6A4D; --coral-deep: #FF8266; --sun: #FFD25E; --teal: #3CC3D3;
  --grape: #B08BF0; --pink: #FF8DB4; --line: #33375A; --field: #1A1D31;
  --tint-sun: #3A3320; --tint-teal: #173740; --tint-grape: #2D2648; --tint-pink: #3E2232;
  --on-coral: #1A1220;
  --shadow: 0 2px 0 rgba(0,0,0,.3), 0 12px 30px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Logo */
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: .9; }
.logo b { font-family: var(--display); font-weight: 800; font-size: 1.65rem; letter-spacing: -0.01em; }
.logo b span { display: inline-block; transition: transform .25s cubic-bezier(.3,1.8,.5,1); }
.logo b span:nth-child(6n+1) { color: var(--coral); }
.logo b span:nth-child(6n+2) { color: var(--sun); }
.logo b span:nth-child(6n+3) { color: var(--teal); }
.logo b span:nth-child(6n+4) { color: var(--grape); }
.logo b span:nth-child(6n+5) { color: var(--pink); }
.logo b span:nth-child(6n)   { color: var(--teal); }
.logo small { font-family: var(--display); font-weight: 800; font-size: .72rem; letter-spacing: .32em; color: var(--ink); margin-top: 2px; padding-left: .32em; }
.logo:hover b span { animation: hop .5s ease both; }
.logo:hover b span:nth-child(2) { animation-delay: .04s; }
.logo:hover b span:nth-child(3) { animation-delay: .08s; }
.logo:hover b span:nth-child(4) { animation-delay: .12s; }
.logo:hover b span:nth-child(5) { animation-delay: .16s; }
.logo:hover b span:nth-child(6) { animation-delay: .2s; }
.logo:hover b span:nth-child(7) { animation-delay: .24s; }
.logo:hover b span:nth-child(8) { animation-delay: .28s; }
.logo:hover b span:nth-child(9) { animation-delay: .32s; }
.logo:hover b span:nth-child(10) { animation-delay: .36s; }
.logo:hover b span:nth-child(11) { animation-delay: .4s; }
.logo:hover b span:nth-child(12) { animation-delay: .44s; }
.logo img.custom-logo { max-height: 56px; width: auto; }
@keyframes hop { 40% { transform: translateY(-7px) rotate(-8deg); } 100% { transform: translateY(0); } }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: .95rem; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.site-header nav a:not(.btn) { text-decoration: none; color: var(--ink-soft); }
.site-header nav a:not(.btn):hover { color: var(--coral); }
@media (max-width: 760px) { .site-header nav .hide-sm, .site-header nav ul { display: none; } }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--display); font-weight: 800; font-size: 1.1rem; background: var(--coral); color: var(--on-coral); text-decoration: none; border: 0; cursor: pointer; padding: .62em 1.3em .5em; border-radius: 999px; box-shadow: 0 4px 0 var(--coral-deep); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--coral-deep); animation: squish .45s ease; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--coral-deep); }
.btn.sm { font-size: .98rem; padding: .5em 1.05em .4em; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2.5px var(--coral); color: var(--coral); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
@keyframes squish { 30% { transform: translateY(-2px) scale(1.06,.94); } 60% { transform: translateY(-2px) scale(.97,1.04); } 100% { transform: translateY(-2px); } }

/* Hero */
.hero { padding-block: 48px 64px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-copy { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.tag { align-self: flex-start; font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; background: var(--tint-teal); color: var(--teal); padding: .4em .9em; border-radius: 999px; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 800; }
.hero h1 .swash { position: relative; display: inline-block; color: var(--coral); white-space: nowrap; transition: transform .3s cubic-bezier(.3,1.8,.5,1); }
.hero h1 .swash:hover { transform: rotate(-3deg) scale(1.05); }
.hero h1 .swash svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; }
.hero h1 .swash path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: brush .9s ease-out .6s forwards; }
@keyframes brush { 100% { stroke-dashoffset: 0; } }
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.offer { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.price-tag { display: inline-flex; align-items: baseline; gap: .35em; font-family: var(--display); font-weight: 800; background: var(--sun); color: #1D2852; padding: .25em .8em .1em; border-radius: 14px; transform: rotate(-2deg); box-shadow: var(--shadow); animation: wiggle 3.2s ease-in-out infinite; transform-origin: 50% 60%; }
.price-tag strong { font-size: 2.1rem; line-height: 1; }
.price-tag span { font-size: 1rem; }
@keyframes wiggle { 0%,80%,100% { transform: rotate(-2deg) scale(1); } 84% { transform: rotate(4deg) scale(1.08); } 88% { transform: rotate(-5deg) scale(1.08); } 92% { transform: rotate(3deg) scale(1.04); } 96% { transform: rotate(-2deg); } }
.hero .note { font-size: .95rem; color: var(--ink-soft); font-weight: 600; }
.hero-art { position: relative; min-width: 0; }
.photo { border-radius: 28px 34px 26px 38px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--paper); transform: rotate(1.5deg); aspect-ratio: 703 / 298; max-width: 100%; animation: floaty 6s ease-in-out infinite; background: var(--tint-sun); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes floaty { 0%,100% { transform: rotate(1.5deg) translateY(0); } 50% { transform: rotate(.5deg) translateY(-8px); } }
.sticker { position: absolute; font-family: var(--display); font-weight: 800; line-height: 1; text-align: center; box-shadow: var(--shadow); }
.sticker.age { left: -14px; bottom: -26px; background: var(--grape); color: #fff; width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; transform: rotate(-10deg); font-size: 1rem; animation: spinBob 5s ease-in-out infinite; }
.sticker.age b { font-size: 2.3rem; display: block; }
.sticker.live { right: 6px; top: -18px; background: var(--paper); color: var(--ink); padding: .5em .9em .4em; border-radius: 12px; transform: rotate(4deg); font-size: .95rem; display: flex; align-items: center; gap: .45em; animation: bob 3.4s ease-in-out infinite; }
.sticker.live i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); display: inline-block; animation: pulse 1.6s ease infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes spinBob { 0%,100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-10px); } }
@keyframes bob { 0%,100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-6px); } }
.hero .tag   { animation: popIn .7s cubic-bezier(.3,1.6,.5,1) both; }
.hero h1     { animation: rise .8s cubic-bezier(.3,1.4,.5,1) .05s both; }
.hero .lede  { animation: rise .8s cubic-bezier(.3,1.4,.5,1) .15s both; }
.hero .offer { animation: rise .8s cubic-bezier(.3,1.4,.5,1) .25s both; }
.hero .note  { animation: rise .8s cubic-bezier(.3,1.4,.5,1) .35s both; }
@keyframes popIn { 0% { transform: scale(.6) rotate(-6deg); } 60% { transform: scale(1.08) rotate(2deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes rise { 0% { transform: translateY(28px); } 70% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 56px; } .hero { padding-block: 32px 56px; } }

/* Doodles */
.doodles { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.doodles svg { position: absolute; animation: drift var(--d, 10s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes drift { 0%,100% { transform: translate(0,0) rotate(0); } 33% { transform: translate(10px,-16px) rotate(14deg); } 66% { transform: translate(-8px,8px) rotate(-10deg); } }
section { position: relative; }
section > .wrap { position: relative; z-index: 1; }

/* Wavy bands */
.band { position: relative; }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 16px; background: inherit; -webkit-mask: radial-gradient(10px 8px at 50% 100%, #000 98%, transparent) 0 0 / 22px 16px repeat-x; mask: radial-gradient(10px 8px at 50% 100%, #000 98%, transparent) 0 0 / 22px 16px repeat-x; }
.band::before { top: -15px; }
.band::after { bottom: -15px; transform: scaleY(-1); }

/* Section heads */
.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 40em; }
.eyebrow { font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
.sec-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* Skills */
.skills { background: var(--tint-sun); padding-block: 56px; }
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.skill { background: var(--paper); border-radius: 20px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; transition: transform .3s cubic-bezier(.3,1.6,.5,1), box-shadow .3s; }
.skill:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); }
.skill:hover .ico { animation: jelly .6s ease; }
.skill .ico { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.skill .ico svg { width: 28px; height: 28px; }
.skill h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 2px; }
.skill p { font-size: .95rem; color: var(--ink-soft); line-height: 1.5; }
.c1 .ico { background: var(--tint-pink); color: var(--pink); }
.c2 .ico { background: var(--tint-teal); color: var(--teal); }
.c3 .ico { background: var(--tint-grape); color: var(--grape); }
.c4 .ico { background: var(--tint-sun); color: #C98A00; }
.c5 .ico { background: var(--tint-teal); color: var(--teal); }
.c6 .ico { background: var(--tint-pink); color: var(--coral); }
@keyframes jelly { 0% { transform: scale(1); } 30% { transform: scale(1.25,.8); } 50% { transform: scale(.85,1.15) rotate(-8deg); } 70% { transform: scale(1.08,.95) rotate(4deg); } 100% { transform: scale(1); } }
@media (max-width: 860px) { .skill-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 540px) { .skill-grid { grid-template-columns: 1fr; } }

/* Projects */
.projects { padding-block: 88px 72px; }
.proj-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.proj { background: var(--paper); padding: 10px 10px 14px; border-radius: 6px; box-shadow: var(--shadow); transition: transform .2s; transform-origin: 50% 0; }
.proj::before { content: ""; display: block; width: 46px; height: 16px; margin: -18px auto 6px; background: color-mix(in srgb, var(--sun) 70%, transparent); transform: rotate(-3deg); border-radius: 2px; }
.proj:nth-child(4n+1) { animation: swing1 5s ease-in-out infinite; }
.proj:nth-child(4n+2) { animation: swing2 5.6s ease-in-out infinite; }
.proj:nth-child(4n+3) { animation: swing1 6s ease-in-out .4s infinite; }
.proj:nth-child(4n)   { animation: swing2 5.2s ease-in-out .8s infinite; }
.proj:hover { animation-play-state: paused; z-index: 2; transform: rotate(0) translateY(-8px) scale(1.04) !important; }
.proj img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; border-radius: 3px; background: var(--tint-sun); }
.proj h3 { font-size: 1.2rem; font-weight: 700; margin-top: 12px; text-align: center; }
.proj p { font-size: .88rem; color: var(--ink-soft); text-align: center; line-height: 1.4; }
@keyframes swing1 { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(1deg); } }
@keyframes swing2 { 0%,100% { transform: rotate(2deg); } 50% { transform: rotate(-1deg); } }
@media (max-width: 860px) { .proj-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* How it works */
.how { padding-block: 8px 80px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; counter-reset: s; }
.step { border: 2.5px dashed var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: transform .3s cubic-bezier(.3,1.6,.5,1), border-color .3s; }
.step::before { counter-increment: s; content: counter(s); font-family: var(--display); font-weight: 800; font-size: 1.3rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; padding-top: 3px; }
.step:hover { transform: translateY(-4px); border-color: var(--teal); }
.step:hover::before { animation: popIn .5s cubic-bezier(.3,1.6,.5,1); }
.step h3 { font-size: 1.3rem; font-weight: 700; }
.step p { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { background: var(--tint-teal); padding-block: 72px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--paper); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.plan:hover { transform: translateY(-6px) rotate(.5deg); }
.plan .label { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.plan .amt { font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .amt small { font-size: 1rem; font-weight: 700; color: var(--ink-soft); margin-left: .2em; }
.plan p { color: var(--ink-soft); font-size: .98rem; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .96rem; }
.plan li { display: flex; gap: .5em; align-items: flex-start; }
.plan li::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: .2em; border-radius: 50%; background: var(--tint-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313A3B5' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.plan > .btn { margin-top: auto; align-self: flex-start; }
.plan.feature { background: var(--coral); color: var(--on-coral); position: relative; overflow: hidden; }
.plan.feature .label, .plan.feature p, .plan.feature .amt small { color: var(--on-coral); opacity: .9; }
.plan.feature .btn { background: var(--paper); color: var(--coral); box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.plan.feature li::before { background-color: rgba(255,255,255,.9); }
.plan.feature::after { content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: rotate(20deg); animation: shine 4s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%,60% { left: -60%; } 100% { left: 130%; } }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* Booking */
.book { padding-block: 88px 80px; }
.book .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.book-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; position: sticky; top: 96px; }
.book-info > p { color: var(--ink-soft); }
.contact-card { background: var(--tint-grape); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.contact-row { display: flex; gap: 12px; align-items: center; font-weight: 700; min-width: 0; }
.contact-row svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--grape); }
.contact-row a { text-decoration: none; overflow-wrap: anywhere; }
.contact-row a:hover { color: var(--coral); }
form.card { background: var(--paper); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 20px; min-width: 0; border: 2px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label, .legend { font-weight: 800; font-size: .92rem; }
.opt { font-weight: 600; color: var(--ink-soft); font-size: .82rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--field); border: 2px solid var(--line); border-radius: 14px; padding: .7em .9em; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 22%, transparent); }
.field.err input, .field.err select { border-color: var(--coral); }
.errmsg { color: var(--coral-deep); font-size: .85rem; font-weight: 700; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .35em; padding: .45em .95em; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; font-size: .92rem; background: var(--field); transition: transform .2s cubic-bezier(.3,1.8,.5,1), background .15s, border-color .15s, color .15s; user-select: none; }
.chip:hover span { transform: translateY(-2px); }
.chip input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; animation: popIn .35s cubic-bezier(.3,1.8,.5,1); }
.chip input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.trial-box { display: flex; gap: 12px; align-items: flex-start; background: var(--tint-sun); border-radius: 16px; padding: 14px 16px; font-weight: 700; cursor: pointer; }
.trial-box input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--coral); flex: 0 0 auto; }
.trial-box small { display: block; font-weight: 600; color: var(--ink-soft); }
.submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.submit-row .fine { font-size: .85rem; color: var(--ink-soft); }
.status { border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; animation: popIn .55s cubic-bezier(.3,1.6,.5,1); }
.status.ok { background: var(--tint-teal); }
.status.bad { background: var(--tint-pink); }
.status h3 { font-size: 1.5rem; font-weight: 800; }
.status .copy { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.status code { font-family: var(--body); font-weight: 800; background: var(--paper); padding: .35em .7em; border-radius: 10px; user-select: all; }
.status .why { font-size: .9rem; font-weight: 700; background: var(--paper); border-radius: 10px; padding: .6em .8em; }
.status .why:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .book .wrap { grid-template-columns: 1fr; gap: 32px; } .book-info { position: static; } }
@media (max-width: 540px) { .row { grid-template-columns: 1fr; } form.card { padding: 22px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-soft); }

/* Inner pages (page.php / index.php) */
.page-body { padding-block: 64px 88px; }
.page-body .entry { max-width: 760px; }
.page-body .entry h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 24px; }
.page-body .entry > * + * { margin-top: 1em; }
.page-body .entry a { color: var(--coral); }

.site-header nav .current-menu-item > a, .site-header nav .current_page_parent > a { color: var(--coral); }

/* =========================================================================
 * BLOG
 * ====================================================================== */
.pill { align-self: flex-start; display: inline-block; font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; background: var(--tint-teal); color: var(--teal); padding: .38em .85em .32em; border-radius: 999px; transition: background .15s, color .15s; }
.pill:hover { background: var(--teal); color: #fff; }
.meta { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }

/* Blog header */
.blog-head { padding-block: 56px 40px; overflow: hidden; }
.blog-head .sec-head { margin-bottom: 28px; }
.blog-head h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; }
.blog-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips a { text-decoration: none; padding: .45em .95em; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; font-size: .92rem; background: var(--paper); transition: transform .2s cubic-bezier(.3,1.8,.5,1), background .15s, border-color .15s, color .15s; }
.cat-chips a:hover { transform: translateY(-2px); border-color: var(--teal); color: var(--teal); }
.cat-chips a.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.blog-search { position: relative; flex: 0 1 280px; min-width: 200px; }
.blog-search input[type="search"] { width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: .6em 3em .6em 1.1em; }
.blog-search input[type="search"]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 22%, transparent); }
.blog-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--coral); color: var(--on-coral); display: grid; place-items: center; cursor: pointer; }
.blog-search button svg { width: 16px; height: 16px; }
.blog-body { padding-block: 8px 96px; }

/* Cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.card { background: var(--paper); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); border: 2px solid var(--line); transition: transform .3s cubic-bezier(.3,1.6,.5,1), box-shadow .3s, border-color .3s; min-width: 0; }
.card:hover { transform: translateY(-6px) rotate(-.6deg); border-color: var(--sun); }
.card-media { display: block; aspect-ratio: 10 / 7; overflow: hidden; background: var(--tint-sun); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-ph { display: block; width: 100%; height: 100%; background:
  radial-gradient(circle at 22% 30%, var(--sun) 0 14%, transparent 15%),
  radial-gradient(circle at 78% 70%, var(--pink) 0 10%, transparent 11%),
  radial-gradient(circle at 62% 24%, var(--teal) 0 7%, transparent 8%),
  var(--tint-sun); }
.card-ph.c2 { background-color: var(--tint-teal); }
.card-ph.c3 { background-color: var(--tint-grape); }
.card-ph.c4 { background-color: var(--tint-pink); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 1.35rem; font-weight: 700; line-height: 1.15; }
.card-title a { text-decoration: none; background: linear-gradient(var(--sun), var(--sun)) 0 92% / 0 .28em no-repeat; transition: background-size .3s ease; }
.card:hover .card-title a { background-size: 100% .28em; }
.card-excerpt { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.card .meta { margin-top: auto; padding-top: 4px; }

.card-featured { flex-direction: row; margin-bottom: 32px; border-radius: 28px; }
.card-featured .card-media { flex: 1.15; aspect-ratio: auto; min-height: 340px; }
.card-featured .card-body { flex: 1; padding: 36px; justify-content: center; gap: 14px; }
.card-featured .card-title { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; }
.card-featured .card-excerpt { font-size: 1.05rem; }
.card-featured .meta { margin-top: 6px; }
.card-featured:hover { transform: translateY(-4px); }

@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 760px) {
  .card-featured { flex-direction: column; }
  .card-featured .card-media { min-height: 0; aspect-ratio: 10 / 7; }
  .card-featured .card-body { padding: 22px; }
}
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } .blog-search { flex-basis: 100%; } }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 800; border: 2px solid var(--line); background: var(--paper); transition: border-color .15s, color .15s, transform .2s cubic-bezier(.3,1.8,.5,1); }
.pagination a.page-numbers:hover { border-color: var(--coral); color: var(--coral); transform: translateY(-2px); }
.pagination .page-numbers.current { background: var(--coral); border-color: var(--coral); color: var(--on-coral); }
.pagination .dots { border: 0; background: none; }

.empty { text-align: center; padding: 48px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty p { color: var(--ink-soft); }

/* Homepage blog section */
.home-blog { background: var(--tint-grape); padding-block: 72px; }
.home-blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.home-blog-head .sec-head { margin-bottom: 0; }
.home-blog + .book { padding-top: 104px; }

/* Single post */
.post-hero { padding-block: 56px 48px; overflow: hidden; position: relative; }
.post-hero > .wrap { position: relative; z-index: 1; }
.post-hero .wrap { display: flex; flex-direction: column; gap: 40px; }
.post-hero-copy { max-width: 820px; margin-inline: auto; width: 100%; display: flex; flex-direction: column; gap: 18px; }
.post-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); font-weight: 800; animation: rise .8s cubic-bezier(.3,1.4,.5,1) both; }
.post-dek { font-size: 1.2rem; color: var(--ink-soft); }
.byline { display: flex; align-items: center; gap: 12px; }
.byline-avatar { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--paper); box-shadow: var(--shadow); }
.byline strong { display: block; font-family: var(--display); font-size: 1.05rem; line-height: 1.1; }
.byline span { font-size: .88rem; font-weight: 700; color: var(--ink-soft); }
.post-photo { max-width: 1000px; margin: 0 auto; width: 100%; border-radius: 28px 34px 26px 38px; overflow: hidden; border: 6px solid var(--paper); box-shadow: var(--shadow); transform: rotate(-.8deg); background: var(--tint-sun); }
.post-photo img { width: 100%; aspect-ratio: 7 / 4; object-fit: cover; }

/* Prose (blog posts + regular pages) */
.prose { max-width: 720px; margin-inline: auto; font-size: 1.12rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.45rem; margin-top: 1.5em; }
.prose h4 { font-family: var(--display); font-size: 1.2rem; margin: 1.4em 0 0; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose p { margin: 0; }
.prose a { color: var(--coral); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--coral-deep); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--coral); }
.prose ol li::marker { color: var(--teal); font-weight: 800; font-family: var(--display); }
.prose blockquote, .prose .wp-block-quote { margin-inline: 0; padding: 22px 26px; background: var(--tint-sun); border-radius: 20px; border-left: 6px solid var(--sun); font-family: var(--display); font-size: 1.3rem; line-height: 1.35; }
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: .6em; font-family: var(--body); font-size: .9rem; font-style: normal; font-weight: 700; color: var(--ink-soft); }
.prose img, .prose .wp-block-image img { border-radius: 18px; }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { font-size: .88rem; color: var(--ink-soft); text-align: center; margin-top: .6em; }
.prose .alignwide { max-width: min(1040px, calc(100vw - 32px)); margin-inline: calc((min(1040px, 100vw - 32px) - 720px) / -2); }
.prose .alignfull { max-width: 100vw; width: 100vw; margin-inline: calc(50% - 50vw); }
.prose .alignfull img { border-radius: 0; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; text-align: center; }
.prose::after { content: ""; display: table; clear: both; }
.prose hr, .prose .wp-block-separator { border: 0; height: 16px; margin-block: 2.2em; background: radial-gradient(circle, var(--line) 0 4px, transparent 5px) center / 22px 16px repeat-x; }
.prose code { font-size: .9em; background: var(--tint-grape); padding: .15em .4em; border-radius: 6px; }
.prose pre { background: var(--ink); color: var(--bg); padding: 18px 20px; border-radius: 16px; overflow-x: auto; font-size: .9rem; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose th, .prose td { padding: .6em .8em; border-bottom: 2px solid var(--line); text-align: left; }
.prose th { font-family: var(--display); }
.prose .wp-block-button__link { font-family: var(--display); font-weight: 800; background: var(--coral); color: var(--on-coral); border-radius: 999px; padding: .62em 1.3em .5em; box-shadow: 0 4px 0 var(--coral-deep); text-decoration: none; }
.prose .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink); }
.prose .wp-block-gallery img { border-radius: 12px; }
.prose .wp-block-embed iframe { width: 100%; border-radius: 18px; }
.has-ink-color { color: #1D2852; } .has-ink-background-color { background-color: #1D2852; }
.has-coral-color { color: var(--coral); } .has-coral-background-color { background-color: var(--coral); }
.has-sun-color { color: var(--sun); } .has-sun-background-color { background-color: var(--sun); }
.has-teal-color { color: var(--teal); } .has-teal-background-color { background-color: var(--teal); }
.has-grape-color { color: var(--grape); } .has-grape-background-color { background-color: var(--grape); }
.has-pink-color { color: var(--pink); } .has-pink-background-color { background-color: var(--pink); }
.has-tint-sun-background-color { background-color: var(--tint-sun); }
.has-tint-teal-background-color { background-color: var(--tint-teal); }
.has-cream-background-color { background-color: var(--bg); }
.has-background { padding: 1.2em 1.4em; border-radius: 18px; }

.page-links { margin-top: 2em; font-weight: 800; display: flex; gap: 8px; align-items: center; }

/* After the post */
.post-after { max-width: 820px; padding-block: 40px 72px; display: flex; flex-direction: column; gap: 32px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--grape); background: var(--tint-grape); padding: .35em .85em; border-radius: 999px; }
.post-tags a:hover { background: var(--grape); color: #fff; }
.post-cta { background: var(--coral); color: var(--on-coral); border-radius: 28px; padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.post-cta > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.post-cta .eyebrow { color: var(--on-coral); opacity: .85; }
.post-cta h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.post-cta p { opacity: .92; }
.post-cta .btn { background: var(--paper); color: var(--coral); box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.post-cta::after { content: ""; position: absolute; top: -50%; left: -60%; width: 30%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent); transform: rotate(20deg); animation: shine 5s ease-in-out infinite; pointer-events: none; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; padding: 18px 20px; border: 2.5px dashed var(--line); border-radius: 20px; transition: border-color .2s, transform .3s cubic-bezier(.3,1.6,.5,1); }
.post-nav a:hover { border-color: var(--teal); transform: translateY(-3px); }
.post-nav a span { font-family: var(--body); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: auto; } }
.related { background: var(--tint-sun); padding-block: 72px; margin-top: 16px; }

/* Comments */
.comments { max-width: 820px; margin: 0 auto; padding-block: 72px 88px; display: flex; flex-direction: column; gap: 24px; }
.comments-title, .comment-reply-title { font-size: 1.8rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.comment-list .children { margin: 14px 0 0 28px; }
.comment-body { background: var(--paper); border: 2px solid var(--line); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.comment-metadata a, .comment-author a { text-decoration: none; }
.comment-content p + p { margin-top: .7em; }
.reply a { font-size: .85rem; font-weight: 800; color: var(--coral); text-decoration: none; }
.comment-card p { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.comment-card .comment-notes, .comment-card .logged-in-as { font-size: .88rem; color: var(--ink-soft); }
.comment-card .comment-form-cookies-consent { flex-direction: row; align-items: center; gap: 8px; font-size: .9rem; }
.comment-card input[type="url"] { width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 2px solid var(--line); border-radius: 14px; padding: .7em .9em; }
.comment-card .form-submit { flex-direction: row; }
.comment-card .required { color: var(--coral); }

/* Elementor */
.bm-elementor > .elementor { width: 100%; }
.bm-elementor .elementor-widget-shortcode .elementor-shortcode > section:first-child { margin-top: 0; }
.bm-elementor .elementor-widget-text-editor a { color: var(--coral); }

/* Scroll reveal */
.reveal { translate: 0 26px; transition: translate .7s cubic-bezier(.3,1.5,.5,1), transform .3s cubic-bezier(.3,1.6,.5,1), box-shadow .3s, border-color .3s; }
.reveal.in { translate: 0 0; }
.no-js .reveal { translate: none; }

/* Confetti + sparks */
.spark { position: fixed; pointer-events: none; z-index: 60; width: 10px; height: 10px; border-radius: 50%; animation: sparkFade .8s ease-out forwards; }
@keyframes sparkFade { 100% { transform: translate(var(--x), var(--y)) scale(0); opacity: 0; } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { translate: none; }
}
