/* CC the Medium — static, warm, calm.
   Palette and section order follow the original site:
   wine → cream → wine → blush → image → cream → wine. */

:root {
  --wine: #913f4a;
  --cream: #fefaf0;
  --blush: #eab9b3;
  --ink: #2e0f13;
  --ink-soft: #624a4a;
  --line: rgba(46, 15, 19, 0.16);

  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Crave Fine", var(--sans);   /* headings */
  --display-weight: 400;                  /* Crave Fine has a single weight */

  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --measure: 40rem;
  --wide: 68rem;
  --header-h: 5rem;   /* sticky header height, keeps anchor jumps from hiding under it */
  --focus: var(--wine);
  color-scheme: light;
}

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

html {
  scroll-padding-top: var(--header-h);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
}

img, svg, iframe { display: block; max-width: 100%; }

a {
  color: var(--wine);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--ink); }

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

/* Wine sections: light text, light focus ring */
.site-header, .hero, .testimonial, .site-footer, .substack-card {
  --focus: var(--cream);
  color: var(--cream);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; color: var(--cream); }

/* Type -------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-synthesis: none;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--wine); }

p { margin: 0 0 1.15rem; }

.lede {
  font-family: var(--display);   /* Crave Fine, same as the headings */
  font-weight: var(--display-weight);
  font-style: normal;            /* Crave Fine has no italic; don't fake one */
  font-synthesis: none;
  color: var(--cream);           /* off-white, same as body copy on the wine hero */
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);   /* smaller than the h1 */
  line-height: 1.4;
  margin-bottom: 1.75rem;
}

/* Layout ------------------------------------------------ */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wide));
  margin-inline: auto;
}

section { scroll-margin-top: 0; }

.section { padding-block: clamp(4rem, 9vw, 7rem); }

.mark {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

/* Header ------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--wine);
  padding-block: 1.25rem;
  border-bottom: 1px solid rgba(254, 250, 240, 0.22);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cream);
  text-decoration: none;
}
.brand:hover { color: var(--cream); }
.brand .mark { width: 2rem; height: 2rem; }

.brand, .btn { white-space: nowrap; }

@media (max-width: 40rem) {
  .site-header .wrap { gap: 0.75rem; }
  .brand { gap: 0.5rem; }
  .brand .mark { width: 1.6rem; height: 1.6rem; }
  .site-header .btn { padding: 0.55rem 1rem; font-size: 0.85rem; }
}

/* Buttons ----------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  background: var(--blush);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-lg { padding: 1rem 2.1rem; font-size: 1rem; }
.site-header .btn { padding: 0.6rem 1.25rem; }

/* Hero -------------------------------------------------- */

.hero {
  overflow-x: clip;
  background: var(--wine);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 9vw, 7rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "title title"
    "copy  art";
  align-items: center;
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: clamp(0.75rem, 1.6vw, 1.25rem);
  container-type: inline-size;   /* lets the headline size itself to the full hero width */
}
.hero-copy { grid-area: copy; max-width: 34rem; }
.hero h1 {
  color: var(--blush);
  font-family: "Crave Fine", var(--sans);
  font-weight: 400;      /* the font has one weight; don't let the browser fake a bold */
  font-synthesis: none;
  grid-area: title;
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.5rem);                  /* fallback */
  font-size: min(4.5rem, calc(100cqi / 11.8));          /* longest line is ~11.6em wide */
}
.hero h1 .line { display: block; white-space: nowrap; }
.hero-copy .btn { margin-top: 0.75rem; }

.hero-art {
  grid-area: art;
  justify-self: center;
  width: min(100%, 28rem);
}
.hero-art img {
  width: 100%;
  height: auto;
  animation: slide-in-right 3.5s cubic-bezier(0.22, 0.8, 0.3, 1) 0.2s both;
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(min(14rem, 35vw)); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
  .js .portrait { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 52rem) {
  .hero .wrap {
    grid-template-columns: 1fr;
    grid-template-areas: "art" "title" "copy";
  }
  .hero-art { width: 10rem; }
}

/* About ------------------------------------------------- */

.about .wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 1.5rem 1.5rem;
  overflow: hidden;
  background: var(--blush);
}
/* Slides in from the left once scrolled into view (site.js toggles .is-in).
   Gated on .js so the photo is simply visible with JavaScript off. */
.js .portrait {
  opacity: 0;
  transform: translateX(min(-10rem, -25vw));
  transition: opacity 3.6s ease, transform 3.6s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.js .portrait.is-in { opacity: 1; transform: none; }
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about .mark { margin-bottom: 1rem; }
.about-copy { max-width: var(--measure); }

@media (max-width: 52rem) {
  .about .wrap { grid-template-columns: 1fr; }
  .portrait { max-width: 22rem; margin-inline: auto; width: 100%; }
}

/* Testimonials (carousel) ------------------------------- */

.testimonial {
  background: var(--wine);
  text-align: center;
}
.slides { max-width: 40rem; margin-inline: auto; }
.slide { margin: 0 0 3rem; }
.slide:last-child { margin-bottom: 0; }
.slide blockquote { margin: 0; }
.slide blockquote p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  text-wrap: pretty;
}
.slide cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* With JS the slides stack in one grid cell and cross-fade;
   the tallest slide sets the height so nothing jumps. */
.js .slides { display: grid; }
.js .slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.js .slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .js .slide, .js .slide.is-active { transition: none; }
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2rem;
}
.reviews-link {
  margin: 1.5rem 0 0;
  font-size: 14px;
}
.testimonial .reviews-link a {
  display: inline-flex;
  flex-direction: column;   /* stars on top, text close below */
  align-items: center;
  gap: 0.2rem;
  color: var(--cream);
}
.testimonial .reviews-link a:hover { color: var(--blush); }
.reviews-link .stars { display: flex; gap: 0.2rem; color: var(--blush); }
.reviews-link .stars svg { width: 1.1rem; height: 1.1rem; flex: none; }

.dot, .carousel-toggle {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--cream);
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
}
.dot::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cream);
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.dot:hover::before { opacity: 0.75; }
.dot[aria-current="true"]::before { opacity: 1; transform: scale(1.3); }

.carousel-toggle { margin-left: 0.75rem; }
.carousel-toggle svg { width: 0.8rem; height: 0.8rem; fill: currentColor; }
.carousel-toggle .icon-play { display: none; }
.carousel-toggle[aria-pressed="true"] .icon-play { display: block; }
.carousel-toggle[aria-pressed="true"] .icon-pause { display: none; }

/* Book a reading (Calendly) ----------------------------- */

.book {
  background: var(--blush);
  --focus: var(--wine);
}
.book h2 { text-align: center; margin-bottom: 2.5rem; }
.calendly-frame {
  max-width: var(--wide);
  margin-inline: auto;
  background: var(--cream);
  border-radius: 1.25rem;
  overflow: hidden;
}
.calendly-frame iframe {
  width: 100%;
  height: 46rem;
  border: 0;
}
.book-fallback {
  text-align: center;
  font-size: 0.85rem;
  margin: 1.25rem 0 0;
}
.book-fallback a { color: var(--ink); }
.book-fallback a:hover { color: var(--wine); }

/* Below ~1100px Calendly stacks its columns and needs more height,
   so the frame grows rather than showing a scroll bar inside a scroll. */
@media (max-width: 68rem) {
  .calendly-frame iframe { height: 84rem; }
}
@media (max-width: 40rem) {
  .calendly-frame { border-radius: 0.9rem; }
}

/* Substack (parallax) ----------------------------------- */

.substack {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--blush);
  padding-block: clamp(4.5rem, 11vw, 8rem);
}
.parallax-bg {
  position: absolute;
  inset: -50% 0;
  z-index: -2;
  background: url("/images/booking-banner.jpg") center / cover no-repeat;
  will-change: transform;
}
.substack::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(254, 250, 240, 0.31);
}
.substack-card {
  max-width: 29rem;
  margin-inline: auto;
  text-align: center;
  background: var(--wine);
  padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 5vw, 2.5rem);
  border-radius: 1.75rem;
}
.substack-line {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-synthesis: none;
  font-size: clamp(1.6rem, 3vw, 1.95rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

/* FAQ --------------------------------------------------- */

.faq .wrap { max-width: 46rem; }
.faq .mark { margin: 0 auto 1rem; }
.faq h2 { text-align: center; margin-bottom: 2.5rem; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-synthesis: none;
  font-size: clamp(1.45rem, 2.6vw, 1.75rem);
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--wine);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--wine); }

.faq .answer { padding: 0 0 1.5rem; color: var(--ink-soft); }
.faq .answer > :last-child { margin-bottom: 0; }
.faq .answer ul { padding-left: 1.2rem; margin: 0 0 1.15rem; }
.faq .answer li { margin-bottom: 0.7rem; padding-left: 0.2rem; }
.faq .answer li::marker { color: var(--wine); }
.faq .answer strong { color: var(--ink); font-weight: 600; }

/* Footer ------------------------------------------------ */

.site-footer {
  background: var(--wine);
  padding-block: clamp(3.5rem, 8vw, 5.5rem) 2.5rem;
  font-size: 0.9rem;
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--blush); }
.site-footer h2 {
  font-size: 2rem;
  color: var(--blush);
  margin-bottom: 1.25rem;
}
/* Same look as the header name: icon beside it, Poppins 500, caps, 14px, cream */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}
.site-footer .footer-brand .mark { width: 2rem; height: 2rem; margin: 0; }
.site-footer .footer-brand h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--cream);
  margin: 0;
  white-space: nowrap;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.footer-statements { max-width: 34rem; }
.footer-statements p { font-size: 12px; }
.footer-links { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links .label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.6rem;
}
.footer-links--legal a { font-size: 12px; line-height: 1.15; }
.footer-links--legal li { margin-bottom: 0.1rem; }

.social-icons {
  display: flex;
  flex-direction: row;   /* side by side, not stacked */
  gap: 1rem;
}
.social-icons a {
  display: inline-flex;
  color: var(--cream);
}
.social-icons a:hover { color: var(--blush); }
.social-icons svg { width: 1.35rem; height: 1.35rem; }
.copyright {
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(254, 250, 240, 0.22);
  font-size: 0.8rem;
  opacity: 0.9;
}
@media (max-width: 44rem) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Mailing list sign-up (in the footer) ------------------ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.footer-signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  border-bottom: 1px solid rgba(254, 250, 240, 0.22);
}
.site-footer .signup-title {
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  color: #eab9b3;
  margin-bottom: 0.75rem;
}
.signup-copy p { max-width: 30rem; margin: 0; }
.signup-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.signup-row input {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(254, 250, 240, 0.65);
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
}
.signup-row input::placeholder { color: var(--cream); opacity: 0.85; }
.signup-row input:focus { border-color: var(--cream); background: rgba(254, 250, 240, 0.08); }
.signup-row .btn { border: 0; cursor: pointer; font-family: inherit; }
.signup-consent { font-size: 0.8rem; margin: 0.9rem 0 0; opacity: 0.9; }
.signup-status { font-size: 0.85rem; margin: 0.6rem 0 0; min-height: 1.2em; }
@media (max-width: 44rem) {
  .footer-signup { grid-template-columns: 1fr; }
}

/* Legal pages ------------------------------------------- */

.legal { padding-block: clamp(2rem, 6vw, 4rem) clamp(4rem, 9vw, 7rem); }
.legal .wrap { max-width: 46rem; }
.legal p, .legal li { font-size: 14px; }
.legal .back { display: inline-block; margin-bottom: 2rem; font-size: 0.9rem; }
.legal h1 { font-size: clamp(2.6rem, 5.5vw, 3.7rem); color: var(--wine); margin-bottom: 0.5rem; }
.legal .effective {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-synthesis: none;
  font-style: normal;
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.legal h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin: 2.5rem 0 0.75rem;
}
.legal ul { padding-left: 1.2rem; margin: 0 0 1.15rem; }
.legal li { margin-bottom: 0.6rem; padding-left: 0.2rem; }
.legal li::marker { color: var(--wine); }
.legal strong { font-weight: 600; }

/* ==========================================================================
   FONTS + BUTTON STYLE (appended last so it wins over the rules above)
   Headings: Canela Thin (currently the TRIAL file)
   Body:     Sweet Sans Pro ExLight      Buttons: Sweet Sans Pro Light, caps
   To change fonts later, edit the @font-face blocks and the two variables
   below (--display, --sans). The previous look is in site-backup-before-new-fonts/
   ========================================================================== */
@font-face {
  font-family: "Canela Thin Trial";
  src: url("/fonts/Canela-Thin-Trial.otf") format("opentype");
  font-weight: 100 900;      /* single-weight font: answer every weight request with it */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sweet Sans Pro";
  src: url("/fonts/SweetSansPro-ExLight.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --display: "Canela Thin Trial", Georgia, serif;
  --sans: "Sweet Sans Pro", system-ui, sans-serif;
}
body { font-synthesis: none; }
.hero h1 { font-family: var(--display); }
/* Canela is narrower, so let the headline grow to fill the row (longest line is ~9.9em wide) */
.hero h1 { font-size: min(5.75rem, calc(100cqi / 10.1)); }

/* Buttons: all caps (with a little tracking so capitals don't feel cramped) */
.btn { text-transform: uppercase; letter-spacing: 0.1em; }

/* Phones: the caps header button is wide, so shrink it so it never covers the site name */
@media (max-width: 40rem) {
  .site-header .btn { font-size: 0.72rem; letter-spacing: 0.06em; padding: 0.55rem 0.85rem; }
}

/* Buttons use Sweet Sans Pro Light (body copy stays ExLight) */
@font-face {
  font-family: "Sweet Sans Pro Light";
  src: url("/fonts/SweetSansPro-Light.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.btn, .signup-row .btn { font-family: "Sweet Sans Pro Light", "Sweet Sans Pro", system-ui, sans-serif; }

/* Desktop only: slightly smaller button text (phones keep their own sizing above) */
@media (min-width: 40.01rem) {
  .btn { font-size: 0.8rem; }       /* was 0.9rem */
  .btn-lg { font-size: 0.9rem; }    /* was 1rem */
}

/* Footer copyright line in all caps (with a little tracking, like the other caps text) */
.copyright { text-transform: uppercase; letter-spacing: 0.06em; }
