:root {
    --pink: #FF6B97;
    --raspberry: #D81B5A;
    --cocoa: #3A2220;
    --fleece: #EBD5BE;
    --cream: #FFF7EF;
    --blush: #FFE3EC;

    --display: "Grandstander", "Trebuchet MS", system-ui, sans-serif;
    --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --line: 3px solid var(--cocoa);
    --pop: 6px 6px 0 var(--cocoa);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--cream);
    color: var(--cocoa);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; }

  :focus-visible {
    outline: 4px solid var(--raspberry);
    outline-offset: 3px;
    border-radius: 8px;
  }

  .wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

  h1, h2, h3 {
    font-family: var(--display);
    font-weight: 900;
    line-height: 1.05;
    margin: 0;
    letter-spacing: -0.01em;
  }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    border: var(--line);
    border-radius: 999px;
    background: var(--pink);
    color: var(--cocoa);
    font: 700 1.0625rem/1.2 var(--body);
    text-decoration: none;
    box-shadow: 0 5px 0 var(--cocoa);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
  }
  .btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--cocoa); }
  .btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--cocoa); }
  .btn--light { background: #fff; }

  /* ---------- Hero ---------- */
  .hero { padding: 2.5rem 0 4rem; overflow: hidden; }
  .hero__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    justify-items: center;
    text-align: center;
  }
  .hero__logo {
    width: clamp(240px, 68vw, 440px);
    height: auto;
    aspect-ratio: 1 / 1;
    transform: rotate(-3deg);
    filter: drop-shadow(8px 10px 0 rgba(58, 34, 32, .9));
    animation: pop .75s cubic-bezier(.2, 1.5, .4, 1) both;
  }
  @keyframes pop {
    from { transform: scale(.82) rotate(-12deg); opacity: 0; }
    to   { transform: scale(1) rotate(-3deg); opacity: 1; }
  }
  .hero h1 { font-size: clamp(2.4rem, 8vw, 4.1rem); max-width: 14ch; }
  .hero p { margin: 1.1rem auto 0; max-width: 34rem; }
  .hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.6rem; }
  .tag {
    display: inline-block;
    margin-top: 1.4rem;
    padding: .35rem .9rem;
    border: 2px dashed var(--cocoa);
    border-radius: 999px;
    font-size: .95rem;
    background: var(--blush);
  }

  @media (min-width: 860px) {
    .hero { padding: 4rem 0 5.5rem; }
    .hero__grid { grid-template-columns: 1.05fr .95fr; text-align: left; justify-items: start; gap: 3rem; }
    .hero__logo { order: 2; justify-self: center; }
    .hero__copy { order: 1; }
    .hero p { margin-inline: 0; }
    .hero__actions { justify-content: flex-start; }
  }

  /* ---------- Picks ---------- */
  .picks {
    background: var(--blush);
    border-block: var(--line);
    padding: 4rem 0 4.5rem;
  }
  .section-head { max-width: 40rem; margin-bottom: 2.2rem; }
  .section-head h2 { font-size: clamp(2rem, 6vw, 3rem); }
  .section-head p { margin: .8rem 0 0; }

  .picks__list { display: grid; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
  .pick {
    background: #fff;
    border: var(--line);
    border-radius: 22px;
    box-shadow: var(--pop);
    padding: 1.4rem 1.5rem 1.6rem;
    display: grid;
    gap: 1rem;
  }
  .pick h3 { font-size: 1.55rem; }
  .pick__kind { margin: .2rem 0 0; font-size: .95rem; color: #6b4a45; }
  .pick__say {
    margin: 0;
    padding: .9rem 1.1rem;
    background: var(--cream);
    border: 2px solid var(--cocoa);
    border-radius: 18px 18px 18px 4px;
    font-weight: 500;
  }
  .pick .btn { justify-self: start; padding: .65rem 1.2rem; font-size: 1rem; }

  @media (min-width: 760px) {
    .picks__list { grid-template-columns: repeat(2, 1fr); }
    .pick:last-child:nth-child(odd) { grid-column: 1 / -1; }
  }

  /* ---------- Compliment counter ---------- */
  .cute { padding: 4.5rem 0; }
  .cute__panel {
    display: grid;
    gap: 1.8rem;
    justify-items: center;
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    padding: 2.2rem 1.5rem 2.4rem;
    background: var(--fleece);
    border: var(--line);
    border-radius: 28px;
    box-shadow: var(--pop);
  }
  .cute h2 { font-size: clamp(1.9rem, 6vw, 2.7rem); }
  .cute__count {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(3.4rem, 14vw, 5.5rem);
    line-height: 1;
    color: var(--raspberry);
  }
  .cute__label { margin: .5rem 0 0; font-weight: 700; }
  .cute__reply { margin: 0; min-height: 3.2em; max-width: 26rem; font-weight: 500; }
  .bump { animation: bump .25s ease; }
  @keyframes bump { 40% { transform: scale(1.12); } }

  /* ---------- Footer ---------- */
  footer { background: var(--cocoa); color: var(--cream); padding: 2.5rem 0 3rem; font-size: .95rem; }
  footer .wrap { display: grid; gap: 1.2rem; }
  footer img { width: 72px; height: 72px; }
  footer p { margin: 0; max-width: 46rem; }
  footer a { color: var(--blush); }

  @media (prefers-reduced-motion: reduce) {
    .hero__logo { animation: none; }
    .bump { animation: none; }
    .btn { transition: none; }
  }

  /* ---------- Home: moment cards ---------- */
  .mgrid { display: grid; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
  .mcard {
    display: grid;
    gap: .35rem;
    height: 100%;
    padding: 1.3rem 1.5rem 1.4rem;
    background: #fff;
    border: var(--line);
    border-radius: 22px;
    box-shadow: var(--pop);
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease;
  }
  .mcard:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--cocoa); }
  .mcard__num { font-family: var(--display); font-weight: 900; font-size: 1.1rem; color: var(--raspberry); }
  .mcard__title { font-family: var(--display); font-weight: 900; font-size: 1.55rem; line-height: 1.1; }
  .mcard__kind { font-size: .95rem; color: #6b4a45; }
  .mcard__go {
    justify-self: start;
    margin-top: .7rem;
    padding: .45rem 1rem;
    background: var(--pink);
    border: 2px solid var(--cocoa);
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
  }
  @media (min-width: 760px) {
    .mgrid { grid-template-columns: repeat(2, 1fr); }
    .mgrid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  }

  /* ---------- Moment page ---------- */
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
  .topbar img { border-radius: 50%; }
  .back { font-weight: 700; }

  .moment { padding: .5rem 0 4.5rem; }
  .moment__grid { display: grid; gap: 2rem; justify-items: center; }
  .vid {
    width: min(100%, 360px);
    aspect-ratio: 9 / 16;
    background: var(--cocoa);
    border: var(--line);
    border-radius: 26px;
    box-shadow: var(--pop);
    overflow: hidden;
  }
  .vid video { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--cocoa); }
  .moment__info { width: 100%; max-width: 34rem; }
  .moment__num { margin: 0 0 .3rem; font-family: var(--display); font-weight: 900; font-size: 1.2rem; color: var(--raspberry); }
  .moment h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); margin-bottom: 1.4rem; }
  .pick__name { font-size: 1.55rem; }
  .moment__ig { margin: 1.6rem 0 0; }
  .moment__ig a { font-weight: 700; }
  .pager { display: flex; justify-content: space-between; margin-top: 1.4rem; font-weight: 700; }

  @media (min-width: 860px) {
    .moment__grid { grid-template-columns: 360px 1fr; align-items: start; justify-items: start; gap: 3.5rem; }
  }
  @media (prefers-reduced-motion: reduce) { .mcard { transition: none; } }
