/* ============================================================
   Maryland Girls Creative Co.
   Layout: one column on phones. From 48rem the hero splits into
   copy | three arched portrait photos, and the event splits into
   copy | poster. Everything sits left-aligned, like the flyer.
   ============================================================ */

:root {
  /* color, sampled from the flyer */
  --cream: #FDFBF7;      /* page ground */
  --marble: #FFFFFF;     /* the form panel and fields */
  --wash: #FBDCDF;       /* the watercolor brush behind the script */
  --band: #FCEBEE;       /* the event section */
  --blush: #F8B8C4;      /* pills and badges */
  --rose: #C4415F;       /* deep pink buttons and accents */
  --rose-deep: #8F2A46;  /* pink text that has to be readable */
  --heart: #F0929C;      /* the little hearts */
  --gold: #B07A1A;       /* the bead string */
  --ink: #000000;        /* display text */
  --body: #2E2628;       /* running text */
  --muted: #74646A;      /* captions */
  --line: #F1D6DB;       /* rules and panel edges */
  --field: #E6CCD2;      /* input borders */

  /* type */
  --script: 'Allura', 'Snell Roundhand', 'Brush Script MT', cursive;
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', 'Times New Roman', serif;
  --sans: 'Jost', 'Futura', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;

  --measure: 34rem;
  --radius: 14px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font: 400 1.0625rem/1.55 var(--sans);
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
p, dl, dd, figure { margin: 0; }
h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
a { color: var(--rose-deep); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- page width and the side gutter ---- */
.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

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

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.5rem;
  border: 0;
  border-radius: 999px;
  font: 500 1rem/1.2 var(--sans);
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease;
}
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #2a1f22; }
.btn-blush { background: var(--blush); color: var(--rose-deep); }
.btn-blush:hover { background: #F5A8B7; }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: var(--rose-deep); }
.btn-sm { min-height: 42px; padding: .5rem 1.15rem; font-size: .95rem; }
.btn.is-disabled { background: var(--blush); color: var(--rose-deep); opacity: .8; cursor: default; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---- header ---- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .9rem .25rem;
}
.brand img { width: 92px; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) { display: none; color: var(--body); font-weight: 500; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--rose-deep); }

/* ---- hero ---- */
.hero {
  display: grid;
  gap: 2.25rem;
  padding-block: 1.25rem 3rem;
}
.hero-title { display: grid; justify-items: start; }
.hero-title .script {
  position: relative;
  z-index: 0;
  display: inline-block;
  max-width: 100%;
  margin-left: -.08em;
  padding: .05em .3em 0 .12em;
  font: 400 clamp(4.75rem, 2.5rem + 10vw, 8.5rem)/.95 var(--script);
  color: var(--ink);
  text-wrap: nowrap;
}
/* the pink watercolor wash from the flyer, two soft strokes */
.hero-title .script::before,
.hero-title .script::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--wash);
  filter: blur(3px);
}
.hero-title .script::before {
  inset: 30% -3% 4% -4%;
  border-radius: 46% 54% 42% 58% / 70% 60% 40% 30%;
  transform: rotate(-2deg);
}
.hero-title .script::after {
  inset: 44% 14% -2% 24%;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  opacity: .75;
  transform: rotate(1.5deg);
}
.hero-title .caps {
  margin-top: .3rem;
  font: 500 clamp(1.2rem, .9rem + 1.6vw, 1.85rem)/1.15 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6em;
  margin-top: 1rem;
  font: 500 .9rem/1.3 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
}
.heart { color: var(--heart); font-size: 1.15em; letter-spacing: 0; }
.lede {
  max-width: var(--measure);
  margin-top: 1.25rem;
  font-size: 1.1rem;
  line-height: 1.6;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

/* three portrait photos with arched tops; the middle one steps down */
.strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  align-items: start;
}
.strip li { min-width: 0; }
.strip li:nth-child(2) { padding-top: 2rem; }
.strip img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--wash);
  border-radius: 50% 50% var(--radius) var(--radius) / 33.3% 33.3% var(--radius) var(--radius);
}

/* ---- a string of beads, used where the flyer uses its thin pink rules ---- */
.beads {
  width: 190px;
  max-width: 100%;
  height: 18px;
  margin: 0 0 1rem;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='18' viewBox='0 0 190 18'%3E%3Cpath d='M0 9H190' stroke='%23B07A1A' stroke-width='1' fill='none'/%3E%3Ccircle cx='20' cy='9' r='5' fill='%23F8B8C4'/%3E%3Ccircle cx='40' cy='9' r='3.5' fill='%23B07A1A'/%3E%3Ccircle cx='60' cy='9' r='6' fill='%23C4415F'/%3E%3Ccircle cx='82' cy='9' r='4' fill='%23F5E9DF' stroke='%23B07A1A' stroke-width='.75'/%3E%3Ccircle cx='104' cy='9' r='5' fill='%23F8B8C4'/%3E%3Ccircle cx='124' cy='9' r='3.5' fill='%23B07A1A'/%3E%3Ccircle cx='144' cy='9' r='6' fill='%23C4415F'/%3E%3Ccircle cx='166' cy='9' r='4' fill='%23F5E9DF' stroke='%23B07A1A' stroke-width='.75'/%3E%3C/svg%3E") left center / 190px 18px no-repeat;
}

/* ---- what's included ---- */
.included {
  display: grid;
  gap: 1.25rem;
  padding-block: 2.5rem 3.25rem;
}
.beads-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: var(--measure);
}
.beads-list li { position: relative; padding-left: 1.6rem; }
.beads-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .72rem;
  height: .72rem;
  border-radius: 50%;
  background: var(--blush);
  box-shadow: inset -2px -2px 3px rgba(143, 42, 70, .3);
}
.beads-list li:nth-child(2)::before { background: var(--gold); box-shadow: inset -2px -2px 3px rgba(80, 50, 0, .35); }
.beads-list li:nth-child(3)::before { background: var(--rose); box-shadow: inset -2px -2px 3px rgba(80, 10, 30, .35); }
.beads-list strong { font-weight: 600; color: var(--ink); }
.occasions {
  max-width: var(--measure);
  margin-top: 1.5rem;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--ink);
}
.note { max-width: var(--measure); margin-top: .75rem; color: var(--muted); }

/* ---- the Nov 19 event ---- */
.event-band { background: var(--band); }
.event {
  display: grid;
  gap: 2rem;
  padding-block: 3rem;
}
.event-copy { min-width: 0; max-width: var(--measure); }
.next {
  font: 400 2.4rem/1 var(--script);
  color: var(--rose);
}
.event h2 { margin-top: .25rem; font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem); }
.when {
  margin-top: .85rem;
  font: 500 1.3rem/1.3 var(--display);
  color: var(--ink);
}
.where { margin-top: .4rem; }
.where strong { font-weight: 600; color: var(--ink); }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: 1.5rem;
}
.facts > div { flex: 1 1 8.5rem; min-width: 0; }
.facts dt {
  font: 500 2.4rem/1 var(--display);
  color: var(--rose);
  font-variant-numeric: lining-nums;
}
.facts dd { max-width: 13rem; margin-top: .3rem; font-size: .95rem; line-height: 1.4; }
.event-text { margin-top: 1.5rem; }
.event .actions { margin-top: 1.5rem; }
.event .small { margin-top: .75rem; }
.poster img {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(120, 40, 60, .5);
}

/* ---- party request form ---- */
.book {
  display: grid;
  gap: 1.5rem;
  padding-block: 3rem 3.5rem;
}
.book-head { min-width: 0; max-width: var(--measure); }
.book-head h2 .script {
  display: block;
  font: 400 clamp(3.2rem, 2rem + 4.5vw, 4.75rem)/1 var(--script);
  color: var(--ink);
}
.book-head p { margin-top: .75rem; }
.dm { margin-top: .75rem; font-size: .95rem; color: var(--muted); }

.form {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1.25rem;
  background: var(--marble);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-weight: 500; font-size: .95rem; color: var(--ink); }
.opt { margin-left: .2em; font-weight: 400; font-size: .85em; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  font: inherit;
  font-size: max(16px, 1rem);   /* 16px keeps iPhones from zooming in */
  color: var(--body);
  background: #fff;
  border: 1.5px solid var(--field);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: #A89A9E; }
.field textarea { min-height: 6rem; resize: vertical; }
.field select {
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232E2628' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
}
.field input[type="date"] {
  display: block;
  min-width: 0;
  -webkit-min-logical-width: calc(100% - 16px);
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--rose);
  outline-offset: 1px;
  border-color: var(--rose);
}
.field input:user-invalid,
.field select:user-invalid { border-color: var(--rose); }
.botcheck { display: none; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: .25rem;
}
.form-status { flex: 1 1 14rem; min-width: 0; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--rose-deep); }

.thanks {
  display: grid;
  gap: .75rem;
  padding: 2rem 1.5rem;
  background: var(--marble);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.thanks h3 { font: 400 2.75rem/1 var(--script); color: var(--rose); }
.thanks:focus { outline: none; }

/* ---- footer ---- */
.foot {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.25rem 3rem;
  border-top: 1px solid var(--line);
}
.foot-name { font: 500 1.2rem/1.2 var(--display); color: var(--ink); }
.small { font-size: .9rem; color: var(--muted); }
.foot .small { margin-top: .35rem; }
.social { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.social a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .6rem;
  color: var(--body);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.social a:hover { color: var(--rose-deep); }
.social .net { min-width: 5.5rem; font-weight: 500; color: var(--ink); }

/* ---- wider screens ---- */
@media (min-width: 40rem) {
  .form { grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; padding: 1.75rem; }
  .field-wide, .form-foot { grid-column: 1 / -1; }
}

@media (min-width: 48rem) {
  .top { padding-block: 1.25rem .5rem; }
  .brand img { width: 120px; }
  .nav a:not(.btn) { display: inline; }

  .hero {
    grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
    align-items: center;
    gap: 3rem;
    padding-block: 2rem 4.5rem;
  }
  .strip { gap: 1rem; }
  .strip li:nth-child(2) { padding-top: 2.75rem; }

  .included { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 3rem; }

  .event {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 3.5rem;
    padding-block: 4rem;
  }
  .poster img { margin-inline: auto 0; }

  .book { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem; align-items: start; padding-block: 4rem 4.5rem; }

  .foot { grid-template-columns: 1fr auto; align-items: end; }
}
