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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 36px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.intro,
.instructions,
.workspace,
.method,
footer {
  border: 1px solid #d9dee7;
  background: #fff;
  box-shadow: 0 12px 30px rgb(24 34 54 / 6%);
}

.intro {
  padding: clamp(28px, 5vw, 72px);
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 92% 4%, rgb(81 116 255 / 22%), transparent 35%),
    #fff;
}

.eyebrow {
  margin-bottom: 10px;
  color: #4257c7;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  max-width: 820px;
  margin-bottom: 0;
  color: #4c566d;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.instructions,
.method,
footer {
  padding: 28px clamp(24px, 4vw, 52px);
}

.instructions ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding-left: 20px;
  color: #4c566d;
  line-height: 1.5;
}

.workspace {
  padding: 28px 0 16px;
  overflow: hidden;
}

.workspace-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px 20px;
}

.workspace-heading h2 {
  margin-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  border: 1px solid #bfc7d7;
  border-radius: 9px;
  padding: 10px 14px;
  color: #172033;
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  border-color: #4257c7;
  outline: 3px solid rgb(66 87 199 / 18%);
}

button.primary {
  border-color: #3348b8;
  color: #fff;
  background: #4257c7;
}

button.secondary {
  background: #eef1ff;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid #d9dee7;
  border-bottom: 1px solid #d9dee7;
}

table {
  width: 100%;
  min-width: 1420px;
  border-collapse: collapse;
}

th,
td {
  border-right: 1px solid #d9dee7;
  border-bottom: 1px solid #e7eaf0;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #384258;
  background: #f1f3f7;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px;
  color: #172033;
  background: transparent;
  font: inherit;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #6c7ddd;
  outline: 3px solid rgb(66 87 199 / 15%);
  background: #fff;
}

td:first-child {
  width: 74px;
}

td:last-child,
th:last-child {
  width: 54px;
  border-right: 0;
}

.remove-row {
  width: 34px;
  height: 34px;
  padding: 0;
  color: #9a2a2a;
  font-size: 1.35rem;
  line-height: 1;
}

.status {
  min-height: 24px;
  margin: 12px 28px 0;
  color: #4257c7;
  font-weight: 700;
}

.method p,
footer p {
  max-width: 930px;
  color: #4c566d;
  line-height: 1.65;
}

footer {
  border-radius: 0 0 24px 24px;
}

footer p:last-child {
  margin-bottom: 0;
}

a {
  color: #3348b8;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  main {
    width: min(100% - 18px, 1480px);
    padding-top: 10px;
  }

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

  .workspace-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

