/* Meu Sim: fontes locais licenciadas (SIL OFL); sem build na hospedagem. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Altere a identidade aqui. Bronze é reservado a detalhes, nunca a texto pequeno. */
:root {
  --ivory: #F7F3EC;
  --coffee: #302927;
  --champagne: #D9C8AF;
  --dry-rose: #C8A5A0;
  --bronze: #9B7855;
  --surface: #FFFDFA;
  --tint: #EFE7DC;
  --coffee-hover: #4A3D37;
  --muted: #665B55;
  --error: #792F36;
  --paper: var(--ivory);
  --ink: var(--coffee);
  --line: var(--champagne);
  --font-editorial: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 12px 36px #30292706;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

h1,h2,h3,p {
  margin-top: 0
}

h1,h2,h3 {
  font-family: var(--font-editorial);
  line-height: 1.2;
  overflow-wrap: anywhere
}

h1 {
  font-family: var(--font-editorial);
  font-weight: 500;
  font-size: clamp(2.35rem,5.5vw,4.6rem);
  letter-spacing: -.035em;
  margin-bottom: 1rem
}

h2 {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: 1.9rem
}

p {
  overflow-wrap: anywhere
}

a {
  color: var(--coffee);
  text-underline-offset: 4px
}

button,input,select,textarea {
  font: inherit
}

button,.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  background: var(--coffee);
  color: var(--ivory);
  border: 1px solid transparent;
  padding: .75rem 1.2rem;
  border-radius: 7px;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  line-height: 1.4;
  text-decoration: none;
  white-space: normal
}

button:hover,.button:hover {
  background: var(--coffee-hover)
}

button:active,.button:active {
  transform: translateY(1px)
}

button:disabled {
  opacity: .5;
  cursor: not-allowed
}

.secondary {
  background: transparent;
  color: var(--coffee);
  border-color: var(--coffee)
}

.secondary:hover {
  background: var(--tint)
}

.quiet {
  background: transparent;
  color: var(--coffee);
  padding: .5rem .75rem
}

.quiet:hover {
  background: var(--tint)
}

.danger {
  background: transparent;
  color: var(--error);
  border-color: var(--dry-rose)
}

.danger:hover {
  background: var(--tint)
}

.grow {
  flex: 1
}

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,select:focus-visible {
  outline: 3px solid var(--coffee);
  outline-offset: 3px
}

input:not([type=checkbox]),select,textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--bronze);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: .7rem .85rem;
  margin-top: .35rem;
  min-width: 0
}

textarea {
  resize: vertical
}

input[type=checkbox] {
  width: 21px;
  height: 21px;
  accent-color: var(--coffee);
  flex-shrink: 0
}

label {
  display: block;
  font-size: .92rem;
  font-weight: 600
}

.check {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  font-weight: 400
}

.stack {
  display: grid;
  gap: 1.1rem
}

.stack>button {
  justify-self: start
}

.stack p {
  margin: 0
}

.site-header {
  max-width: 1240px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem
}

.brand {
  display: block;
  flex: 0 1 290px;
  min-width: 0;
  line-height: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1000 / 390
}

/* Janela sobre a arte original: preserva os pixels e o desenho enviado pelo fotógrafo. */
.brand img {
  display: block;
  position: absolute;
  width: 198.3%;
  max-width: none;
  height: auto;
  left: -12%;
  top: -51.282051%
}

.nav {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
  padding: .6rem 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.nav a {
  padding: .6rem .9rem;
  text-decoration: none;
  color: var(--muted);
  border-radius: 6px;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: .9rem
}

.nav a[aria-current=page] {
  background: var(--tint);
  color: var(--coffee);
  font-weight: 700
}

.nav a:hover {
  background: var(--tint)
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  min-height: 65vh
}

footer {
  border-top: 1px solid var(--line);
  max-width: 1160px;
  margin: auto;
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: .8rem;
  color: var(--muted)
}

footer details {
  width: 100%;
  max-width: 650px
}

footer details p {
  margin: .8rem 0
}

.skip {
  position: absolute;
  top: -100px;
  left: 10px;
  z-index: 100;
  background: var(--surface);
  padding: 12px
}

.skip:focus {
  top: 8px
}

.eyebrow {
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--coffee);
  font-weight: 700;
  margin-bottom: 1rem
}

.muted,.hint {
  color: var(--muted)
}

.hint {
  font-size: .82rem
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.4rem
}

.grid {
  display: grid;
  gap: 1.3rem
}

.grid.two {
  grid-template-columns: repeat(2,minmax(0,1fr))
}

.grid.three {
  grid-template-columns: repeat(3,minmax(0,1fr))
}

.grid .card {
  margin-bottom: 0
}

.actions {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  margin: 1.4rem 0
}

.page-heading {
  padding: 1rem 0 1.5rem;
  max-width: 780px
}

.page-heading h1 {
  font-size: clamp(2.3rem,4.5vw,3.7rem)
}

.page-heading p {
  color: var(--muted)
}

.heading-actions {
  display: flex;
  max-width: none;
  justify-content: space-between;
  align-items: center;
  gap: 1rem
}

.heading-actions>.button {
  flex-shrink: 0
}

.section-heading {
  margin: 2.5rem 0 1rem
}

.section-heading h2 {
  margin-bottom: .6rem
}

.section-heading p {
  color: var(--muted)
}

.hero {
  position: relative;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 60px 14px 14px 14px;
  overflow: hidden;
  min-height: 365px;
  margin-bottom: 1.8rem
}

.hero-copy {
  padding: 3rem 3rem 2rem;
  max-width: 760px
}

.hero .date {
  font-size: 1.1rem
}

.hero h1 {
  font-size: clamp(2.6rem,5vw,4.2rem)
}

.countdown {
  font-family: var(--font-editorial);
  font-size: 1.4rem;
  color: var(--coffee)
}

.with-cover {
  display: grid;
  grid-template-columns: 1fr 1fr
}

.with-cover .cover {
  width: 100%;
  height: 100%;
  min-height: 365px;
  object-fit: cover
}

.with-cover .hero-copy {
  padding: 2rem
}

.with-cover h1 {
  font-size: 2.8rem
}

.progress-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 2rem
}

.progress-card>div:first-child {
  flex: 1;
  min-width: 240px
}

.progress-card h2 {
  font-size: 1.4rem
}

.progress-card p:not(.eyebrow) {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .5rem
}

progress {
  height: 10px;
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: var(--champagne);
  accent-color: var(--coffee)
}

progress::-webkit-progress-bar {
  background: var(--champagne)
}

progress::-webkit-progress-value {
  background: var(--coffee)
}

progress::-moz-progress-bar {
  background: var(--coffee)
}

.progress-card>progress {
  width: 28%
}

.chips {
  width: 100%;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .5rem
}

.chips span {
  padding: .2rem .6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: .75rem
}

.feature {
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform .15s
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--bronze)
}

.feature p {
  font-size: .9rem;
  color: var(--muted)
}

.feature h2 {
  margin-top: 1.8rem;
  font-size: 1.8rem
}

.step {
  color: var(--coffee);
  font-family: var(--font-editorial);
  font-size: 1.25rem
}

.text-link {
  display: block;
  margin-top: 1.2rem;
  font-size: .9rem;
  color: var(--coffee)
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 2.5rem 0
}

.intro {
  padding: 1rem
}

.intro>p:not(.eyebrow) {
  max-width: 470px;
  color: var(--muted)
}

.brand-seal {
  width: 140px;
  margin: 1.8rem 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1
}

.brand-seal img {
  display: block;
  position: absolute;
  width: 639.677419%;
  max-width: none;
  height: auto;
  left: -467.741935%;
  top: -138.709677%
}

.auth-card {
  padding: 2.5rem;
  border-top: 3px solid var(--champagne)
}

.auth-card h2 {
  margin-bottom: 1.6rem
}

.notice {
  padding: 1rem 1.3rem;
  background: var(--tint);
  color: var(--coffee);
  border: 1px solid var(--champagne);
  border-radius: 10px;
  margin: 0 0 1.5rem
}

.notice.error {
  background: var(--surface)0ed;
  color: var(--error);
  border-color: var(--dry-rose)
}

.empty {
  padding: 1.5rem;
  background: var(--tint);
  border-radius: 12px;
  color: var(--muted)
}

details.card>summary {
  cursor: pointer;
  font-family: var(--font-editorial);
  font-size: 1.2rem;
  min-height: 30px
}

details.card[open]>summary {
  margin-bottom: 1.5rem
}

details>summary::marker {
  color: var(--coffee)
}

.wish-row {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem
}

.wish-row .check {
  padding-bottom: .7rem
}

.wish-row .grow {
  min-width: 200px
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
  margin: 1rem 0
}

.image-grid figure {
  margin: 0
}

.image-grid img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: var(--tint);
  border-radius: 10px
}

.image-grid button {
  font-size: .8rem;
  margin-top: .5rem
}

.cover-preview {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  margin-bottom: 1.5rem
}

.search {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap
}

.search label {
  min-width: 180px
}

.history {
  padding-left: 1.2rem;
  border-left: 1px solid var(--champagne)
}

.history li {
  margin-bottom: 1.1rem
}

.history span {
  display: block;
  font-size: .8rem;
  color: var(--muted)
}

.invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line)
}

.invite-row p {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 0
}

.prose {
  max-width: 780px
}

.prose h2 {
  margin-top: 2rem
}

.briefing h1 {
  font-size: 2.8rem
}

.briefing h2 {
  margin-top: 1.8rem
}

.briefing dt {
  font-weight: bold
}

.briefing dd {
  margin: 0 0 .8rem
}

.briefing li {
  break-inside: avoid
}

.briefing .image-grid img {
  height: 150px
}

[hidden] {
  display: none!important
}

@media(max-width:760px) {
  main {
    padding: 1.5rem 1rem 3rem
  }
  .site-header {
    display: grid;
    grid-template-columns: minmax(52px, 1fr) minmax(0, 245px) minmax(52px, 1fr);
    gap: .5rem;
    padding: 1rem
  }
  .brand {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none
  }
  .site-header > form {
    grid-column: 3;
    grid-row: 1;
    justify-self: end
  }
  .nav {
    gap: 0;
    padding: .3rem
  }
  .nav a {
    font-size: .8rem;
    padding: .55rem .65rem
  }
  .grid.three,.grid.two,.auth-grid,.with-cover {
    grid-template-columns: 1fr
  }
  .auth-grid {
    gap: 1.5rem;
    padding: 0
  }
  .intro {
    padding: .8rem
  }
  .brand-seal {
    display: none
  }
  .auth-card,.card {
    padding: 1.3rem
  }
  .hero {
    border-radius: 58px 14px 14px 14px;
    min-height: 0
  }
  .hero-copy,.with-cover .hero-copy {
    padding: 2rem 1.4rem
  }
  .with-cover .cover {
    min-height: 0;
    height: 230px
  }
  .progress-card>progress {
    width: 100%
  }
  .heading-actions {
    align-items: start;
    flex-direction: column
  }
  .image-grid {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
  .image-grid img {
    height: 140px
  }
  .invite-row {
    align-items: start;
    flex-direction: column
  }
  .wish-row .grow {
    flex-basis: 100%
  }
  .actions button,.stack>button {
    width: 100%
  }
  .search button {
    width: 100%
  }
  .search label {
    min-width: 0;
    flex-basis: 100%
  }
  footer {
    padding: 1.5rem 1rem
  }
  .page-heading {
    padding: .5rem 0 1rem
  }
}

/* A alça é a única área que captura o toque; o restante da página continua rolável. */
#entry-order-tools {
  margin-bottom: 1.5rem;
}
#entry-order-status {
  margin: .65rem 0;
}
.can-reorder .entry-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: .5rem;
  align-items: start;
  margin-bottom: 1.4rem;
}
.can-reorder .entry-item > .card {
  margin-bottom: 0;
  min-width: 0;
}
.entry-handle {
  width: 44px;
  min-height: 48px;
  padding: .5rem;
  touch-action: none;
  user-select: none;
  cursor: grab;
  font-size: 1.5rem;
}
.entry-item.is-dragging {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.entry-item.is-dragging .entry-handle {
  cursor: grabbing;
  background: var(--champagne);
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
    scroll-behavior: auto!important
  }
}

@media print {
  @page {
    margin: 15mm
  }
  body {
    background: var(--surface);
    color: var(--coffee);
    font-size: 10pt
  }
  .site-header,.nav,footer,.no-print,.skip,.notice {
    display: none!important
  }
  main {
    padding: 0;
    max-width: none
  }
  .card {
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0
  }
  .briefing h1 {
    font-size: 26pt
  }
  .briefing h2 {
    font-size: 16pt;
    break-after: avoid
  }
  a {
    color: var(--coffee);
    text-decoration: none
  }
  .briefing p {
    orphans: 3;
    widows: 3
  }
  .image-grid {
    grid-template-columns: repeat(3,1fr)
  }
  .image-grid img {
    height: 120px
  }
  h2,h3 {
    page-break-after: avoid
  }
}

