:root {
  color-scheme: light;
  --ink: #171714;
  --muted: #676962;
  --paper: #f8f7f4;
  --sage: #72806d;
  --line: rgba(23, 23, 20, 0.18);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.confirmation {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(3.5rem, 11vw, 7.2rem) clamp(1.5rem, 8vw, 8.5rem) 2rem clamp(1.5rem, 17vw, 17rem);
  background:
    radial-gradient(circle at 82% 84%, rgba(114, 128, 109, 0.1), transparent 22rem),
    linear-gradient(125deg, #fbfaf8 0%, var(--paper) 62%, #f4f3ee 100%);
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.23;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.message {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(100%, 42rem);
  animation: appear 900ms cubic-bezier(.16, 1, .3, 1) both;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  min-height: 2rem;
  padding: 0.45rem 0.75rem 0.45rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #30332e;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0.3rem 1.1rem rgba(23, 23, 20, 0.025);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.status-pill svg { width: 0.92rem; height: 0.92rem; color: var(--sage); }
.divider { width: 1px; height: 0.66rem; background: var(--line); }
.status-dot { width: 0.32rem; height: 0.32rem; border-radius: 50%; background: var(--sage); }

.title-wrap {
  position: relative;
  margin-top: clamp(2.6rem, 7vh, 4.25rem);
}

.accent-line {
  position: absolute;
  top: 1.1rem;
  bottom: 0.85rem;
  left: -1.6rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(114, 128, 109, 0.76) 18%, rgba(114, 128, 109, 0.14));
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.35rem, 9.1vw, 8.3rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.74;
}

h1 span { color: var(--sage); }

.copy {
  max-width: 28rem;
  margin: clamp(2.75rem, 8vh, 5rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.99rem, 1.35vw, 1.16rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.55;
}

.order-mark {
  position: relative;
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  margin-top: clamp(2rem, 7vh, 4.4rem);
  place-items: center;
  color: var(--sage);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.order-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: turn 18s linear infinite; }

.footer-note {
  position: absolute;
  z-index: 1;
  right: clamp(1.5rem, 8vw, 8.5rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  max-width: 17rem;
  margin: 0;
  color: rgba(103, 105, 98, 0.8);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: right;
}

@keyframes appear {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes turn { to { transform: rotate(360deg); } }

@media (max-width: 680px) {
  .confirmation {
    min-height: 100svh;
    padding: 3rem 1.6rem 5rem;
  }

  .message { align-self: center; }
  .status-pill { font-size: 0.57rem; }
  .title-wrap { margin-top: 3.15rem; }
  .accent-line { left: -0.8rem; top: 0.5rem; bottom: 0.4rem; }
  h1 { font-size: clamp(4.15rem, 19vw, 6.5rem); line-height: 0.75; }
  .copy { margin-top: 3.1rem; max-width: 19rem; }
  .desktop-break { display: none; }
  .order-mark { margin-top: 3rem; }
  .footer-note { right: 1.6rem; bottom: 1.55rem; max-width: 13rem; font-size: 0.59rem; }
}

@media (prefers-reduced-motion: reduce) {
  .message, .order-mark svg { animation: none; }
}
