/* Mae's Babysitting: the printed flyer as a web page.
   A light "paper" design on purpose, so colors are fixed (no dark mode). */
:root {
  --paper: #fdf3ec;
  --card: #fffaf6;
  --ink: #1d1a18;
  --ink-soft: #4a4542;
  --gold: #c99a3c;
  --red: #f5140f;
  --orange: #fd8a0b;
  --amber: #fdb10b;
  --yellow: #f6d000;
  --green: #7aa85f;
  --teal: #2fb2a3;
  --blue: #5b9bd5;
  --indigo: #4f6fd0;
  --lavender: #9b7fd6;
  --magenta: #c35f97;
  --pink: #ec8fb0;
  --font: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

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

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

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

img { max-width: 100%; display: block; }
h1, h2, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* Wavy rainbow stripes across the top */
.waves {
  --w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20'%3E%3Cpath d='M0 10 Q20 0 40 10 T80 10' fill='none' stroke='black' stroke-width='6'/%3E%3C/svg%3E");
  position: relative;
  height: 132px;
}
.waves::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    var(--red) 0 16.66%, var(--amber) 0 33.33%, var(--yellow) 0 50%,
    var(--green) 0 66.66%, var(--blue) 0 83.33%, var(--lavender) 0 100%);
  -webkit-mask: var(--w) 0 1px / 80px 20px repeat-x, var(--w) 0 23px / 80px 20px repeat-x,
                var(--w) 0 45px / 80px 20px repeat-x, var(--w) 0 67px / 80px 20px repeat-x,
                var(--w) 0 89px / 80px 20px repeat-x, var(--w) 0 111px / 80px 20px repeat-x;
          mask: var(--w) 0 1px / 80px 20px repeat-x, var(--w) 0 23px / 80px 20px repeat-x,
                var(--w) 0 45px / 80px 20px repeat-x, var(--w) 0 67px / 80px 20px repeat-x,
                var(--w) 0 89px / 80px 20px repeat-x, var(--w) 0 111px / 80px 20px repeat-x;
}
@media (prefers-reduced-motion: no-preference) {
  .waves::before { animation: drift 12s linear infinite; }
  @keyframes drift {
    to {
      -webkit-mask-position: 80px 1px, 80px 23px, 80px 45px, 80px 67px, 80px 89px, 80px 111px;
              mask-position: 80px 1px, 80px 23px, 80px 45px, 80px 67px, 80px 89px, 80px 111px;
    }
  }
}

/* Hero: rainbow title + round photo */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding-block: 28px 52px;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(3.4rem, 10.5vw, 7rem);
  line-height: .95;
  letter-spacing: .01em;
  /* a soft ink shadow keeps the pale letters readable on cream */
  text-shadow: .035em .035em 0 rgba(29, 26, 24, .85);
}
.hero h1 .line { display: block; }
.c1 { color: var(--red); }
.c2 { color: var(--orange); }
.c3 { color: var(--amber); }
.c4 { color: var(--yellow); }
.c5 { color: var(--green); }
.c6 { color: var(--teal); }
.c7 { color: var(--blue); }
.c8 { color: var(--indigo); }
.c9 { color: var(--lavender); }
.c10 { color: var(--magenta); }
.c11 { color: var(--pink); }

.tagline {
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  margin-top: 22px;
}

.btn {
  display: inline-block;
  margin-top: 26px;
  padding: 12px 26px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 1.02rem/1.3 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #3a3532; }
.btn-small { margin: 0; padding: 8px 20px; font-size: .95rem; }

.photo {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  border: 10px solid var(--gold);
  overflow: hidden;
  background: var(--pink);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--gold);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Qualifications card */
.quals {
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: 32px;
  padding: 30px clamp(20px, 4vw, 44px);
}
.quals h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 20px; }
.quals ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}
.quals li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: center;
  font-size: 1.08rem;
}
.check {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 4px solid currentColor;
  position: relative;
}
.check::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 3px;
  width: 10px;
  height: 18px;
  border: solid currentColor;
  border-width: 0 5px 5px 0;
  border-radius: 2px;
  transform: rotate(40deg);
}
.check.red { color: var(--red); }
.check.orange { color: var(--orange); }
.check.blue { color: var(--blue); }
.check.green { color: var(--green); }

/* Bio */
.bio { padding-block: 56px; display: grid; justify-items: center; text-align: center; }
.bio p { font-size: clamp(1.12rem, 2.4vw, 1.4rem); max-width: 38ch; }

/* Contact */
.contact { padding-block: 8px 24px; display: grid; justify-items: center; text-align: center; gap: 16px; }
.contact h2 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; }
.email {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
  max-width: 100%;
  padding: 10px 10px 10px 24px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 999px;
}
.email .addr {
  font-weight: 600;
  font-size: clamp(.98rem, 3.2vw, 1.25rem);
  overflow-wrap: anywhere;
  min-width: 0;
}
.copied { min-height: 1.6em; font-size: .95rem; font-weight: 600; color: #4f7a38; }

/* Footer with the rainbow swirl in the corner */
footer { position: relative; overflow: hidden; min-height: 200px; }
footer .wrap {
  position: relative;
  z-index: 1;
  padding-block: 90px 40px;
  color: var(--ink-soft);
  font-size: .92rem;
}
.swirl {
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 300px;
  max-width: 75vw;
  pointer-events: none;
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-block: 8px 40px; text-align: center; }
  .photo { max-width: 280px; order: -1; }
  .quals ul { grid-template-columns: 1fr; }
  .waves { height: 110px; }
}
@media (max-width: 440px) {
  .email { border-radius: 24px; padding: 14px; }
}
