/* Cleary Piano Lessons: shared site chrome (header, footer, Wix-style text, blog).
   Page bodies keep the CSS from Lorcan's own HTML blocks; everything here is namespaced cpl-. */

html, body { overflow: visible !important; height: auto !important; }
body { margin: 0; min-height: 100vh; }

#main { display: block; }

:root {
  --cpl-red: #9E1216;
  --cpl-red-lt: #C2181E;
  --cpl-dark: #221F20;
  --cpl-chrome: #1B1A21;
  --cpl-cream: #F4EFE8;
  --cpl-dim: #B9AFA9;
}

/* ---------- header ---------- */
.cpl-header { background: var(--cpl-chrome); color: #fff; font-family: "Jost", Helvetica, Arial, sans-serif; font-weight: 300; line-height: 1.4; position: relative; z-index: 100; text-align: left; }
.cpl-header *, .cpl-footer * { box-sizing: border-box; }
.cpl-header__in { position: relative; max-width: 1077px; margin: 0 auto; padding: 78px 40px 56px 35px; display: flex; align-items: flex-start; gap: 19px; }
.cpl-header__in::before { content: ""; position: absolute; top: 60px; left: 73px; right: 88px; height: 1px; background: rgba(255, 255, 255, .55); }
.cpl-logo { flex: 0 0 auto; display: block; width: 84px; height: 84px; }
.cpl-logo img { display: block; width: 84px; height: 84px; object-fit: cover; }
.cpl-header__mid { flex: 1 1 auto; padding-top: 33px; min-width: 0; }
.cpl-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.cpl-nav a { color: #fff; text-decoration: none; font-family: "Jost", Helvetica, Arial, sans-serif; font-weight: 300; font-size: 13px; letter-spacing: .01em; line-height: 1.4; transition: color .2s; }
.cpl-nav a:hover, .cpl-nav a:focus-visible { color: var(--cpl-dim); }
.cpl-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.cpl-tagline { margin: 8px 0 0; padding: 0; color: #fff; font-family: "Jost", Helvetica, Arial, sans-serif; font-weight: 300; font-size: 15px; line-height: 1.875; }
.cpl-ig { flex: 0 0 auto; margin-top: 6px; display: block; line-height: 0; }
.cpl-ig img { width: 20px; height: 20px; }
.cpl-menu-btn { display: none; }

@media (max-width: 760px) {
  .cpl-header__in { padding: 16px 16px; align-items: center; gap: 14px; }
  .cpl-header__in::before { display: none; }
  .cpl-logo, .cpl-logo img { width: 56px; height: 56px; }
  .cpl-header__mid { padding-top: 0; display: flex; flex-direction: column; align-items: flex-start; }
  .cpl-tagline { margin: 0; font-size: 13px; line-height: 1.4; order: -1; }
  .cpl-menu-btn { display: inline-flex; align-items: center; gap: 4px; flex-direction: column; justify-content: center; position: absolute; right: 52px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; }
  .cpl-menu-btn span { display: block; width: 22px; height: 1.5px; background: #fff; transition: transform .2s, opacity .2s; }
  .cpl-menu-btn b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cpl-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .cpl-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .cpl-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .cpl-ig { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); margin: 0; padding: 12px; }
  .cpl-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cpl-chrome); border-top: 1px solid rgba(255, 255, 255, .15); padding: 8px 16px 20px; }
  .cpl-nav.is-open { display: block; }
  .cpl-nav ul { flex-direction: column; gap: 0; }
  .cpl-nav a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 420px) { .cpl-tagline { display: none; } }

/* ---------- footer ---------- */
.cpl-footer { background: var(--cpl-chrome); color: #fff; padding: 44px 24px 56px; text-align: left; }
.cpl-footer p { margin: 0; padding: 0; color: #fff; }
.cpl-footer__title { font-family: "Cormorant Garamond", Georgia, serif !important; font-weight: 300; font-size: 42px; line-height: 1.41; text-align: center; max-width: 640px; margin: 0 auto 60px !important; }
.cpl-footer__row { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1.3fr; align-items: end; gap: 24px; }
.cpl-footer__big { font-family: "Playfair Display", Georgia, serif; font-size: 18px; line-height: 1.75; }
.cpl-footer__small { font-family: "Jost", Helvetica, Arial, sans-serif; font-weight: 300; font-size: 15px; line-height: 1.875; }
.cpl-footer__col--r { text-align: center; }
.cpl-footer__ig { display: block; line-height: 0; padding: 4px; }
.cpl-footer__ig img { width: 24px; height: 24px; }
@media (max-width: 760px) {
  .cpl-footer__title { font-size: 30px; margin-bottom: 36px !important; }
  .cpl-footer__row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
}

/* ---------- text that used to live in the Wix editor ---------- */
.cpl-wix { color: var(--cpl-cream); text-align: left; }
.cpl-wix .cpl-t { width: 100%; }
.cpl-wix :is(h1, h2, h3, h4, h5, h6, p, ul, ol, li, blockquote) { margin: 0; padding: 0; max-width: none; color: inherit; letter-spacing: normal; text-transform: none; font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: 18px; line-height: 1.75; text-wrap: wrap; opacity: 1; transform: none; border: 0; background: none; }
.cpl-wix :is(ul, ol) { padding-left: 1.3em; }
.cpl-wix ul { list-style: disc; }
.cpl-wix ol { list-style: decimal; }
.cpl-wix li > p { display: inline; }
.cpl-wix a { color: inherit; text-decoration: none; transition: opacity .2s; }
.cpl-wix a:hover { opacity: .75; }
.cpl-wix strong, .cpl-wix b { font-weight: 700; }
.cpl-wix .t-f0 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 300; font-size: 42px; line-height: 1.41; }
.cpl-wix .t-f1, .cpl-wix .t-f10 { font-family: "Jost", Helvetica, Arial, sans-serif; font-weight: 300; font-size: 14px; line-height: 1.79; }
.cpl-wix .t-f2 { font-size: 28px; line-height: 1.375; }
.cpl-wix .t-f3 { font-size: 88px; line-height: 1.2; }
.cpl-wix .t-f4 { font-size: 72px; line-height: 1.25; }
.cpl-wix .t-f5 { font-size: 50px; line-height: 1.34; }
.cpl-wix .t-f6 { font-size: 40px; line-height: 1.35; }
.cpl-wix .t-f7 { font-size: 20px; line-height: 1.67; }
.cpl-wix .t-f8 { font-size: 18px; line-height: 1.75; }
.cpl-wix .t-f9 { font-family: "Jost", Helvetica, Arial, sans-serif; font-weight: 300; font-size: 15px; line-height: 1.875; }
.cpl-slot { margin: 0; }
li.cpl-wix { list-style: none; }
.cpl-col { width: min(720px, calc(100% - 48px)); margin: 0 auto; }
.cpl-intro { padding-bottom: 0; }
.cpl-outro { padding: 40px 0 72px; }
.cpl-embed { margin-left: auto; margin-right: auto; }
@media (max-width: 600px) {
  .cpl-wix .t-f0 { font-size: 32px !important; line-height: 1.25 !important; }
  .cpl-wix .t-f3 { font-size: 48px !important; }
  .cpl-wix .t-f7 { font-size: 18px !important; }
  .cpl-wix .t-f8 { font-size: 16.5px !important; }
  .cpl-intro { padding-top: 40px !important; }
}

/* ---------- pages without an HTML block (blog, portal, 404) ---------- */
body.cpl-blogpage, body.cpl-portalpage { background: var(--cpl-dark); color: var(--cpl-dim); font-family: "Jost", Helvetica, Arial, sans-serif; font-weight: 300; -webkit-font-smoothing: antialiased; }
.cpl-blog { width: min(940px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 96px; }
.cpl-blognav { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-bottom: 18px; margin-bottom: 36px; border-bottom: 1px solid rgba(244, 239, 232, .14); }
.cpl-blognav a { color: var(--cpl-dim); text-decoration: none; font-family: "Playfair Display", Georgia, serif; font-size: 15px; }
.cpl-blognav a[aria-current="page"], .cpl-blognav a:hover { color: var(--cpl-cream); }
.cpl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.cpl-card { display: flex; flex-direction: column; text-decoration: none; color: var(--cpl-cream); border: 1px solid rgba(244, 239, 232, .14); background: #2B2728; transition: border-color .2s; }
.cpl-card:hover { border-color: rgba(244, 239, 232, .4); }
.cpl-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #2B2728; }
.cpl-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpl-card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #2B2728, #3a3233); }
.cpl-card__meta { display: block; padding: 18px 22px 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cpl-dim); }
.cpl-card__title { display: block; padding: 8px 22px 24px; font-family: "Playfair Display", Georgia, serif; font-size: 22px; line-height: 1.35; }
@media (max-width: 680px) { .cpl-cards { grid-template-columns: 1fr; } }

.cpl-post { max-width: 720px; margin: 0 auto; }
.cpl-post__meta { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13px; color: var(--cpl-dim); }
.cpl-post__avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1f5b4a; color: #fff; font-size: 13px; }
.cpl-post__title { margin: 0 0 32px; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; font-size: 42px; line-height: 1.15; color: var(--cpl-cream); }
.cpl-post__hero { margin: 0 0 32px; }
.cpl-post__hero img { width: 100%; height: auto; display: block; }
.cpl-post__body { font-family: "Playfair Display", Georgia, serif; font-size: 17px; line-height: 1.75; color: #E4DDD5; }
.cpl-post__body p { margin: 0 0 1.1em; }
.cpl-post__body :is(h2, h3, h4) { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; color: var(--cpl-cream); line-height: 1.2; margin: 1.6em 0 .5em; }
.cpl-post__body h2 { font-size: 30px; }
.cpl-post__body h3 { font-size: 25px; }
.cpl-post__body :is(ul, ol) { margin: 0 0 1.1em; padding-left: 1.4em; }
.cpl-post__body li { margin: 0 0 .35em; }
.cpl-post__body li > p { margin: 0; }
.cpl-post__body > br { display: none; }
.cpl-post__body a { color: var(--cpl-cream); text-decoration: underline; text-underline-offset: 3px; }
.cpl-post__body img { display: block; max-width: 100%; height: auto; margin: 1.5em auto; }
.cpl-post__body figure { margin: 1.5em 0; }
.cpl-post__body hr { border: 0; border-top: 1px solid rgba(244, 239, 232, .18); margin: 2em 0; }
.cpl-post__body blockquote { margin: 1.4em 0; padding-left: 1.2em; border-left: 2px solid var(--cpl-red); font-style: italic; }
@media (max-width: 600px) { .cpl-post__title { font-size: 32px; } .cpl-post__body { font-size: 16px; } }

.cpl-portal { padding-top: 24px; }
.cpl-portal .t-f3 { text-align: center; }
.cpl-portal__widget { width: min(1000px, calc(100% - 32px)); margin: 24px auto 80px; min-height: 420px; }
.cpl-404 { padding: 96px 0 140px; }
.cpl-404 a { text-decoration: underline; }

/* skip link */
.cpl-skip { position: absolute; left: -9999px; top: 0; }
.cpl-skip:focus { left: 12px; top: 12px; z-index: 200; background: #fff; color: #000; padding: 8px 12px; }
