/* Mar Morningstar — site styles. Colours and fonts follow the original Squarespace design. */
:root {
  --navy: #16105c;      /* header, footer, buttons */
  --night: #120d31;     /* dark sections */
  --cream: #eddea4;     /* gold-cream accents and text on dark */
  --cream-soft: #f7efcf;
  --pink: #fbbfca;
  --white: #ffffff;
  --ink: #16105c;       /* text on light backgrounds */
  --muted: #6b6790;
  --danger: #a3123a;
  --ok: #1d6b3a;
  --serif: "EB Garamond", "Adobe Garamond Pro", Garamond, Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--cream); color: var(--navy); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.on-light :focus-visible, .section--cream :focus-visible, .section--pink :focus-visible, .section--white :focus-visible { outline-color: var(--navy); }

/* ---------- header ---------- */
.site-header { background: var(--navy); text-align: center; padding: 18px var(--gutter) 14px; box-shadow: 0 6px 18px rgba(0,0,0,.25); position: relative; z-index: 2; }
.site-header .logo { display: inline-block; width: 96px; }
.site-nav ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px clamp(18px, 4vw, 44px); }
.site-nav a { font-family: var(--script); font-size: 1.45rem; color: var(--cream); text-decoration: none; padding: 2px 4px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; position: relative; overflow: hidden; }
.section--cream { background: var(--cream); color: var(--ink); }
.section--night { background: var(--night); color: var(--cream); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--pink { background: var(--pink); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }
.section--night p, .section--navy p { color: #f3ead0; }
.section--night .panel p, .section--navy .panel p, .section--night .quote-card p { color: inherit; }
.center { text-align: center; }
.split { display: grid; gap: clamp(28px, 5vw, 70px); align-items: center; grid-template-columns: 1fr 1fr; }
.split--wide-text { grid-template-columns: 1fr 1.25fr; }
@media (max-width: 760px) { .split, .split--wide-text { grid-template-columns: 1fr; } }

/* Decorative stars and planets */
.deco { position: absolute; width: clamp(34px, 5vw, 64px); pointer-events: none; }
.deco--tl { top: 28px; left: 4%; }
.deco--tr { top: 28px; right: 6%; }
.deco--br { bottom: 26px; right: 8%; }
.deco--bl { bottom: 26px; left: 6%; }
.deco--inline { position: static; display: inline-block; vertical-align: middle; width: 1em; margin-right: .2em; }

/* ---------- buttons ---------- */
.btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-transform: uppercase; letter-spacing: .08em;
  font-family: var(--sans); font-size: .78rem; font-weight: 500; padding: 15px 30px; border-radius: 3px; text-align: center; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--cream { background: var(--cream); color: var(--navy); }
.btn--outline { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--cream); }
.btn--outline-dark { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- home ---------- */
.hero h1 { max-width: 23ch; margin: 0 auto .6em; }
.hero h1 em { font-style: italic; }
.portrait-circle { max-width: 380px; margin: 0 auto; }
.framed { border: 10px solid var(--cream); }
.about-teaser h2 { color: var(--cream); }

/* ---------- consultation ---------- */
.lead { font-family: var(--serif); font-size: 1.25rem; }
.ticks { padding-left: 1.1em; font-size: 1.12rem; }
.ticks li { margin-bottom: .55em; }
.price-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.price { font-family: var(--serif); font-size: 2.3rem; color: var(--cream); }
.marquee { background: var(--cream); color: var(--navy); font-family: var(--serif); font-size: 1.35rem; overflow: hidden; white-space: nowrap; padding: 10px 0; margin: 0 var(--gutter); }
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 28s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee span { animation: none; padding-left: 0; } }
.quote-card { max-width: 560px; margin: 0 auto; border: 8px solid var(--cream); border-radius: 18px; padding: clamp(28px, 5vw, 48px); text-align: center; }
.quote-card cite { display: block; margin-top: 14px; font-style: normal; }

/* ---------- about ---------- */
.about-title { font-weight: 600; color: var(--navy); display: flex; align-items: center; justify-content: center; gap: 14px; }
.about-title img { width: 48px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }
label { display: block; font-size: .95rem; }
.req { opacity: .7; font-size: .8em; }
.hint { display: block; font-size: .82rem; opacity: .8; margin-top: 2px; }
input[type=text], input[type=email], input[type=date], input[type=time], input[type=password], select, textarea {
  width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid #c9c3a5; border-radius: 3px; }
textarea { min-height: 120px; resize: vertical; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .92rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 14px; border-radius: 3px; font-size: .95rem; }
.notice--error { background: #fde6ea; color: var(--danger); }
.notice--ok { background: #e3f3e8; color: var(--ok); }
.notice--info { background: var(--cream-soft); color: var(--navy); }
.contact-heading { font-size: clamp(3.4rem, 11vw, 7.5rem); color: var(--cream); text-transform: uppercase; margin-bottom: .3em; }

/* ---------- booking ---------- */
.book-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }
.panel { background: var(--cream-soft); color: var(--ink); border-radius: 6px; padding: clamp(18px, 3vw, 30px); }
.panel h2 { font-size: 1.7rem; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .85rem; flex-wrap: wrap; }
.steps li { padding: 6px 12px; border-radius: 99px; background: rgba(237,222,164,.18); color: var(--cream); }
.steps li[aria-current="step"] { background: var(--cream); color: var(--navy); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head button { background: none; border: 1px solid var(--navy); color: var(--navy); border-radius: 3px; width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; }
.cal-head button[disabled] { opacity: .3; cursor: default; }
.cal-month { font-family: var(--serif); font-size: 1.4rem; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .dow { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 0; }
.cal button { aspect-ratio: 1; border: 0; border-radius: 4px; background: transparent; color: #a9a6bf; font: inherit; cursor: default; min-height: 36px; }
.cal button.has-slots { background: var(--white); color: var(--navy); font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px #d8d0ab; }
.cal button.has-slots:hover { box-shadow: inset 0 0 0 2px var(--navy); }
.cal button[aria-pressed="true"] { background: var(--navy); color: var(--cream); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 12px; }
.times button { padding: 10px 6px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 3px; font: inherit; cursor: pointer; }
.times button[aria-pressed="true"] { background: var(--navy); color: var(--cream); }
.tz-line { font-size: .9rem; color: var(--muted); margin-top: 14px; }
.tz-line select { width: auto; max-width: 100%; display: inline-block; margin: 0 0 0 6px; padding: 6px 8px; font-size: .9rem; }
.summary { border-top: 1px solid #ddd3aa; margin-top: 16px; padding-top: 14px; font-size: .95rem; }
.summary dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.summary dd { margin: 0 0 10px; }
.loading { color: var(--muted); font-style: italic; }

/* ---------- legal & attribution ---------- */
.legal h2 { color: var(--cream); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.legal p { margin-bottom: .6em; }
.doc-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); }
@media (max-width: 640px) { .doc-buttons { grid-template-columns: 1fr; } }
.doc-buttons h2 { color: var(--cream); }
.credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.credits li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: center; }
.credits img { width: 70px; height: 70px; object-fit: cover; }

/* ---------- admin ---------- */
.admin table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--white); }
.admin th, .admin td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #e8e2c8; vertical-align: top; }
.admin th { background: var(--cream-soft); font-weight: 600; }
.admin .table-scroll { overflow-x: auto; }
.admin .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin .actions button, .admin .small-btn { font-size: .78rem; padding: 6px 10px; border-radius: 3px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); cursor: pointer; }
.admin .tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .75rem; background: #fde6ea; color: var(--danger); }
.hours-row { display: grid; grid-template-columns: 130px 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 8px; }
@media (max-width: 560px) { .hours-row { grid-template-columns: 1fr 1fr; } }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-tabs button { background: transparent; color: var(--cream); border: 1px solid var(--cream); border-radius: 3px; padding: 8px 14px; cursor: pointer; font: inherit; }
.admin-tabs button[aria-selected="true"] { background: var(--cream); color: var(--navy); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--cream); padding: 48px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } .footer-grid .logo { margin: 0 auto; } }
.footer-grid .logo { width: 110px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--cream); text-underline-offset: 3px; }
.footer-small { margin-top: 28px; font-size: .78rem; opacity: .7; text-align: center; }

.hidden { display: none !important; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.cream { color: var(--cream); }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- motion (see assets/js/motion.js) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Reveal on scroll */
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
  .reveal.is-visible { opacity: 1; transform: none; }
  img.reveal { transform: translateY(26px) scale(.97); }
  img.reveal.is-visible { transform: none; }

  /* Header: logo and menu settle in on load */
  .site-header .logo { animation: logo-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .site-nav li { animation: fade-down .8s cubic-bezier(.2,.7,.2,1) both; }
  .site-nav li:nth-child(1) { animation-delay: .25s; }
  .site-nav li:nth-child(2) { animation-delay: .35s; }
  .site-nav li:nth-child(3) { animation-delay: .45s; }
  .site-nav li:nth-child(4) { animation-delay: .55s; }
  .site-nav a { position: relative; text-decoration: none !important; }
  .site-nav a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 1px; background: var(--cream); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

  /* Decorative stars twinkle, planets float; both drift slightly on scroll */
  .deco { animation: twinkle 3.6s ease-in-out infinite; translate: 0 var(--drift, 0); }
  .deco[src*="saturn"] { animation: float 6s ease-in-out infinite; }
  .deco--br, .deco--tr { animation-delay: -1.8s; }
  .deco--inline { animation: twinkle 3s ease-in-out infinite; translate: none; }

  /* Starfield in dark sections */
  .section--night, .section--navy { position: relative; overflow: hidden; }
  .starfield { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
  .starfield span { position: absolute; width: var(--size); height: var(--size); border-radius: 50%; background: var(--cream); opacity: .15; animation: star var(--dur) ease-in-out infinite; animation-delay: var(--delay); }
  .section--night > .wrap, .section--navy > .wrap, .section--night > .marquee { position: relative; z-index: 1; }

  /* Portrait glow and framed images */
  .portrait-circle { animation: glow 5s ease-in-out infinite; border-radius: 50%; }
  .framed { transition: transform .6s ease, box-shadow .6s ease; }
  .framed:hover { transform: rotate(-1deg) scale(1.02); box-shadow: 0 18px 50px rgba(0,0,0,.45); }

  /* Buttons: soft shimmer sweep on hover */
  .btn { position: relative; overflow: hidden; }
  .btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .7s ease; pointer-events: none; }
  .btn:hover::after { left: 120%; }

  /* Testimonial card breathes slightly */
  .quote-card { animation: breathe 7s ease-in-out infinite; }

  /* Booking calendar: days pop in when the month changes */
  .cal button.has-slots { animation: pop .4s ease both; }
  .times button { transition: background .2s, color .2s, transform .2s; }
  .times button:hover { transform: translateY(-2px); }
}

@keyframes logo-in { from { opacity: 0; transform: scale(.85) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .55; scale: .86; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(8deg); } }
@keyframes star { 0%, 100% { opacity: .12; } 50% { opacity: .85; } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(237,222,164,0)); } 50% { filter: drop-shadow(0 0 22px rgba(237,222,164,.45)); } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 rgba(237,222,164,0); } 50% { box-shadow: 0 0 34px rgba(237,222,164,.18); } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* Birth place suggestions */
.place-field { position: relative; }
.place-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; list-style: none; margin: 2px 0 0; padding: 4px 0; background: var(--white); border: 1px solid #c9c3a5; border-radius: 3px; box-shadow: 0 10px 24px rgba(0,0,0,.18); max-height: 260px; overflow-y: auto; }
.place-list li { padding: 9px 12px; cursor: pointer; font-size: .95rem; }
.place-list li:hover, .place-list li:focus { background: var(--cream-soft); outline: none; }
.chart-view { margin-top: 14px; background: var(--white); padding: 10px; border: 1px solid #e8e2c8; }
.chart-view img { width: 100%; max-width: 720px; margin: 0 auto; }
.admin .tag--test { background: #e3e7fb; color: var(--navy); }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.post-card { background: var(--cream-soft); color: var(--ink); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.post-card img, .post-card__placeholder { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card__placeholder { display: grid; place-items: center; background: var(--navy); color: var(--cream); font-size: 3rem; }
.post-card__body { padding: 18px 20px 22px; }
.section--night .post-card p { color: var(--ink); }
.post-card h2 { font-size: 1.5rem; margin-bottom: .3em; }
.post-card h2 a { text-decoration: none; }
.post-meta { font-size: .85rem; color: var(--muted); }
.section--night .post-card .post-meta { color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; }
.post h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: .2em; }
.post-cover { margin: 24px 0 32px; border-radius: 6px; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.45rem; margin-top: 1.4em; }
.prose h4 { font-size: 1.2rem; margin-top: 1.2em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--cream); background: var(--cream-soft); font-family: var(--serif); font-size: 1.2rem; }
.prose img { margin: 1.5em auto; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid #e3dcbb; margin: 2.2em 0; }
.post-cta { margin-top: 48px; padding: 28px; background: var(--navy); color: var(--cream); border-radius: 6px; text-align: center; }
.post-cta h2 { color: var(--cream); font-size: 1.8rem; }
.post-cta p { color: #f3ead0; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .editor-grid { grid-template-columns: 1fr; } }
.editor-grid textarea { min-height: 420px; font-family: ui-monospace, Menlo, monospace; font-size: .9rem; }
.editor-preview { background: var(--white); border: 1px solid #e8e2c8; padding: 16px; max-height: 520px; overflow-y: auto; }

picture { display: block; }
picture > img { width: 100%; }
.credits picture, .credits picture > img { width: 70px; }
