/* Lato (self-hosted, from @fontsource/lato): 300, 400, 700 and 300 italic — the site's only typeface. */
/* lato-latin-ext-300-normal */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(/fonts/lato-latin-ext-300-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* lato-latin-300-normal */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(/fonts/lato-latin-300-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* lato-latin-ext-400-normal */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/lato-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* lato-latin-400-normal */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/lato-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* lato-latin-ext-700-normal */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/lato-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* lato-latin-700-normal */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/lato-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* lato-latin-ext-300-italic */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-display: swap;
  font-weight: 300;
  src: url(/fonts/lato-latin-ext-300-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* lato-latin-300-italic */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-display: swap;
  font-weight: 300;
  src: url(/fonts/lato-latin-300-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ==========================================================================
   Sophie Anna Ward — published-site styles (also used by the editor canvas).

   Ported 1:1 from the Inline CMS build (Tailwind v4). Everything is scoped to
   .site-root so it never touches the editor UI, and breakpoints are container
   queries on .site-root so the editor's device previews behave like the real
   viewport. Tailwind breakpoints: sm 640, md 768, lg 1024; nav collapses <992.
   ========================================================================== */

.site-root {
  --pink: #d03c8c;
  --pink-80: rgb(208 60 140 / 0.8);
  --foreground: #333333;
  --muted: #f5f5f5;
  --muted-foreground: #6b6b6b;
  --border: #e5e5e5;
  --container-max: 1140px;
  --container-padding: 1.5rem;
  --banner-height: 350px;
  --banner-overlap: 100px;
  --header-height: 100px;
  --card-shadow: 0 6px 30px 2px rgb(0 0 0 / 0.2);
  --card-shadow-band: 440px;

  container-type: inline-size;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: #ffffff;
  color: var(--foreground);
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body:has(> .site-root) {
  margin: 0;
}

/* Preflight (the subset of Tailwind's reset the design relies on). */
.site-root *,
.site-root *::before,
.site-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

.site-root :where(h1, h2, h3, h4, h5, h6) {
  font-size: inherit;
  font-weight: inherit;
}

.site-root :where(a) {
  color: inherit;
  text-decoration: inherit;
}

.site-root :where(ol, ul) {
  list-style: none;
}

.site-root :where(img, svg, video) {
  display: block;
  vertical-align: middle;
}

.site-root :where(img, video) {
  max-width: 100%;
  height: auto;
}

.site-root :where(button) {
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.site-root picture {
  display: contents;
}

.site-root main {
  flex: 1;
}

/* Editable text in the published HTML keeps line breaks typed in the editor. */
.site-root .et-static {
  white-space: pre-line;
}

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

.sw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.sw-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.sw-brand {
  font-size: 1.5625rem;
  font-weight: 300;
  color: var(--pink);
}

.sw-nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.sw-nav-link {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  color: var(--foreground);
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.sw-nav-link:hover,
.sw-nav-link.active {
  color: var(--pink);
}

.sw-menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 2rem;
  height: 2rem;
}

.sw-menu-toggle span {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  background: var(--foreground);
}

.sw-mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.sw-mobile-nav .sw-nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.5rem var(--container-padding);
}

.sw-mobile-nav .sw-nav-link {
  display: block;
  padding: 0.5rem 0;
}

@container (max-width: 991px) {
  .sw-desktop-nav {
    display: none;
  }

  .sw-menu-toggle {
    display: flex;
  }

  .sw-header[data-open] .sw-mobile-nav {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   Banner: full-bleed photo, 80% pink overlay, centered white heading
   -------------------------------------------------------------------------- */

.sw-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--banner-height);
  overflow: hidden;
}

.sw-banner.no-image {
  background: var(--pink);
}

.sw-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.sw-banner-overlay {
  position: absolute;
  inset: 0;
  background: var(--pink-80);
}

.sw-banner-heading {
  position: relative;
  z-index: 10;
  padding: 0 1rem;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 300;
  color: #ffffff;
}

@container (max-width: 767px) {
  .sw-banner {
    height: 240px;
  }
}

@container (max-width: 639px) {
  .sw-banner {
    height: 180px;
  }
}

/* --------------------------------------------------------------------------
   Content blocks: a white card centred to the 1140px container. The
   "elevated" block pulls up over the banner and casts a fixed-height shadow
   band at its top (the Webflow / WP design's floating content box).
   -------------------------------------------------------------------------- */

.sw-block-inner {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
}

.sw-block-card {
  padding: 3rem 1.5rem;
  background: #ffffff;
}

.sw-block-card.pt-none { padding-top: 0; }
.sw-block-card.pt-small { padding-top: 1.5rem; }
.sw-block-card.pt-large { padding-top: 5rem; }
.sw-block-card.pb-none { padding-bottom: 0; }
.sw-block-card.pb-small { padding-bottom: 1.5rem; }
.sw-block-card.pb-large { padding-bottom: 5rem; }

@container (min-width: 768px) {
  .sw-block-card {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.sw-block[data-elevated] > .sw-block-inner {
  z-index: 10;
  margin-top: calc(-1 * var(--banner-overlap));
}

.sw-block[data-elevated] > .sw-block-inner::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--card-shadow-band);
  box-shadow: var(--card-shadow);
  z-index: -1;
}

@container (max-width: 639px) {
  .sw-block[data-elevated] > .sw-block-inner {
    margin-top: 0;
  }
}

.sw-empty-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Rich text
   -------------------------------------------------------------------------- */

.sw-prose,
.sw-prose > .eh {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sw-prose :where(h1, h2, h3, h4, h5, h6) {
  color: var(--pink);
  font-weight: 300;
}

.sw-prose :where(h1) { font-size: 1.875rem; line-height: 1.2; }
.sw-prose :where(h2) { font-size: 1.25rem; line-height: 1.3; }
.sw-prose :where(h3) { font-size: 1.125rem; line-height: 1.35; }
.sw-prose :where(h4) { font-size: 1rem; line-height: 1.4; }

.sw-prose :where(ul, ol) {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-left: 1.5rem;
}

.sw-prose :where(ul) { list-style: disc; }
.sw-prose :where(ol) { list-style: decimal; }

.sw-prose :where(li)::marker {
  color: var(--muted-foreground);
}

.sw-prose :where(blockquote) {
  padding-left: 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted-foreground);
  font-style: italic;
}

.sw-prose :where(a) {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sw-prose :where(a):hover {
  opacity: 0.75;
}

.sw-prose :where(hr) {
  height: 1px;
  border: 0;
  background: var(--border);
}

.sw-prose.small {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* --------------------------------------------------------------------------
   Content with image (+ optional book covers under the text)
   -------------------------------------------------------------------------- */

.sw-cwi {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sw-cwi-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.sw-cwi-image img {
  width: 100%;
  height: auto;
  /* Never stretch a small image past its own size; centre it instead. */
  max-width: min(100%, var(--natural-width, 100%));
  margin-inline: auto;
}

.sw-cwi-image .sw-empty-media {
  aspect-ratio: 3 / 4;
}

@container (min-width: 1024px) {
  .sw-cwi {
    flex-direction: row;
    align-items: flex-start;
  }

  .sw-cwi.reverse {
    flex-direction: row-reverse;
  }

  .sw-cwi.equal > .sw-cwi-image,
  .sw-cwi.equal > .sw-cwi-text,
  .sw-cwi.narrow-image > .sw-cwi-image,
  .sw-cwi.wide-image > .sw-cwi-text {
    flex: 1;
  }

  .sw-cwi.narrow-image > .sw-cwi-text,
  .sw-cwi.wide-image > .sw-cwi-image {
    flex: 2;
  }
}

/* Book covers: two (or three) to a row in a column; natural flow in the wide block. */
.sw-covers {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.75rem;
}

.sw-covers > .sw-cover {
  width: calc(50% - 0.375rem);
}

.sw-covers.thirds > .sw-cover {
  width: calc((100% - 1.5rem) / 3);
}

.sw-cover img {
  width: 100%;
  height: auto;
  max-width: min(100%, var(--natural-width, 100%));
  margin-inline: auto;
}

.sw-covers.max-400 img {
  max-width: min(400px, var(--natural-width, 400px));
}

.sw-cover a {
  display: block;
}

.sw-cover .sw-empty-media {
  aspect-ratio: 2 / 3;
  font-size: 0.75rem;
}

.sw-book-covers {
  gap: 0.5rem;
}

.sw-book-covers > .sw-cover {
  width: calc(50% - 0.5rem);
}

@container (min-width: 640px) {
  .sw-book-covers > .sw-cover {
    width: auto;
  }

  .sw-book-covers .sw-empty-media {
    width: 10rem;
  }
}

/* --------------------------------------------------------------------------
   Writing showcase: covers grid + prose, side by side from lg
   -------------------------------------------------------------------------- */

.sw-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@container (min-width: 1024px) {
  .sw-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Credits table (CV section)
   -------------------------------------------------------------------------- */

.sw-section-heading {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--pink);
}

.sw-cv .sw-section-heading {
  margin-bottom: 0.5rem;
}

.sw-cv-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1rem;
  padding: 0.25rem 0;
}

.sw-cv.four .sw-cv-row {
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
}

/* The production / title column. */
.sw-cv-row > :first-child {
  font-weight: 400;
}

.sw-cv-note {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--pink);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

@container (max-width: 639px) {
  .sw-cv .sw-cv-row,
  .sw-cv.four .sw-cv-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.5rem 0;
  }

  .sw-cv-row > :not(:first-child) {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Contact details: agent cards
   -------------------------------------------------------------------------- */

.sw-agents {
  display: grid;
  gap: 2rem;
}

.sw-agent {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sw-agent-links {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.sw-agent-links a {
  color: var(--pink);
}

.sw-agent-links a:hover {
  opacity: 0.75;
}

@container (min-width: 640px) {
  .sw-agents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 1024px) {
  .sw-agents {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Gallery slider: one slide at a time, looping, with full-height arrows.
   Without JavaScript the slides scroll/swipe sideways (scroll-snap).
   -------------------------------------------------------------------------- */

.sw-gallery {
  position: relative;
}

.sw-gallery-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.sw-gallery-viewport::-webkit-scrollbar {
  display: none;
}

.sw-gallery.is-ready .sw-gallery-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.sw-gallery-track {
  display: flex;
  transition: transform 0.3s ease;
}

.sw-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.sw-slide-media {
  height: 500px;
  overflow: hidden;
}

.sw-slide-media img,
.sw-slide-media .sw-empty-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sw-slide-text {
  margin-top: 0.5rem;
  text-align: center;
}

.sw-slide-caption {
  font-size: 1.5625rem;
  font-weight: 400;
  font-style: italic;
  color: var(--pink);
}

.sw-gallery-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  color: #ffffff;
}

.sw-gallery-arrow.prev {
  left: 0;
}

.sw-gallery-arrow.next {
  right: 0;
}

.sw-gallery-arrow[hidden] {
  display: none;
}

@container (max-width: 1023px) {
  .sw-slide-media {
    height: 320px;
  }
}

@container (max-width: 639px) {
  .sw-slide-media {
    height: 200px;
  }
}

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

.sw-footer {
  margin-top: 4rem;
}

.sw-footer-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.5rem var(--container-padding);
  border-top: 1px solid var(--pink);
}

.sw-footer-copy {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--pink);
}

.sw-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sw-social a {
  display: block;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.sw-social a:hover {
  opacity: 0.7;
}

.sw-social img {
  width: auto;
  height: 30px;
}

@container (min-width: 640px) {
  .sw-footer-bar {
    flex-direction: row;
  }
}

/* --------------------------------------------------------------------------
   Page not found
   -------------------------------------------------------------------------- */

.site-empty {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 6rem var(--container-padding);
  text-align: center;
}

.site-empty h1 {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--pink);
}

.site-empty p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

.site-empty a {
  display: inline-block;
  margin-top: 2rem;
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
