:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 15% 30%, #35442a55, transparent 55%), #08110d;
  color: #f3f2e8;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
header, footer { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: auto; padding: 28px 32px; gap: 16px; flex-wrap: wrap; }
header a { color: #ead7a3; text-decoration: none; letter-spacing: .13em; font-size: 17px; font-weight: 700; }
header a span { color: #f1f2e7; }
header nav { display: flex; gap: 18px; align-items: center; }
header nav a { font: 11px monospace; letter-spacing: .08em; font-weight: 400; }
main { max-width: 1100px; margin: 10px auto 40px; padding: 0 32px; }
.eyebrow { color: #ead7a3; font: 10px/1.5 monospace; letter-spacing: .14em; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 400; line-height: 1.06; letter-spacing: -.055em; margin: 18px 0 14px; }
h1 em { font-style: normal; color: #cddc9a; }
.lead { color: #a9b6a6; font-size: 16px; line-height: 1.75; max-width: 720px; margin: 0 0 8px; }
h2 { font-size: 24px; font-weight: 400; letter-spacing: -.035em; margin: 40px 0 12px; }
.controls { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 26px 0 0; }
.modes, .themes { display: flex; border: 1px solid #d2c39138; border-radius: 10px; overflow: hidden; }
.modes button, .themes button { background: none; border: 0; color: #a9b6a6; font: 11px monospace; letter-spacing: .06em; padding: 11px 16px; cursor: pointer; }
.modes button + button, .themes button + button { border-left: 1px solid #d2c39138; }
.modes button.active, .themes button.active { background: #d2c3911f; color: #ead7a3; }
.field { display: block; margin: 22px 0 6px; }
.field span { display: block; color: #86977f; font: 10px monospace; letter-spacing: .12em; margin-bottom: 8px; }
.field input {
  width: min(560px, 100%); background: #0e171360; border: 1px solid #d2c39138; border-radius: 10px;
  color: #f3f2e8; font: 13px monospace; padding: 13px 14px; outline: none;
}
.field input:focus { border-color: #e5d09780; }
.hint { color: #86977f; font: 11px/1.7 monospace; margin: 0 0 18px; }
.preview { margin: 6px 0 0; padding: 20px; border: 1px solid #d2c39126; border-radius: 14px; background: #0e171360; overflow-x: auto; }
.preview img { display: block; max-width: 100%; height: auto; }
.snippets { list-style: none; margin: 0; padding: 0; border-top: 1px solid #d2c39126; }
.snippets li { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid #d2c3911f; }
.tag { color: #ead7a3; font: 9px monospace; letter-spacing: .12em; }
.snippets code { color: #c9d3c3; font: 11px/1.7 monospace; overflow-wrap: anywhere; }
.snippets button { background: none; border: 1px solid #d2c39138; border-radius: 8px; color: #ead7a3; font: 10px monospace; letter-spacing: .08em; padding: 8px 12px; cursor: pointer; }
.snippets button:hover { border-color: #e5d09780; }
.snippets button:disabled { opacity: .35; cursor: default; }
.note { margin-top: 16px; color: #86977f; font: 11px/1.8 monospace; max-width: 760px; }
.verify { margin-top: 40px; padding: 18px 20px; border: 1px solid #d2c39138; border-radius: 12px; background: #0e171360; }
.verify p { margin: 0 0 10px; color: #a9b6a6; font-size: 13px; line-height: 1.7; }
.verify a { color: #ead7a3; font: 11px/1.9 monospace; display: block; overflow-wrap: anywhere; text-underline-offset: 4px; }
footer { color: #86977f; font: 10px/1.7 monospace; }
footer a { color: #86977f; }
@media (max-width: 820px) {
  header, footer { padding: 22px 20px; }
  main { padding: 0 20px; }
  .snippets li { grid-template-columns: 70px 1fr; }
  .snippets button { grid-column: 2; justify-self: start; }
}
