/* Julia & Sonny: v2 (light polish of the 2022 Astra/Elementor site)
   Same layout, colours, photos and fonts; cleaner type scale, spacing and states. */

:root {
  /* Brand colours from the original Astra / Elementor kit */
  --blue: #4175fc;          /* Astra global 0 */
  --blue-deep: #084af3;     /* Astra global 1, used where text needs AA contrast */
  --blue-ink: #0636b0;      /* hover / pressed */
  --sky-ink: #1d6e92;       /* readable shade of the kit's #6EC1E4 for the hero intro */
  --rose-ink: #7d6060;      /* script headline */
  --ink: #101218;           /* Astra global 2 */
  --text: #494b51;          /* Astra global 3 */
  --page: #f3f5f5;          /* Astra global 4 */
  --card: #ffffff;
  --pink-tint: #fceded;     /* #E14A4A under 90% white, as in the original hero */
  --blue-tint: #ecf1ff;     /* #4175FC under 90% white */

  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Shalimar", "Segoe Script", cursive;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --shadow-card: 0 40px 120px -24px rgba(16, 18, 24, .10);
  --shadow-img: 0 24px 40px -18px rgba(16, 18, 24, .28);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > .page-hero { flex: 1 0 auto; }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--blue-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-ink); }

:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: .6em 1em; border-radius: 8px;
  background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); min-height: 104px; }
.brand { display: block; flex: none; border-radius: 50%; }
.brand img { width: 114px; height: auto; }
.site-nav ul { display: flex; gap: clamp(18px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.site-nav a {
  position: relative; display: inline-block; padding: .5em 0;
  color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: .9375rem;
  text-decoration: none; letter-spacing: .01em;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .25em; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a:hover { color: var(--ink); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  background: var(--blue-deep); color: #fff;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; line-height: 1; letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(8, 74, 243, .6);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--blue-ink); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(8, 74, 243, .65); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--blue-deep); box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { background: var(--blue-deep); color: #fff; box-shadow: inset 0 0 0 2px var(--blue-deep); }

.more {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--blue-deep); font-family: var(--font-head); font-weight: 500; font-size: .9375rem; line-height: 1.3;
  text-decoration: none;
}
.more svg { flex: none; width: 7px; height: 11px; fill: currentColor; transition: transform .2s ease; }
.more:hover { color: var(--ink); text-decoration: underline; }
.more:hover svg { transform: translateX(3px); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(90deg, var(--pink-tint) 60%, var(--blue-tint) 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  align-items: stretch;
  min-height: clamp(640px, 100vh, 920px);
}
.hero-text { align-self: center; padding: 150px 0 96px; position: relative; z-index: 2; }
.script {
  font-family: var(--font-script);
  font-weight: 700;              /* the original site used Shalimar bold (synthesised) */
  color: var(--rose-ink);
  letter-spacing: .005em;        /* was 7.3px, which broke the joins of the script */
  line-height: .98;
  text-wrap: balance;
  -webkit-text-stroke: .012em currentColor; /* a touch of extra weight, like the original's faux bold */
}
.hero h1 {
  font-size: clamp(3.4rem, 8.6vw, 8.25rem);
  margin: 0 0 .32em -.03em;
  max-width: 7.5em;
}
.hero-lede {
  max-width: 31em;
  margin: 0 0 2.25rem;
  color: var(--sky-ink);
  font-weight: 600;
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.6;
}
.hero-lede cite { font-style: normal; }
.hero-photo { margin: 0 0 0 clamp(16px, 2.5vw, 40px); position: relative; }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 42% 50%;
}

/* ---------- Projects ---------- */
.projects { padding: clamp(72px, 9vw, 112px) 0 clamp(96px, 12vw, 160px); }
.section-title { text-align: center; font-size: clamp(2.25rem, 4.2vw, 3.25rem); margin-bottom: clamp(40px, 5vw, 64px); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); align-items: stretch; }
.card {
  display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 0 clamp(24px, 2.4vw, 32px) clamp(28px, 2.6vw, 34px);
}
.card-img {
  margin: 0 calc(-1 * clamp(24px, 2.4vw, 32px)) 28px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-img);
  aspect-ratio: 2 / 1; background: #ddd;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: clamp(1.375rem, 1.8vw, 1.5rem); margin-bottom: .6em; }
.card p { font-size: 1rem; line-height: 1.7; margin-bottom: 1.5em; max-width: 36em; }
.card .more { margin-top: auto; align-self: flex-start; }

/* ---------- Inner pages ---------- */
.page-hero {
  background: linear-gradient(90deg, var(--pink-tint) 60%, var(--blue-tint) 70%);
  padding: 168px 0 clamp(80px, 10vw, 128px);
}
.page-title { font-size: clamp(3rem, 6.4vw, 4.75rem); font-weight: 600; letter-spacing: -0.025em; margin-bottom: 40px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

.contact-card {
  display: flex; align-items: center; gap: 20px;
  max-width: 460px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--card); color: var(--ink); text-decoration: none;
  box-shadow: 0 20px 60px -30px rgba(16, 18, 24, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 26px 60px -28px rgba(16, 18, 24, .32); }
.contact-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-deep); }
.contact-icon svg { width: 18px; height: 18px; fill: #fff; }
.contact-label { display: block; color: var(--blue-deep); font-family: var(--font-head); font-weight: 600; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-email { display: block; font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; }

.panel {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 56px);
}
.panel h2 { font-size: clamp(1.625rem, 2.4vw, 2rem); margin-bottom: .75em; }
.panel p:last-child { margin-bottom: 0; }
.panel .btn { margin-top: .5rem; }
.direct { list-style: none; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid #e6e8ec; display: grid; gap: 14px; }

.note { max-width: 40rem; }
.note p { font-size: 1.125rem; }
.note .script { font-size: clamp(3rem, 7vw, 5.5rem); margin-bottom: .25em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c4c8ce; border-top: 1px solid var(--text); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-top: 36px; padding-bottom: 36px; font-size: .875rem; line-height: 1.5;
}
.footer-inner p { margin: 0; }
.footer-mark { font-family: var(--font-script); font-size: 1.75rem; line-height: 1; color: #fff; margin-right: .35em !important; }
.footer-brand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 500; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 600px; }
  .hero-text { padding: 140px 0 72px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards .card:last-child { grid-column: 1 / -1; max-width: calc(50% - clamp(10px, 1.2vw, 16px)); justify-self: center; }
}

@media (max-width: 860px) {
  .site-header { position: absolute; }
  .header-inner { min-height: 88px; }
  .brand img { width: 96px; }
  .hero { background: linear-gradient(90deg, var(--pink-tint) 62%, var(--blue-tint) 74%); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 88px; }
  .hero-photo { order: -1; margin: 0 calc(-1 * var(--gutter)) 0 22%; aspect-ratio: 4 / 5; max-height: min(68vh, 620px); }
  .hero-text { padding: 28px 0 64px; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.75rem); max-width: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .page-hero { padding-top: 128px; }
}

@media (max-width: 700px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards .card:last-child { grid-column: auto; max-width: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero-photo { margin-left: 14%; }
  .btn { width: 100%; }
  .header-inner { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Marketing card in Cosmo Californie's branding (cosmocalifornie.com: navy #042647, cream #f7f3ec, green #1a6b5a, gold #c4883a) */
.card--cosmo { background: #f7f3ec; }
.card--cosmo h3 { font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; color: #042647; letter-spacing: -.01em; }
.card--cosmo p { color: #3a3a3a; }
.card--cosmo .more { color: #073763; }
.card--cosmo .more:hover, .card--cosmo .more:focus-visible { color: #1a6b5a; }
.card--cosmo .more svg { fill: currentColor; }
.cosmo-panel {
  background: #042647; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .55rem; text-align: center; padding: 1.25rem;
}
.cosmo-panel img { width: 64px; height: 64px; object-fit: contain; }
.cosmo-panel .cosmo-name { margin: 0; font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.55rem); color: #f7f3ec; letter-spacing: -.005em; max-width: none; }
.cosmo-panel .cosmo-tag { margin: 0; font: 600 .7rem/1 "Open Sans", sans-serif; letter-spacing: .26em; text-transform: uppercase; color: #8fd1bd; max-width: none; }
.cosmo-panel .cosmo-tag span { color: #c4883a; padding: 0 .25em; }

/* Food and Drink card on the same cream as the Cosmo card */
.card--food { background: #f7f3ec; }

/* Bio Medics card: Julia's podcast as a soft-blue band along the card's bottom edge (the cover art is the site's blue) */
.card--julia { --px: clamp(24px, 2.4vw, 32px); --pb: clamp(28px, 2.6vw, 34px); box-shadow: 0 18px 40px -24px rgba(8, 74, 243, .35); }
.card--julia > .more { margin-top: 0; margin-bottom: 1.6em; }
.pod-band {
  margin: auto calc(-1 * var(--px)) calc(-1 * var(--pb)); padding: 16px var(--px) 18px;
  border-radius: 0 0 var(--radius) var(--radius); background: var(--blue-tint);
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 14px; align-items: center;
}
.pod-band img { width: 56px; height: 56px; border-radius: 50%; grid-row: span 2; }
.pod-band p { margin: 0; max-width: none; }
.pod-band .podcast-label { font: 600 .6875rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: .35em; }
.pod-band .podcast-title { font: 600 1.0625rem/1.25 var(--font-head); color: var(--ink); }
.podcast-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.podcast-links a {
  display: inline-block; padding: .45em .9em; border-radius: 999px; background: #fff; color: var(--blue-deep);
  font: 600 .8125rem/1.2 var(--font-head); text-decoration: none; box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background .2s, color .2s;
}
.podcast-links a:hover, .podcast-links a:focus-visible { background: var(--blue-deep); color: #fff; }
@media (prefers-reduced-motion: reduce) { .podcast-links a { transition: none; } }

/* ---------- TV airings (filled by airwatch.py; past ones removed by the inline script) ---------- */
.hero-lede cite a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; }
.hero-lede cite a:hover { color: var(--blue-ink); }
.air-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.air-list li { display: grid; gap: 2px; }
.air-list time { color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.air-list span { font-size: .9375rem; color: var(--text); }

.next-tv { display: none; margin: -1rem 0 2rem; max-width: 26rem; padding: 14px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .78); box-shadow: inset 4px 0 0 var(--blue-deep); }
.next-tv.has-airings { display: block; }
.next-tv-label, .kicker, .air-watch-title {
  margin: 0 0 .45em; color: var(--blue-deep);
  font: 600 .75rem/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- Episode page ---------- */
.split--wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); align-items: center; }
.page-title--long { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.05; margin-bottom: 28px; }
.lede { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.6; color: var(--ink); max-width: 34em; }
.aired { color: var(--text); font-weight: 600; }
.air h2 { margin-bottom: .6em; }
.air .air-list { margin-bottom: 1.25rem; }
.air .air-empty { display: none; }
.air:not(.has-airings) .air-list { display: none; }
.air:not(.has-airings) .air-empty { display: block; }
.air-watch-title { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #e6e8ec; }
.watch { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 12px; }
.air-note { font-size: .875rem; line-height: 1.55; color: var(--text); }

/* ---------- Text pages ---------- */
.content { background: var(--card); padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.prose { max-width: calc(46rem + 2 * var(--gutter)); }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin: 2.2em 0 .7em; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 40em; }
.page-hero .prose .page-title { margin-bottom: 28px; }
.details { margin: 0; display: grid; gap: 0; border-top: 1px solid #e6e8ec; }
.details div { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); gap: 4px 24px;
  padding: 14px 0; border-bottom: 1px solid #e6e8ec; }
.details dt { color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.details dd { margin: 0; }
@media (max-width: 560px) { .details div { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .split--wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .header-inner { gap: 16px; }
  .brand img { width: 80px; }
  .site-nav ul { gap: 14px; }
  .site-nav a { font-size: .875rem; white-space: nowrap; }
}
