:root {
  font-family: Arial, sans-serif;
  color: #192b24;
  background: #f6f5ef;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
header,
main,
footer {
  width: min(1120px, calc(100% - 64px));
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid #d9ddd3;
  font-size: 12px;
}
header a {
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0.12em;
}
header span,
.help,
.section-heading span,
footer {
  color: #58665d;
}
.intro {
  padding: 64px 0 48px;
  max-width: 700px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
}
h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  margin: 20px 0 24px;
  font-weight: 650;
}
.intro > p:last-child {
  max-width: 460px;
  font-size: 17px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
p {
  margin: 0 0 16px;
}
.workspace {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  border-top: 1px solid #d9ddd3;
  padding: 36px 0 48px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
input,
select,
button {
  font: inherit;
  border-radius: 4px;
  min-height: 46px;
}
input,
select {
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #bdc7bc;
  color: #192b24;
  margin-bottom: 18px;
}
.help {
  font-size: 12px;
  line-height: 1.6;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
button {
  border: 1px solid #223f2e;
  background: #223f2e;
  color: #fff;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s;
}
button:enabled:hover {
  background: #365b43;
  transform: translateY(-1px);
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
form > button {
  width: 100%;
  margin-top: 8px;
}
:focus-visible {
  outline: 3px solid #9a671c;
  outline-offset: 3px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.section-heading span {
  font-size: 11px;
}
.preview {
  position: relative;
  aspect-ratio: 16/9;
  background-color: #dce1d8;
  background-image: conic-gradient(
    #cbd3c7 25%,
    transparent 0 50%,
    #cbd3c7 0 75%,
    transparent 0
  );
  background-size: 24px 24px;
  overflow: hidden;
  border: 1px solid #bdc7bc;
  border-radius: 5px;
  margin-bottom: 12px;
}
.preview iframe {
  width: 1920px;
  height: 1080px;
  border: 0;
  transform-origin: top left;
  position: absolute;
  inset: 0;
}
.preview > p {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #455744;
  pointer-events: none;
}
.output {
  border-top: 1px solid #d9ddd3;
  padding: 32px 0;
}
.output h2 {
  margin-bottom: 8px;
}
.output p {
  font-size: 14px;
  color: #58665d;
}
.url-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.url-row input {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: monospace;
  font-size: 12px;
}
.output #feedback {
  margin: 10px 0;
  min-height: 21px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #d9ddd3;
  padding: 24px 0 36px;
  font-size: 11px;
}
@media (max-width: 800px) {
  .workspace {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .intro {
    padding-top: 44px;
  }
  header,
  main,
  footer {
    width: calc(100% - 40px);
  }
  header span {
    display: none;
  }
  footer {
    flex-direction: column;
  }
  .url-row {
    flex-wrap: wrap;
  }
  .url-row button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}
