/* Estilo do site do chá de panela. Para trocar cores e fontes, mexa nos valores no início do arquivo (bloco :root). */
  :root {
    color-scheme: light;
    --cream: #FFFFFF;
    --paper: #FFFFFF;
    --lilac: #CFC6F4;
    --lilac-soft: #E7E2FA;
    --ink: #000000;
    --ink-soft: #333333;
    --yellow: #E8C834;
    --line: rgba(17, 17, 17, .16);
    --line-strong: rgba(17, 17, 17, .45);
    --btn-bg: #000000;
    --btn-fg: #FFFFFF;
    --muted: #8A8A96;
    --tint-1: #DDD4F6;
    --tint-2: #F7D6DF;
    --tint-3: #F9E0CB;
    --tint-4: #F6EBB9;
    --tint-5: #D5EBDF;
    --tint-6: #D3E4F5;
    --brush-top: 2%;
    --brush-h: 98%;
    --brush-ink: #000000;
    --logo-filter: none;
    --err: #9B2C2C;
    --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --sans: "Glacial Indifference", "Questrial", "Avenir Next", "Segoe UI", system-ui, sans-serif;
    --script: "Alex Brush", "Snell Roundhand", "Apple Chancery", cursive;
  }

  *, *::before, *::after { box-sizing: border-box; }
  :root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  html {
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
    -webkit-text-size-adjust: 100%;
  }
  body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.5;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px);
    background: var(--lilac);
    z-index: 30;
  }
  img { max-width: 100%; display: block; }
  button { font: inherit; color: inherit; }
  :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

  /* Barra do topo */
  .bar {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: var(--lilac);
    min-height: 60px;
  }
  .brand { font-family: var(--serif); font-size: 1.45rem; line-height: 1; }

  /* Botões */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1.5px solid var(--btn-bg);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 500;
    cursor: pointer;
  }
  .btn.sm { height: 42px; padding: 0 18px; font-size: .95rem; }
  .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
  .btn.block { width: 100%; margin-top: 20px; }
  .btn[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
  .count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--yellow);
    color: #2A2E3B;
    font-size: .85rem;
    font-weight: 400;
  }
  .textbtn {
    background: none;
    border: 0;
    padding: 12px 6px;
    color: var(--ink-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }

  /* Abertura */
  .hero {
    background: linear-gradient(180deg, var(--lilac) 0%, #FFFFFF 55%);
    padding: 24px 20px 40px;
    text-align: center;
  }
  .hero-logo { width: 84px; height: auto; margin: 0 auto; filter: var(--logo-filter); }
  .hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(2.7rem, 13vw, 6.4rem);
    line-height: .98;
    letter-spacing: .005em;
    margin: 22px auto 0;
    max-width: 11em;
    text-wrap: balance;
  }
  .brush { position: relative; display: inline-block; font-style: italic; z-index: 0; color: var(--brush-ink); padding: 0 .04em; }
  .brush svg {
    position: absolute;
    left: -7%;
    width: 114%;
    top: var(--brush-top);
    height: var(--brush-h);
    z-index: -1;
    overflow: visible;
    animation: paint .9s .25s cubic-bezier(.4, .1, .2, 1) both;
  }
  .brush .b1 { fill: var(--yellow); }
  .brush .b2 { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; opacity: .65; }
  @keyframes paint { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  .script { font-family: var(--script); font-size: clamp(3rem, 12vw, 4.6rem); line-height: 1.05; margin: 28px 0 0; }
  .couple { margin: 4px 0 0; font-size: 1.05rem; letter-spacing: .05em; }
  .lead { max-width: 33ch; margin: 30px auto 0; color: var(--ink-soft); font-size: 1.05rem; }
  .hero-cta .btn { margin-top: 22px; }

  /* Lista */
  .listing { background: #FFFFFF; padding-top: 8px; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 8px 20px 72px; }
  .list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .list-head h2 { font-family: var(--serif); font-weight: 400; font-size: 2.1rem; line-height: 1.05; margin: 0; }
  .seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; }
  .seg button {
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: none;
    cursor: pointer;
    font-weight: 500;
    font-size: .95rem;
  }
  .seg button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }

  .grid {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    gap: 44px 28px;
    grid-template-columns: 1fr;
  }
  @media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }

  .card { display: flex; flex-direction: column; }
  .photo {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 6 / 5;
    border-radius: 999px 999px 16px 16px;
    overflow: hidden;
  }
  .tint-1 { background: var(--tint-1); }
  .tint-2 { background: var(--tint-2); }
  .tint-3 { background: var(--tint-3); }
  .tint-4 { background: var(--tint-4); }
  .tint-5 { background: var(--tint-5); }
  .tint-6 { background: var(--tint-6); }
  .photo svg {
    width: 42%;
    max-width: 150px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .55;
  }
  .badge {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream);
    font-weight: 500;
    font-size: .92rem;
  }
  .card.is-out .photo { filter: grayscale(1); opacity: .6; }
  .card.is-out .name, .card.is-out .desc { color: var(--muted); }

  .name { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; margin: 18px 0 0; }
  .desc { margin: 8px 0 0; color: var(--ink-soft); }
  .link { align-self: flex-start; margin-top: 8px; color: var(--ink); text-underline-offset: 3px; font-size: .95rem; padding: 4px 0; }
  .avail { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 500; }
  .dots { display: inline-flex; gap: 5px; }
  .dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-block; }
  .dot.on { background: var(--ink); }
  .dot.mine { background: var(--yellow); }
  .meter { width: 90px; height: 8px; border-radius: 999px; border: 1.5px solid var(--ink); overflow: hidden; display: inline-block; }
  .meter span { display: block; height: 100%; background: var(--ink); }
  .vagas { margin: 2px 0 0; font-size: .95rem; color: var(--ink-soft); }
  .mine-line { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: .95rem; }
  .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
  .stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; }
  .stepper button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: none;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
  }
  .stepper button[aria-disabled="true"] { opacity: .3; cursor: not-allowed; }
  .stepper output { min-width: 30px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }

  .empty { margin: 40px 0 0; text-align: center; color: var(--ink-soft); }
  .empty .btn { margin-top: 14px; }

  .foot { text-align: center; padding: 8px 20px 56px; color: var(--ink-soft); }
  .foot img { width: 220px; height: auto; margin: 0 auto 14px; filter: var(--logo-filter); }
  .foot p { margin: 0 auto; max-width: 36ch; }

  /* Janelas */
  dialog.sheet {
    border: 0;
    padding: 0;
    width: min(460px, 100%);
    max-width: 100%;
    max-height: 92dvh;
    overflow: auto;
    background: var(--paper);
    color: var(--ink);
    border-radius: 26px 26px 0 0;
    margin: auto auto 0;
  }
  @media (min-width: 640px) { dialog.sheet { margin: auto; border-radius: 26px; } }
  dialog.sheet::backdrop { background: rgba(22, 25, 39, .55); }
  dialog.sheet[open] { animation: rise .22s ease-out; }
  @keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  .sheet-in { padding: 22px 22px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .sheet-head h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.05; margin: 0; }
  .x { width: 44px; height: 44px; margin: -6px -8px 0 0; border: 0; border-radius: 50%; background: none; font-size: 1.7rem; line-height: 1; cursor: pointer; }
  .sheet p { margin: 10px 0 0; color: var(--ink-soft); }
  .sheet label { display: block; margin-top: 16px; font-weight: 500; font-size: .95rem; color: var(--ink); }
  .sheet input {
    display: block;
    width: 100%;
    height: 50px;
    margin-top: 6px;
    padding: 0 14px;
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    background: var(--cream);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
  }
  .sheet input.code { text-align: center; font-size: 1.7rem; letter-spacing: .45em; font-variant-numeric: tabular-nums; padding-left: .45em; }
  .hint { font-size: .9rem; }
  .err { color: var(--err) !important; font-weight: 500; min-height: 1.5em; }
  .preview-note { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; }
  .mine-list { list-style: none; margin: 14px 0 0; padding: 0; }
  .mine-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mine-list .n { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
  .mine-list .q { display: block; font-size: .92rem; color: var(--ink-soft); }
  .sheet-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }

  .toast {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 24px);
    max-width: min(92vw, 420px);
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream);
    font-weight: 500;
    font-size: .95rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 100;
    text-align: center;
  }
  .toast.show { opacity: 1; transform: translate(-50%, 0); }

  @media (prefers-reduced-motion: reduce) {
    .brush svg { animation: none; }
    dialog.sheet[open] { animation: none; }
    .toast { transition: none; }
  }

  /* Estados da lista e fotos reais */
  .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .status { margin: 44px 0 0; text-align: center; color: var(--ink-soft); }
  .status .btn { margin-top: 14px; }
  .textbtn[disabled] { opacity: .5; cursor: default; text-decoration: none; }
  .btn[disabled] { opacity: .5; cursor: progress; }
  .noscript { padding: 24px; text-align: center; }
