:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f7f4;
  color: #161616;
}

body {
  margin: 0;
}

.shell {
  max-width: 760px;
  margin: 7vh auto 0;
  padding: 0 24px;
}

.brand {
  display: block;
  width: min(100%, 680px);
  height: auto;
  margin: 0 auto 22px;
}

h1 {
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 20px;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 32px 0 12px;
}

label,
dt {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

input {
  flex: 1;
  min-width: 0;
  border: 1px solid #9c9c96;
  border-radius: 6px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 132px;
  border: 1px solid #9c9c96;
  border-radius: 6px;
  padding: 12px 14px;
  font: 0.95rem ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
  background: #fff;
  color: inherit;
  resize: vertical;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  background: #155e63;
  color: #fff;
  cursor: pointer;
}

a {
  color: #155e63;
}

.short-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.short-link {
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #9c9c96;
  background: #ffffff;
  color: #161616;
  line-height: 1;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: #155e63;
  outline: 2px solid #155e63;
  outline-offset: 2px;
}

.copy-status {
  flex: 0 0 auto;
  min-width: 72px;
  color: #186b35;
  font-size: 0.95rem;
}

.error {
  color: #9f1d1d;
}

.success {
  color: #186b35;
}

.content {
  max-width: 760px;
  margin-bottom: 8vh;
}

.content p {
  line-height: 1.55;
}

.footer-link {
  margin-top: 22px;
}

dd {
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .shell {
    margin-top: 5vh;
  }

  .brand {
    margin-bottom: 16px;
  }

  .row {
    flex-direction: column;
  }

  button {
    min-height: 48px;
  }

  .short-link-row {
    align-items: flex-start;
  }

  .copy-button {
    min-height: 40px;
  }
}
