*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #f9fafb;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1rem;
  font-weight: 400;
  color: #6b7280;
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

textarea,
input,
select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  width: 100%;
}

textarea:focus,
input:focus,
select:focus {
  outline: 2px solid #2563eb;
  outline-offset: -1px;
  border-color: transparent;
}

textarea {
  resize: vertical;
}

button {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.75rem;
  background: #dc2626;
  color: #fff;
}

button:hover {
  background: #b91c1c;
}

#burn-btn {
  background: #6b7280;
}

#copy-secret-btn {
  background: #6b7280;
  font-size: 0.8125rem;
  padding: 0.35rem 0.85rem;
  margin-top: 0.5rem;
}

#copy-secret-btn:hover {
  background: #4b5563;
}

#burn-btn:hover {
  background: #4b5563;
}

pre {
  padding: 0.75rem 1rem;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  word-break: break-all;
  white-space: pre-wrap;
  cursor: pointer;
}

pre:hover {
  border-color: #2563eb;
}

dl {
  margin: 1.25rem 0;
}

dt {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

dd {
  font-size: 0.875rem;
  color: #6b7280;
}

#secret-result pre {
  cursor: default;
  margin-top: 0.5rem;
}

#secret-result pre:hover {
  border-color: #d1d5db;
}

#burn-result {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

a {
  color: #2563eb;
}

p {
  margin-bottom: 0.75rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.site-header h1 {
  margin-bottom: 0;
}

.site-header h1 a {
  text-decoration: none;
  color: inherit;
}

.site-nav a {
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
}

.site-nav a:hover {
  color: #2563eb;
}

.prose h1 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.5rem;
}

.prose h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: inherit;
  margin: 1.75rem 0 0.5rem;
}

.prose h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: inherit;
  margin: 1.25rem 0 0.25rem;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose li {
  margin-bottom: 0.25rem;
}

.prose code {
  font-size: 0.875em;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

.site-footer {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: #d1d5db;
  font-family: monospace;
}

@media (prefers-color-scheme: dark) {
  body {
    color: #f3f4f6;
    background: #111827;
  }

  input,
  textarea,
  select {
    background: #1f2937;
    color: #f3f4f6;
    border-color: #374151;
  }

  pre {
    background: #1f2937;
    border-color: #374151;
  }

  dl dd {
    color: #9ca3af;
  }

  .prose code {
    background: #1f2937;
    border-color: #374151;
  }
}
