/* ==========================================================================
   Butterfly Beth — site styles

   Mobile-first. Two breakpoints are used throughout:
     44rem (704px)  tablet: wider layouts, hero text moves onto the photo
     54rem (864px)  desktop: full navigation bar, multi-column grids

   Contents
     1. Fonts
     2. Design tokens
     3. Base
     4. Typography
     5. Layout helpers
     6. Buttons and links
     7. Header and navigation
     8. Hero
     9. Services ("What I do")
    10. Gallery
    11. Reviews
    12. About
    13. Events
    14. Good to know
    15. Contact
    16. Terms page (terms.html)
    17. Footer
    18. Reduced motion
   ========================================================================== */


/* 1. Fonts
   Lumios Typewriter (headings) and DM Sans (body text), hosted with the site
   so no visitor data goes to a font service.
   - Lumios Typewriter "Used" by My Creative Land: a commercial font, trimmed
     to Latin characters. It has one weight; declaring 400-700 stops browsers
     faking a bold version of it.
   - DM Sans: a variable font covering weights 400-700, free under the SIL
     Open Font License (assets/fonts/OFL-DM-Sans.txt). Browsers download the
     extended-Latin file only if the page uses one of its characters.
   ========================================================================== */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/dm-sans-latin.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;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/dm-sans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Lumios Typewriter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/lumios-typewriter-used.woff2") format("woff2");
}


/* 2. Design tokens
   ========================================================================== */

:root {
  /* Brand colours */
  --colour-pink: #f467bd;
  --colour-pink-light: #fff0f8;
  --colour-pink-deep: #9b2069;    /* pink text on light backgrounds */
  --colour-teal: #20c9c3;
  --colour-teal-light: #e8fbfa;
  --colour-yellow: #ffd84d;
  --colour-yellow-bright: #ffe47b;
  --colour-violet: #7c3aed;
  --colour-lilac-light: #f1eafe;
  --colour-electric: #38e8dd;     /* glowing teal on dark backgrounds */

  /* Neutrals */
  --colour-ink: #201d2d;
  --colour-night: #121025;
  --colour-muted: #625e6f;
  --colour-white: #ffffff;
  --colour-paper: #faf9fc;

  /* Gradient stops */
  --colour-night-violet: #29204a;
  --colour-uv-start: #21183e;
  --colour-uv-end: #4b2580;
  --colour-mint: #dcf6f4;
  --colour-blush: #fde4f2;

  /* Type */
  --font-heading: "Lumios Typewriter", "Courier New", Courier, serif;
  --font-body: "DM Sans", Arial, sans-serif;

  /* Shape and motion */
  --radius-medium: 1.5rem;
  --radius-large: 2.5rem;
  --shadow-card: 0 18px 50px rgba(32, 29, 45, 0.1);
  --container: 70rem;
  --transition: 180ms ease;

  /* Small butterfly shown before every eyebrow label. It stays inline because
     browsers block CSS masks loaded from separate files when the page is
     opened straight from disk. */
  --mask-butterfly: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='M40 37C35 22 21 13 13 19c-7 6 1 21 27 18ZM40 37C45 22 59 13 67 19c7 6-1 21-27 18ZM40 40c-9 1-21 8-18 16 3 7 14 2 18-16ZM40 40c9 1 21 8 18 16-3 7-14 2-18-16Z'/%3E%3Cpath d='M40 32c-1-8-6-13-11-12M40 32c1-8 6-13 11-12' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");

  /* Magnifier shown on each gallery photo to show it can be enlarged */
  --icon-zoom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23201d2d' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E");
}


/* 3. Base
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--colour-ink);
  background: var(--colour-white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* <picture> only chooses which file to load; lay its <img> out as if it
   were a direct child, so existing image styles apply unchanged. Its
   <source> tags must not take up space, or they push the hero text down. */
picture {
  display: contents;
}

picture source {
  display: none;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--colour-yellow);
  outline-offset: 4px;
}


/* 4. Typography
   ========================================================================== */

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  text-wrap: balance;
  font-family: var(--font-heading);
  line-height: 1.15;
}

h1 {
  margin-bottom: 1.3rem;
  font-size: min(5.4rem, (100vw - 3.5rem) / 8.6);
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 7vw, 3.6rem);
  letter-spacing: -0.01em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
}

/* Small uppercase label above a heading */
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--colour-pink-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 1.7em;
  height: 1.7em;
  margin: -0.4em 0.45em -0.4em 0;
  vertical-align: middle;
  background: currentColor;
  content: "";
  transform: rotate(-12deg);
  -webkit-mask: var(--mask-butterfly) center / contain no-repeat;
  mask: var(--mask-butterfly) center / contain no-repeat;
}


/* 5. Layout helpers
   ========================================================================== */

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 4.75rem 0;
}

.section-heading {
  max-width: 43rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--colour-muted);
  font-size: 1.05rem;
}

/* Hidden <svg> holding the icon drawings, see the bottom of index.html */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--colour-white);
  background: var(--colour-ink);
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (min-width: 44rem) {
  .container {
    width: min(100% - 3rem, var(--container));
  }
}

@media (min-width: 54rem) {
  .section {
    padding-block: 6.5rem;
  }
}


/* 6. Buttons and links
   ========================================================================== */

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  color: var(--colour-ink);
  background: var(--colour-yellow);
  border: 2px solid var(--colour-ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--colour-ink);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.button:hover {
  background: var(--colour-yellow-bright);
  box-shadow: 2px 2px 0 var(--colour-ink);
  transform: translate(2px, 2px);
}

.button:active {
  box-shadow: 0 0 0 var(--colour-ink);
  transform: translate(4px, 4px);
}

.button-small {
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  box-shadow: none;
}

.button-dark {
  color: var(--colour-white);
  background: var(--colour-ink);
  border-color: var(--colour-ink);
  box-shadow: none;
}

.button-dark:hover {
  color: var(--colour-ink);
  background: var(--colour-white);
  box-shadow: none;
  transform: none;
}

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.45rem;
  color: var(--colour-ink);
  font-weight: 700;
  text-decoration-color: var(--colour-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3rem;
}

.text-link:hover {
  color: var(--colour-pink-deep);
}


/* 7. Header and navigation
   ========================================================================== */

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(32, 29, 45, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  position: relative;
  display: flex;
  min-height: 4.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* Logo and name, in Lumios Typewriter capitals (header and footer) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

/* Without JavaScript (no "js" class on <html>) the phone header simply shows
   the links in a wrapped row below the logo, and the menu button is hidden. */
.site-nav {
  display: flex;
  width: 100%;
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

/* That header is taller, so let it scroll away rather than pin it to the top */
html:not(.js) .site-header {
  position: relative;
}

/* With JavaScript, phones get a round "hamburger" button that opens a
   dropdown panel (script.js toggles .is-open). */
.menu-button {
  display: none;
}

.js .menu-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  place-content: center;
  gap: 0.27rem;
  color: var(--colour-ink);
  background: var(--colour-pink-light);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.menu-button > span:not(.sr-only) {
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1rem;
}

.js .site-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: 0;
  display: none;
  width: auto;
  padding: 1rem;
  background: var(--colour-white);
  border: 1px solid rgba(32, 29, 45, 0.1);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
}

.js .site-nav.is-open {
  display: grid;
}

.site-nav > a:not(.button) {
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav > a:not(.button):hover {
  color: var(--colour-pink-deep);
  background: var(--colour-pink-light);
}

/* Desktop: the links sit in a row and the menu button is hidden */
@media (min-width: 54rem) {
  .header-inner {
    min-height: 5.25rem;
  }

  .brand img {
    width: 3.4rem;
    height: 3.4rem;
  }

  html:not(.js) .site-header {
    position: sticky;
  }

  .js .menu-button {
    display: none;
  }

  .site-nav,
  .js .site-nav,
  .js .site-nav.is-open {
    position: static;
    display: flex;
    width: auto;
    padding: 0;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}


/* 8. Hero
   Phones: the banner photo sits on top with the text below it.
   Tablet and up: the text is centred over the photo.
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 43rem;
  padding: 22rem 0 4rem;
  color: var(--colour-white);
  background: var(--colour-night);
}

.hero-banner {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 22rem;
  object-fit: cover;
  object-position: center;
}

/* Darkening layer between the photo and the text */
.hero-shade {
  position: absolute;
  inset: 18rem 0 0;
  background:
    radial-gradient(circle at 88% 35%, rgba(124, 58, 237, 0.45), transparent 32%),
    linear-gradient(135deg, var(--colour-night), var(--colour-night-violet));
}

/* Positioned so it stacks above the photo and shade */
.hero-grid {
  position: relative;
}

.hero-copy {
  position: relative;
  max-width: 48rem;
  min-width: 0;
  margin-inline: auto;
  text-align: center;
}

.hero .eyebrow {
  color: var(--colour-electric);
}

.hero h1 {
  white-space: nowrap;
}

/* Painted brushstroke under "Bethany!" */
.hero h1 span {
  padding-bottom: 0.08em;
  color: var(--colour-pink);
  background: url("assets/brushstroke.svg") no-repeat left bottom / 100% 0.32em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-intro {
  max-width: 35rem;
  margin: 0 auto 1.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.hero .text-link {
  color: var(--colour-white);
  text-decoration-color: var(--colour-electric);
}

.hero .text-link:hover {
  color: var(--colour-electric);
}

/* Decorative butterflies around the headline */
.hero-flutter {
  --ink: var(--colour-white);
  position: absolute;
  pointer-events: none;
}

.hero-flutter-1 {
  top: -3.75rem;
  right: 0;
  width: 4.5rem;
  height: 4.5rem;
  transform: rotate(16deg);
}

.hero-flutter-2 {
  top: -2.2rem;
  left: 0.25rem;
  width: 2.4rem;
  height: 2.4rem;
  transform: rotate(-20deg);
}

@media (max-width: 25rem) {
  .button-group {
    flex-direction: column;
  }
}

@media (min-width: 44rem) {
  .hero {
    display: grid;
    min-height: 38rem;
    padding: 4.5rem 0;
    align-items: center;
  }

  .hero-banner {
    inset: 0;
    height: 100%;
  }

  .hero-shade {
    inset: 0;
    background:
      radial-gradient(ellipse 55% 65% at 50% 50%, rgba(18, 16, 37, 0.75), transparent 100%),
      linear-gradient(rgba(18, 16, 37, 0.55), rgba(18, 16, 37, 0.55));
  }

  /* In the empty space above the headline, which now fills the width */
  .hero-flutter-1 {
    top: -3.75rem;
    right: 1rem;
  }

  .hero-flutter-2 {
    top: -2.5rem;
    right: auto;
    left: 2rem;
    transform: rotate(-20deg) scaleX(-1);
  }
}


/* 9. Services ("What I do")
   ========================================================================== */

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 2px solid var(--colour-ink);
  border-radius: var(--radius-large);
  box-shadow: 7px 7px 0 var(--colour-ink);
}

.service-card > p {
  max-width: 31rem;
  color: var(--colour-muted);
}

/* Small square photo at the top of each card, framed like the gallery photos
   and tilted slightly so it looks hand-placed. At this size the 300px photos
   stay sharp on high-resolution screens. */
.service-photo {
  display: block;
  width: 8rem;
  margin-bottom: 1.25rem;
  aspect-ratio: 1;
  overflow: hidden;
  transform: rotate(-3deg);
  background: var(--colour-ink);    /* dark, so no light fringe shows at the rounded, tilted edges */
  border: 2px solid var(--colour-ink);
  border-radius: var(--radius-medium);
}

.service-card:nth-child(2) .service-photo {
  transform: rotate(3deg);
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Feature tags */
.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(32, 29, 45, 0.16);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Card colour variants. These must stay below the general .service-card
   rules above, which they override. */
.service-card-pink {
  background: var(--colour-pink-light);
}

.service-card-teal {
  background: var(--colour-teal-light);
}

.service-card-purple {
  color: var(--colour-white);
  background: linear-gradient(145deg, var(--colour-uv-start), var(--colour-uv-end));
  box-shadow: 7px 7px 0 var(--colour-electric);
}

.service-card-purple > p {
  color: rgba(255, 255, 255, 0.76);
}

.service-card-purple li {
  color: var(--colour-white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

@media (min-width: 44rem) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 54rem) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* 10. Gallery
   ========================================================================== */

.gallery-section {
  color: var(--colour-white);
  background:
    radial-gradient(circle at 10% 20%, rgba(244, 103, 189, 0.18), transparent 24rem),
    radial-gradient(circle at 90% 80%, rgba(56, 232, 221, 0.14), transparent 24rem),
    var(--colour-night);
}

.gallery-section .eyebrow {
  color: var(--colour-electric);
}

.gallery-section .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.gallery-section .text-link {
  color: var(--colour-white);
  text-decoration-color: var(--colour-electric);
}

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

.gallery-item {
  overflow: hidden;
  margin: 0;
  background: var(--colour-pink-light);
  border: 2px solid var(--colour-ink);
  border-radius: var(--radius-medium);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-action {
  margin: 2rem 0 0;
  text-align: center;
}

@media (min-width: 44rem) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Two large photos, staggered so the six photos fill a 4 × 3 grid exactly */
  .gallery-item-1,
  .gallery-item-5 {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item-5 {
    grid-column: 3 / span 2;
    grid-row: 2 / span 2;
  }
}

/* Each photo is a link that opens the photo viewer */
.gallery-link {
  position: relative;
  display: block;
  height: 100%;
  cursor: zoom-in;
}

.gallery-link:focus-visible {
  outline-offset: -6px;    /* inside the rounded frame, which clips overflow */
}

/* Magnifier badge in the corner of each photo */
.gallery-link::after {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--colour-white) var(--icon-zoom) center / 60% no-repeat;
  border: 2px solid var(--colour-ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--colour-pink);
  content: "";
  transition: transform var(--transition);
}

.gallery-link:hover::after {
  transform: scale(1.1);
}

/* Photo viewer: a full-screen <dialog> opened by script.js */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 4.5rem 1rem 5.5rem;
  color: var(--colour-white);
  background: rgba(18, 16, 37, 0.97);
  border: 0;
}

.lightbox[open] {
  display: grid;
  place-items: center;
  animation: lightbox-in 200ms ease;
}

.lightbox::backdrop {
  background: transparent;
}

/* Stop the page scrolling behind the open viewer */
html:has(.lightbox[open]) {
  overflow: hidden;
}

.lightbox-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 10rem);
  max-height: calc(100dvh - 10rem);
  background: var(--colour-pink-light);
  border: 3px solid var(--colour-white);
  border-radius: var(--radius-medium);
  box-shadow: 8px 8px 0 var(--colour-pink);
}

/* "3 of 6" counter */
.lightbox-count {
  position: absolute;
  top: 1.6rem;
  left: 1.25rem;
  margin: 0;
  color: var(--colour-electric);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox-button {
  position: absolute;
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0 0 0.2rem;    /* nudges the glyphs to look optically centred */
  place-items: center;
  color: var(--colour-ink);
  background: var(--colour-white);
  border: 2px solid var(--colour-ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--colour-pink);
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--transition);
}

.lightbox-button:hover {
  transform: scale(1.08);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

/* Phones: previous and next sit along the bottom, within thumb reach */
.lightbox-prev,
.lightbox-next {
  bottom: 1.25rem;
}

.lightbox-prev {
  left: 1.25rem;
}

.lightbox-next {
  right: 1.25rem;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
}

/* Larger screens: previous and next sit either side of the photo */
@media (min-width: 44rem) {
  .lightbox {
    padding: 4.5rem 6rem;
  }

  .lightbox-image {
    max-height: calc(100vh - 9rem);
    max-height: calc(100dvh - 9rem);
  }

  .lightbox-prev,
  .lightbox-next {
    top: 50%;
    bottom: auto;
    margin-top: -1.5rem;
  }

  .lightbox-prev {
    left: 1.5rem;
  }

  .lightbox-next {
    right: 1.5rem;
  }
}


/* 11. Reviews
   ========================================================================== */

.reviews-section {
  background: var(--colour-white);
}

.review-grid {
  display: grid;
  gap: 1.75rem;
  max-width: 40rem;
  margin-inline: auto;
}

.review-card {
  display: flex;
  margin: 0;
  padding: 1.75rem 1.75rem 1.5rem;
  flex-direction: column;
  background: var(--colour-white);
  border: 2px solid var(--colour-ink);
  border-radius: var(--radius-large);
  box-shadow: 7px 7px 0 var(--colour-pink);
}

.review-card:nth-child(2) {
  box-shadow: 7px 7px 0 var(--colour-teal);
}

.review-card:nth-child(3) {
  box-shadow: 7px 7px 0 var(--colour-violet);
}

.review-quote-mark {
  width: 3.5rem;
  height: 2.6rem;
  margin-bottom: 1rem;
}

.review-title {
  font-size: 1.4rem;
}

.review-card blockquote {
  flex: 1;    /* pushes the reviewer's name to the bottom of the card */
  margin: 0;
  color: var(--colour-muted);
}

.review-card blockquote p {
  margin: 0 0 0.8rem;
}

.review-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 2px dashed rgba(32, 29, 45, 0.15);
}

.review-card figcaption strong {
  display: block;
  line-height: 1.3;
}

.review-avatar {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  background: var(--colour-pink-light);
  border: 2px solid var(--colour-ink);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
}

.review-card:nth-child(2) .review-avatar {
  background: var(--colour-teal-light);
}

.review-card:nth-child(3) .review-avatar {
  background: var(--colour-lilac-light);
}

.review-meta {
  display: block;
  color: var(--colour-muted);
  font-size: 0.88rem;
}

.reviews-action {
  margin: 2.5rem 0 0;
  text-align: center;
}

@media (min-width: 54rem) {
  .review-grid {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* 12. About
   ========================================================================== */

.about-section {
  background: linear-gradient(135deg, var(--colour-mint), var(--colour-blush));
  /* Browsers that support it blend through the colour wheel (sky blue and
     lilac) instead of the greyish middle of a plain blend. */
  background: linear-gradient(135deg in oklch, var(--colour-mint), var(--colour-blush));
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-artwork {
  width: min(88vw, 30rem);
  height: auto;
  margin-inline: auto;
}

.about-copy > p:not(.eyebrow) {
  color: var(--colour-muted);
}

@media (min-width: 44rem) {
  .about-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 4rem;
  }
}


/* 13. Events
   ========================================================================== */

.events-section {
  background: var(--colour-white);
}

.event-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-list li {
  display: flex;
  min-height: 5rem;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--colour-white);
  border: 2px solid var(--colour-ink);
  border-radius: var(--radius-medium);
  box-shadow: 5px 5px 0 var(--colour-pink);
  font-family: var(--font-heading);
  font-size: 1.08rem;
}

.event-list li:nth-child(even) {
  box-shadow: 5px 5px 0 var(--colour-teal);
}

.event-icon {
  width: 3.75rem;
  height: 3.75rem;
  flex: 0 0 auto;
  color: var(--colour-yellow);    /* colour of the blob behind the drawing */
}

/* Slight alternating tilt so the icons look hand-placed */
.event-list li:nth-child(odd) .event-icon {
  transform: rotate(-5deg);
}

.event-list li:nth-child(even) .event-icon {
  transform: rotate(6deg);
}

@media (min-width: 44rem) {
  .event-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 54rem) {
  .event-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .event-list li {
    flex-direction: column;
    min-height: 9rem;
    justify-content: center;
    text-align: center;
  }

  .event-icon {
    width: 4.75rem;
    height: 4.75rem;
  }
}


/* 14. Good to know
   ========================================================================== */

.info-section {
  background: var(--colour-paper);
}

.info-list {
  display: grid;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0;
  gap: 1rem;
  list-style: none;
}

.info-list li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.6rem;
  color: var(--colour-muted);
  background: var(--colour-white);
  border: 2px solid var(--colour-ink);
  border-radius: var(--radius-medium);
}

/* Small butterfly marking each point, in alternating colours */
.info-list li::before {
  position: absolute;
  top: 1.2rem;
  left: 1.1rem;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--colour-pink);
  content: "";
  transform: rotate(-12deg);
  -webkit-mask: var(--mask-butterfly) center / contain no-repeat;
  mask: var(--mask-butterfly) center / contain no-repeat;
}

.info-list li:nth-child(3n + 2)::before {
  background: var(--colour-teal);
}

.info-list li:nth-child(3n)::before {
  background: var(--colour-violet);
}

.info-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--colour-ink);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
}

.info-action {
  margin: 2rem 0 0;
  text-align: center;
}

@media (min-width: 44rem) {
  .info-list {
    max-width: none;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 54rem) {
  .info-list {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* 15. Contact
   Email, phone and Instagram are the main ways to get in touch, shown as
   large tappable tiles. Facebook is a small link underneath.
   ========================================================================== */

.contact-section {
  background: linear-gradient(135deg, var(--colour-teal-light), var(--colour-pink-light));
}

.contact-card {
  position: relative;
  display: grid;
  gap: 1.75rem;
  padding: 2rem 1.25rem;
  background: var(--colour-white);
  border: 3px solid var(--colour-ink);
  border-radius: var(--radius-large);
  box-shadow: 9px 9px 0 var(--colour-pink);
}

/* Butterfly perched on the top edge of the card */
.contact-flutter {
  position: absolute;
  top: -2.4rem;
  right: 1.5rem;
  width: 5rem;
  height: 5rem;
  transform: rotate(14deg);
}

.contact-intro h2 {
  margin-bottom: 0.5rem;
}

.contact-intro p:last-child {
  max-width: 39rem;
  margin-bottom: 0;
  color: var(--colour-muted);
}

.contact-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 1rem;
  list-style: none;
}

.contact-option {
  display: grid;
  height: 100%;
  padding: 1rem 1.25rem;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1rem;
  color: var(--colour-ink);
  background: var(--colour-pink-light);
  border: 2px solid var(--colour-ink);
  border-radius: var(--radius-medium);
  box-shadow: 4px 4px 0 var(--colour-ink);
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.contact-option:hover {
  box-shadow: 2px 2px 0 var(--colour-ink);
  transform: translate(2px, 2px);
}

/* Tile colours: email pink, phones teal, Instagram lilac */
.contact-list li:nth-child(2) .contact-option,
.contact-list li:nth-child(3) .contact-option {
  background: var(--colour-teal-light);
}

.contact-list li:nth-child(4) .contact-option {
  background: var(--colour-lilac-light);
}

.contact-icon {
  width: 3.25rem;
  height: 3.25rem;
  grid-row: span 2;
  color: var(--colour-white);    /* colour of the blob behind the drawing */
}

.contact-label {
  color: var(--colour-pink-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The email address may wrap onto a second line on phones; index.html marks
   the @ with <wbr> so it breaks there rather than mid-word. */
.contact-value {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.contact-note {
  margin: 0;
  color: var(--colour-muted);
}

.contact-note a {
  color: var(--colour-ink);
  font-weight: 600;
  text-decoration-color: var(--colour-pink);
  text-underline-offset: 0.2rem;
}

@media (min-width: 44rem) {
  .contact-card {
    padding: 3rem;
  }

  .contact-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-value {
    font-size: 1.15rem;
  }
}


/* 16. Terms page (terms.html)
   ========================================================================== */

.terms-page {
  padding: 3.5rem 0 4.5rem;
  background: var(--colour-paper);
}

.terms-inner {
  max-width: 46rem;
}

.terms-heading {
  margin-bottom: 2.5rem;
  text-align: center;
}

.terms-heading h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.4rem, 9vw, 4rem);
}

.terms-intro {
  margin: 0;
  color: var(--colour-muted);
  font-size: 1.1rem;
}

.terms-group {
  margin-bottom: 1.5rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--colour-white);
  border: 2px solid var(--colour-ink);
  border-radius: var(--radius-medium);
  box-shadow: 5px 5px 0 var(--colour-pink);
}

.terms-group:nth-of-type(2) {
  box-shadow: 5px 5px 0 var(--colour-teal);
}

.terms-group:nth-of-type(3) {
  box-shadow: 5px 5px 0 var(--colour-violet);
}

.terms-group h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 5vw, 2rem);
}

.terms-group ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.75rem;
  list-style: none;
}

/* Small butterfly as the bullet point */
.terms-group li {
  position: relative;
  padding-left: 2rem;
  color: var(--colour-muted);
}

.terms-group li::before {
  position: absolute;
  top: 0.2rem;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--colour-pink);
  content: "";
  transform: rotate(-12deg);
  -webkit-mask: var(--mask-butterfly) center / contain no-repeat;
  mask: var(--mask-butterfly) center / contain no-repeat;
}

.terms-back {
  margin: 2.5rem 0 0;
  text-align: center;
}

@media (min-width: 54rem) {
  .terms-page {
    padding-block: 5rem 6rem;
  }

  .terms-group {
    padding: 2rem 2.25rem 1.75rem;
  }
}


/* 17. Footer
   ========================================================================== */

.site-footer {
  padding: 3rem 0;
  color: rgba(255, 255, 255, 0.75);
  background: var(--colour-ink);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand {
  justify-self: center;
  color: var(--colour-white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.footer-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--colour-white);
  font-weight: 600;
  text-underline-offset: 0.25rem;
}

.copyright {
  margin: 0;
  font-size: 0.85rem;
}

@media (min-width: 54rem) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    text-align: left;
  }

  .footer-brand {
    justify-self: start;
  }

  /* Let the links wrap onto two lines so the description keeps room */
  .footer-links {
    max-width: 24rem;
    justify-content: flex-end;
  }

  .copyright {
    grid-column: 1 / -1;
    text-align: center;
  }
}


/* 18. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
