:root {
  color-scheme: light dark;
  --page-background: #f7f8fa;
  --message-background: #ffffff;
  --text-primary: #202939;
  --text-secondary: #4b5b70;
  --edge: #d0d7e2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-background: #101828;
    --message-background: #1d2939;
    --text-primary: #f5f7fa;
    --text-secondary: #c5cfdd;
    --edge: #475467;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-background);
}

body {
  min-block-size: 100vh;
  min-block-size: 100svh;
  margin: 0;
  background: var(--page-background);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

.page {
  display: grid;
  min-block-size: inherit;
  place-items: center;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(1.5rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
}

.message {
  inline-size: min(100%, 40rem);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  overflow-wrap: anywhere;
  background: var(--message-background);
  border: 1px solid var(--edge);
  border-radius: 0.75rem;
}

.product-name {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

h1 {
  max-inline-size: 12ch;
  margin: 0;
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.summary {
  max-inline-size: 34rem;
  margin: 1.25rem 0 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.6;
}
