/* V4 — invitation paper, tactile depth, motion as progressive enhancement. */
.paper-button {
  position: relative;
  justify-content: center;
  min-width: 202px;
  min-height: 62px;
  padding: 14px 32px;
  border: 1px solid var(--wine);
  border-radius: 0;
  background: var(--paper);
  color: var(--wine);
  font: 500 25px/1.2 var(--serif);
  letter-spacing: .1px;
  box-shadow: 3px 4px 0 #d9c6ba, 3px 4px 0 1px #a78580;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}
.paper-button::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #b79191;
  pointer-events: none;
}
.paper-button:hover, .paper-button:focus-visible {
  background: #f7e9e1;
  color: var(--wine-dark);
  transform: translate(-1px, -3px);
  box-shadow: 4px 7px 0 #d9c6ba, 4px 7px 0 1px #a78580;
}
.paper-button:active {
  transform: translate(2px, 3px);
  box-shadow: 1px 1px 0 #d9c6ba, 1px 1px 0 1px #a78580;
}
.comparison-copy .paper-button {
  color: var(--wine-dark);
  background: var(--paper);
  border-color: #ead4c4;
  box-shadow: 3px 4px 0 #bda096, 3px 4px 0 1px #efdad0;
  font-size: 23px;
}
.hero-actions .paper-button { flex-shrink: 0; }
.hero-format { max-width: 415px; }

/* Keep every interactive target recognisable with mouse, touch and keyboard. */
a, summary, .dialog-close {
  transition: color 180ms ease, background-color 180ms ease, text-decoration-color 180ms ease;
}
a:not(.button):hover, a:not(.button):focus-visible { text-decoration-color: currentColor; }
.header-nav a:hover, .hero-bottom a:hover, .footer-bottom a:hover { color: var(--wine); }
.header-nav a:focus-visible, .hero-bottom a:focus-visible, .footer-bottom a:focus-visible { text-decoration: underline; }
.text-link:hover { text-decoration-thickness: 2px; }
.dialog-close:hover, .dialog-close:focus-visible { background: var(--blush); }
.button:not(:disabled):focus-visible { outline: 3px solid #bd744b; outline-offset: 6px; }
.purchase-button:disabled { box-shadow: none; }

.sticky-choice {
  border-radius: 0;
  border-color: #a78580;
  background: var(--paper);
  box-shadow: 3px 4px 0 #d9c6ba, 0 7px 24px #35272b24;
}
.sticky-choice::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #d0b5ad;
  pointer-events: none;
}
.sticky-choice>a { color: var(--wine); }
.sticky-choice strong { font: 600 23px/1.05 var(--serif); }
.sticky-choice>a>span>span { color: var(--muted); }
.sticky-choice>a>.sticky-monogram {
  display: grid;
  place-content: center;
  border: 1px solid #b49995;
  border-radius: 50%;
  width: 36px;
  height: 38px;
  font: italic 26px/1 var(--serif);
  letter-spacing: -4px;
  padding-right: 5px;
}
.sticky-choice>a:hover, .sticky-choice>a:focus-visible { background: #f7e9e1; }
.sticky-choice>a:active { background: var(--blush); }

/* Native details remain operable without JavaScript, including keyboard input. */
.faq-list summary::after { content: "+"; transition: rotate 300ms ease; }
.faq-list details[open] summary::after { content: "+"; rotate: 45deg; }
.faq-list summary:hover, .faq-list summary:focus-visible { color: var(--wine); background: #edddd84d; }
.faq-list details[open] summary { color: var(--wine); }
@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  .faq-list details { interpolate-size: allow-keywords; }
  .faq-list details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 360ms ease, content-visibility 360ms allow-discrete;
  }
  .faq-list details[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .sticky-choice:not([hidden]) { animation: paper-arrives 360ms cubic-bezier(.2,.7,.2,1); }
  .cookie-dialog[open] { animation: paper-arrives 240ms ease-out; }
  .kit-card { transition: box-shadow 280ms ease, border-color 280ms ease; }
  .kit-card:hover { box-shadow: 0 12px 28px #49292114; }
  .hero-photo-frame, .hero-note, .hero-detail-photo { transition: box-shadow 350ms ease; }
  .hero-photo-frame:hover, .hero-note:hover { box-shadow: 3px 16px 32px #49292126; }
  .detail-image img { transition: transform 900ms cubic-bezier(.2,.7,.2,1); }
}
@keyframes paper-arrives {
  from { translate: 0 18px; opacity: .4; }
  to { translate: 0 0; opacity: 1; }
}

/* A real cloth photograph behind a solid, readable stack of correspondence. */
.faq-section {
  position: relative;
  isolation: isolate;
  background: #efe7de;
}
.faq-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #f8f4efd9, #f8f4ef91 46%, #f8f4efb5),
    url("envelope-cream-cloth-1600.webp") left center / cover no-repeat;
  pointer-events: none;
}
.faq-layout { gap: 80px; perspective: 1400px; align-items: start; }
.faq-intro { padding-top: 24px; }
.faq-intro .faq-photo {
  position: relative;
  width: 270px;
  margin: 39px 0 12px 12px;
  padding: 9px 9px 0;
  background: var(--paper);
  border: 1px solid #e3d5c6;
  box-shadow: 1px 3px 0 #c7b5a3, 12px 20px 30px #49302629;
  transform: perspective(900px) rotateX(var(--tilt-x, 2deg)) rotateY(var(--tilt-y, -5deg)) rotate(-5deg);
  transform-style: preserve-3d;
  transition: transform 380ms ease, box-shadow 380ms ease;
}
.faq-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #eaded2;
  border: 1px solid #c7b5a3;
  transform: translateZ(-8px) rotate(4deg);
}
.faq-intro .faq-photo img {
  display: block;
  width: 100%;
  height: 215px;
  object-fit: cover;
  object-position: 50% 47%;
  padding: 0;
  margin: 0;
  transform: none;
  box-shadow: none;
}
.faq-photo figcaption {
  padding: 14px 0;
  color: var(--wine);
  text-align: center;
  font: italic 19px/1.2 var(--serif);
}
.faq-paper {
  position: relative;
  padding: 27px 35px 30px;
  background: var(--paper);
  border: 1px solid #e0cfc1;
  box-shadow: 0 2px 3px #4930260a, 12px 22px 38px #4930261c;
  transform: translateZ(0);
  transform-style: preserve-3d;
}
.faq-paper::before, .faq-paper::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid #d2bdad;
}
.faq-paper::before {
  inset: 7px -8px -10px 7px;
  background: #e4d5c6;
  transform: translateZ(-16px) rotateY(-2deg) rotateZ(1.5deg);
  box-shadow: 4px 12px 20px #49302617;
}
.faq-paper::after {
  inset: 2px -5px -6px 4px;
  background: #f5ece2;
  transform: translateZ(-8px) rotateY(1deg) rotateZ(-.6deg);
}
.faq-paper-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--wine);
  padding-bottom: 22px;
}
.faq-paper-heading>span:first-child { font: italic 23px/1.2 var(--serif); }
.faq-paper-heading>span:last-child { font-size: 8px; letter-spacing: 1.5px; white-space: nowrap; }
.faq-list summary { padding: 23px 32px 23px 3px; }
.faq-list .details-content { padding-left: 3px; line-height: 1.9; color: var(--muted); }
.faq-list summary::after { right: 4px; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list details[open] { border-color: #ab817a; }

@media (max-width: 899px) {
  .hero-actions .paper-button { min-height: 60px; font-size: 24px; }
  .faq-layout { gap: 35px; grid-template-columns: .7fr 1fr; }
  .faq-paper { padding: 23px; }
  .faq-paper-heading { display: block; padding-bottom: 18px; }
  .faq-paper-heading>span:last-child { display: block; margin-top: 9px; }
  .faq-intro .faq-photo { width: min(220px, 95%); margin-left: 0; }
  .faq-intro .faq-photo img { height: 185px; }
  .faq-photo figcaption { font-size: 17px; }
}
@media (max-width: 640px) {
  .hero-actions .paper-button { min-width: 177px; font-size: 24px; padding-inline: 24px; }
  .hero-format { max-width: 330px; }
  .faq-section { padding-top: 52px; padding-bottom: 63px; }
  .faq-section::before {
    background: linear-gradient(#f8f4efbd, #f8f4ef9c 450px, #f8f4efe6),
      url("envelope-cream-cloth-1600.webp") 22% top / auto 820px no-repeat;
  }
  .faq-layout { display: block; perspective: none; }
  .faq-intro { padding-top: 0; margin-bottom: 36px; }
  .faq-intro .faq-photo { width: 196px; margin: 29px auto 0; transform: rotate(-4deg); padding: 6px 6px 0; }
  .faq-intro .faq-photo img { height: 140px; }
  .faq-photo figcaption { font-size: 17px; padding-block: 11px; }
  .faq-photo::before { display: none; }
  .faq-paper {
    padding: 23px 21px 12px;
    transform: none;
    transform-style: flat;
    box-shadow: 4px 6px 0 #f5ece2, 4px 6px 0 1px #d2bdad, 9px 18px 30px #4930261c;
  }
  .faq-paper::before { display: none; }
  .faq-paper::after { display: none; }
  .faq-paper-heading { display: block; padding-bottom: 17px; }
  .faq-paper-heading>span:first-child { font-size: 23px; }
  .faq-paper-heading>span:last-child { margin-top: 7px; font-size: 7px; }
  .faq-list summary { padding-block: 21px; font-size: 14px; line-height: 1.6; }
  .faq-list .details-content { font-size: 13px; padding-right: 4px; }
}
@media (max-width: 359px) {
  .hero-actions .paper-button { min-width: 155px; font-size: 22px; padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .paper-button:hover, .paper-button:focus-visible, .paper-button:active { transform: none; }
  .faq-list details::details-content { transition: none; }
}
@media print {
  .faq-section::before, .faq-photo, .faq-paper::before, .faq-paper::after { display: none !important; }
  .faq-section, .faq-paper { background: white; box-shadow: none; transform: none; }
  .faq-paper { padding: 16px; }
  .faq-list details::details-content { block-size: auto; content-visibility: visible; }
}
