.container {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  width: 100%;
  min-height: calc(100vh - 9rem);
  font-family: inherit;
}

.main {
  flex: 1 1 auto;
  min-width: 0;
}

.input {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 9rem);
  padding: 2rem;
  border: none;
  resize: none;
  background: transparent;
  color: inherit;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
  font-family: inherit;
}

.input:focus {
  outline: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  background: #7b756c;
  color: var(--color-background);
  flex: 0 0 24rem;
  padding: 2.25rem;
  border: 1px solid rgba(222, 214, 202, 0.8);
  border-radius: 8px;
}

.sidebar p {
  margin: 0;
  line-height: 1.6;
}

.sidebar__eyebrow {
  color: var(--color-border);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: none;
  padding-bottom: 20px;
}

.sidebar__copy {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.94);
}

.sidebar__controls {
  margin-top: auto;
}

.sidebar__label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-border);
  font-size: 0.9rem;
  font-weight: 500;
}

.sidebar__select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(222, 214, 202, 0.7);
  border-radius: 8px;
  background: rgba(245, 240, 232, 0.14);
  color: var(--color-background);
  font: inherit;
}

.sidebar__select:focus {
  outline: 2px solid rgba(217, 108, 59, 0.45);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
    min-height: auto;
  }

  .input {
    min-height: 24rem;
    padding: 1.5rem;
    font-size: 24px;
  }

  .sidebar {
    flex-basis: auto;
    padding: 1.75rem;
  }
}

@media (max-width: 640px) {
  .container {
    gap: 1rem;
  }

  .input {
    min-height: 18rem;
    padding: 1rem;
    font-size: 20px;
  }

  .sidebar {
    padding: 1.25rem;
  }

  .sidebar__copy {
    font-size: 1.05rem;
  }
}
