:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #68717c;
  --paper: #f6f3eb;
  --panel: #ffffff;
  --line: #d9d2c2;
  --teal: #2f8f83;
  --gold: #b78025;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px;
}

.shell.wide {
  max-width: 1080px;
}

.hero {
  padding: 24px 0 18px;
}

.hero.compact {
  padding-bottom: 8px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 700px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 1.05;
  font-weight: 500;
}

h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.lede {
  margin: 16px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.panel {
  margin-top: 22px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.06);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.optional {
  color: #8d8372;
  font-weight: 600;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
}

button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button-link,
.copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.copy-link {
  background: transparent;
  color: var(--ink);
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.message {
  min-height: 22px;
  color: var(--teal);
  font-size: 14px;
}

.message.error {
  color: #a53b32;
}

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

.item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.item strong {
  display: block;
  margin-bottom: 4px;
}

.item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.item .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

pre {
  overflow-x: auto;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .shell {
    padding: 28px 14px;
  }

  h1 {
    font-size: 34px;
  }

  .lede {
    font-size: 16px;
  }

  .panel {
    padding: 18px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  button,
  .button-link,
  .copy-link {
    width: 100%;
  }

  .item .actions {
    display: grid;
  }
}
