:root {
  --ink: #190426;
  --red: #d92546;
  --berry: #8c144c;
  --violet: #5d04d9;
  --lilac: #b8a0d9;
  /* Tints of the palette, for page backgrounds and secondary text. */
  --ink-soft: #4b3a5e;
  --paper: #faf7fd;
  --white: #ffffff;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-small: 4px 4px 0 var(--ink);
  --radius: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Fredoka", "Trebuchet MS", sans-serif;
  --body: "Nunito", "Segoe UI", sans-serif;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --confetti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='none' stroke-width='6' stroke-linecap='round'%3E%3Cpath d='M24 34l18 10' stroke='%23d92546'/%3E%3Cpath d='M170 30l-10 18' stroke='%23ffffff'/%3E%3Cpath d='M112 104l18-6' stroke='%23b8a0d9'/%3E%3Cpath d='M38 168l10 16' stroke='%23ffffff'/%3E%3Cpath d='M186 170l16 10' stroke='%23d92546'/%3E%3C/g%3E%3Cg%3E%3Ccircle cx='88' cy='26' r='6' fill='%23ffffff'/%3E%3Ccircle cx='200' cy='100' r='6' fill='%23d92546'/%3E%3Ccircle cx='24' cy='100' r='6' fill='%23b8a0d9'/%3E%3Ccircle cx='118' cy='184' r='6' fill='%23b8a0d9'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 6.6vw, 5.25rem);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--white);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 8px 16px;
  border: var(--line);
  border-radius: 12px;
  background: var(--white);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header and footer */

.site-header {
  background: var(--paper);
  border-bottom: var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 14px;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.wordmark span {
  display: inline-block;
  padding-inline: 8px;
  border-radius: 10px;
  background: var(--red);
  color: var(--white);
  transform: rotate(-2deg);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.site-nav a:hover {
  background: var(--lilac);
}

.site-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding-block: 32px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Shared pieces */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-small);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--bounce), box-shadow 0.2s var(--bounce);
}

.btn:hover {
  box-shadow: var(--shadow);
  transform: translate(-2px, -2px) rotate(-1deg);
}

.btn:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 36px;
}

.section-head p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 1.1875rem;
}

.tinted {
  position: relative;
  isolation: isolate;
  background: var(--violet);
  color: var(--white);
}

/* Confetti stays on the far side of the band, clear of the text. */
.tinted::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--confetti);
  -webkit-mask-image: linear-gradient(to right, transparent 62%, #000 82%);
  mask-image: linear-gradient(to right, transparent 62%, #000 82%);
}

.tinted-lilac {
  background: var(--lilac);
}

.page-head {
  padding-block: clamp(48px, 7vw, 80px);
  border-bottom: var(--line);
}

.page-head h1 {
  max-width: 40rem;
}

.page-head p {
  max-width: 40rem;
  margin-top: 16px;
  font-size: 1.25rem;
}

/* Home hero */

.hero {
  border-bottom: var(--line);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(40px, 6vw, 72px);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 14px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  transform: rotate(-1.5deg);
}

.hero-lede {
  max-width: 34rem;
  margin-block: 20px 28px;
  font-size: 1.3125rem;
  line-height: 1.5;
}

.hero-photo {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: var(--line);
  border-radius: 54% 46% 42% 58% / 40% 44% 56% 60%;
  background: var(--white);
  box-shadow: 10px 10px 0 var(--lilac);
  object-fit: cover;
  object-position: 60% 50%;
}

/* As seen at */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-small);
  text-align: center;
}

.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
}

.logo-tile img.full {
  padding: 0;
  object-fit: cover;
}

.logo-text {
  padding: 8%;
  font-family: var(--display);
  font-size: clamp(1.0625rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
}

.logo-text small {
  display: block;
  margin-top: 8px;
  font-family: var(--body);
  font-size: clamp(0.8125rem, 1.15vw, 1rem);
  font-weight: 700;
  line-height: 1.25;
}

/* Photos */

.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, clamp(220px, 26vw, 340px));
  gap: clamp(16px, 2.4vw, 28px);
}

.photo {
  width: 100%;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.collage .photo {
  height: 100%;
}

.collage-tall {
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
  object-position: 50% 60%;
  transform: rotate(-1deg);
}

.collage-wide {
  grid-column: 6 / span 7;
  object-position: 50% 10%;
}

.collage-small {
  grid-column: 6 / span 3;
  object-position: 50% 30%;
}

.collage-sweaters {
  grid-column: 9 / span 4;
  object-position: 50% 0;
  transform: rotate(1deg);
}

/* Service cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-small);
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
  transition: transform 0.2s var(--bounce), box-shadow 0.2s var(--bounce);
}

a.card:hover {
  box-shadow: var(--shadow);
  transform: translate(-2px, -3px) rotate(-1deg);
}

.icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: var(--line);
  border-radius: 50%;
}

.icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bg-red { background: var(--red); color: var(--white); }
.bg-berry { background: var(--berry); color: var(--white); }
.bg-violet { background: var(--violet); color: var(--white); }
.bg-lilac { background: var(--lilac); color: var(--ink); }

.card-wide {
  grid-column: 1 / -1;
  flex-flow: row wrap;
  align-items: center;
  gap: 16px 24px;
}

.card-wide .card-wide-text {
  flex: 1 1 18rem;
}

.card-wide h3 {
  margin-bottom: 4px;
}

.card-wide-link {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Stats */

.tinted-lilac .section-head p {
  color: var(--ink);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin: 0;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  grid-column: span 2;
  padding: 24px 28px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.stat-large {
  grid-column: span 3;
}

.stat dt {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
}

.stat dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-large dd {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service {
  overflow: hidden;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.service img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom: var(--line);
  object-fit: cover;
}

.service-body {
  display: grid;
  gap: 8px;
  padding: 24px 28px 28px;
}

.service-body h2 {
  font-size: 1.75rem;
  font-weight: 600;
}

/* Events */

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

.event {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-small);
  color: var(--ink);
}

.event-date {
  flex: none;
  width: 84px;
  padding: 10px 6px;
  border: var(--line);
  border-radius: 16px;
  background: var(--violet);
  color: var(--white);
  font-family: var(--display);
  line-height: 1.05;
  text-align: center;
}

.event-date b {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
}

.event-date span {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

.event-past .event-date {
  background: var(--lilac);
  color: var(--ink);
}

.event-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

.event-info h3 {
  margin-bottom: 4px;
}

.event-info p {
  color: var(--ink-soft);
}

.event-note {
  padding: 24px;
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 1.125rem;
}

/* Booking form */

.form-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: start;
  gap: clamp(28px, 5vw, 56px);
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: clamp(20px, 4vw, 36px);
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  padding: 0;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 500;
}

.field .hint {
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 400;
}

.booking-form input:not([type="checkbox"]),
.booking-form select,
.booking-form textarea,
.planner-fields input,
.planner-fields select,
.planner-fields textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.booking-form textarea,
.planner-fields textarea {
  min-height: 140px;
  resize: vertical;
}

fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  margin-top: 6px;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  font-family: var(--body);
  font-weight: 600;
}

.checks input {
  flex: none;
  width: 22px;
  height: 22px;
  accent-color: var(--ink);
}

.form-status:empty {
  display: none;
}

.form-status {
  padding: 14px 18px;
  border: var(--line);
  border-radius: 14px;
  background: var(--lilac);
  font-weight: 600;
}

.form-aside {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--lilac);
  box-shadow: var(--shadow-small);
  transform: rotate(1deg);
}

/* Event planner */

.sample-notice {
  margin-bottom: 20px;
  padding: 10px 16px;
  border: 3px dashed var(--ink);
  border-radius: 14px;
  background: var(--lilac);
  font-weight: 700;
}

.planner-form {
  display: grid;
  gap: 20px;
}

.planner-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(20px, 3vw, 36px);
}

.planner-choices {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.planner-step {
  padding: clamp(20px, 3vw, 32px);
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.planner-step h2,
.plan-summary h2 {
  margin-bottom: 18px;
  font-size: 1.75rem;
}

.planner-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-options,
.planner-addons {
  display: grid;
  gap: 14px;
}

.service-option {
  overflow: hidden;
  border: var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.service-option.is-selected {
  background: var(--lilac);
}

.service-option-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
}

.service-option-head input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.service-option-text {
  flex: 1 1 auto;
  min-width: 0;
}

.service-option-price {
  flex: none;
  max-width: 40%;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.25;
  text-align: right;
}

.service-option-name {
  display: block;
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
}

.service-option-blurb {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
}

.service-details {
  padding: 14px 16px;
  border-top: var(--line);
  background: var(--white);
}

.planner-step .checks {
  grid-template-columns: 1fr;
}

.plan-summary {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: clamp(20px, 3vw, 28px);
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  scroll-margin-top: 16px;
}

.plan-summary h2 {
  margin-bottom: 0;
}

.plan-summary .sample-notice {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.plan-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
}

.plan-facts:empty {
  display: none;
}

.plan-facts dt {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.plan-facts dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
}

.plan-empty {
  padding: 14px;
  border: 3px dashed var(--ink);
  border-radius: 14px;
}

.plan-lines {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-lines:empty {
  display: none;
}

.plan-lines li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lilac);
}

.plan-line-name {
  display: block;
  font-weight: 700;
  line-height: 1.3;
}

.plan-line-detail {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.plan-line-price {
  flex: none;
  max-width: 45%;
  font-weight: 700;
  text-align: right;
}

.plan-total {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border: var(--line);
  border-radius: 18px;
  background: var(--violet);
  color: var(--white);
}

.plan-total-label {
  font-family: var(--display);
  font-weight: 500;
}

.plan-total-amount {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
}

.plan-total-note {
  font-size: 0.9375rem;
}

.plan-send {
  justify-self: start;
}

.plan-bar {
  display: none;
}

/* Closing band */

.cta {
  border-top: var(--line);
  background: var(--berry);
  color: var(--white);
  text-align: center;
}

.cta p {
  max-width: 36rem;
  margin: 14px auto 28px;
  font-size: 1.25rem;
}

.cta .btn {
  background: var(--white);
}

.cta .btn-row {
  justify-content: center;
}

.center {
  margin-top: 28px;
}

/* Layout changes */

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Keeps focused fields clear of the planner's sticky bar. */
  html {
    scroll-padding-bottom: 90px;
  }

  .form-layout,
  .planner-grid {
    grid-template-columns: 1fr;
  }

  .form-aside {
    transform: none;
  }

  .plan-summary {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .plan-bar {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--ink);
    color: var(--white);
    font-weight: 700;
  }
}

@media (max-width: 760px) {
  .tinted::before {
    display: none;
  }

  .hero .wrap,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .collage {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }

  .collage-tall,
  .collage-wide,
  .collage-small,
  .collage-sweaters {
    grid-row: auto;
    grid-column: auto;
    transform: none;
  }

  .collage-tall {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 5;
  }

  .collage-wide {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }

  .collage-small {
    aspect-ratio: 3 / 4;
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .hero-photo {
    max-width: 360px;
  }
}

@media (max-width: 520px) {
  .site-nav ul {
    gap: 0;
  }

  /* The wordmark links home, so the other five links can share one row. */
  .site-nav li:first-child {
    display: none;
  }

  .site-nav a {
    padding: 8px;
    font-size: 0.9375rem;
  }

  .planner-fields {
    grid-template-columns: 1fr;
  }

  .service-option-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 14px;
  }

  .service-option-price {
    grid-column: 2;
    max-width: none;
    text-align: left;
  }

  .stat,
  .stat-large {
    grid-column: 1 / -1;
  }

  .card-grid,
  .booking-form,
  .checks {
    grid-template-columns: 1fr;
  }

  .btn-row .btn {
    text-align: center;
    flex: 1 1 100%;
  }

  .event {
    gap: 14px;
    padding: 14px;
  }

  .event-date {
    width: 72px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .btn:hover,
  a.card:hover {
    transform: none;
  }
}
