:root {
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #292722;
  background: #f6f1e8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

main {
  width: min(100%, 560px);
  padding: clamp(28px, 7vw, 52px);
  border: 1px solid #ded6c8;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 20px 60px rgba(66, 53, 31, 0.1);
}

.eyebrow {
  margin: 0 0 14px;
  color: #927026;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.message {
  margin: 20px 0 28px;
  color: #666057;
  font-size: 1.05rem;
  line-height: 1.6;
}

.actions {
  display: grid;
  gap: 10px;
}

.actions[hidden] {
  display: none;
}

a,
button {
  min-height: 48px;
  border-radius: 12px;
  font: inherit;
  font-weight: 680;
}

a {
  display: grid;
  place-items: center;
  padding: 12px 18px;
  text-decoration: none;
}

.primary {
  color: #fffdf8;
  background: #292722;
}

.secondary {
  color: #292722;
  border: 1px solid #d7cdbd;
  background: transparent;
}

.copy {
  width: 100%;
  margin-top: 10px;
  color: #746b5e;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.status {
  min-height: 1.4em;
  margin: 4px 0 0;
  color: #746b5e;
  text-align: center;
  font-size: 0.88rem;
}

details {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #e1d9cd;
  color: #746b5e;
  font-size: 0.88rem;
  line-height: 1.55;
}

summary {
  cursor: pointer;
  font-weight: 680;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #f4efe6;
    background: #181714;
  }

  main {
    border-color: #403b34;
    background: rgba(38, 36, 31, 0.9);
    box-shadow: none;
  }

  .message,
  .copy,
  .status,
  details {
    color: #bdb5aa;
  }

  .primary {
    color: #292722;
    background: #f3ede2;
  }

  .secondary {
    color: #f3ede2;
    border-color: #565046;
  }

  details {
    border-color: #403b34;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
