/* ==========================================================================
   Artica & Leonardo — wedding website styles
   --------------------------------------------------------------------------
   1. PALETTES   — five colour palettes, each with its own font.
                   The active one is chosen by <html data-palette="...">.
   2. BASE       — page defaults
   3. HEADER     — names, date, countdown, navigation
   4. SECTIONS   — shared building blocks (titles, buttons, cards)
   5. HOME       — hero illustration, details, timeline, gifts
   6. TRAVEL     — map, hotels
   7. FAQ
   8. FOOTER
   9. PALETTE PICKER (preview only — can be deleted with the script)
   ========================================================================== */


/* 1. PALETTES ============================================================== */
/*
   --bg / --bg-alt   page background / soft band behind some sections
   --font-header     optional: font for the page header (names, date line, countdown, menu) and section titles,
                     with --header-size / --header-weight. Without it the header uses the display font.
   --display-weight  weight of the names and titles; --label-weight for the small capital headings;
                     --button-weight for the text in buttons
   --ink / --muted   body text / secondary text
   --accent          titles, links, lines, icons
   --line            hairlines and card borders
   --tint-1..4       pastel fills (canal houses, primary button)
   --leaf / --water  illustration details (--house-1..8: optional colour per canal house)
*/

[data-palette="blush"] {
  --bg: #FFFEFC;       /* almost white, with a hint of ivory */
  --bg-alt: #F9F3EE;   /* warm cream, so the rose text stands out (pink on pink blended) */
  --ink: #5A3C42;
  --muted: #7A5C62;
  --accent: #9E5867;
  --line: #EDD3D3;
  --tint-1: #F6DADA;
  --tint-2: #FBEAE6;
  --tint-3: #F0C9CE;
  --tint-4: #FCF1EE;
  --leaf: #EDD9D3;
  --water: #F7E3E2;
  --house-1: #F6DADA;   /* pink      — canal houses, left to right */
  --house-2: #F7EDCF;   /* butter    */
  --house-3: #D8E5F1;   /* blue      */
  --house-4: #F9E0CF;   /* apricot   */
  --house-5: #DFEADA;   /* sage      */
  --house-6: #E7DFEF;   /* lavender  */
  --house-7: #D5EAE6;   /* aqua      */
  --house-8: #F3D3D7;   /* rose      */

  --font-display: "EB Garamond", Georgia, serif;
  --font-body: "EB Garamond", Georgia, serif;
  --font-header: "Cormorant Garamond", Georgia, serif;   /* names, date line, countdown, menu, section titles */
  --header-size: 1.25rem;
  --header-weight: 500;
  --display-weight: 500;
  --label-weight: 600;   /* small capital headings: WHEN, WHERE, DRESS CODE */
  --button-weight: 600;
  --display-tracking: 0.06em;
  --body-size: 1.18rem;
  --body-weight: 400;
}

[data-palette="linen"] {
  --bg: #FAF6EF;
  --bg-alt: #F1E8DB;
  --ink: #4A3C30;
  --muted: #6F5D51;
  --accent: #86664A;
  --line: #E4D6C3;
  --tint-1: #EBDDC9;
  --tint-2: #F4EBDF;
  --tint-3: #E2CFB6;
  --tint-4: #F8F1E7;
  --leaf: #DED6C0;
  --water: #EFE6D8;

  --font-display: "Libre Caslon Display", Georgia, serif;
  --font-body: "Libre Caslon Text", Georgia, serif;
  --display-weight: 400;
  --label-weight: 400;
  --button-weight: 400;
  --display-tracking: 0.05em;
  --body-size: 1.02rem;
  --body-weight: 400;
}

[data-palette="butter"] {
  --bg: #FFFCF0;
  --bg-alt: #FBF1CD;
  --ink: #4A4026;
  --muted: #6F6345;
  --accent: #8A6819;
  --line: #EEE0AE;
  --tint-1: #FAEBB3;
  --tint-2: #FDF4D5;
  --tint-3: #F5E09B;
  --tint-4: #FEF8E3;
  --leaf: #E6E4BB;
  --water: #F8EFCF;

  --font-display: "Spectral", Georgia, serif;
  --font-body: "Spectral", Georgia, serif;
  --display-weight: 300;
  --label-weight: 300;
  --button-weight: 400;
  --display-tracking: 0.06em;
  --body-size: 1.08rem;
  --body-weight: 400;
}

[data-palette="terracotta"] {
  --bg: #FFFDFB;
  --bg-alt: #F8EDE7;
  --ink: #5B3A31;
  --muted: #7E6056;
  --accent: #A35D4B;
  --line: #EED9CF;
  --tint-1: #F3DACF;
  --tint-2: #F9E9E1;
  --tint-3: #ECC7B7;
  --tint-4: #FBF2EC;
  --leaf: #E8D6C6;
  --water: #F5E8E1;

  --font-display: "EB Garamond", Georgia, serif;
  --font-body: "EB Garamond", Georgia, serif;
  --display-weight: 400;
  --label-weight: 400;
  --button-weight: 400;
  --display-tracking: 0.07em;
  --body-size: 1.18rem;
  --body-weight: 400;
}

[data-palette="garden"] {
  --bg: #FAF9F4;
  --bg-alt: #EAEFE4;
  --ink: #3B4639;
  --muted: #5E6A5A;
  --accent: #5D7556;
  --line: #D9E1D2;
  --tint-1: #F3DAD5;   /* blush  */
  --tint-2: #DFE7D7;   /* sage   */
  --tint-3: #F6EAC4;   /* butter */
  --tint-4: #F8F3EA;   /* cream  */
  --leaf: #CAD8BF;
  --water: #E5ECE1;

  --font-display: "Caladea", Cambria, Georgia, serif;
  --font-body: "Caladea", Cambria, Georgia, serif;
  --display-weight: 400;
  --label-weight: 400;
  --button-weight: 400;
  --display-tracking: 0.05em;
  --body-size: 1.08rem;
  --body-weight: 400;
}

/* Lowercase names/navigation like the inspiration. Set to "none" to keep capitals. */
:root {
  --case: lowercase;
}

/* Font for small display text (date line, menu, times, buttons) */
:root,
[data-palette] {
  --ui-font: var(--font-display);
}

[data-palette="linen"] {
  --ui-font: var(--font-body);
}


/* 2. BASE ================================================================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

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

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  color: var(--accent);
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}

[data-icon] {
  display: inline-block;
  color: var(--accent);
}

[data-icon] svg {
  width: 100%;
  height: 100%;
}


/* 3. HEADER ================================================================ */

.site-header {
  font-size: var(--header-size, var(--body-size));
  font-weight: var(--header-weight, var(--body-weight));
  text-align: center;
  padding: clamp(3.5rem, 11vw, 8rem) 1rem clamp(1.5rem, 4vw, 2.5rem);
}

.names {
  font-family: var(--font-header, var(--font-display));
  margin: 0;
  font-size: clamp(2.5rem, 8.5vw, 5.4rem);
  letter-spacing: var(--display-tracking);
  text-transform: var(--case);
  line-height: 1.1;
}

.names a {
  color: inherit;
  text-decoration: none;
}

.names .amp {
  font-style: italic;
  padding: 0 0.08em;
}

.tagline {
  margin: 1.4rem 0 0;
  font-family: var(--font-header, var(--ui-font));
  font-size: 1.1em;
  letter-spacing: 0.14em;
  text-transform: var(--case);
  color: var(--accent);
  line-height: 1.5;
}

.countdown {
  margin: 0.15rem 0 0;
  font-family: var(--font-header, var(--ui-font));
  font-size: 1.1em;
  letter-spacing: 0.14em;
  text-transform: var(--case);
  color: var(--accent);
  min-height: 1.6em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem clamp(0.75rem, 3vw, 2.25rem);
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.3rem 0.45rem;
  font-family: var(--font-header, var(--ui-font));
  font-size: 1em;
  letter-spacing: 0.12em;
  text-transform: var(--case);
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}

.site-nav a:hover {
  border-bottom-color: var(--line);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}


/* 4. SECTIONS ============================================================== */

.section {
  padding: clamp(3.5rem, 9vw, 6rem) 1.25rem;
}

.section--alt {
  background: var(--bg-alt);
}

.section--tight-top {
  padding-top: 1rem;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
}

.narrow {
  max-width: 680px;
  margin: 0 auto;
}

.center {
  text-align: center;
}

/* Keeps words together on one line (e.g. "married!" and its heart) */
.nowrap {
  white-space: nowrap;
}

.section-title {
  font-family: var(--font-header, var(--font-display));
  margin: 0;
  text-align: center;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  letter-spacing: 0.1em;
  text-transform: var(--case);
}

.lead {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Small icon after a title, e.g. the heart after "We're getting married!" */
.title-icon {
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.3em;
  vertical-align: -0.02em;
}

/* Little line–diamond–line ornament under titles */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 1rem auto 1.75rem;
}

.ornament::before,
.ornament::after {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.ornament span {
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.button {
  display: inline-block;
  padding: 0.95em 2.6em;
  font-family: var(--ui-font);
  font-size: 0.95em;
  font-weight: var(--button-weight);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  background: transparent;
  border: 1.5px solid var(--accent);
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.button:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

/* The RSVP button: filled, with bigger bold letters.
   The smaller padding keeps the box the same size as before. */
.button--filled {
  background: var(--tint-1);
  font-size: 1.2em;
  font-weight: 700;
  padding: 0.64em 1.84em;
}

.button--filled:hover {
  background: var(--tint-3);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.25rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* Always two cards per row (one per row on phones) */
.cards--two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.75rem 1.75rem 1.5rem;
}

.section--alt .card {
  background: var(--bg);
}

.card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.45em;
  letter-spacing: 0.04em;
}

.card p:last-child {
  margin-bottom: 0;
}

.card .icon {
  width: 44px;
  height: 44px;
}

/* Small icon at the start of a line, e.g. food / coffee / drinks */
.mini-icon {
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.45em;
  vertical-align: -0.15em;
}

.card .meta {
  color: var(--muted);
  font-size: 0.9em;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.todo {
  display: inline-block;
  padding: 0.1em 0.6em;
  font-size: 0.85em;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px dashed var(--muted);
}

.page-header {
  text-align: center;
  padding: clamp(1rem, 4vw, 2.5rem) 1.25rem 0;
}


/* 5. HOME ================================================================== */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* The canal houses illustration */
.hero-art {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 440;
}

/* Illustration placed at the bottom of a page, above the footer */
.hero--bottom {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

/* The cover photo on the home page.
   The frame is wider than the photo, so the top (sky) is trimmed and the bottom is kept. */
.cover-frame {
  overflow: hidden;
  aspect-ratio: 2.42 / 1;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}

.canal {
  width: 100%;
  height: 100%;
  color: var(--accent);
}

.canal .s {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* Each house uses --house-N if the palette sets it, otherwise one of the palette's tints */
.canal .house-1.s { fill: var(--house-1, var(--tint-1)); }
.canal .house-2.s { fill: var(--house-2, var(--tint-2)); }
.canal .house-3.s { fill: var(--house-3, var(--tint-3)); }
.canal .house-4.s { fill: var(--house-4, var(--tint-4)); }
.canal .house-5.s { fill: var(--house-5, var(--tint-2)); }
.canal .house-6.s { fill: var(--house-6, var(--tint-1)); }
.canal .house-7.s { fill: var(--house-7, var(--tint-3)); }
.canal .house-8.s { fill: var(--house-8, var(--tint-4)); }
.canal .door.s { fill: var(--bg); }

.canal .win {
  fill: var(--bg);
  stroke: currentColor;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.canal .water-stop { stop-color: var(--water); }
.canal .leaf circle { fill: var(--leaf); }

.canal .leaf-line circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  vector-effect: non-scaling-stroke;
}

.canal .heart,
.canal .bike {
  fill: currentColor;
}

.canal .wave {
  opacity: 0.7;
}

.intro-names {
  font-style: italic;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.detail .icon {
  width: 46px;
  height: 46px;
}

.detail h3 {
  font-weight: var(--label-weight);
  margin: 0.6rem 0 0.4rem;
  font-size: 1.15em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail p {
  margin: 0;
}

.detail .small {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9em;
}

/* Timeline -------------------------------------------------------------- */

.timeline {
  position: relative;
  max-width: 920px;
  margin: 3rem auto 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 2.5rem;
  left: 50%;
  width: 1.5px;
  background: var(--accent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 5rem;
  padding-bottom: 3.25rem;
}

.timeline-item:last-child {
  padding-bottom: 2rem;
}

/* the circle on the line */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-alt);
  transform: translateX(-50%);
}

.timeline-art {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.timeline-art [data-icon] {
  width: clamp(76px, 11vw, 112px);
  height: clamp(76px, 11vw, 112px);
}

.timeline-item:nth-child(even) .timeline-art {
  order: 2;
  justify-content: flex-start;
}

.timeline-item:nth-child(even) .timeline-text {
  order: 1;
  text-align: right;
}

.timeline-text h3 {
  font-weight: var(--display-weight);
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-text .time {
  margin: 0.3rem 0 0.6rem;
  font-family: var(--ui-font);
  font-size: 1.05em;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.timeline-text p:last-child {
  margin-bottom: 0;
}

/* Gifts ----------------------------------------------------------------- */

.note .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;
}

.note p {
  font-size: 1.1em;
}


/* 6. TRAVEL ================================================================ */

/* Text on the left, photo collage on the right (stacked on smaller screens) */
.venue {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 2rem;
}

.venue address {
  font-style: normal;
  margin-bottom: 1.25rem;
}

.venue h3 {
  margin: 0 0 0.5rem;
  font-size: 1.6em;
  letter-spacing: 0.04em;
}

/* Photo collage: tall photo | big photo | two stacked photos */
.venue-collage {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "table courtyard ceremony"
    "table courtyard above";
  gap: 10px;
  height: clamp(320px, 29vw, 390px);
}

.venue-collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-table { grid-area: table; }
.collage-courtyard { grid-area: courtyard; object-position: 75% center; }
.collage-ceremony { grid-area: ceremony; object-position: center 60%; }
.collage-above { grid-area: above; }

.hotel-link {
  display: inline-block;
  margin-top: 0.75rem;
  letter-spacing: 0.06em;
}

.callout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--line);
}

.callout .icon {
  flex: none;
  width: 52px;
  height: 52px;
}

.callout h3 {
  margin: 0 0 0.5rem;
  font-size: 1.45em;
  letter-spacing: 0.04em;
}

.callout p:last-child {
  margin-bottom: 0;
}


/* 7. FAQ =================================================================== */

.faq {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 1.4rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3em;
  font-weight: var(--display-weight);
  letter-spacing: 0.02em;
}

.faq-item p:last-child {
  margin-bottom: 0;
}


/* 8. FOOTER ================================================================ */

.site-footer {
  text-align: center;
  padding: 3.5rem 1rem 4rem;
  color: var(--accent);
}

.site-footer .monogram {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.15em;
}

.site-footer p {
  margin: 0.25rem 0 0;
  font-family: var(--ui-font);
  letter-spacing: 0.2em;
  font-size: 0.95em;
}


/* RESPONSIVE =============================================================== */

/* Small laptop / tablet: venue text above its photos */
@media (max-width: 1000px) {
  .venue {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .venue-info {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
  }

  .venue-collage {
    width: 100%;
    max-width: 680px;
    height: clamp(330px, 46vw, 420px);
    margin: 0 auto;
  }
}

/* Tablet */
@media (max-width: 820px) {
  .timeline-item {
    column-gap: 3.5rem;
  }
}

/* Phone */
@media (max-width: 600px) {
  .nav-long {
    display: none;
  }

  .site-nav a {
    letter-spacing: 0.08em;
  }

  .details {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .cards--two {
    grid-template-columns: 1fr;
  }

  .hero-art {
    aspect-ratio: 4 / 3;
  }

  /* Phones: zoom in a little from the bottom, so the sky is trimmed and the sides are cropped */
  .cover-frame {
    aspect-ratio: 1.8 / 1;
  }

  .hero-photo {
    transform: scale(1.35);
    transform-origin: 50% 100%;
  }

  /* timeline: single column with the line on the left */
  .timeline::before,
  .timeline-item::before {
    left: 10px;
  }

  .timeline::before {
    bottom: 1.5rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .timeline-art,
  .timeline-item:nth-child(even) .timeline-art {
    order: 0;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
  }

  .timeline-item:nth-child(even) .timeline-text {
    order: 1;
    text-align: left;
  }

  .timeline-art [data-icon] {
    width: 64px;
    height: 64px;
  }

  .venue-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 138px 138px;
    grid-template-areas:
      "courtyard courtyard"
      "table ceremony"
      "table above";
    gap: 8px;
    height: auto;
  }

  .callout {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
  }

  .button {
    padding: 0.95em 2em;
  }

  .button--filled {
    padding: 0.64em 1.34em;
  }
}


/* 9. PALETTE PICKER (preview only) ========================================= */

.palette-picker {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem 0.55rem 1rem;
  font: 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #3a3a3a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.palette-picker__label {
  white-space: nowrap;
}

.palette-picker__label strong {
  font-weight: 600;
}

.palette-picker__label span {
  color: #777;
}

.palette-picker__swatches {
  display: flex;
  gap: 0.35rem;
}

.palette-swatch {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, var(--bg-alt) 0 50%, var(--tint-3) 50% 100%);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.palette-swatch[aria-pressed="true"] {
  outline: 2px solid #3a3a3a;
  outline-offset: 2px;
}

.palette-picker__toggle {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #777;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.palette-picker.is-collapsed .palette-picker__label,
.palette-picker.is-collapsed .palette-picker__swatches {
  display: none;
}

.palette-picker.is-collapsed {
  padding: 0.45rem;
}

@media (max-width: 600px) {
  .palette-picker {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    justify-content: space-between;
    border-radius: 18px;
    flex-wrap: wrap;
  }

  .palette-picker.is-collapsed {
    left: auto;
  }

  .palette-picker__label {
    width: calc(100% - 40px);
  }

  .palette-picker__swatches {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .palette-swatch {
    width: 40px;
    height: 40px;
  }
}

/* Leave room so the picker never hides the footer */
body.has-palette-picker {
  padding-bottom: 5.5rem;
}

@media (max-width: 600px) {
  body.has-palette-picker {
    padding-bottom: 8rem;
  }
}
